public interface JDBCFetchConfiguration extends FetchConfiguration, EagerFetchModes, LRSSizes, JoinSyntaxes
FetchConfiguration
.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
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<String> 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<String> 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<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.
|
JDBCFetchConfiguration |
removeJoin(String field)
Removes
field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
removeJoins(Collection<String> 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, 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
int getEagerFetchMode()
openjpa.jdbc.EagerFetchMode
setting.JDBCFetchConfiguration setEagerFetchMode(int mode)
openjpa.jdbc.EagerFetchMode
setting.int getSubclassFetchMode()
openjpa.jdbc.SubclassFetchMode
setting.int getSubclassFetchMode(ClassMapping cls)
JDBCFetchConfiguration setSubclassFetchMode(int mode)
openjpa.jdbc.SubclassFetchMode
setting.int getResultSetType()
ResultSet
.
Defaults to the openjpa.jdbc.ResultSetType
setting.JDBCFetchConfiguration setResultSetType(int type)
ResultSet
.
Defaults to the openjpa.jdbc.ResultSetType
setting.int getFetchDirection()
ResultSet
.
Defaults to the openjpa.jdbc.FetchDirection
setting.JDBCFetchConfiguration setFetchDirection(int direction)
ResultSet
.
Defaults to the openjpa.jdbc.FetchDirection
setting.int getLRSSize()
openjpa.jdbc.LRSSize
setting.JDBCFetchConfiguration setLRSSize(int lrsSize)
openjpa.jdbc.LRSSize
setting.int getJoinSyntax()
JDBCFetchConfiguration setJoinSyntax(int syntax)
Set<String> getJoins()
boolean hasJoin(String field)
JDBCFetchConfiguration addJoin(String field)
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.JDBCFetchConfiguration addJoins(Collection<String> fields)
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.JDBCFetchConfiguration removeJoin(String field)
field
to the set of fully-qualified field names to
eagerly join when loading objects.JDBCFetchConfiguration removeJoins(Collection<String> fields)
fields
from the set of fully-qualified
field names to eagerly join when loading objects.JDBCFetchConfiguration clearJoins()
int getIsolation()
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.
JDBCFetchConfiguration setIsolation(int level)
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.
JDBCFetchConfiguration traverseJDBC(FieldMetaData fm)
Set<String> getFetchInnerJoins()
boolean hasFetchInnerJoin(String field)
JDBCFetchConfiguration addFetchInnerJoin(String field)
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.JDBCFetchConfiguration addFetchInnerJoins(Collection<String> fields)
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.boolean getIgnoreDfgForFkSelect()
void setIgnoreDfgForFkSelect(boolean b)
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.