public interface SynchronizeableQuery
Modifier and Type | Method and Description |
---|---|
SynchronizeableQuery |
addSynchronizedEntityClass(Class entityClass)
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
|
SynchronizeableQuery |
addSynchronizedEntityName(String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
SynchronizeableQuery |
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 addSynchronizedQuerySpace(String querySpace)
querySpace
- The query space to be auto-flushed for this query.this
, for method chainingSynchronizeableQuery 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 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 © 2017 JBoss by Red Hat. All rights reserved.