|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.FetchPlanImpl org.apache.openjpa.persistence.jdbc.JDBCFetchPlanImpl
public class JDBCFetchPlanImpl
JDBC extensions to the fetch plan.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.persistence.jdbc.JDBCFetchPlan |
---|
EAGER_JOIN, EAGER_NONE, EAGER_PARALLEL, SIZE_LAST, SIZE_QUERY, SIZE_UNKNOWN, SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL |
Fields inherited from interface org.apache.openjpa.persistence.FetchPlan |
---|
DEFAULT, DEPTH_INFINITE, GROUP_ALL, GROUP_DEFAULT |
Constructor Summary | |
---|---|
JDBCFetchPlanImpl(FetchConfiguration fetch)
Constructor; supply delegate. |
Method Summary | |
---|---|
JDBCFetchPlan |
addFetchGroup(String group)
Adds group to the set of fetch group to
use when loading objects. |
JDBCFetchPlan |
addFetchGroups(Collection groups)
Adds groups to the set of fetch group names to
use when loading objects. |
JDBCFetchPlan |
addFetchGroups(String... groups)
Adds groups to the set of fetch group names to
use when loading objects. |
JDBCFetchPlan |
addField(Class cls,
String field)
Adds field to the set of field names to
use when loading objects. |
JDBCFetchPlan |
addField(String field)
Adds field to the set of fully-qualified field names to
use when loading objects. |
JDBCFetchPlan |
addFields(Class cls,
Collection fields)
Adds fields to the set of field names to
use when loading objects. |
JDBCFetchPlan |
addFields(Class cls,
String... fields)
Adds fields to the set of field names to
use when loading objects. |
JDBCFetchPlan |
addFields(Collection fields)
Adds fields to the set of fully-qualified field names to
use when loading objects. |
JDBCFetchPlan |
addFields(String... fields)
Adds fields to the set of fully-qualified field names to
use when loading objects. |
JDBCFetchPlan |
clearFetchGroups()
Clears the set of fetch group names to use wen loading data. |
JDBCFetchPlan |
clearFields()
Clears the set of field names to use wen loading data. |
FetchMode |
getEagerFetchMode()
Eager fetch mode in loading relations. |
FetchDirection |
getFetchDirection()
Result set fetch direction. |
IsolationLevel |
getIsolation()
The isolation level for queries issued to the database. |
JoinSyntax |
getJoinSyntax()
SQL join syntax. |
int |
getLRSSize()
|
LRSSizeAlgorithm |
getLRSSizeAlgorithm()
How to determine the size of a large result set. |
ResultSetType |
getResultSetType()
Type of JDBC result set to use for query results. |
FetchMode |
getSubclassFetchMode()
Eager fetch mode in loading subclasses. |
protected DelegatingFetchConfiguration |
newDelegatingFetchConfiguration(FetchConfiguration fetch)
Create a new exception-translating delegating fetch configuration. |
JDBCFetchPlan |
removeFetchGroup(String group)
Remove the given fetch group. |
JDBCFetchPlan |
removeFetchGroups(Collection groups)
Removes groups from the set of fetch group names
to use when loading objects. |
JDBCFetchPlan |
removeFetchGroups(String... groups)
Removes groups from the set of fetch group names
to use when loading objects. |
JDBCFetchPlan |
removeField(Class cls,
String field)
Remove the given field. |
JDBCFetchPlan |
removeField(String field)
Remove the given fully-qualified field. |
JDBCFetchPlan |
removeFields(Class cls,
Collection fields)
Removes fields from the set of field names
to use when loading objects. |
JDBCFetchPlan |
removeFields(Class cls,
String... fields)
Removes fields from the set of field names
to use when loading objects. |
JDBCFetchPlan |
removeFields(Collection fields)
Removes fields from the set of fully-qualified field names
to use when loading objects. |
JDBCFetchPlan |
removeFields(String... fields)
Removes fields from the set of fully-qualified field names
to use when loading objects. |
JDBCFetchPlan |
resetFetchGroups()
Resets the set of fetch groups to the list in the global configuration. |
JDBCFetchPlanImpl |
setEagerFetchMode(FetchMode mode)
Eager fetch mode in loading relations. |
JDBCFetchPlan |
setEagerFetchMode(int mode)
|
JDBCFetchPlan |
setFetchBatchSize(int fetchBatchSize)
Set the fetch batch size for large result set support. |
JDBCFetchPlanImpl |
setFetchDirection(FetchDirection direction)
Result set fetch direction. |
JDBCFetchPlan |
setFetchDirection(int direction)
|
JDBCFetchPlan |
setIsolation(IsolationLevel level)
The isolation level for queries issued to the database. |
JDBCFetchPlan |
setJoinSyntax(int syntax)
|
JDBCFetchPlanImpl |
setJoinSyntax(JoinSyntax syntax)
SQL join syntax. |
JDBCFetchPlan |
setLockTimeout(int timeout)
The number of milliseconds to wait for an object lock, or -1 for no limit. |
JDBCFetchPlan |
setLRSSize(int lrsSizeMode)
|
JDBCFetchPlanImpl |
setLRSSizeAlgorithm(LRSSizeAlgorithm lrsSizeAlgorithm)
How to determine the size of a large result set. |
JDBCFetchPlan |
setMaxFetchDepth(int depth)
The maximum fetch depth when loading an object. |
JDBCFetchPlan |
setQueryResultCacheEnabled(boolean cache)
Control whether or not query caching is enabled. |
JDBCFetchPlan |
setReadLockMode(LockModeType mode)
The lock level to use for locking loaded objects. |
JDBCFetchPlan |
setResultSetType(int mode)
|
JDBCFetchPlanImpl |
setResultSetType(ResultSetType type)
Type of JDBC result set to use for query results. |
JDBCFetchPlanImpl |
setSubclassFetchMode(FetchMode mode)
Eager fetch mode in loading subclasses. |
JDBCFetchPlan |
setSubclassFetchMode(int mode)
|
JDBCFetchPlan |
setWriteLockMode(LockModeType mode)
The lock level to use for locking dirtied objects. |
Methods inherited from class org.apache.openjpa.persistence.FetchPlanImpl |
---|
equals, getDelegate, getFetchBatchSize, getFetchGroups, getFields, getLockTimeout, getMaxFetchDepth, getQueryResultCache, getQueryResultCacheEnabled, getReadLockMode, getWriteLockMode, hasField, hasField, hashCode, setQueryResultCache |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.persistence.FetchPlan |
---|
getDelegate, getFetchBatchSize, getFetchGroups, getFields, getLockTimeout, getMaxFetchDepth, getQueryResultCache, getQueryResultCacheEnabled, getReadLockMode, getWriteLockMode, hasField, hasField, setQueryResultCache |
Constructor Detail |
---|
public JDBCFetchPlanImpl(FetchConfiguration fetch)
Method Detail |
---|
protected DelegatingFetchConfiguration newDelegatingFetchConfiguration(FetchConfiguration fetch)
FetchPlanImpl
newDelegatingFetchConfiguration
in class FetchPlanImpl
public FetchMode getEagerFetchMode()
JDBCFetchPlan
getEagerFetchMode
in interface JDBCFetchPlan
public JDBCFetchPlanImpl setEagerFetchMode(FetchMode mode)
JDBCFetchPlan
setEagerFetchMode
in interface JDBCFetchPlan
public JDBCFetchPlan setEagerFetchMode(int mode)
setEagerFetchMode
in interface JDBCFetchPlan
public FetchMode getSubclassFetchMode()
JDBCFetchPlan
getSubclassFetchMode
in interface JDBCFetchPlan
public JDBCFetchPlanImpl setSubclassFetchMode(FetchMode mode)
JDBCFetchPlan
setSubclassFetchMode
in interface JDBCFetchPlan
public JDBCFetchPlan setSubclassFetchMode(int mode)
setSubclassFetchMode
in interface JDBCFetchPlan
public ResultSetType getResultSetType()
JDBCFetchPlan
getResultSetType
in interface JDBCFetchPlan
public JDBCFetchPlanImpl setResultSetType(ResultSetType type)
JDBCFetchPlan
setResultSetType
in interface JDBCFetchPlan
public JDBCFetchPlan setResultSetType(int mode)
setResultSetType
in interface JDBCFetchPlan
public FetchDirection getFetchDirection()
JDBCFetchPlan
getFetchDirection
in interface JDBCFetchPlan
public JDBCFetchPlanImpl setFetchDirection(FetchDirection direction)
JDBCFetchPlan
setFetchDirection
in interface JDBCFetchPlan
public JDBCFetchPlan setFetchDirection(int direction)
setFetchDirection
in interface JDBCFetchPlan
public LRSSizeAlgorithm getLRSSizeAlgorithm()
JDBCFetchPlan
getLRSSizeAlgorithm
in interface JDBCFetchPlan
public JDBCFetchPlanImpl setLRSSizeAlgorithm(LRSSizeAlgorithm lrsSizeAlgorithm)
JDBCFetchPlan
setLRSSizeAlgorithm
in interface JDBCFetchPlan
public int getLRSSize()
getLRSSize
in interface JDBCFetchPlan
public JDBCFetchPlan setLRSSize(int lrsSizeMode)
setLRSSize
in interface JDBCFetchPlan
public JoinSyntax getJoinSyntax()
JDBCFetchPlan
getJoinSyntax
in interface JDBCFetchPlan
public JDBCFetchPlanImpl setJoinSyntax(JoinSyntax syntax)
JDBCFetchPlan
setJoinSyntax
in interface JDBCFetchPlan
public JDBCFetchPlan setJoinSyntax(int syntax)
setJoinSyntax
in interface JDBCFetchPlan
public IsolationLevel getIsolation()
JDBCFetchPlan
openjpa.jdbc.TransactionIsolation
value.
getIsolation
in interface JDBCFetchPlan
public JDBCFetchPlan setIsolation(IsolationLevel level)
JDBCFetchPlan
openjpa.jdbc.TransactionIsolation
value.
setIsolation
in interface JDBCFetchPlan
public JDBCFetchPlan addFetchGroup(String group)
FetchPlan
group
to the set of fetch group to
use when loading objects.
addFetchGroup
in interface FetchPlan
addFetchGroup
in interface JDBCFetchPlan
addFetchGroup
in class FetchPlanImpl
public JDBCFetchPlan addFetchGroups(Collection groups)
FetchPlan
groups
to the set of fetch group names to
use when loading objects.
addFetchGroups
in interface FetchPlan
addFetchGroups
in interface JDBCFetchPlan
addFetchGroups
in class FetchPlanImpl
public JDBCFetchPlan addFetchGroups(String... groups)
FetchPlan
groups
to the set of fetch group names to
use when loading objects.
addFetchGroups
in interface FetchPlan
addFetchGroups
in interface JDBCFetchPlan
addFetchGroups
in class FetchPlanImpl
public JDBCFetchPlan addField(Class cls, String field)
FetchPlan
field
to the set of field names to
use when loading objects.
addField
in interface FetchPlan
addField
in interface JDBCFetchPlan
addField
in class FetchPlanImpl
public JDBCFetchPlan addField(String field)
FetchPlan
field
to the set of fully-qualified field names to
use when loading objects.
addField
in interface FetchPlan
addField
in interface JDBCFetchPlan
addField
in class FetchPlanImpl
public JDBCFetchPlan addFields(Class cls, Collection fields)
FetchPlan
fields
to the set of field names to
use when loading objects.
addFields
in interface FetchPlan
addFields
in interface JDBCFetchPlan
addFields
in class FetchPlanImpl
public JDBCFetchPlan addFields(Class cls, String... fields)
FetchPlan
fields
to the set of field names to
use when loading objects.
addFields
in interface FetchPlan
addFields
in interface JDBCFetchPlan
addFields
in class FetchPlanImpl
public JDBCFetchPlan addFields(Collection fields)
FetchPlan
fields
to the set of fully-qualified field names to
use when loading objects.
addFields
in interface FetchPlan
addFields
in interface JDBCFetchPlan
addFields
in class FetchPlanImpl
public JDBCFetchPlan addFields(String... fields)
FetchPlan
fields
to the set of fully-qualified field names to
use when loading objects.
addFields
in interface FetchPlan
addFields
in interface JDBCFetchPlan
addFields
in class FetchPlanImpl
public JDBCFetchPlan clearFetchGroups()
FetchPlan
clearFetchGroups
in interface FetchPlan
clearFetchGroups
in interface JDBCFetchPlan
clearFetchGroups
in class FetchPlanImpl
public JDBCFetchPlan clearFields()
FetchPlan
clearFields
in interface FetchPlan
clearFields
in interface JDBCFetchPlan
clearFields
in class FetchPlanImpl
public JDBCFetchPlan removeFetchGroup(String group)
FetchPlan
removeFetchGroup
in interface FetchPlan
removeFetchGroup
in interface JDBCFetchPlan
removeFetchGroup
in class FetchPlanImpl
public JDBCFetchPlan removeFetchGroups(Collection groups)
FetchPlan
groups
from the set of fetch group names
to use when loading objects.
removeFetchGroups
in interface FetchPlan
removeFetchGroups
in interface JDBCFetchPlan
removeFetchGroups
in class FetchPlanImpl
public JDBCFetchPlan removeFetchGroups(String... groups)
FetchPlan
groups
from the set of fetch group names
to use when loading objects.
removeFetchGroups
in interface FetchPlan
removeFetchGroups
in interface JDBCFetchPlan
removeFetchGroups
in class FetchPlanImpl
public JDBCFetchPlan removeField(Class cls, String field)
FetchPlan
removeField
in interface FetchPlan
removeField
in interface JDBCFetchPlan
removeField
in class FetchPlanImpl
public JDBCFetchPlan removeField(String field)
FetchPlan
removeField
in interface FetchPlan
removeField
in interface JDBCFetchPlan
removeField
in class FetchPlanImpl
public JDBCFetchPlan removeFields(Class cls, Collection fields)
FetchPlan
fields
from the set of field names
to use when loading objects.
removeFields
in interface FetchPlan
removeFields
in interface JDBCFetchPlan
removeFields
in class FetchPlanImpl
public JDBCFetchPlan removeFields(Class cls, String... fields)
FetchPlan
fields
from the set of field names
to use when loading objects.
removeFields
in interface FetchPlan
removeFields
in interface JDBCFetchPlan
removeFields
in class FetchPlanImpl
public JDBCFetchPlan removeFields(Collection fields)
FetchPlan
fields
from the set of fully-qualified field names
to use when loading objects.
removeFields
in interface FetchPlan
removeFields
in interface JDBCFetchPlan
removeFields
in class FetchPlanImpl
public JDBCFetchPlan removeFields(String... fields)
FetchPlan
fields
from the set of fully-qualified field names
to use when loading objects.
removeFields
in interface FetchPlan
removeFields
in interface JDBCFetchPlan
removeFields
in class FetchPlanImpl
public JDBCFetchPlan resetFetchGroups()
FetchPlan
resetFetchGroups
in interface FetchPlan
resetFetchGroups
in interface JDBCFetchPlan
resetFetchGroups
in class FetchPlanImpl
public JDBCFetchPlan setQueryResultCacheEnabled(boolean cache)
FetchPlan
setQueryResultCacheEnabled
in interface FetchPlan
setQueryResultCacheEnabled
in interface JDBCFetchPlan
setQueryResultCacheEnabled
in class FetchPlanImpl
public JDBCFetchPlan setFetchBatchSize(int fetchBatchSize)
FetchPlan
openjpa.FetchBatchSize
setting. Note
that this property will be ignored under some data stores.
setFetchBatchSize
in interface FetchPlan
setFetchBatchSize
in interface JDBCFetchPlan
setFetchBatchSize
in class FetchPlanImpl
public JDBCFetchPlan setLockTimeout(int timeout)
FetchPlan
setLockTimeout
in interface FetchPlan
setLockTimeout
in interface JDBCFetchPlan
setLockTimeout
in class FetchPlanImpl
public JDBCFetchPlan setMaxFetchDepth(int depth)
FetchPlan
setMaxFetchDepth
in interface FetchPlan
setMaxFetchDepth
in interface JDBCFetchPlan
setMaxFetchDepth
in class FetchPlanImpl
public JDBCFetchPlan setReadLockMode(LockModeType mode)
FetchPlan
setReadLockMode
in interface FetchPlan
setReadLockMode
in interface JDBCFetchPlan
setReadLockMode
in class FetchPlanImpl
public JDBCFetchPlan setWriteLockMode(LockModeType mode)
FetchPlan
setWriteLockMode
in interface FetchPlan
setWriteLockMode
in interface JDBCFetchPlan
setWriteLockMode
in class FetchPlanImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |