Package | Description |
---|---|
org.apache.openjpa.jdbc.kernel |
OpenJPA-JDBC Runtime Kernel
Runtime services for the JDBC OpenJPA implementation.
|
org.apache.openjpa.jdbc.kernel.exps |
OpenJPA-JDBC Expression Tree
|
org.apache.openjpa.jdbc.meta |
OpenJPA-JDBC ORM Metadata
This package extends the standard persistence metadata with
object-relational mapping information.
|
org.apache.openjpa.jdbc.meta.strats |
OpenJPA-JDBC ORM Strategies
Library of mapping strategies.
|
org.apache.openjpa.jdbc.sql |
OpenJPA-JDBC SQL Abstraction
Utilities for generating SQL.
|
Modifier and Type | Field and Description |
---|---|
protected Result |
SelectResultObjectProvider._res |
Result |
ConnectionInfo.result |
Modifier and Type | Method and Description |
---|---|
Result |
FinderQueryImpl.execute(OpenJPAStateManager sm,
StoreManager store,
FetchConfiguration fetch) |
Result |
SelectResultObjectProvider.getResult() |
Modifier and Type | Method and Description |
---|---|
FinderQuery<ClassMapping,SelectExecutor,Result> |
FinderCacheImpl.cache(ClassMapping mapping,
SelectExecutor select,
FetchConfiguration fetch)
Cache a Finder Query for the given mapping and select.
|
FinderQuery<ClassMapping,SelectExecutor,Result> |
FinderCacheImpl.get(ClassMapping mapping,
FetchConfiguration fetch)
Gets the finder query for the given mapping.
|
FinderQuery<ClassMapping,SelectExecutor,Result> |
FinderCacheImpl.markUncachable(ClassMapping mapping) |
FinderQuery<ClassMapping,SelectExecutor,Result> |
FinderCacheImpl.markUncachable(String id) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
JDBCStoreManager.getType(Result res,
ClassMapping mapping)
This method is to provide override for non-JDBC or JDBC-like
implementation of getting type from the result set.
|
protected void |
JDBCStoreManager.getVersion(ClassMapping mapping,
OpenJPAStateManager sm,
Result res)
This method is to provide override for non-JDBC or JDBC-like
implementation of getting version from the result set.
|
protected boolean |
JDBCStoreManager.isEmptyResult(Result res)
This method is to provide override for non-JDBC or JDBC-like
implementation of checking whether the result set is empty or not.
|
Object |
JDBCStoreManager.load(ClassMapping mapping,
JDBCFetchConfiguration fetch,
BitSet exclude,
Result result)
Load the object in the current row of the given result.
|
Constructor and Description |
---|
GenericResultObjectProvider(Class<?> pcClass,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res)
Constructor.
|
GenericResultObjectProvider(ClassMapping mapping,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res)
Constructor.
|
PreparedResultObjectProvider(SelectExecutor sel,
ClassMapping mapping,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
Args.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
Val.load(ExpContext ctx,
ExpState state,
Result res)
Load the data for this value.
|
Object |
SubQ.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
SimpleCaseExpression.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
CoalesceExpression.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
GeneralCaseExpression.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
MapEntry.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
NullIfExpression.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
Math.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
Concat.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
IndexOf.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
Trim.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
Substring.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
MapKey.load(ExpContext ctx,
ExpState state,
Result res) |
Object |
PCPath.load(ExpContext ctx,
ExpState state,
Result res) |
Modifier and Type | Method and Description |
---|---|
boolean |
ClassMapping.customLoad(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result result) |
boolean |
ClassStrategy.customLoad(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result result)
Implement this method to customize loading from a
Result
into an instance. |
Class<?> |
Discriminator.getClass(JDBCStore store,
ClassMapping base,
Result result) |
Class<?> |
DiscriminatorStrategy.getClass(JDBCStore store,
ClassMapping base,
Result result)
Return the class for the current result row.
|
Object |
ClassMapping.getObjectId(JDBCStore store,
Result res,
ForeignKey fk,
boolean subs,
Joins joins)
Return the oid value stored in the result.
|
Object |
Joinable.getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins)
Return the value for this joinable from the given result, using the
given columns.
|
Object |
DelegatingJoinable.getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins) |
void |
FieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res)
Load virtual row data; the given result is not guaranteed to contain
data for this field, so the field mapping should make sure the
result contains its needed column data before loading.
|
void |
FieldMapping.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
Object |
Version.load(OpenJPAStateManager sm,
JDBCStore store,
Result res) |
Object |
VersionStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
Result res)
Load data.
|
Object |
Version.load(OpenJPAStateManager sm,
JDBCStore store,
Result res,
Joins joins) |
Object |
VersionStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
Result res,
Joins joins)
Load data.
|
void |
FieldStrategy.loadEagerJoin(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res)
Load the joined eager result.
|
void |
FieldMapping.loadEagerJoin(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
Object |
FieldStrategy.loadKeyProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load this field's key value using the given result.
|
Object |
FieldMapping.loadKeyProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
FieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load this field value using the given result.
|
Object |
FieldMapping.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Modifier and Type | Method and Description |
---|---|
Result[] |
HandlerHandlerMapTableFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] joins,
boolean lrs) |
Result[] |
RelationMapInverseKeyFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] joins,
boolean lrs) |
Result[] |
RelationMapTableFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] joins,
boolean lrs) |
Result[] |
RelationHandlerMapTableFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] resJoins,
boolean lrs) |
Result[] |
RelationRelationMapTableFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] resJoins,
boolean lrs) |
Result[] |
HandlerRelationMapTableFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] resJoins,
boolean lrs) |
Result[] |
LRSMapFieldStrategy.getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] joins,
boolean lrs)
Return results containing all keys and values for this map.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractClassStrategy.customLoad(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result result) |
Class |
SubclassJoinDiscriminatorStrategy.getClass(JDBCStore store,
ClassMapping base,
Result res) |
Class |
AbstractDiscriminatorStrategy.getClass(JDBCStore store,
ClassMapping base,
Result result) |
Class |
SuperclassDiscriminatorStrategy.getClass(JDBCStore store,
ClassMapping base,
Result res) |
Class |
InValueDiscriminatorStrategy.getClass(JDBCStore store,
ClassMapping base,
Result res) |
Object |
RelationFieldStrategy.getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins) |
Object |
PrimitiveFieldStrategy.getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins) |
Object |
HandlerFieldStrategy.getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins) |
Object |
StringFieldStrategy.getPrimaryKeyValue(Result res,
Column[] cols,
ForeignKey fk,
JDBCStore store,
Joins joins) |
protected Object |
MaxEmbeddedByteArrayFieldStrategy.load(Column col,
Result res,
Joins joins) |
protected Object |
MaxEmbeddedCharArrayFieldStrategy.load(Column col,
Result res,
Joins joins) |
void |
RelationFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
EmbedFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
PrimitiveFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
HandlerFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
AbstractFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
LobFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
StringFieldStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
Object |
ColumnVersionStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
Result res) |
Object |
AbstractVersionStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
Result res) |
Object |
ColumnVersionStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
Result res,
Joins joins) |
Object |
AbstractVersionStrategy.load(OpenJPAStateManager sm,
JDBCStore store,
Result res,
Joins joins) |
static Object |
HandlerStrategies.loadDataStore(ValueMapping vm,
Result res,
Joins joins,
Column[] cols)
Load the datastore value from the given result.
|
void |
RelationFieldStrategy.loadEagerJoin(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
StoreCollectionFieldStrategy.loadEagerJoin(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
void |
AbstractFieldStrategy.loadEagerJoin(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res) |
Object |
LRSCollectionFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load an element of the collection.
|
protected abstract Object |
StoreCollectionFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load an element of the collection.
|
protected Object |
RelationToManyInverseKeyFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
protected Object |
RelationToManyTableFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
HandlerCollectionTableFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationCollectionInverseKeyFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationCollectionTableFieldStrategy.loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
HandlerHandlerMapTableFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationMapInverseKeyFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationMapTableFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationHandlerMapTableFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationRelationMapTableFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
HandlerRelationMapTableFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
LRSMapFieldStrategy.loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load a key from the given result.
|
Object |
MapTableFieldStrategy.loadKeyProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
AbstractFieldStrategy.loadKeyProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
static Object |
HandlerStrategies.loadObject(ValueMapping vm,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins,
Column[] cols,
boolean objectValueRequiresLoad)
Load the Object value from the given result.
|
Object |
MapTableFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
EmbedFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Loading embed object without instantiating owner entity
|
Object |
StoreCollectionFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
PrimitiveFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
HandlerFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
AbstractFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
StringFieldStrategy.loadProjection(JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
HandlerHandlerMapTableFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationMapInverseKeyFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationMapTableFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationHandlerMapTableFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
RelationRelationMapTableFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
HandlerRelationMapTableFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins) |
Object |
LRSMapFieldStrategy.loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load a value from the given result.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractResult
A
Result implementation designed to be subclassed easily by
implementations. |
class |
MergedResult
Result that merges multiple result delegates.
|
class |
ResultSetResult
Base
Result implementation wrapped around a result set. |
static class |
SelectImpl.SelectResult
A
Result implementation wrapped around this select. |
Modifier and Type | Method and Description |
---|---|
Result |
SelectExecutor.execute(JDBCStore store,
JDBCFetchConfiguration fetch)
Execute this select in the context of the given store manager.
|
Result |
SelectImpl.execute(JDBCStore store,
JDBCFetchConfiguration fetch) |
Result |
LogicalUnion.execute(JDBCStore store,
JDBCFetchConfiguration fetch) |
Result |
LogicalUnion.UnionSelect.execute(JDBCStore store,
JDBCFetchConfiguration fetch) |
Result |
SelectExecutor.execute(JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel)
Execute this select in the context of the given store manager.
|
Result |
SelectImpl.execute(JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel) |
Result |
LogicalUnion.execute(JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel) |
Result |
LogicalUnion.UnionSelect.execute(JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel) |
protected Result |
SelectImpl.execute(StoreContext ctx,
JDBCStore store,
JDBCFetchConfiguration fetch,
int lockLevel)
Execute this select in the context of the given store manager.
|
Result |
SelectImpl.getEagerResult(Connection conn,
PreparedStatement stmnt,
ResultSet rs,
JDBCStore store,
JDBCFetchConfiguration fetch,
boolean forUpdate,
SQLBuffer sql)
This method is to provide override for non-JDBC or JDBC-like
implementation of executing eager selects.
|
Modifier and Type | Method and Description |
---|---|
Object |
MergedResult.ResultComparator.getOrderingValue(Result res,
int idx)
Return the ordering value of the current row of the given result.
|
Constructor and Description |
---|
MergedResult(Result[] res)
Constructor; supply delegates.
|
MergedResult(Result[] res,
MergedResult.ResultComparator comp)
Constructor; supply delegates and comparator for ordering results.
|
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.