public abstract class EmbedValueHandler extends AbstractValueHandler
Constructor and Description |
---|
EmbedValueHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
getEmbeddedIdCols(FieldMapping fmd,
List cols) |
static void |
getIdColumns(FieldMapping fmd,
List cols) |
protected void |
map(ValueMapping vm,
DBIdentifier name,
ColumnIO io,
boolean adapt,
List cols,
List args)
Maps embedded value and gathers columns and arguments into given lists.
|
protected void |
map(ValueMapping vm,
String name,
ColumnIO io,
boolean adapt,
List cols,
List args)
Deprecated.
|
protected Object |
toDataStoreValue(OpenJPAStateManager em,
ValueMapping vm,
JDBCStore store,
Column[] cols,
Object rval,
int idx)
Helper to convert an object value to its datastore equivalent.
|
protected int |
toDataStoreValue1(OpenJPAStateManager em,
ValueMapping vm,
JDBCStore store,
Column[] cols,
List rvals,
int idx) |
protected void |
toObjectValue(OpenJPAStateManager em,
ValueMapping vm,
Object val,
JDBCStore store,
JDBCFetchConfiguration fetch,
Column[] cols,
int idx)
Helper to convert a datastore value to its object equivalent.
|
protected int |
toObjectValue1(OpenJPAStateManager em,
ValueMapping vm,
Object val,
JDBCStore store,
JDBCFetchConfiguration fetch,
Column[] cols,
int idx) |
getResultArgument, isVersionable, objectValueRequiresLoad, toDataStoreValue, toObjectValue, toObjectValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
map
@Deprecated protected void map(ValueMapping vm, String name, ColumnIO io, boolean adapt, List cols, List args)
protected void map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt, List cols, List args)
protected Object toDataStoreValue(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, Object rval, int idx)
em
- state manager for embedded objectvm
- owning valuestore
- store managercols
- embedded columnsrval
- return array if multiple columnsidx
- index in columns array to startprotected int toDataStoreValue1(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, List rvals, int idx)
protected void toObjectValue(OpenJPAStateManager em, ValueMapping vm, Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx) throws SQLException
em
- state manager for embedded objectvm
- owning valueval
- datastore valuestore
- optional store managerfetch
- optional fetch configurationcols
- embedded columnsidx
- index in columns array to startSQLException
protected int toObjectValue1(OpenJPAStateManager em, ValueMapping vm, Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx) throws SQLException
SQLException
public static void getEmbeddedIdCols(FieldMapping fmd, List cols)
public static void getIdColumns(FieldMapping fmd, List cols)
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.