public class JDBCFetchConfigurationImpl extends FetchConfigurationImpl implements JDBCFetchConfiguration
FetchConfiguration.| Modifier and Type | Class and Description |
|---|---|
protected static class |
JDBCFetchConfigurationImpl.JDBCConfigurationState
Configurable JDBC state shared throughout a traversal chain.
|
FetchConfigurationImpl.ConfigurationState| Modifier and Type | Field and Description |
|---|---|
protected JDBCFetchConfigurationImpl.JDBCConfigurationState |
_state |
DEFAULT, FETCH_LOAD, FETCH_NONE, FETCH_REFLOCK_NONE, LOCK_READ, LOCK_WRITELOCKSCOPE_EXTENDED, LOCKSCOPE_NORMALFLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTIONEAGER_JOIN, EAGER_NONE, EAGER_PARALLELSIZE_LAST, SIZE_QUERY, SIZE_UNKNOWNSYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL| Modifier | Constructor and Description |
|---|---|
|
JDBCFetchConfigurationImpl() |
protected |
JDBCFetchConfigurationImpl(FetchConfigurationImpl.ConfigurationState state,
JDBCFetchConfigurationImpl.JDBCConfigurationState jstate) |
| Modifier and Type | Method and Description |
|---|---|
JDBCFetchConfiguration |
addFetchInnerJoin(String join)
Adds
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addFetchInnerJoins(Collection<String> joins)
Adds
fields to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addJoin(String join)
Adds
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addJoins(Collection<String> joins)
Adds
fields to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
clearJoins()
Clears the set of field names to join when loading data.
|
void |
copy(FetchConfiguration fetch)
Copy the state from the given fetch configuration to this one.
|
int |
getEagerFetchMode()
Return the eager fetch mode.
|
int |
getFetchDirection()
The fetch direction to use as a constant from
ResultSet. |
Set<String> |
getFetchInnerJoins()
Returns the names of the inner fetch joins that this component will use
when loading objects.
|
boolean |
getIgnoreDfgForFkSelect()
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.
|
int |
getIsolation()
The isolation level for queries issued to the database.
|
Set<String> |
getJoins()
Returns the names of the joins that this component will use
when loading objects.
|
int |
getJoinSyntax()
The join syntax to use.
|
int |
getLRSSize()
The large result set size mode to use.
|
int |
getResultSetType()
The result set type to use as a constant from
ResultSet. |
int |
getSubclassFetchMode()
Return the subclass fetch mode.
|
int |
getSubclassFetchMode(ClassMapping cls)
Return the effective subclass fetch mode for the given type.
|
boolean |
hasFetchInnerJoin(String field)
Return true if the given fully-qualified inner fetch join has been added.
|
boolean |
hasJoin(String field)
Return true if the given fully-qualified join has been added.
|
protected FetchConfigurationImpl |
newInstance(FetchConfigurationImpl.ConfigurationState state)
Return a new hollow instance.
|
ResultList<?> |
newResultList(ResultObjectProvider rop)
Return a new result list for the current fetch configuration.
|
JDBCFetchConfiguration |
removeJoin(String field)
Removes
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
removeJoins(Collection<String> joins)
Removes
fields from the set of fully-qualified
field names to eagerly join when loading objects. |
void |
setContext(StoreContext ctx)
Called automatically by the system to associate the fetch configuration
with a context before use.
|
JDBCFetchConfiguration |
setEagerFetchMode(int mode)
Set the eager fetch mode.
|
JDBCFetchConfiguration |
setFetchDirection(int direction)
The fetch direction to use as a constant from
ResultSet. |
void |
setIgnoreDfgForFkSelect(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.
|
JDBCFetchConfiguration |
setIsolation(int level)
The isolation level for queries issued to the database.
|
JDBCFetchConfiguration |
setJoinSyntax(int syntax)
The join syntax to use.
|
JDBCFetchConfiguration |
setLRSSize(int size)
The large result set size mode to use.
|
JDBCFetchConfiguration |
setResultSetType(int type)
The result set type to use as a constant from
ResultSet. |
JDBCFetchConfiguration |
setSubclassFetchMode(int mode)
Set the subclass fetch mode.
|
JDBCFetchConfiguration |
traverseJDBC(FieldMetaData fm)
Convenience method to cast traversal to store-specific type.
|
addFetchGroup, addFetchGroups, addField, addFields, clearFetchGroups, clearFields, clone, getCacheRetrieveMode, getCacheStoreMode, getContext, getExtendedPathLookup, getFetchBatchSize, getFetchGroups, getFields, getFlushBeforeQueries, getHint, getHints, getLockScope, getLockTimeout, getMaxFetchDepth, getQueryCacheEnabled, getQueryTimeout, getReadLockLevel, getRootClasses, getRootInstances, getSupportedHints, getWriteLockLevel, hasFetchGroup, hasFetchGroupAll, hasFetchGroupDefault, hasField, isDefaultPUFetchGroupConfigurationOnly, isFetchConfigurationSQLCacheAdmissible, isHintSet, lock, populateHintSetter, populateHintSetter, removeFetchGroup, removeFetchGroups, removeField, removeFields, removeHint, removeHint, requiresFetch, requiresLoad, resetFetchGroups, setCacheRetrieveMode, setCacheStoreMode, setExtendedPathLookup, setFetchBatchSize, setFlushBeforeQueries, setHint, setHint, setLockScope, setLockTimeout, setMaxFetchDepth, setQueryCacheEnabled, setQueryTimeout, setReadLockLevel, setRootClasses, setRootInstances, setWriteLockLevel, toString, toString, traverse, unlockequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFetchGroup, addFetchGroups, addField, addFields, clearFetchGroups, clearFields, clone, 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, removeFetchGroup, removeFetchGroups, removeField, removeFields, requiresFetch, requiresLoad, resetFetchGroups, setCacheRetrieveMode, setCacheStoreMode, setExtendedPathLookup, setFetchBatchSize, setFlushBeforeQueries, setHint, setHint, setLockScope, setLockTimeout, setMaxFetchDepth, setQueryCacheEnabled, setQueryTimeout, setReadLockLevel, setRootClasses, setRootInstances, setWriteLockLevel, traverse, unlockprotected final JDBCFetchConfigurationImpl.JDBCConfigurationState _state
public JDBCFetchConfigurationImpl()
protected JDBCFetchConfigurationImpl(FetchConfigurationImpl.ConfigurationState state, JDBCFetchConfigurationImpl.JDBCConfigurationState jstate)
protected FetchConfigurationImpl newInstance(FetchConfigurationImpl.ConfigurationState state)
FetchConfigurationImplnewInstance in class FetchConfigurationImplpublic void setContext(StoreContext ctx)
FetchConfigurationsetContext in interface FetchConfigurationsetContext in class FetchConfigurationImplpublic void copy(FetchConfiguration fetch)
FetchConfigurationcopy in interface FetchConfigurationcopy in class FetchConfigurationImplpublic boolean getIgnoreDfgForFkSelect()
JDBCFetchConfigurationgetIgnoreDfgForFkSelect in interface JDBCFetchConfigurationpublic void setIgnoreDfgForFkSelect(boolean b)
JDBCFetchConfigurationsetIgnoreDfgForFkSelect in interface JDBCFetchConfigurationpublic int getEagerFetchMode()
JDBCFetchConfigurationopenjpa.jdbc.EagerFetchMode setting.getEagerFetchMode in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setEagerFetchMode(int mode)
JDBCFetchConfigurationopenjpa.jdbc.EagerFetchMode setting.setEagerFetchMode in interface JDBCFetchConfigurationpublic int getSubclassFetchMode()
JDBCFetchConfigurationopenjpa.jdbc.SubclassFetchMode setting.getSubclassFetchMode in interface JDBCFetchConfigurationpublic int getSubclassFetchMode(ClassMapping cls)
JDBCFetchConfigurationgetSubclassFetchMode in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setSubclassFetchMode(int mode)
JDBCFetchConfigurationopenjpa.jdbc.SubclassFetchMode setting.setSubclassFetchMode in interface JDBCFetchConfigurationpublic int getResultSetType()
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.ResultSetType setting.getResultSetType in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setResultSetType(int type)
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.ResultSetType setting.setResultSetType in interface JDBCFetchConfigurationpublic int getFetchDirection()
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.FetchDirection setting.getFetchDirection in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setFetchDirection(int direction)
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.FetchDirection setting.setFetchDirection in interface JDBCFetchConfigurationpublic int getLRSSize()
JDBCFetchConfigurationopenjpa.jdbc.LRSSize setting.getLRSSize in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setLRSSize(int size)
JDBCFetchConfigurationopenjpa.jdbc.LRSSize setting.setLRSSize in interface JDBCFetchConfigurationpublic int getJoinSyntax()
JDBCFetchConfigurationgetJoinSyntax in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setJoinSyntax(int syntax)
JDBCFetchConfigurationsetJoinSyntax in interface JDBCFetchConfigurationpublic ResultList<?> newResultList(ResultObjectProvider rop)
FetchConfigurationnewResultList in interface FetchConfigurationnewResultList in class FetchConfigurationImplpublic Set<String> getJoins()
JDBCFetchConfigurationgetJoins in interface JDBCFetchConfigurationpublic boolean hasJoin(String field)
JDBCFetchConfigurationhasJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addJoin(String join)
JDBCFetchConfigurationfield to 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.addJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addJoins(Collection<String> joins)
JDBCFetchConfigurationfields to 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.addJoins in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration removeJoin(String field)
JDBCFetchConfigurationfield to the set of fully-qualified field names to
eagerly join when loading objects.removeJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration removeJoins(Collection<String> joins)
JDBCFetchConfigurationfields from the set of fully-qualified
field names to eagerly join when loading objects.removeJoins in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration clearJoins()
JDBCFetchConfigurationclearJoins in interface JDBCFetchConfigurationpublic int getIsolation()
JDBCFetchConfigurationThe isolation level for queries issued to the database. This overrides
the persistence-unit-wide openjpa.jdbc.TransactionIsolation
value.
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.
getIsolation in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setIsolation(int level)
JDBCFetchConfigurationThe isolation level for queries issued to the database. This overrides
the persistence-unit-wide openjpa.jdbc.TransactionIsolation
value.
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.
setIsolation in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration traverseJDBC(FieldMetaData fm)
JDBCFetchConfigurationtraverseJDBC in interface JDBCFetchConfigurationpublic Set<String> getFetchInnerJoins()
JDBCFetchConfigurationgetFetchInnerJoins in interface JDBCFetchConfigurationpublic boolean hasFetchInnerJoin(String field)
JDBCFetchConfigurationhasFetchInnerJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addFetchInnerJoin(String join)
JDBCFetchConfigurationfield to 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.addFetchInnerJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addFetchInnerJoins(Collection<String> joins)
JDBCFetchConfigurationfields to 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.addFetchInnerJoins in interface JDBCFetchConfigurationCopyright © 2006–2022 Apache Software Foundation. All rights reserved.