|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.DelegatingFetchConfiguration
org.apache.openjpa.jdbc.kernel.DelegatingJDBCFetchConfiguration
public class DelegatingJDBCFetchConfiguration
Delegating fetch configuration that can also perform exception transation for use in facades.
| 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.LockScopes |
|---|
LOCKSCOPE_EXTENDED, LOCKSCOPE_NORMAL |
| 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 |
| Constructor Summary | |
|---|---|
DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate)
Constructor; supply delegate. |
|
DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator. |
|
| Method Summary | |
|---|---|
JDBCFetchConfiguration |
addFetchInnerJoin(String field)
Adds field to the set of fully-qualified field names to
eagerly join when loading objects. |
JDBCFetchConfiguration |
addFetchInnerJoins(Collection fields)
Adds fields to the set of fully-qualified field names to
eagerly join when loading objects. |
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. |
Set |
getFetchInnerJoins()
Returns the names of the inner fetch joins that this component will use when loading objects. |
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. |
int |
getIsolation()
The isolation level for queries issued to the database. |
JDBCFetchConfiguration |
getJDBCDelegate()
Return the JDBC delegate. |
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 |
hasFetchInnerJoin(String field)
Return true if the given fully-qualified inner fetch join has been added. |
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. |
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate)
public DelegatingJDBCFetchConfiguration(JDBCFetchConfiguration delegate,
RuntimeExceptionTranslator trans)
| Method Detail |
|---|
public JDBCFetchConfiguration getJDBCDelegate()
public int getEagerFetchMode()
JDBCFetchConfigurationopenjpa.jdbc.EagerFetchMode setting.
getEagerFetchMode in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setEagerFetchMode(int mode)
JDBCFetchConfigurationopenjpa.jdbc.EagerFetchMode setting.
setEagerFetchMode in interface JDBCFetchConfigurationpublic int getSubclassFetchMode()
JDBCFetchConfigurationopenjpa.jdbc.SubclassFetchMode setting.
getSubclassFetchMode in interface JDBCFetchConfigurationpublic int getSubclassFetchMode(ClassMapping cls)
JDBCFetchConfiguration
getSubclassFetchMode in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setSubclassFetchMode(int mode)
JDBCFetchConfigurationopenjpa.jdbc.SubclassFetchMode setting.
setSubclassFetchMode in interface JDBCFetchConfigurationpublic int getResultSetType()
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.ResultSetType setting.
getResultSetType in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setResultSetType(int type)
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.ResultSetType setting.
setResultSetType in interface JDBCFetchConfigurationpublic int getFetchDirection()
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.FetchDirection setting.
getFetchDirection in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setFetchDirection(int direction)
JDBCFetchConfigurationResultSet.
Defaults to the openjpa.jdbc.FetchDirection setting.
setFetchDirection in interface JDBCFetchConfigurationpublic int getLRSSize()
JDBCFetchConfigurationopenjpa.jdbc.LRSSize setting.
getLRSSize in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setLRSSize(int lrsSize)
JDBCFetchConfigurationopenjpa.jdbc.LRSSize setting.
setLRSSize in interface JDBCFetchConfigurationpublic int getJoinSyntax()
JDBCFetchConfiguration
getJoinSyntax in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setJoinSyntax(int syntax)
JDBCFetchConfiguration
setJoinSyntax in interface JDBCFetchConfigurationpublic Set getJoins()
JDBCFetchConfiguration
getJoins in interface JDBCFetchConfigurationpublic boolean hasJoin(String field)
JDBCFetchConfiguration
hasJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addJoin(String field)
JDBCFetchConfigurationfield 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.
addJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addJoins(Collection fields)
JDBCFetchConfigurationfields 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.
addJoins in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration removeJoin(String field)
JDBCFetchConfigurationfield to the set of fully-qualified field names to
eagerly join when loading objects.
removeJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration removeJoins(Collection fields)
JDBCFetchConfigurationfields from the set of fully-qualified
field names to eagerly join when loading objects.
removeJoins in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration clearJoins()
JDBCFetchConfiguration
clearJoins in interface JDBCFetchConfigurationpublic int getIsolation()
JDBCFetchConfigurationThe 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.
getIsolation in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration setIsolation(int level)
JDBCFetchConfigurationThe 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.
setIsolation in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration traverseJDBC(FieldMetaData fm)
JDBCFetchConfiguration
traverseJDBC in interface JDBCFetchConfigurationpublic Set getFetchInnerJoins()
JDBCFetchConfiguration
getFetchInnerJoins in interface JDBCFetchConfigurationpublic boolean hasFetchInnerJoin(String field)
JDBCFetchConfiguration
hasFetchInnerJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addFetchInnerJoin(String field)
JDBCFetchConfigurationfield 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.
addFetchInnerJoin in interface JDBCFetchConfigurationpublic JDBCFetchConfiguration addFetchInnerJoins(Collection fields)
JDBCFetchConfigurationfields 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.
addFetchInnerJoins in interface JDBCFetchConfigurationpublic void setIgnoreDfgForFkSelect(boolean b)
JDBCFetchConfiguration
setIgnoreDfgForFkSelect in interface JDBCFetchConfigurationpublic boolean getIgnoreDfgForFkSelect()
JDBCFetchConfiguration
getIgnoreDfgForFkSelect in interface JDBCFetchConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||