|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.meta.strats.RelationStrategies
public class RelationStrategies
Helper methods for relation mappings.
Constructor Summary | |
---|---|
RelationStrategies()
|
Method Summary | |
---|---|
static OpenJPAStateManager |
getStateManager(Object obj,
StoreContext ctx)
Return the state manager for the given instance, using a detached state manager if the instnace is not managed. |
static void |
mapRelationToUnmappedPC(ValueMapping vm,
String name,
boolean adapt)
Map a logical foreign key to an unmapped base class relation. |
static Object |
toDataStoreValue(ValueMapping vm,
Object val,
JDBCStore store)
Return the given object as its foreign key values. |
static MetaDataException |
uninversable(ValueMapping vm)
Return an exception indicating that the relation is invalid because it has is based on an inverse foreign key and has independent subclasses. |
static MetaDataException |
unjoinable(ValueMapping vm)
Return an exception indicating that we cannot join to the given relation. |
static MetaDataException |
unloadable(ValueMapping vm)
Return an exception indicating that the relation cannot be loaded because it has independent subclasses and does not represent a full oid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelationStrategies()
Method Detail |
---|
public static MetaDataException unjoinable(ValueMapping vm)
public static MetaDataException unloadable(ValueMapping vm)
public static MetaDataException uninversable(ValueMapping vm)
public static Object toDataStoreValue(ValueMapping vm, Object val, JDBCStore store)
FieldStrategy.toDataStoreValue(java.lang.Object, org.apache.openjpa.jdbc.kernel.JDBCStore)
public static void mapRelationToUnmappedPC(ValueMapping vm, String name, boolean adapt)
public static OpenJPAStateManager getStateManager(Object obj, StoreContext ctx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |