Class DelegatingJDBCFetchConfiguration
- All Implemented Interfaces:
Serializable,Cloneable,EagerFetchModes,JDBCFetchConfiguration,LRSSizes,JoinSyntaxes,FetchConfiguration,LockLevels,LockScopes,QueryFlushModes
- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
-
Field Summary
Fields inherited from interface org.apache.openjpa.jdbc.kernel.EagerFetchModes
EAGER_JOIN, EAGER_NONE, EAGER_PARALLELFields inherited from interface org.apache.openjpa.kernel.FetchConfiguration
DEFAULT, FETCH_LOAD, FETCH_NONE, FETCH_REFFields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONALFields inherited from interface org.apache.openjpa.kernel.LockLevels
LOCK_NONE, LOCK_READ, LOCK_WRITEFields inherited from interface org.apache.openjpa.kernel.LockScopes
LOCKSCOPE_EXTENDED, LOCKSCOPE_NORMALFields inherited from interface org.apache.openjpa.jdbc.kernel.LRSSizes
SIZE_LAST, SIZE_QUERY, SIZE_UNKNOWNFields inherited from interface org.apache.openjpa.kernel.QueryFlushModes
FLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTION -
Constructor Summary
ConstructorsConstructorDescriptionConstructor; supply delegate.Constructor; supply delegate and exception translator. -
Method Summary
Modifier and TypeMethodDescriptionaddFetchInnerJoin(String field) Addsfieldto the set of fully-qualified field names to eagerly join when loading objects.addFetchInnerJoins(Collection fields) Addsfieldsto the set of fully-qualified field names to eagerly join when loading objects.Addsfieldto the set of fully-qualified field names to eagerly join when loading objects.addJoins(Collection fields) Addsfieldsto the set of fully-qualified field names to eagerly join when loading objects.Clears the set of field names to join when loading data.intReturn the eager fetch mode.intThe fetch direction to use as a constant fromResultSet.Returns the names of the inner fetch joins that this component will use when loading objects.booleanAffirms if foreign key for a relation field will be pre-fetched as part of the owning object irrespective of whether the field is included in the default fetch group of this fetch configuration.intThe isolation level for queries issued to the database.Return the JDBC delegate.getJoins()Returns the names of the joins that this component will use when loading objects.intThe join syntax to use.intThe large result set size mode to use.intThe result set type to use as a constant fromResultSet.intReturn the subclass fetch mode.intReturn the effective subclass fetch mode for the given type.booleanhasFetchInnerJoin(String field) Return true if the given fully-qualified inner fetch join has been added.booleanReturn true if the given fully-qualified join has been added.removeJoin(String field) Removesfieldto the set of fully-qualified field names to eagerly join when loading objects.removeJoins(Collection fields) Removesfieldsfrom the set of fully-qualified field names to eagerly join when loading objects.setEagerFetchMode(int mode) Set the eager fetch mode.setFetchDirection(int direction) The fetch direction to use as a constant fromResultSet.voidsetIgnoreDfgForFkSelect(boolean b) Affirms if foreign key for a relation field will be pre-fetched as part of the owning object irrespective of whether the field is included in the default fetch group of this fetch configuration.setIsolation(int level) The isolation level for queries issued to the database.setJoinSyntax(int syntax) The join syntax to use.setLRSSize(int lrsSize) The large result set size mode to use.setResultSetType(int type) The result set type to use as a constant fromResultSet.setSubclassFetchMode(int mode) Set the subclass fetch mode.Convenience method to cast traversal to store-specific type.Methods inherited from class org.apache.openjpa.kernel.DelegatingFetchConfiguration
addFetchGroup, addFetchGroups, addField, addFields, clearFetchGroups, clearFields, clone, copy, equals, getCacheRetrieveMode, getCacheStoreMode, getContext, getDelegate, getExtendedPathLookup, getFetchBatchSize, getFetchGroups, getFields, getFlushBeforeQueries, getHint, getHints, getInnermostDelegate, getLockScope, getLockTimeout, getMaxFetchDepth, getQueryCacheEnabled, getQueryTimeout, getReadLockLevel, getRootClasses, getRootInstances, getWriteLockLevel, hasFetchGroup, hasField, hashCode, isDefaultPUFetchGroupConfigurationOnly, isFetchConfigurationSQLCacheAdmissible, isHintSet, lock, newResultList, removeFetchGroup, removeFetchGroups, removeField, removeFields, requiresFetch, requiresLoad, resetFetchGroups, setCacheRetrieveMode, setCacheStoreMode, setContext, setExtendedPathLookup, setFetchBatchSize, setFlushBeforeQueries, setHint, setHint, setLockScope, setLockTimeout, setMaxFetchDepth, setQueryCacheEnabled, setQueryTimeout, setReadLockLevel, setRootClasses, setRootInstances, setWriteLockLevel, translate, traverse, unlockMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.kernel.FetchConfiguration
addFetchGroup, addFetchGroups, addField, addFields, clearFetchGroups, clearFields, clone, copy, getCacheRetrieveMode, getCacheStoreMode, getContext, getExtendedPathLookup, getFetchBatchSize, getFetchGroups, getFields, getFlushBeforeQueries, getHint, getHints, getLockScope, getLockTimeout, getMaxFetchDepth, getQueryCacheEnabled, getQueryTimeout, getReadLockLevel, getRootClasses, getRootInstances, getWriteLockLevel, hasFetchGroup, hasField, isDefaultPUFetchGroupConfigurationOnly, isFetchConfigurationSQLCacheAdmissible, isHintSet, lock, newResultList, removeFetchGroup, removeFetchGroups, removeField, removeFields, requiresFetch, requiresLoad, resetFetchGroups, setCacheRetrieveMode, setCacheStoreMode, setContext, setExtendedPathLookup, setFetchBatchSize, setFlushBeforeQueries, setHint, setHint, setLockScope, setLockTimeout, setMaxFetchDepth, setQueryCacheEnabled, setQueryTimeout, setReadLockLevel, setRootClasses, setRootInstances, setWriteLockLevel, traverse, unlock
-
Constructor Details
-
DelegatingJDBCFetchConfiguration
Constructor; supply delegate. -
DelegatingJDBCFetchConfiguration
public DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate, RuntimeExceptionTranslator trans) Constructor; supply delegate and exception translator.
-
-
Method Details
-
getJDBCDelegate
Return the JDBC delegate. -
getEagerFetchMode
public int getEagerFetchMode()Description copied from interface:JDBCFetchConfigurationReturn the eager fetch mode. Defaults to theopenjpa.jdbc.EagerFetchModesetting.- Specified by:
getEagerFetchModein interfaceJDBCFetchConfiguration
-
setEagerFetchMode
Description copied from interface:JDBCFetchConfigurationSet the eager fetch mode. Defaults to theopenjpa.jdbc.EagerFetchModesetting.- Specified by:
setEagerFetchModein interfaceJDBCFetchConfiguration
-
getSubclassFetchMode
public int getSubclassFetchMode()Description copied from interface:JDBCFetchConfigurationReturn the subclass fetch mode. Defaults to theopenjpa.jdbc.SubclassFetchModesetting.- Specified by:
getSubclassFetchModein interfaceJDBCFetchConfiguration
-
getSubclassFetchMode
Description copied from interface:JDBCFetchConfigurationReturn the effective subclass fetch mode for the given type.- Specified by:
getSubclassFetchModein interfaceJDBCFetchConfiguration
-
setSubclassFetchMode
Description copied from interface:JDBCFetchConfigurationSet the subclass fetch mode. Defaults to theopenjpa.jdbc.SubclassFetchModesetting.- Specified by:
setSubclassFetchModein interfaceJDBCFetchConfiguration
-
getResultSetType
public int getResultSetType()Description copied from interface:JDBCFetchConfigurationThe result set type to use as a constant fromResultSet. Defaults to theopenjpa.jdbc.ResultSetTypesetting.- Specified by:
getResultSetTypein interfaceJDBCFetchConfiguration
-
setResultSetType
Description copied from interface:JDBCFetchConfigurationThe result set type to use as a constant fromResultSet. Defaults to theopenjpa.jdbc.ResultSetTypesetting.- Specified by:
setResultSetTypein interfaceJDBCFetchConfiguration
-
getFetchDirection
public int getFetchDirection()Description copied from interface:JDBCFetchConfigurationThe fetch direction to use as a constant fromResultSet. Defaults to theopenjpa.jdbc.FetchDirectionsetting.- Specified by:
getFetchDirectionin interfaceJDBCFetchConfiguration
-
setFetchDirection
Description copied from interface:JDBCFetchConfigurationThe fetch direction to use as a constant fromResultSet. Defaults to theopenjpa.jdbc.FetchDirectionsetting.- Specified by:
setFetchDirectionin interfaceJDBCFetchConfiguration
-
getLRSSize
public int getLRSSize()Description copied from interface:JDBCFetchConfigurationThe large result set size mode to use. Defaults to theopenjpa.jdbc.LRSSizesetting.- Specified by:
getLRSSizein interfaceJDBCFetchConfiguration
-
setLRSSize
Description copied from interface:JDBCFetchConfigurationThe large result set size mode to use. Defaults to theopenjpa.jdbc.LRSSizesetting.- Specified by:
setLRSSizein interfaceJDBCFetchConfiguration
-
getJoinSyntax
public int getJoinSyntax()Description copied from interface:JDBCFetchConfigurationThe join syntax to use.- Specified by:
getJoinSyntaxin interfaceJDBCFetchConfiguration
-
setJoinSyntax
Description copied from interface:JDBCFetchConfigurationThe join syntax to use.- Specified by:
setJoinSyntaxin interfaceJDBCFetchConfiguration
-
getJoins
Description copied from interface:JDBCFetchConfigurationReturns the names of the joins that this component will use when loading objects. Defaults to the empty set. This set is not thread safe.- Specified by:
getJoinsin interfaceJDBCFetchConfiguration
-
hasJoin
Description copied from interface:JDBCFetchConfigurationReturn true if the given fully-qualified join has been added.- Specified by:
hasJoinin interfaceJDBCFetchConfiguration
-
addJoin
Description copied from interface:JDBCFetchConfigurationAddsfieldto the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.- Specified by:
addJoinin interfaceJDBCFetchConfiguration
-
addJoins
Description copied from interface:JDBCFetchConfigurationAddsfieldsto the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.- Specified by:
addJoinsin interfaceJDBCFetchConfiguration
-
removeJoin
Description copied from interface:JDBCFetchConfigurationRemovesfieldto the set of fully-qualified field names to eagerly join when loading objects.- Specified by:
removeJoinin interfaceJDBCFetchConfiguration
-
removeJoins
Description copied from interface:JDBCFetchConfigurationRemovesfieldsfrom the set of fully-qualified field names to eagerly join when loading objects.- Specified by:
removeJoinsin interfaceJDBCFetchConfiguration
-
clearJoins
Description copied from interface:JDBCFetchConfigurationClears the set of field names to join when loading data.- Specified by:
clearJoinsin interfaceJDBCFetchConfiguration
-
getIsolation
public int getIsolation()Description copied from interface:JDBCFetchConfigurationThe isolation level for queries issued to the database. This overrides the persistence-unit-wide
openjpa.jdbc.TransactionIsolationvalue.Must be one of
Connection.TRANSACTION_NONE,Connection.TRANSACTION_READ_UNCOMMITTED,Connection.TRANSACTION_READ_COMMITTED,Connection.TRANSACTION_REPEATABLE_READ,Connection.TRANSACTION_SERIALIZABLE, or -1 for the default connection level specified by the context in which this fetch configuration is being used.- Specified by:
getIsolationin interfaceJDBCFetchConfiguration
-
setIsolation
Description copied from interface:JDBCFetchConfigurationThe isolation level for queries issued to the database. This overrides the persistence-unit-wide
openjpa.jdbc.TransactionIsolationvalue.Must be one of
Connection.TRANSACTION_NONE,Connection.TRANSACTION_READ_UNCOMMITTED,Connection.TRANSACTION_READ_COMMITTED,Connection.TRANSACTION_REPEATABLE_READ,Connection.TRANSACTION_SERIALIZABLE, or -1 for the default connection level specified by the context in which this fetch configuration is being used.- Specified by:
setIsolationin interfaceJDBCFetchConfiguration
-
traverseJDBC
Description copied from interface:JDBCFetchConfigurationConvenience method to cast traversal to store-specific type.- Specified by:
traverseJDBCin interfaceJDBCFetchConfiguration
-
getFetchInnerJoins
Description copied from interface:JDBCFetchConfigurationReturns the names of the inner fetch joins that this component will use when loading objects. Defaults to the empty set. This set is not thread safe.- Specified by:
getFetchInnerJoinsin interfaceJDBCFetchConfiguration
-
hasFetchInnerJoin
Description copied from interface:JDBCFetchConfigurationReturn true if the given fully-qualified inner fetch join has been added.- Specified by:
hasFetchInnerJoinin interfaceJDBCFetchConfiguration
-
addFetchInnerJoin
Description copied from interface:JDBCFetchConfigurationAddsfieldto the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.- Specified by:
addFetchInnerJoinin interfaceJDBCFetchConfiguration
-
addFetchInnerJoins
Description copied from interface:JDBCFetchConfigurationAddsfieldsto the set of fully-qualified field names to eagerly join when loading objects. Each class can have at most one to-many eagerly joined fields.- Specified by:
addFetchInnerJoinsin interfaceJDBCFetchConfiguration
-
setIgnoreDfgForFkSelect
public void setIgnoreDfgForFkSelect(boolean b) Description copied from interface:JDBCFetchConfigurationAffirms if foreign key for a relation field will be pre-fetched as part of the owning object irrespective of whether the field is included in the default fetch group of this fetch configuration.
By default, foreign key for a relation field is pre-fetched as part of the owning object only if the field in included in the default fetch group of this fetch configuration.- Specified by:
setIgnoreDfgForFkSelectin interfaceJDBCFetchConfiguration
-
getIgnoreDfgForFkSelect
public boolean getIgnoreDfgForFkSelect()Description copied from interface:JDBCFetchConfigurationAffirms if foreign key for a relation field will be pre-fetched as part of the owning object irrespective of whether the field is included in the default fetch group of this fetch configuration.
By default, foreign key for a relation field is pre-fetched as part of the owning object only if the field in included in the default fetch group of this fetch configuration.- Specified by:
getIgnoreDfgForFkSelectin interfaceJDBCFetchConfiguration
-