|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- The type of the Value Objectpublic interface CompoundType<V>
API from creating and getting property values from an Immutable Compound Value Object.
A Compound Value object should contain multiple properties that are stored
separately. If you only have a single scalar value you should instead look to
use ScalarTypeConverter
.
For each property in the compound type you need to implement the
CompoundTypeProperty
interface. These must be returned from
getProperties()
in the same order that the properties appear in the
constructor.
If your compound type is mutable then you should look to use the JPA Embedded annotation instead of implementing this interface.
When using classpath search Ebean will detect and automatically register any implementations of this interface (along with detecting the entity classes etc).
ScalarTypeConverter
Method Summary | |
---|---|
V |
create(Object[] propertyValues)
Create an instance of the compound type given its property values. |
CompoundTypeProperty<V,?>[] |
getProperties()
Return the properties in the order they appear in the constructor. |
Method Detail |
---|
V create(Object[] propertyValues)
CompoundTypeProperty<V,?>[] getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |