public interface SynchronizeableQuery<T>
Modifier and Type | Method and Description |
---|---|
SynchronizeableQuery<T> |
addSynchronizedEntityClass(Class entityClass)
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
|
SynchronizeableQuery<T> |
addSynchronizedEntityName(String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
SynchronizeableQuery<T> |
addSynchronizedQuerySpace(String querySpace)
Adds a query space.
|
Collection<String> |
getSynchronizedQuerySpaces()
Obtain the list of query spaces the query is synchronized on.
|
Collection<String> getSynchronizedQuerySpaces()
SynchronizeableQuery<T> addSynchronizedQuerySpace(String querySpace)
querySpace
- The query space to be auto-flushed for this query.this
, for method chainingSynchronizeableQuery<T> addSynchronizedEntityName(String entityName) throws MappingException
addSynchronizedQuerySpace(java.lang.String)
for all tables associated with the given entity.entityName
- The name of the entity upon whose defined query spaces we should additionally synchronize.this
, for method chainingMappingException
- Indicates the given name could not be resolved as an entitySynchronizeableQuery<T> addSynchronizedEntityClass(Class entityClass) throws MappingException
addSynchronizedQuerySpace(java.lang.String)
for all tables associated with the given entity.entityClass
- The class of the entity upon whose defined query spaces we should additionally synchronize.this
, for method chainingMappingException
- Indicates the given class could not be resolved as an entityCopyright © 2020 JBoss by Red Hat. All rights reserved.