org.apache.openjpa.persistence.jdbc
Class JDBCFetchPlanImpl

java.lang.Object
  extended by org.apache.openjpa.persistence.FetchPlanImpl
      extended by org.apache.openjpa.persistence.jdbc.JDBCFetchPlanImpl
All Implemented Interfaces:
FetchPlan, JDBCFetchPlan

public class JDBCFetchPlanImpl
extends FetchPlanImpl
implements JDBCFetchPlan

JDBC extensions to the fetch plan.

Since:
0.4.0
Author:
Abe White

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(org.apache.openjpa.kernel.FetchConfiguration fetch)
          Constructor; supply delegate.
 
Method Summary
 JDBCFetchPlan addFetchGroup(String group)
           
 JDBCFetchPlan addFetchGroups(Collection groups)
           
 JDBCFetchPlan addFetchGroups(String... groups)
           
 JDBCFetchPlan addField(Class cls, String field)
           
 JDBCFetchPlan addField(String field)
           
 JDBCFetchPlan addFields(Class cls, Collection fields)
           
 JDBCFetchPlan addFields(Class cls, String... fields)
           
 JDBCFetchPlan addFields(Collection fields)
           
 JDBCFetchPlan addFields(String... fields)
           
 JDBCFetchPlan clearFetchGroups()
           
 JDBCFetchPlan clearFields()
           
 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  org.apache.openjpa.kernel.DelegatingFetchConfiguration newDelegatingFetchConfiguration(org.apache.openjpa.kernel.FetchConfiguration fetch)
           
 JDBCFetchPlan removeFetchGroup(String group)
           
 JDBCFetchPlan removeFetchGroups(Collection groups)
           
 JDBCFetchPlan removeFetchGroups(String... groups)
           
 JDBCFetchPlan removeField(Class cls, String field)
           
 JDBCFetchPlan removeField(String field)
           
 JDBCFetchPlan removeFields(Class cls, Collection fields)
           
 JDBCFetchPlan removeFields(Class cls, String... fields)
           
 JDBCFetchPlan removeFields(Collection fields)
           
 JDBCFetchPlan removeFields(String... fields)
           
 JDBCFetchPlan resetFetchGroups()
           
 JDBCFetchPlanImpl setEagerFetchMode(FetchMode mode)
          Eager fetch mode in loading relations.
 JDBCFetchPlan setEagerFetchMode(int mode)
           
 JDBCFetchPlan setFetchBatchSize(int fetchBatchSize)
           
 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)
           
 JDBCFetchPlan setLRSSize(int lrsSizeMode)
           
 JDBCFetchPlanImpl setLRSSizeAlgorithm(LRSSizeAlgorithm lrsSizeAlgorithm)
          How to determine the size of a large result set.
 JDBCFetchPlan setMaxFetchDepth(int depth)
           
 JDBCFetchPlan setQueryResultCacheEnabled(boolean cache)
           
 JDBCFetchPlan setReadLockMode(javax.persistence.LockModeType mode)
           
 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(javax.persistence.LockModeType mode)
           
 
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

JDBCFetchPlanImpl

public JDBCFetchPlanImpl(org.apache.openjpa.kernel.FetchConfiguration fetch)
Constructor; supply delegate.

Method Detail

newDelegatingFetchConfiguration

protected org.apache.openjpa.kernel.DelegatingFetchConfiguration newDelegatingFetchConfiguration(org.apache.openjpa.kernel.FetchConfiguration fetch)
Overrides:
newDelegatingFetchConfiguration in class FetchPlanImpl

getEagerFetchMode

public FetchMode getEagerFetchMode()
Description copied from interface: JDBCFetchPlan
Eager fetch mode in loading relations.

Specified by:
getEagerFetchMode in interface JDBCFetchPlan

setEagerFetchMode

public JDBCFetchPlanImpl setEagerFetchMode(FetchMode mode)
Description copied from interface: JDBCFetchPlan
Eager fetch mode in loading relations.

Specified by:
setEagerFetchMode in interface JDBCFetchPlan

setEagerFetchMode

public JDBCFetchPlan setEagerFetchMode(int mode)
Specified by:
setEagerFetchMode in interface JDBCFetchPlan

getSubclassFetchMode

public FetchMode getSubclassFetchMode()
Description copied from interface: JDBCFetchPlan
Eager fetch mode in loading subclasses.

Specified by:
getSubclassFetchMode in interface JDBCFetchPlan

setSubclassFetchMode

public JDBCFetchPlanImpl setSubclassFetchMode(FetchMode mode)
Description copied from interface: JDBCFetchPlan
Eager fetch mode in loading subclasses.

Specified by:
setSubclassFetchMode in interface JDBCFetchPlan

setSubclassFetchMode

public JDBCFetchPlan setSubclassFetchMode(int mode)
Specified by:
setSubclassFetchMode in interface JDBCFetchPlan

getResultSetType

public ResultSetType getResultSetType()
Description copied from interface: JDBCFetchPlan
Type of JDBC result set to use for query results.

Specified by:
getResultSetType in interface JDBCFetchPlan

