Package org.apache.openjpa.kernel
Interface QueryFlushModes
- All Known Subinterfaces:
FetchConfiguration
,JDBCFetchConfiguration
,Query
- All Known Implementing Classes:
DelegatingFetchConfiguration
,DelegatingJDBCFetchConfiguration
,DelegatingQuery
,DistributedQueryImpl
,FetchConfigurationImpl
,JDBCFetchConfigurationImpl
,QueryImpl
,TargetFetchConfiguration
public interface QueryFlushModes
Constants for determining when to flush before queries.
- Since:
- 0.4.0
- Author:
- Abe White
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant denoting that queries should never flush data to the database automatically before executing a query, but should instead execute queries in-memory if necessary.static final int
Constant denoting that queries should flush data to the database automatically whenever OpenJPA determines that relevant modifications have been made and IgnoreCache isfalse
.static final int
Constant denoting that queries should flush data to the database automatically when OpenJPA determines that relevant modifications have been made and the current context already has a dedicated connection.
-
Field Details
-
FLUSH_TRUE
static final int FLUSH_TRUEConstant denoting that queries should flush data to the database automatically whenever OpenJPA determines that relevant modifications have been made and IgnoreCache isfalse
. SeeOpenJPAConfiguration.getFlushBeforeQueries()
for more info.- See Also:
-
FLUSH_FALSE
static final int FLUSH_FALSEConstant denoting that queries should never flush data to the database automatically before executing a query, but should instead execute queries in-memory if necessary. SeeOpenJPAConfiguration.getFlushBeforeQueries()
for more info.- See Also:
-
FLUSH_WITH_CONNECTION
static final int FLUSH_WITH_CONNECTIONConstant denoting that queries should flush data to the database automatically when OpenJPA determines that relevant modifications have been made and the current context already has a dedicated connection. SeeOpenJPAConfiguration.getFlushBeforeQueries()
for more info.- See Also:
-