|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JDBCFetchConfiguration
JDBC extensions to OpenJPA's FetchConfiguration
.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.kernel.FetchConfiguration |
---|
DEFAULT, FETCH_LOAD, FETCH_NONE, FETCH_REF |
Fields inherited from interface org.apache.openjpa.kernel.LockLevels |
---|
LOCK_NONE, LOCK_READ, LOCK_WRITE |
Fields inherited from interface org.apache.openjpa.kernel.QueryFlushModes |
---|
FLUSH_FALSE, FLUSH_TRUE, FLUSH_WITH_CONNECTION |
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 |
Method Summary | |
---|---|
JDBCFetchConfiguration |
addJoin(String field)
Adds field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addJoins(Collection 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 . |
int |
getIsolation()
The isolation level for queries issued to the database. |
Set |
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 |
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 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 . |
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. |
Method Detail |
---|
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 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 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 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |