Kodo 4.1.4 generated on June 22 2007

kodo.jdbc.meta.strats
Class HandlerRelationMapTableFieldStrategy

java.lang.Object
  extended by org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
      extended by org.apache.openjpa.jdbc.meta.strats.AbstractFieldStrategy
          extended by org.apache.openjpa.jdbc.meta.strats.ContainerFieldStrategy
              extended by org.apache.openjpa.jdbc.meta.strats.MapTableFieldStrategy
                  extended by kodo.jdbc.meta.strats.HandlerRelationMapTableFieldStrategy
All Implemented Interfaces:
Serializable, FieldStrategy, Strategy, LRSMapFieldStrategy

public class HandlerRelationMapTableFieldStrategy
extends MapTableFieldStrategy

Mapping for a map whose keys are controlled by a ValueHandler and whose values are relations to other persistent objects.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractFieldStrategy
field
 
Constructor Summary
HandlerRelationMapTableFieldStrategy()
           
 
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 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, joinKeyRelation, load, loadKeyProjection, loadProjection, supportsSelect
 
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.ContainerFieldStrategy
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendJoinCount, appendSize, appendUnaliasedJoin
 
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 org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
customDelete, customInsert, customUpdate, getAlias, isCustomDelete, isCustomInsert, isCustomUpdate
 
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
 
Methods inherited from interface org.apache.openjpa.jdbc.meta.Strategy
customDelete, customInsert, customUpdate, getAlias, isCustomDelete, isCustomInsert, isCustomUpdate
 

Constructor Detail

HandlerRelationMapTableFieldStrategy

public HandlerRelationMapTableFieldStrategy()
Method Detail

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

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

Kodo 4.1.4 generated on June 22 2007

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.