Class EmbedValueHandler
- java.lang.Object
-
- org.apache.openjpa.jdbc.meta.strats.AbstractValueHandler
-
- org.apache.openjpa.jdbc.meta.strats.EmbedValueHandler
-
- All Implemented Interfaces:
java.io.Serializable
,ValueHandler
- Direct Known Subclasses:
ElementEmbedValueHandler
,ObjectIdValueHandler
public abstract class EmbedValueHandler extends AbstractValueHandler
Base class for embedded value handlers.- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmbedValueHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
getEmbeddedIdCols(FieldMapping fmd, java.util.List cols)
static void
getIdColumns(FieldMapping fmd, java.util.List cols)
protected void
map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt, java.util.List cols, java.util.List args)
Deprecated.protected void
map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt, java.util.List cols, java.util.List args)
Maps embedded value and gathers columns and arguments into given lists.protected java.lang.Object
toDataStoreValue(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.lang.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, java.util.List rvals, int idx)
protected void
toObjectValue(OpenJPAStateManager em, ValueMapping vm, java.lang.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, java.lang.Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx)
-
Methods inherited from class org.apache.openjpa.jdbc.meta.strats.AbstractValueHandler
getResultArgument, isVersionable, objectValueRequiresLoad, toDataStoreValue, toObjectValue, toObjectValue
-
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.ValueHandler
map
-
-
-
-
Method Detail
-
map
@Deprecated protected void map(ValueMapping vm, java.lang.String name, ColumnIO io, boolean adapt, java.util.List cols, java.util.List args)
Deprecated.Maps embedded value and gathers columns and arguments into given lists.
-
map
protected void map(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt, java.util.List cols, java.util.List args)
Maps embedded value and gathers columns and arguments into given lists.
-
toDataStoreValue
protected java.lang.Object toDataStoreValue(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.lang.Object rval, int idx)
Helper to convert an object value to its datastore equivalent.- Parameters:
em
- state manager for embedded objectvm
- owning valuestore
- store managercols
- embedded columnsrval
- return array if multiple columnsidx
- index in columns array to start
-
toDataStoreValue1
protected int toDataStoreValue1(OpenJPAStateManager em, ValueMapping vm, JDBCStore store, Column[] cols, java.util.List rvals, int idx)
-
toObjectValue
protected void toObjectValue(OpenJPAStateManager em, ValueMapping vm, java.lang.Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx) throws java.sql.SQLException
Helper to convert a datastore value to its object equivalent.- Parameters:
em
- state manager for embedded objectvm
- owning valueval
- datastore valuestore
- optional store managerfetch
- optional fetch configurationcols
- embedded columnsidx
- index in columns array to start- Throws:
java.sql.SQLException
-
toObjectValue1
protected int toObjectValue1(OpenJPAStateManager em, ValueMapping vm, java.lang.Object val, JDBCStore store, JDBCFetchConfiguration fetch, Column[] cols, int idx) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getEmbeddedIdCols
public static void getEmbeddedIdCols(FieldMapping fmd, java.util.List cols)
-
getIdColumns
public static void getIdColumns(FieldMapping fmd, java.util.List cols)
-
-