public class DelegatingJDBCFetchConfiguration extends DelegatingFetchConfiguration implements JDBCFetchConfiguration
DEFAULT, FETCH_LOAD, FETCH_NONE, FETCH_REF
LOCK_NONE, LOCK_READ, LOCK_WRITE
LOCKSCOPE_EXTENDED, LOCKSCOPE_NORMAL
FLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTION
EAGER_JOIN, EAGER_NONE, EAGER_PARALLEL
SIZE_LAST, SIZE_QUERY, SIZE_UNKNOWN
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL
Constructor and Description |
---|
DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate)
Constructor; supply delegate.
|
DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator.
|
Modifier and Type | Method and Description |
---|---|
JDBCFetchConfiguration |
addFetchInnerJoin(String field)
Adds
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addFetchInnerJoins(Collection fields)
Adds
fields to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addJoin(String field)
Adds
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addJoins(Collection fields)
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.
|
int |
getEagerFetchMode()
Return the eager fetch mode.
|
int |
getFetchDirection()
The fetch direction to use as a constant from
ResultSet . |
Set |
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.
|
JDBCFetchConfiguration |
getJDBCDelegate()
Return the JDBC delegate.
|
Set |
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.
|
JDBCFetchConfiguration |
removeJoin(String field)
Removes
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
removeJoins(Collection fields)
Removes
fields from the set of fully-qualified
field names to eagerly join when loading objects. |
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 lrsSize)
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, 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, unlock
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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
public DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate)
public DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate, RuntimeExceptionTranslator trans)
public JDBCFetchConfiguration getJDBCDelegate()
public int getEagerFetchMode()
JDBCFetchConfiguration
openjpa.jdbc.EagerFetchMode
setting.getEagerFetchMode
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration setEagerFetchMode(int mode)
JDBCFetchConfiguration
openjpa.jdbc.EagerFetchMode
setting.setEagerFetchMode
in interface JDBCFetchConfiguration
public int getSubclassFetchMode()
JDBCFetchConfiguration
openjpa.jdbc.SubclassFetchMode
setting.getSubclassFetchMode
in interface JDBCFetchConfiguration
public int getSubclassFetchMode(ClassMapping cls)
JDBCFetchConfiguration
getSubclassFetchMode
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration setSubclassFetchMode(int mode)
JDBCFetchConfiguration
openjpa.jdbc.SubclassFetchMode
setting.setSubclassFetchMode
in interface JDBCFetchConfiguration
public int getResultSetType()
JDBCFetchConfiguration
ResultSet
.
Defaults to the openjpa.jdbc.ResultSetType
setting.getResultSetType
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration setResultSetType(int type)
JDBCFetchConfiguration
ResultSet
.
Defaults to the openjpa.jdbc.ResultSetType
setting.setResultSetType
in interface JDBCFetchConfiguration
public int getFetchDirection()
JDBCFetchConfiguration
ResultSet
.
Defaults to the openjpa.jdbc.FetchDirection
setting.getFetchDirection
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration setFetchDirection(int direction)
JDBCFetchConfiguration
ResultSet
.
Defaults to the openjpa.jdbc.FetchDirection
setting.setFetchDirection
in interface JDBCFetchConfiguration
public int getLRSSize()
JDBCFetchConfiguration
openjpa.jdbc.LRSSize
setting.getLRSSize
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration setLRSSize(int lrsSize)
JDBCFetchConfiguration
openjpa.jdbc.LRSSize
setting.setLRSSize
in interface JDBCFetchConfiguration
public int getJoinSyntax()
JDBCFetchConfiguration
getJoinSyntax
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration setJoinSyntax(int syntax)
JDBCFetchConfiguration
setJoinSyntax
in interface JDBCFetchConfiguration
public Set getJoins()
JDBCFetchConfiguration
getJoins
in interface JDBCFetchConfiguration
public boolean hasJoin(String field)
JDBCFetchConfiguration
hasJoin
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration addJoin(String field)
JDBCFetchConfiguration
field
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 JDBCFetchConfiguration
public JDBCFetchConfiguration addJoins(Collection fields)
JDBCFetchConfiguration
fields
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 JDBCFetchConfiguration
public JDBCFetchConfiguration removeJoin(String field)
JDBCFetchConfiguration
field
to the set of fully-qualified field names to
eagerly join when loading objects.removeJoin
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration removeJoins(Collection fields)
JDBCFetchConfiguration
fields
from the set of fully-qualified
field names to eagerly join when loading objects.removeJoins
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration clearJoins()
JDBCFetchConfiguration
clearJoins
in interface JDBCFetchConfiguration
public int getIsolation()
JDBCFetchConfiguration
The 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 JDBCFetchConfiguration
public JDBCFetchConfiguration setIsolation(int level)
JDBCFetchConfiguration
The 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 JDBCFetchConfiguration
public JDBCFetchConfiguration traverseJDBC(FieldMetaData fm)
JDBCFetchConfiguration
traverseJDBC
in interface JDBCFetchConfiguration
public Set getFetchInnerJoins()
JDBCFetchConfiguration
getFetchInnerJoins
in interface JDBCFetchConfiguration
public boolean hasFetchInnerJoin(String field)
JDBCFetchConfiguration
hasFetchInnerJoin
in interface JDBCFetchConfiguration
public JDBCFetchConfiguration addFetchInnerJoin(String field)
JDBCFetchConfiguration
field
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 JDBCFetchConfiguration
public JDBCFetchConfiguration addFetchInnerJoins(Collection fields)
JDBCFetchConfiguration
fields
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 JDBCFetchConfiguration
public void setIgnoreDfgForFkSelect(boolean b)
JDBCFetchConfiguration
setIgnoreDfgForFkSelect
in interface JDBCFetchConfiguration
public boolean getIgnoreDfgForFkSelect()
JDBCFetchConfiguration
getIgnoreDfgForFkSelect
in interface JDBCFetchConfiguration
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.