|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- The type of the Compound value objectP
- The type of the propertypublic interface CompoundTypeProperty<V,P>
Represents a Property of a Compound Value Object.
For each property in a CompoundType
you need an implementation of
this CompoundTypeProperty interface.
CompoundType
,
ScalarTypeConverter
Method Summary | |
---|---|
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. |
Method Detail |
---|
String getName()
P getValue(V valueObject)
valueObject
- the compound value object
int 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).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |