public interface LRSCollectionFieldStrategy extends FieldStrategy
Modifier and Type | Method and Description |
---|---|
Column[] |
getElementColumns(ClassMapping elem)
Return the columns holding the data for a collection element for the
given element mapping from
getIndependentElementMappings(boolean)
(or null). |
FieldMapping |
getFieldMapping()
The owning field mapping.
|
ClassMapping[] |
getIndependentElementMappings(boolean traverse)
Return all independent mappings to which this strategy must join in
order to access collection elements, or empty array if none.
|
ForeignKey |
getJoinForeignKey(ClassMapping elem)
Return the foreign key used to join to the owning field for the given
element mapping from
getIndependentElementMappings(boolean) (or null). |
Joins |
joinElementRelation(Joins joins,
ClassMapping elem)
Join this value's table to the table for the given element mapping
from
getIndependentElementMappings(boolean) (or null). |
Object |
loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load an element of the collection.
|
void |
selectElement(Select sel,
ClassMapping elem,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins joins)
Implement this method to select the elements of this field for the
given element mapping from
getIndependentElementMappings(boolean)
(or null). |
appendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, appendType, isEagerSelectToMany, isVersionable, join, joinKey, joinKeyRelation, joinRelation, load, load, loadEagerJoin, loadEagerParallel, loadKeyProjection, loadProjection, select, selectEagerJoin, selectEagerParallel, setFieldMapping, supportsSelect, toDataStoreValue, toKeyDataStoreValue, where
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update
FieldMapping getFieldMapping()
ClassMapping[] getIndependentElementMappings(boolean traverse)
traverse
- whether we're traversing through to the related typeValueMapping.getIndependentTypeMappings()
,
ClassMapping.EMPTY_MAPPINGS
ForeignKey getJoinForeignKey(ClassMapping elem)
getIndependentElementMappings(boolean)
(or null).Column[] getElementColumns(ClassMapping elem)
getIndependentElementMappings(boolean)
(or null).void selectElement(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins)
getIndependentElementMappings(boolean)
(or null). Elements of the result will be loaded with
loadElement(org.apache.openjpa.kernel.OpenJPAStateManager, org.apache.openjpa.jdbc.kernel.JDBCStore, org.apache.openjpa.jdbc.kernel.JDBCFetchConfiguration, org.apache.openjpa.jdbc.sql.Result, org.apache.openjpa.jdbc.sql.Joins)
.Object loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException
SQLException
Joins joinElementRelation(Joins joins, ClassMapping elem)
getIndependentElementMappings(boolean)
(or null).Copyright © 2006–2017 Apache Software Foundation. All rights reserved.