kodo.jdbc.meta.strats
Class RelationRelationMapTableFieldStrategy
java.lang.Object
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractFieldStrategy
org.apache.openjpa.jdbc.meta.strats.ContainerFieldStrategy
org.apache.openjpa.jdbc.meta.strats.MapTableFieldStrategy
kodo.jdbc.meta.strats.RelationRelationMapTableFieldStrategy
- All Implemented Interfaces:
- Serializable, FieldStrategy, Strategy, LRSMapFieldStrategy
public class RelationRelationMapTableFieldStrategy
- extends MapTableFieldStrategy
Mapping for a map whose keys and values are both relations to other
persistent objects.
- See Also:
- Serialized Form
Method Summary |
Column[] |
getKeyColumns(ClassMapping cls)
|
Result[] |
getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] resJoins,
boolean lrs)
|
Column[] |
getValueColumns(ClassMapping cls)
|
void |
initialize()
|
void |
insert(OpenJPAStateManager sm,
JDBCStore store,
RowManager rm)
|
Joins |
joinKeyRelation(Joins joins,
boolean forceOuter,
boolean traverse)
|
Joins |
joinKeyRelation(Joins joins,
ClassMapping key)
|
Joins |
joinRelation(Joins joins,
boolean forceOuter,
boolean traverse)
|
Joins |
joinValueRelation(Joins joins,
ClassMapping val)
|
Object |
loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
|
Object |
loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
|
void |
map(boolean adapt)
|
void |
selectKey(Select sel,
ClassMapping key,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Joins joins)
|
void |
selectValue(Select sel,
ClassMapping val,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Joins joins)
|
Object |
toDataStoreValue(Object val,
JDBCStore store)
|
Object |
toKeyDataStoreValue(Object val,
JDBCStore store)
|
void |
update(OpenJPAStateManager sm,
JDBCStore store,
RowManager rm)
|
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.MapTableFieldStrategy |
delete, deriveKey, deriveValue, getFieldMapping, getIndependentElementMappings, getIndependentKeyMappings, getIndependentValueMappings, getJoinForeignKey, getJoinForeignKey, join, joinKey, load, loadKeyProjection, loadProjection, supportsSelect |
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractFieldStrategy |
assertNotMappedBy, isEagerSelectToMany, isVersionable, load, loadEagerJoin, loadEagerParallel, select, selectEagerJoin, selectEagerParallel, setFieldMapping, where |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.jdbc.meta.FieldStrategy |
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, isEagerSelectToMany, isVersionable, load, loadEagerJoin, loadEagerParallel, select, selectEagerJoin, selectEagerParallel, setFieldMapping, where |
RelationRelationMapTableFieldStrategy
public RelationRelationMapTableFieldStrategy()
getKeyColumns
public Column[] getKeyColumns(ClassMapping cls)
getValueColumns
public Column[] getValueColumns(ClassMapping cls)
selectKey
public void selectKey(Select sel,
ClassMapping key,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Joins joins)
selectValue
public void selectValue(Select sel,
ClassMapping val,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Joins joins)
getResults
public Result[] getResults(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
int eagerMode,
Joins[] resJoins,
boolean lrs)
throws SQLException
- Throws:
SQLException
loadKey
public Object loadKey(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
throws SQLException
- Throws:
SQLException
loadValue
public Object loadValue(OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins)
throws SQLException
- Throws:
SQLException
joinKeyRelation
public Joins joinKeyRelation(Joins joins,
ClassMapping key)
- Specified by:
joinKeyRelation
in interface LRSMapFieldStrategy
- Overrides:
joinKeyRelation
in class MapTableFieldStrategy
joinValueRelation
public Joins joinValueRelation(Joins joins,
ClassMapping val)
- Specified by:
joinValueRelation
in interface LRSMapFieldStrategy
- Overrides:
joinValueRelation
in class MapTableFieldStrategy
map
public void map(boolean adapt)
- Specified by:
map
in interface Strategy
- Overrides:
map
in class MapTableFieldStrategy
initialize
public void initialize()
- Specified by:
initialize
in interface Strategy
- Overrides:
initialize
in class AbstractStrategy
insert
public void insert(OpenJPAStateManager sm,
JDBCStore store,
RowManager rm)
throws SQLException
- Specified by:
insert
in interface Strategy
- Overrides:
insert
in class AbstractStrategy
- Throws:
SQLException
update
public void update(OpenJPAStateManager sm,
JDBCStore store,
RowManager rm)
throws SQLException
- Specified by:
update
in interface Strategy
- Overrides:
update
in class AbstractStrategy
- Throws:
SQLException
joinRelation
public Joins joinRelation(Joins joins,
boolean forceOuter,
boolean traverse)
- Specified by:
joinRelation
in interface FieldStrategy
- Overrides:
joinRelation
in class AbstractFieldStrategy
joinKeyRelation
public Joins joinKeyRelation(Joins joins,
boolean forceOuter,
boolean traverse)
- Specified by:
joinKeyRelation
in interface FieldStrategy
- Overrides:
joinKeyRelation
in class AbstractFieldStrategy
toDataStoreValue
public Object toDataStoreValue(Object val,
JDBCStore store)
- Specified by:
toDataStoreValue
in interface FieldStrategy
- Overrides:
toDataStoreValue
in class AbstractFieldStrategy
toKeyDataStoreValue
public Object toKeyDataStoreValue(Object val,
JDBCStore store)
- Specified by:
toKeyDataStoreValue
in interface FieldStrategy
- Overrides:
toKeyDataStoreValue
in class AbstractFieldStrategy
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.