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.
|
default SynchronizeableQuery<T> |
addSynchronizedEntityClass(Class<?>... entityClasses)
Adds one-or-more entities (by class) whose tables should be added as synchronized spaces
|
default SynchronizeableQuery<T> |
addSynchronizedEntityName(String... entityNames)
Adds one-or-more entities (by name) whose tables should be added as synchronized spaces
|
SynchronizeableQuery<T> |
addSynchronizedEntityName(String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
default SynchronizeableQuery<T> |
addSynchronizedQuerySpace(String... querySpaces)
Adds one-or-more synchronized spaces
|
SynchronizeableQuery<T> |
addSynchronizedQuerySpace(String querySpace)
Adds a query space.
|
default SynchronizeableQuery<T> |
addSynchronizedTable(String... tableExpressions)
Adds one-or-more synchronized table expressions
|
default SynchronizeableQuery<T> |
addSynchronizedTable(String tableExpression)
Adds a table expression as 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 chainingdefault SynchronizeableQuery<T> addSynchronizedQuerySpace(String... querySpaces)
default SynchronizeableQuery<T> addSynchronizedTable(String tableExpression)
default SynchronizeableQuery<T> addSynchronizedTable(String... tableExpressions)
SynchronizeableQuery<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 entitydefault SynchronizeableQuery<T> addSynchronizedEntityName(String... entityNames) throws MappingException
MappingException
SynchronizeableQuery<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 entitydefault SynchronizeableQuery<T> addSynchronizedEntityClass(Class<?>... entityClasses) throws MappingException
MappingException
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.