Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » meta » strats » [javadoc | source]
org.apache.openjpa.jdbc.meta.strats
public class: HandlerStrategies [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.meta.strats.HandlerStrategies
Utility methods for strategies using value handlers.
Method from org.apache.openjpa.jdbc.meta.strats.HandlerStrategies Summary:
assertJoinable,   loadDataStore,   loadObject,   map,   set,   toDataStoreValue,   where
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.meta.strats.HandlerStrategies Detail:
 public static  void assertJoinable(ValueMapping vm) 
    Throw the proper exception if the given handler-controlled value represents an unjoinable relation.
 public static Object loadDataStore(ValueMapping vm,
    Result res,
    Joins joins,
    Column[] cols) throws SQLException 
    Load the datastore value from the given result. This method does not process the loaded value through ValueHandler#toObjectValue .
 public static Object loadObject(ValueMapping vm,
    OpenJPAStateManager sm,
    JDBCStore store,
    JDBCFetchConfiguration fetch,
    Result res,
    Joins joins,
    Column[] cols,
    boolean objectValueRequiresLoad) throws SQLException 
    Load the Object value from the given result.
 public static Column[] map(ValueMapping vm,
    String name,
    ColumnIO io,
    boolean adapt) 
    Map the given value.
 public static  void set(ValueMapping vm,
    Object val,
    JDBCStore store,
    Row row,
    Column[] cols,
    ColumnIO io,
    boolean nullNone) throws SQLException 
    Set the given value into the given row.
 public static Object toDataStoreValue(ValueMapping vm,
    Object val,
    Column[] cols,
    JDBCStore store) 
    Convert the given object to its datastore value(s). Relation ids are converted to their final values immediately.
 public static  void where(ValueMapping vm,
    Object val,
    JDBCStore store,
    Row row,
    Column[] cols) throws SQLException 
    Add where conditions to the given row.