public class ReflectionBasedCompoundTypeProperty extends Object implements CompoundTypeProperty
| Constructor and Description |
|---|
ReflectionBasedCompoundTypeProperty(String name,
Method reader,
Class<?> propertyType) |
| 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.
|
Class<?> |
getPropertyType() |
Object |
getValue(Object valueObject)
Return the property value from the containing compound value object.
|
String |
toString() |
public int getDbType()
CompoundTypePropertyTypically 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).
getDbType in interface CompoundTypePropertypublic String getName()
CompoundTypePropertygetName in interface CompoundTypePropertypublic Object getValue(Object valueObject)
CompoundTypePropertygetValue in interface CompoundTypePropertyvalueObject - the compound value objectpublic Class<?> getPropertyType()
Copyright © 2014. All Rights Reserved.