setResultSetType

public JDBCFetchPlanImpl setResultSetType(ResultSetType type)
Description copied from interface: JDBCFetchPlan
Type of JDBC result set to use for query results.

Specified by:
setResultSetType in interface JDBCFetchPlan

setResultSetType

public JDBCFetchPlan setResultSetType(int mode)
Specified by:
setResultSetType in interface JDBCFetchPlan

getFetchDirection

public FetchDirection getFetchDirection()
Description copied from interface: JDBCFetchPlan
Result set fetch direction.

Specified by:
getFetchDirection in interface JDBCFetchPlan

setFetchDirection

public JDBCFetchPlanImpl setFetchDirection(FetchDirection direction)
Description copied from interface: JDBCFetchPlan
Result set fetch direction.

Specified by:
setFetchDirection in interface JDBCFetchPlan

setFetchDirection

public JDBCFetchPlan setFetchDirection(int direction)
Specified by:
setFetchDirection in interface JDBCFetchPlan

getLRSSizeAlgorithm

public LRSSizeAlgorithm getLRSSizeAlgorithm()
Description copied from interface: JDBCFetchPlan
How to determine the size of a large result set.

Specified by:
getLRSSizeAlgorithm in interface JDBCFetchPlan

setLRSSizeAlgorithm

public JDBCFetchPlanImpl setLRSSizeAlgorithm(LRSSizeAlgorithm lrsSizeAlgorithm)
Description copied from interface: JDBCFetchPlan
How to determine the size of a large result set.

Specified by:
setLRSSizeAlgorithm in interface JDBCFetchPlan

getLRSSize

public int getLRSSize()
Specified by:
getLRSSize in interface JDBCFetchPlan

setLRSSize

public JDBCFetchPlan setLRSSize(int lrsSizeMode)
Specified by:
setLRSSize in interface JDBCFetchPlan

getJoinSyntax

public JoinSyntax getJoinSyntax()
Description copied from interface: JDBCFetchPlan
SQL join syntax.

Specified by:
getJoinSyntax in interface JDBCFetchPlan

setJoinSyntax

public JDBCFetchPlanImpl setJoinSyntax(JoinSyntax syntax)
Description copied from interface: JDBCFetchPlan
SQL join syntax.

Specified by:
setJoinSyntax in interface JDBCFetchPlan

setJoinSyntax

public JDBCFetchPlan setJoinSyntax(int syntax)
Specified by:
setJoinSyntax in interface JDBCFetchPlan

getIsolation

public IsolationLevel getIsolation()
Description copied from interface: JDBCFetchPlan
The isolation level for queries issued to the database. This overrides the persistence-unit-wide openjpa.jdbc.TransactionIsolation value.

Specified by:
getIsolation in interface JDBCFetchPlan

setIsolation

public JDBCFetchPlan setIsolation(IsolationLevel level)
Description copied from interface: JDBCFetchPlan
The isolation level for queries issued to the database. This overrides the persistence-unit-wide openjpa.jdbc.TransactionIsolation value.

Specified by:
setIsolation in interface JDBCFetchPlan

addFetchGroup

public JDBCFetchPlan addFetchGroup(String group)
Specified by:
addFetchGroup in interface FetchPlan
Specified by:
addFetchGroup in interface JDBCFetchPlan
Overrides:
addFetchGroup in class FetchPlanImpl

addFetchGroups

public JDBCFetchPlan addFetchGroups(Collection groups)
Specified by:
addFetchGroups in interface FetchPlan
Specified by:
addFetchGroups in interface JDBCFetchPlan
Overrides:
addFetchGroups in class FetchPlanImpl

addFetchGroups

public JDBCFetchPlan addFetchGroups(String... groups)
Specified by:
addFetchGroups in interface FetchPlan
Specified by:
addFetchGroups in interface JDBCFetchPlan
Overrides:
addFetchGroups in class FetchPlanImpl

addField

public JDBCFetchPlan addField(Class cls,
                              String field)
Specified by:
addField in interface FetchPlan
Specified by:
addField in interface JDBCFetchPlan
Overrides:
addField in class FetchPlanImpl

addField

public JDBCFetchPlan addField(String field)
Specified by:
addField in interface FetchPlan
Specified by:
addField in interface JDBCFetchPlan
Overrides:
addField in class FetchPlanImpl

addFields

public JDBCFetchPlan addFields(Class cls,
                               Collection fields)
Specified by:
addFields in interface FetchPlan
Specified by:
addFields in interface JDBCFetchPlan
Overrides:
addFields in class FetchPlanImpl

addFields

public JDBCFetchPlan addFields(Class cls,
                               String... fields)
Specified by:
addFields in interface FetchPlan
Specified by:
addFields in interface JDBCFetchPlan
Overrides:
addFields in class FetchPlanImpl

addFields

public JDBCFetchPlan addFields(Collection fields)
Specified by:
addFields in interface FetchPlan
Specified by:
addFields in interface JDBCFetchPlan
Overrides:
addFields in class FetchPlanImpl

addFields

