| Constructor and Description |
|---|
JPAAnnotationCollectionMetadata(Class<?> klass,
Class<?> collectionClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCollectionClass()
If the type is a collection, return the Java class of the collection
itself, not the Java class of it's elements as with
Metadata.getJavaClass(). |
String |
getEntityName()
If the type is an entity return the entity name.
|
String |
getIdProperty()
Return the name of the id property of this type.
|
Metadata |
getIdType()
Return the metadata for the id property of this type.
|
Serializable |
getIdValue(Object object)
Return the value of the id property of the given object of this type.
|
Class<?> |
getJavaClass()
Return the Java class of this type.
|
String[] |
getProperties()
Return an array of the names of all the properties that this type has, if
any.
|
Metadata |
getPropertyType(String property)
Return the metadata for the given property of this type.
|
Object |
getPropertyValue(Object object,
String property)
Return the value of the given property of the given object of this type.
|
boolean |
isCollection()
Return true if the type is a collection.
|
boolean |
isEmeddable()
Return true if the type is an embeddable class (a component class in
Hibernate).
|
boolean |
isEntity()
Return true if the type is an entity.
|
boolean |
isNumeric()
Return true if the type is a number.
|
boolean |
isString()
Return true if the type is persisted as a string (char or varchar) type
in the database.
|
public Class<?> getCollectionClass()
MetadataMetadata.getJavaClass(). For example: ArrayList<Project>,
Set<Person>, String[].getCollectionClass in interface Metadatapublic String getIdProperty()
MetadatagetIdProperty in interface Metadatapublic Metadata getIdType()
Metadatapublic Serializable getIdValue(Object object)
MetadatagetIdValue in interface Metadatapublic Class<?> getJavaClass()
MetadatagetJavaClass in interface Metadatapublic String getEntityName()
MetadatagetEntityName in interface Metadatapublic String[] getProperties()
MetadatagetProperties in interface Metadatapublic Metadata getPropertyType(String property)
MetadatagetPropertyType in interface Metadatapublic Object getPropertyValue(Object object, String property)
MetadatagetPropertyValue in interface Metadatapublic boolean isCollection()
MetadataisCollection in interface Metadatapublic boolean isEmeddable()
MetadataisEmeddable in interface Metadatapublic boolean isEntity()
Metadatapublic boolean isNumeric()
MetadataCopyright © 2008-2013. All Rights Reserved.