public interface SynchronizeableQuery<T>
Modifier and Type | Method and Description |
---|---|
SynchronizeableQuery<T> |
addSynchronizedEntityClass(java.lang.Class entityClass)
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
|
SynchronizeableQuery<T> |
addSynchronizedEntityName(java.lang.String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
SynchronizeableQuery<T> |
addSynchronizedQuerySpace(java.lang.String querySpace)
Adds a query space.
|
java.util.Collection<java.lang.String> |
getSynchronizedQuerySpaces()
Obtain the list of query spaces the query is synchronized on.
|
java.util.Collection<java.lang.String> getSynchronizedQuerySpaces()
SynchronizeableQuery<T> addSynchronizedQuerySpace(java.lang.String querySpace)
querySpace
- The query space to be auto-flushed for this query.this
, for method chainingSynchronizeableQuery<T> addSynchronizedEntityName(java.lang.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(java.lang.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.