|
||||||||||
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.HandlerStrategies
public class HandlerStrategies
Utility methods for strategies using value handlers.
Constructor Summary | |
---|---|
HandlerStrategies()
|
Method Summary | |
---|---|
static void |
assertJoinable(ValueMapping vm)
Throw the proper exception if the given handler-controlled value represents an unjoinable relation. |
static Object |
loadDataStore(ValueMapping vm,
Result res,
Joins joins,
Column[] cols)
Load the datastore value from the given result. |
static Object |
loadObject(ValueMapping vm,
OpenJPAStateManager sm,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res,
Joins joins,
Column[] cols,
boolean objectValueRequiresLoad)
Load the Object value from the given result. |
static Column[] |
map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt)
Map the given value. |
static void |
set(ValueMapping vm,
Object val,
JDBCStore store,
Row row,
Column[] cols,
ColumnIO io,
boolean nullNone)
Set the given value into the given row. |
static Object |
toDataStoreValue(ValueMapping vm,
Object val,
Column[] cols,
JDBCStore store)
Convert the given object to its datastore value(s). |
static void |
where(ValueMapping vm,
Object val,
JDBCStore store,
Row row,
Column[] cols)
Add where conditions to the given row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlerStrategies()
Method Detail |
---|
public static Column[] map(ValueMapping vm, String name, ColumnIO io, boolean adapt)
public static void set(ValueMapping vm, Object val, JDBCStore store, Row row, Column[] cols, ColumnIO io, boolean nullNone) throws SQLException
SQLException
public static void where(ValueMapping vm, Object val, JDBCStore store, Row row, Column[] cols) throws SQLException
SQLException
public static Object loadObject(ValueMapping vm, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Result res, Joins joins, Column[] cols, boolean objectValueRequiresLoad) throws SQLException
SQLException
public static Object loadDataStore(ValueMapping vm, Result res, Joins joins, Column[] cols) throws SQLException
ValueHandler.toObjectValue(org.apache.openjpa.jdbc.meta.ValueMapping, java.lang.Object)
.
SQLException
public static Object toDataStoreValue(ValueMapping vm, Object val, Column[] cols, JDBCStore store)
public static void assertJoinable(ValueMapping vm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |