public class RelationCollectionInverseKeyFieldStrategy extends RelationToManyInverseKeyFieldStrategy implements LRSCollectionFieldStrategy
field
Constructor and Description |
---|
RelationCollectionInverseKeyFieldStrategy() |
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
LRSCollectionFieldStrategy.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
ContainerFieldStrategy.getIndependentElementMappings(boolean) (or null). |
Joins |
join(Joins joins,
ClassMapping elem)
Join to the owning field table for the given element mapping from
ContainerFieldStrategy.getIndependentElementMappings(boolean) (or null). |
Joins |
joinElementRelation(Joins joins,
ClassMapping elem)
Join this value's table to the table for the given element mapping
from
ContainerFieldStrategy.getIndependentElementMappings(boolean) (or null). |
Object |
loadElement(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
Load an element of the collection.
|
void |
map(boolean adapt)
Map the owning mapping using this strategy.
|
protected Proxy |
newLRSProxy()
Return a large result set proxy for this field.
|
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
ContainerFieldStrategy.getIndependentElementMappings(boolean)
(or null). |
delete, initialize, insert, join, toDataStoreValue, update
add, getJoinForeignKey, isEagerSelectToMany, load, loadEagerJoin, loadEagerParallel, loadProjection, selectAll, selectEagerJoin, selectEagerParallel, supportsSelect, toCollection
appendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendJoinCount, appendSize, appendUnaliasedJoin
appendType, assertNotMappedBy, isVersionable, joinKey, joinKeyRelation, joinRelation, load, loadKeyProjection, select, setFieldMapping, toKeyDataStoreValue, where
customDelete, customInsert, customUpdate, getAlias, isCustomDelete, isCustomInsert, isCustomUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, update
public RelationCollectionInverseKeyFieldStrategy()
public FieldMapping getFieldMapping()
LRSCollectionFieldStrategy
getFieldMapping
in interface LRSCollectionFieldStrategy
public ClassMapping[] getIndependentElementMappings(boolean traverse)
ContainerFieldStrategy
getIndependentElementMappings
in interface LRSCollectionFieldStrategy
getIndependentElementMappings
in class RelationToManyInverseKeyFieldStrategy
traverse
- whether we're traversing through to the related typeValueMapping.getIndependentTypeMappings()
,
ClassMapping.EMPTY_MAPPINGS
public Column[] getElementColumns(ClassMapping elem)
LRSCollectionFieldStrategy
LRSCollectionFieldStrategy.getIndependentElementMappings(boolean)
(or null).getElementColumns
in interface LRSCollectionFieldStrategy
public ForeignKey getJoinForeignKey(ClassMapping elem)
StoreCollectionFieldStrategy
ContainerFieldStrategy.getIndependentElementMappings(boolean)
(or null).getJoinForeignKey
in interface LRSCollectionFieldStrategy
getJoinForeignKey
in class RelationToManyInverseKeyFieldStrategy
public void selectElement(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins)
StoreCollectionFieldStrategy
ContainerFieldStrategy.getIndependentElementMappings(boolean)
(or null). Elements of the result will be loaded with
StoreCollectionFieldStrategy.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)
.selectElement
in interface LRSCollectionFieldStrategy
selectElement
in class RelationToManyInverseKeyFieldStrategy
public Object loadElement(OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException
StoreCollectionFieldStrategy
loadElement
in interface LRSCollectionFieldStrategy
loadElement
in class RelationToManyInverseKeyFieldStrategy
SQLException
public Joins join(Joins joins, ClassMapping elem)
StoreCollectionFieldStrategy
ContainerFieldStrategy.getIndependentElementMappings(boolean)
(or null).join
in class RelationToManyInverseKeyFieldStrategy
public Joins joinElementRelation(Joins joins, ClassMapping elem)
StoreCollectionFieldStrategy
ContainerFieldStrategy.getIndependentElementMappings(boolean)
(or null).joinElementRelation
in interface LRSCollectionFieldStrategy
joinElementRelation
in class RelationToManyInverseKeyFieldStrategy
FieldMapping.joinRelation(org.apache.openjpa.jdbc.sql.Joins, boolean, boolean)
protected Proxy newLRSProxy()
StoreCollectionFieldStrategy
newLRSProxy
in class StoreCollectionFieldStrategy
public void map(boolean adapt)
Strategy
map
in interface Strategy
map
in class RelationToManyInverseKeyFieldStrategy
adapt
- if true, use the owning mapping's raw mapping info
to set its ORM data; if false, ORM data will already be setCopyright © 2006–2018 Apache Software Foundation. All rights reserved.