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:
EagerFetchModes, LRSSizes, JoinSyntaxes, 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.FetchPlan
DEFAULT, DEPTH_INFINITE, GROUP_ALL, GROUP_DEFAULT
 
Fields inherited from interface org.apache.openjpa.jdbc.kernel.EagerFetchModes
EAGER_JOIN, EAGER_NONE, EAGER_PARALLEL
 
Fields inherited from interface org.apache.openjpa.jdbc.kernel.LRSSizes
SIZE_LAST, SIZE_QUERY, SIZE_UNKNOWN
 
Fields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL
 
Constructor Summary
JDBCFetchPlanImpl(FetchConfiguration fetch)
          Constructor; supply delegate.
 
Method Summary
 int getEagerFetchMode()
          Eager fetch mode in loading relations.
 int getFetchDirection()
          Result set fetch direction.
 int getJoinSyntax()
          SQL join syntax.
 int getLRSSize()
          How to determine the size of a large result set.
 int getResultSetType()
          Type of JDBC result set to use for query results.
 int getSubclassFetchMode()
          Eager fetch mode in loading subclasses.
protected  DelegatingFetchConfiguration newDelegatingFetchConfiguration(FetchConfiguration fetch)
          Create a new exception-translating delegating fetch configuration.
 JDBCFetchPlanImpl setEagerFetchMode(int mode)
          Eager fetch mode in loading relations.
 JDBCFetchPlanImpl setFetchDirection(int direction)
          Result set fetch direction.
 JDBCFetchPlanImpl setJoinSyntax(int syntax)
          SQL join syntax.
 JDBCFetchPlanImpl setLRSSize(int lrsSize)
          How to determine the size of a large result set.
 JDBCFetchPlanImpl setResultSetType(int type)
          Type of JDBC result set to use for query results.
 JDBCFetchPlanImpl setSubclassFetchMode(int mode)
          Eager fetch mode in loading subclasses.
 
Methods inherited from class org.apache.openjpa.persistence.FetchPlanImpl
addFetchGroup, addFetchGroups, addFetchGroups, addField, addField, addFields, addFields, addFields, addFields, clearFetchGroups, clearFields, equals, getDelegate, getFetchBatchSize, getFetchGroups, getFields, getLockTimeout, getMaxFetchDepth, getQueryResultCache, getReadLockMode, getWriteLockMode, hasField, hasField, hashCode, removeFetchGroup, removeFetchGroups, removeFetchGroups, removeField, removeField, removeFields, removeFields, removeFields, removeFields, resetFetchGroups, setFetchBatchSize, setLockTimeout, setMaxFetchDepth, setQueryResultCache, setReadLockMode, setWriteLockMode
 
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
addFetchGroup, addFetchGroups, addFetchGroups, addField, addField, addFields, addFields, addFields, addFields, clearFetchGroups, clearFields, getDelegate, getFetchBatchSize, getFetchGroups, getFields, getLockTimeout, getMaxFetchDepth, getQueryResultCache, getReadLockMode, getWriteLockMode, hasField, hasField, removeFetchGroup, removeFetchGroups, removeFetchGroups, removeField, removeField, removeFields, removeFields, removeFields, removeFields, resetFetchGroups, setFetchBatchSize, setLockTimeout, setMaxFetchDepth, setQueryResultCache, setReadLockMode, setWriteLockMode
 

Constructor Detail

JDBCFetchPlanImpl

public JDBCFetchPlanImpl(FetchConfiguration fetch)
Constructor; supply delegate.

Method Detail

newDelegatingFetchConfiguration

protected DelegatingFetchConfiguration newDelegatingFetchConfiguration(FetchConfiguration fetch)
Description copied from class: FetchPlanImpl
Create a new exception-translating delegating fetch configuration.

Overrides:
newDelegatingFetchConfiguration in class FetchPlanImpl

getEagerFetchMode

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

Specified by:
getEagerFetchMode in interface JDBCFetchPlan
See Also:
EagerFetchModes

setEagerFetchMode

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

Specified by:
setEagerFetchMode in interface JDBCFetchPlan
See Also:
EagerFetchModes

getSubclassFetchMode

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

Specified by:
getSubclassFetchMode in interface JDBCFetchPlan
See Also:
EagerFetchModes

setSubclassFetchMode

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

Specified by:
setSubclassFetchMode in interface JDBCFetchPlan
See Also:
EagerFetchModes

getResultSetType

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

Specified by:
getResultSetType in interface JDBCFetchPlan
See Also:
ResultSet

setResultSetType

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

Specified by:
setResultSetType in interface JDBCFetchPlan
See Also:
ResultSet

getFetchDirection

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

Specified by:
getFetchDirection in interface JDBCFetchPlan
See Also:
ResultSet

setFetchDirection

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

Specified by:
setFetchDirection in interface JDBCFetchPlan
See Also:
ResultSet

getLRSSize

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

Specified by:
getLRSSize in interface JDBCFetchPlan
See Also:
LRSSizes

setLRSSize

public JDBCFetchPlanImpl setLRSSize(int lrsSize)
Description copied from interface: JDBCFetchPlan
How to determine the size of a large result set.

Specified by:
setLRSSize in interface JDBCFetchPlan
See Also:
LRSSizes

getJoinSyntax

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

Specified by:
getJoinSyntax in interface JDBCFetchPlan
See Also:
JoinSyntaxes

setJoinSyntax

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

Specified by:
setJoinSyntax in interface JDBCFetchPlan
See Also:
JoinSyntaxes


Copyright © 2006 Apache Software Foundation. All Rights Reserved.