V - The Type of the "Immutable Compound Value Object".public final class CtCompoundType<V> extends Object implements ScalarDataReader<V>
| Constructor and Description |
|---|
CtCompoundType(Class<V> cvoClass,
CompoundType<V> cvoType,
ScalarDataReader<Object>[] propReaders) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateScalarTypes(String parent,
CtCompoundTypeScalarList list)
Recursively accumulate all the scalar types (in depth first order).
|
void |
bind(DataBind b,
V value)
Bind the value to the underlying preparedStatement.
|
V |
create(Map<String,Object> valueMap) |
V |
create(Object[] propertyValues) |
Class<V> |
getCompoundTypeClass() |
CompoundTypeProperty<V,?>[] |
getProperties() |
Object[] |
getPropertyValues(V valueObject) |
Object |
jsonRead(ReadJsonContext ctx) |
void |
jsonWrite(WriteJsonContext ctx,
Object valueObject,
String propertyName) |
void |
loadIgnore(DataReader dataReader)
Ignore typically by moving the index position.
|
V |
read(DataReader source)
Read and return the appropriate value from the dataReader.
|
String |
toString() |
public CtCompoundType(Class<V> cvoClass, CompoundType<V> cvoType, ScalarDataReader<Object>[] propReaders)
public CompoundTypeProperty<V,?>[] getProperties()
public V read(DataReader source) throws SQLException
ScalarDataReaderread in interface ScalarDataReader<V>SQLExceptionpublic void loadIgnore(DataReader dataReader)
ScalarDataReaderloadIgnore in interface ScalarDataReader<V>public void bind(DataBind b, V value) throws SQLException
ScalarDataReaderbind in interface ScalarDataReader<V>SQLExceptionpublic void accumulateScalarTypes(String parent, CtCompoundTypeScalarList list)
This creates a flat list of scalars even when compound types are embedded inside compound types.
accumulateScalarTypes in interface ScalarDataReader<V>public Object jsonRead(ReadJsonContext ctx)
public void jsonWrite(WriteJsonContext ctx, Object valueObject, String propertyName)
Copyright © 2014. All Rights Reserved.