V - The type of the Compound value objectP - The type of the propertypublic interface CompoundTypeProperty<V,P>
For each property in a CompoundType you need an implementation of
this CompoundTypeProperty interface.
CompoundType,
ScalarTypeConverter| Modifier and Type | Method and Description |
|---|---|
int |
getDbType()
This should ONLY be used when the persistence type is different from
the logical type returned.
|
String |
getName()
The name of this property.
|
P |
getValue(V valueObject)
Return the property value from the containing compound value object.
|
P getValue(V valueObject)
valueObject - the compound value objectint getDbType()
Typically this should be used when the logical type is long but the persistence type is java.sql.Timestamp. In this case return java.sql.Types.TIMESTAMP (rather than 0).
Copyright © 2016. All rights reserved.