public JDBCFetchPlan addFields(String... fields)
Specified by:
addFields in interface FetchPlan
Specified by:
addFields in interface JDBCFetchPlan
Overrides:
addFields in class FetchPlanImpl

clearFetchGroups

public JDBCFetchPlan clearFetchGroups()
Specified by:
clearFetchGroups in interface FetchPlan
Specified by:
clearFetchGroups in interface JDBCFetchPlan
Overrides:
clearFetchGroups in class FetchPlanImpl

clearFields

public JDBCFetchPlan clearFields()
Specified by:
clearFields in interface FetchPlan
Specified by:
clearFields in interface JDBCFetchPlan
Overrides:
clearFields in class FetchPlanImpl

removeFetchGroup

public JDBCFetchPlan removeFetchGroup(String group)
Specified by:
removeFetchGroup in interface FetchPlan
Specified by:
removeFetchGroup in interface JDBCFetchPlan
Overrides:
removeFetchGroup in class FetchPlanImpl

removeFetchGroups

public JDBCFetchPlan removeFetchGroups(Collection groups)
Specified by:
removeFetchGroups in interface FetchPlan
Specified by:
removeFetchGroups in interface JDBCFetchPlan
Overrides:
removeFetchGroups in class FetchPlanImpl

removeFetchGroups

public JDBCFetchPlan removeFetchGroups(String... groups)
Specified by:
removeFetchGroups in interface FetchPlan
Specified by:
removeFetchGroups in interface JDBCFetchPlan
Overrides:
removeFetchGroups in class FetchPlanImpl

removeField

public JDBCFetchPlan removeField(Class cls,
                                 String field)
Specified by:
removeField in interface FetchPlan
Specified by:
removeField in interface JDBCFetchPlan
Overrides:
removeField in class FetchPlanImpl

removeField

public JDBCFetchPlan removeField(String field)
Specified by:
removeField in interface FetchPlan
Specified by:
removeField in interface JDBCFetchPlan
Overrides:
removeField in class FetchPlanImpl

removeFields

public JDBCFetchPlan removeFields(Class cls,
                                  Collection fields)
Specified by:
removeFields in interface FetchPlan
Specified by:
removeFields in interface JDBCFetchPlan
Overrides:
removeFields in class FetchPlanImpl

removeFields

public JDBCFetchPlan removeFields(Class cls,
                                  String... fields)
Specified by:
removeFields in interface FetchPlan
Specified by:
removeFields in interface JDBCFetchPlan
Overrides:
removeFields in class FetchPlanImpl

removeFields

public JDBCFetchPlan removeFields(Collection fields)
Specified by:
removeFields in interface FetchPlan
Specified by:
removeFields in interface JDBCFetchPlan
Overrides:
removeFields in class FetchPlanImpl

removeFields

public JDBCFetchPlan removeFields(String... fields)
Specified by:
removeFields in interface FetchPlan
Specified by:
removeFields in interface JDBCFetchPlan
Overrides:
removeFields in class FetchPlanImpl

resetFetchGroups

public JDBCFetchPlan resetFetchGroups()
Specified by:
resetFetchGroups in interface FetchPlan
Specified by:
resetFetchGroups in interface JDBCFetchPlan
Overrides:
resetFetchGroups in class FetchPlanImpl

setQueryResultCacheEnabled

public JDBCFetchPlan setQueryResultCacheEnabled(boolean cache)
Specified by:
setQueryResultCacheEnabled in interface FetchPlan
Specified by:
setQueryResultCacheEnabled in interface JDBCFetchPlan
Overrides:
setQueryResultCacheEnabled in class FetchPlanImpl

setFetchBatchSize

public JDBCFetchPlan setFetchBatchSize(int fetchBatchSize)
Specified by:
setFetchBatchSize in interface FetchPlan
Specified by:
setFetchBatchSize in interface JDBCFetchPlan
Overrides:
setFetchBatchSize in class FetchPlanImpl

setLockTimeout

public JDBCFetchPlan setLockTimeout(int timeout)
Specified by:
setLockTimeout in interface FetchPlan
Specified by:
setLockTimeout in interface JDBCFetchPlan
Overrides:
setLockTimeout in class FetchPlanImpl

setMaxFetchDepth

public JDBCFetchPlan setMaxFetchDepth(int depth)
Specified by:
setMaxFetchDepth in interface FetchPlan
Specified by:
setMaxFetchDepth in interface JDBCFetchPlan
Overrides:
setMaxFetchDepth in class FetchPlanImpl

setReadLockMode

public JDBCFetchPlan setReadLockMode(javax.persistence.LockModeType mode)
Specified by:
setReadLockMode in interface FetchPlan
Specified by:
setReadLockMode in interface JDBCFetchPlan
Overrides:
setReadLockMode in class FetchPlanImpl

setWriteLockMode

public JDBCFetchPlan setWriteLockMode(javax.persistence.LockModeType mode)
Specified by:
setWriteLockMode in interface FetchPlan
Specified by:
setWriteLockMode in interface JDBCFetchPlan
Overrides:
setWriteLockMode in class FetchPlanImpl


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.