Interface JDBCFetchPlan
- All Superinterfaces:
FetchPlan
- All Known Implementing Classes:
JDBCFetchPlanImpl
JDBC extensions to the fetch plan.
- Since:
- 0.4.1
- Author:
- Abe White, Pinaki Poddar
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.use theFetchMode
enum instead.static final int
Deprecated.use theFetchMode
enum instead.static final int
Deprecated.use theLRSSizeAlgorithm
enum instead.static final int
Deprecated.use theLRSSizeAlgorithm
enum instead.static final int
Deprecated.use theLRSSizeAlgorithm
enum instead.static final int
Deprecated.use theJoinSyntax
enum instead.static final int
Deprecated.use theJoinSyntax
enum instead.static final int
Deprecated.use theJoinSyntax
enum instead.Fields inherited from interface org.apache.openjpa.persistence.FetchPlan
DEFAULT, DEPTH_INFINITE, GROUP_ALL, GROUP_DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionaddFetchGroup
(String group) Addsgroup
to the set of fetch group to use when loading objects.addFetchGroups
(String... groups) Addsgroups
to the set of fetch group names to use when loading objects.addFetchGroups
(Collection groups) Addsgroups
to the set of fetch group names to use when loading objects.Addsfield
to the set of field names to use when loading objects.Addsfield
to the set of fully-qualified field names to use when loading objects.Addsfields
to the set of field names to use when loading objects.addFields
(Class cls, Collection fields) Addsfields
to the set of field names to use when loading objects.Addsfields
to the set of fully-qualified field names to use when loading objects.addFields
(Collection fields) Addsfields
to the set of fully-qualified field names to use when loading objects.Clears the set of fetch group names to use wen loading data.Clears the set of field names to use wen loading data.Eager fetch mode in loading relations.Result set fetch direction.boolean
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.The isolation level for queries issued to the database.SQL join syntax.int
Deprecated.usegetLRSSizeAlgorithm()
instead.How to determine the size of a large result set.Type of JDBC result set to use for query results.Eager fetch mode in loading subclasses.removeFetchGroup
(String group) Remove the given fetch group.removeFetchGroups
(String... groups) Removesgroups
from the set of fetch group names to use when loading objects.removeFetchGroups
(Collection groups) Removesgroups
from the set of fetch group names to use when loading objects.removeField
(Class cls, String field) Remove the given field.removeField
(String field) Remove the given fully-qualified field.removeFields
(Class cls, String... fields) Removesfields
from the set of field names to use when loading objects.removeFields
(Class cls, Collection fields) Removesfields
from the set of field names to use when loading objects.removeFields
(String... fields) Removesfields
from the set of fully-qualified field names to use when loading objects.removeFields
(Collection fields) Removesfields
from the set of fully-qualified field names to use when loading objects.Resets the set of fetch groups to the list in the global configuration.setEagerFetchMode
(int mode) Deprecated.usesetEagerFetchMode(FetchMode)
instead.setEagerFetchMode
(FetchMode mode) Eager fetch mode in loading relations.setFetchBatchSize
(int fetchBatchSize) Set the fetch batch size for large result set support.setFetchDirection
(int direction) Deprecated.usesetFetchDirection(FetchDirection)
instead.setFetchDirection
(FetchDirection direction) Result set fetch direction.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.setIsolation
(IsolationLevel level) The isolation level for queries issued to the database.setJoinSyntax
(int syntax) Deprecated.usesetJoinSyntax(JoinSyntax)
instead.setJoinSyntax
(JoinSyntax syntax) SQL join syntax.setLockTimeout
(int timeout) The number of milliseconds to wait for an object lock, or -1 for no limit.setLRSSize
(int lrsSizeMode) Deprecated.usesetLRSSizeAlgorithm(LRSSizeAlgorithm)
instead.setLRSSizeAlgorithm
(LRSSizeAlgorithm lrsSizeAlgorithm) How to determine the size of a large result set.setMaxFetchDepth
(int depth) The maximum fetch depth when loading an object.setQueryResultCacheEnabled
(boolean cache) Control whether or not query caching is enabled.setQueryTimeout
(int timeout) The number of milliseconds to wait for a query, or -1 for no limit.setReadLockMode
(jakarta.persistence.LockModeType mode) The lock level to use for locking loaded objects.setResultSetType
(int mode) Deprecated.usesetResultSetType(ResultSetType)
instead.Type of JDBC result set to use for query results.setSubclassFetchMode
(int mode) Deprecated.usesetSubclassFetchMode(FetchMode)
instead.Eager fetch mode in loading subclasses.setWriteLockMode
(jakarta.persistence.LockModeType mode) The lock level to use for locking dirtied objects.Methods inherited from interface org.apache.openjpa.persistence.FetchPlan
getCacheRetrieveMode, getCacheStoreMode, getDelegate, getExtendedPathLookup, getFetchBatchSize, getFetchGroups, getFields, getHint, getHints, getLockScope, getLockTimeout, getMaxFetchDepth, getQueryResultCache, getQueryResultCacheEnabled, getQueryTimeout, getReadLockMode, getWriteLockMode, hasField, hasField, setCacheRetrieveMode, setCacheStoreMode, setExtendedPathLookup, setHint, setLockScope, setQueryResultCache
-
Field Details
-
EAGER_NONE
Deprecated.use theFetchMode
enum instead.- See Also:
-
EAGER_JOIN
Deprecated.use theFetchMode
enum instead.- See Also:
-
EAGER_PARALLEL
Deprecated.use theFetchMode
enum instead.- See Also:
-
SIZE_UNKNOWN
Deprecated.use theLRSSizeAlgorithm
enum instead.- See Also:
-
SIZE_LAST
Deprecated.use theLRSSizeAlgorithm
enum instead.- See Also:
-
SIZE_QUERY
Deprecated.use theLRSSizeAlgorithm
enum instead.- See Also:
-
SYNTAX_SQL92
Deprecated.use theJoinSyntax
enum instead.- See Also:
-
SYNTAX_TRADITIONAL
Deprecated.use theJoinSyntax
enum instead.- See Also:
-
SYNTAX_DATABASE
Deprecated.use theJoinSyntax
enum instead.- See Also:
-
-
Method Details
-
getEagerFetchMode
FetchMode getEagerFetchMode()Eager fetch mode in loading relations. -
setEagerFetchMode
Eager fetch mode in loading relations. -
getSubclassFetchMode
FetchMode getSubclassFetchMode()Eager fetch mode in loading subclasses. -
setSubclassFetchMode
Eager fetch mode in loading subclasses. -
getResultSetType
ResultSetType getResultSetType()Type of JDBC result set to use for query results. -
setResultSetType
Type of JDBC result set to use for query results. -
getFetchDirection
FetchDirection getFetchDirection()Result set fetch direction. -
setFetchDirection
Result set fetch direction. -
getLRSSizeAlgorithm
LRSSizeAlgorithm getLRSSizeAlgorithm()How to determine the size of a large result set. -
setLRSSizeAlgorithm
How to determine the size of a large result set. -
getJoinSyntax
JoinSyntax getJoinSyntax()SQL join syntax. -
setJoinSyntax
SQL join syntax. -
getIsolation
IsolationLevel getIsolation()The isolation level for queries issued to the database. This overrides the persistence-unit-wideopenjpa.jdbc.TransactionIsolation
value.- Since:
- 0.9.7
-
setIsolation
The isolation level for queries issued to the database. This overrides the persistence-unit-wideopenjpa.jdbc.TransactionIsolation
value.- Since:
- 0.9.7
-
addFetchGroup
Description copied from interface:FetchPlan
Addsgroup
to the set of fetch group to use when loading objects.- Specified by:
addFetchGroup
in interfaceFetchPlan
-
addFetchGroups
Description copied from interface:FetchPlan
Addsgroups
to the set of fetch group names to use when loading objects.- Specified by:
addFetchGroups
in interfaceFetchPlan
-
addFetchGroups
Description copied from interface:FetchPlan
Addsgroups
to the set of fetch group names to use when loading objects.- Specified by:
addFetchGroups
in interfaceFetchPlan
-
addField
Description copied from interface:FetchPlan
Addsfield
to the set of field names to use when loading objects. -
addField
Description copied from interface:FetchPlan
Addsfield
to the set of fully-qualified field names to use when loading objects. -
addFields
Description copied from interface:FetchPlan
Addsfields
to the set of field names to use when loading objects. -
addFields
Description copied from interface:FetchPlan
Addsfields
to the set of field names to use when loading objects. -
addFields
Description copied from interface:FetchPlan
Addsfields
to the set of fully-qualified field names to use when loading objects. -
addFields
Description copied from interface:FetchPlan
Addsfields
to the set of fully-qualified field names to use when loading objects. -
clearFetchGroups
JDBCFetchPlan clearFetchGroups()Description copied from interface:FetchPlan
Clears the set of fetch group names to use wen loading data. After this operation is invoked, only those fields in the default fetch group (and any requested field) will be loaded when loading an object.- Specified by:
clearFetchGroups
in interfaceFetchPlan
-
clearFields
JDBCFetchPlan clearFields()Description copied from interface:FetchPlan
Clears the set of field names to use wen loading data. After this operation is invoked, only those fields in the configured fetch groups will be loaded when loading an object.- Specified by:
clearFields
in interfaceFetchPlan
-
removeFetchGroup
Description copied from interface:FetchPlan
Remove the given fetch group.- Specified by:
removeFetchGroup
in interfaceFetchPlan
-
removeFetchGroups
Description copied from interface:FetchPlan
Removesgroups
from the set of fetch group names to use when loading objects.- Specified by:
removeFetchGroups
in interfaceFetchPlan
-
removeFetchGroups
Description copied from interface:FetchPlan
Removesgroups
from the set of fetch group names to use when loading objects.- Specified by:
removeFetchGroups
in interfaceFetchPlan
-
removeField
Description copied from interface:FetchPlan
Remove the given field.- Specified by:
removeField
in interfaceFetchPlan
-
removeField
Description copied from interface:FetchPlan
Remove the given fully-qualified field.- Specified by:
removeField
in interfaceFetchPlan
-
removeFields
Description copied from interface:FetchPlan
Removesfields
from the set of field names to use when loading objects.- Specified by:
removeFields
in interfaceFetchPlan
-
removeFields
Description copied from interface:FetchPlan
Removesfields
from the set of field names to use when loading objects.- Specified by:
removeFields
in interfaceFetchPlan
-
removeFields
Description copied from interface:FetchPlan
Removesfields
from the set of fully-qualified field names to use when loading objects.- Specified by:
removeFields
in interfaceFetchPlan
-
removeFields
Description copied from interface:FetchPlan
Removesfields
from the set of fully-qualified field names to use when loading objects.- Specified by:
removeFields
in interfaceFetchPlan
-
resetFetchGroups
JDBCFetchPlan resetFetchGroups()Description copied from interface:FetchPlan
Resets the set of fetch groups to the list in the global configuration.- Specified by:
resetFetchGroups
in interfaceFetchPlan
-
setQueryResultCacheEnabled
Description copied from interface:FetchPlan
Control whether or not query caching is enabled. This has no effect if the datacache plugin is not installed, or if the query cache size is set to zero.- Specified by:
setQueryResultCacheEnabled
in interfaceFetchPlan
-
setFetchBatchSize
Description copied from interface:FetchPlan
Set the fetch batch size for large result set support. Defaults to theopenjpa.FetchBatchSize
setting. Note that this property will be ignored under some data stores.- Specified by:
setFetchBatchSize
in interfaceFetchPlan
-
setLockTimeout
Description copied from interface:FetchPlan
The number of milliseconds to wait for an object lock, or -1 for no limit.- Specified by:
setLockTimeout
in interfaceFetchPlan
-
setMaxFetchDepth
Description copied from interface:FetchPlan
The maximum fetch depth when loading an object.- Specified by:
setMaxFetchDepth
in interfaceFetchPlan
-
setReadLockMode
Description copied from interface:FetchPlan
The lock level to use for locking loaded objects.- Specified by:
setReadLockMode
in interfaceFetchPlan
-
setWriteLockMode
Description copied from interface:FetchPlan
The lock level to use for locking dirtied objects.- Specified by:
setWriteLockMode
in interfaceFetchPlan
-
setQueryTimeout
Description copied from interface:FetchPlan
The number of milliseconds to wait for a query, or -1 for no limit.- Specified by:
setQueryTimeout
in interfaceFetchPlan
-
setEagerFetchMode
Deprecated.usesetEagerFetchMode(FetchMode)
instead. -
setSubclassFetchMode
Deprecated.usesetSubclassFetchMode(FetchMode)
instead. -
setResultSetType
Deprecated.usesetResultSetType(ResultSetType)
instead. -
setFetchDirection
Deprecated.usesetFetchDirection(FetchDirection)
instead. -
getLRSSize
Deprecated.usegetLRSSizeAlgorithm()
instead. -
setLRSSize
Deprecated.usesetLRSSizeAlgorithm(LRSSizeAlgorithm)
instead. -
setJoinSyntax
Deprecated.usesetJoinSyntax(JoinSyntax)
instead. -
getIgnoreDfgForFkSelect
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.
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.- Since:
- 2.2.0
-
setIgnoreDfgForFkSelect
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.
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.- Since:
- 2.2.0
-
FetchMode
enum instead.