|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trg.search.jpa.JPAAnnotationMetadata
public class JPAAnnotationMetadata
| Method Summary | ||
|---|---|---|
java.lang.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(). |
|
java.lang.String |
getIdProperty()
Return the name of the id property of this type. |
|
Metadata |
getIdType()
Return the metadata for the id property of this type. |
|
java.io.Serializable |
getIdValue(java.lang.Object object)
Return the value of the id property of the given object of this type. |
|
java.lang.Class<?> |
getJavaClass()
Return the Java class of this type. |
|
static
|
getMetadata(java.lang.reflect.Type type)
|
|
java.lang.String[] |
getProperties()
Return an array of the names of all the properties that this type has, if any. |
|
Metadata |
getPropertyType(java.lang.String property)
Return the metadata for the given property of this type. |
|
java.lang.Object |
getPropertyValue(java.lang.Object object,
java.lang.String property)
Return the value of the given property of the given object of this type. |
|
java.util.Map<java.lang.String,com.trg.search.jpa.JPAAnnotationMetadata.Property> |
getProps()
|
|
static java.lang.String[] |
getterName(java.lang.reflect.Method method)
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Metadata getMetadata(java.lang.reflect.Type type)
public java.lang.Class<?> getCollectionClass()
MetadataMetadata.getJavaClass().
For example: ArrayList<Project>, Set<Person>, String[].
getCollectionClass in interface Metadatapublic java.lang.String getIdProperty()
Metadata
getIdProperty in interface Metadatapublic Metadata getIdType()
Metadata
getIdType in interface Metadatapublic java.io.Serializable getIdValue(java.lang.Object object)
Metadata
getIdValue in interface Metadatapublic java.lang.Class<?> getJavaClass()
Metadata
getJavaClass in interface Metadatapublic java.lang.String[] getProperties()
Metadata
getProperties in interface Metadatapublic Metadata getPropertyType(java.lang.String property)
Metadata
getPropertyType in interface Metadata
public java.lang.Object getPropertyValue(java.lang.Object object,
java.lang.String property)
Metadata
getPropertyValue in interface Metadatapublic boolean isCollection()
Metadata
isCollection in interface Metadatapublic boolean isEmeddable()
Metadata
isEmeddable in interface Metadatapublic boolean isEntity()
Metadata
isEntity in interface Metadatapublic boolean isNumeric()
Metadata
isNumeric in interface Metadatapublic boolean isString()
Metadata
isString in interface Metadatapublic java.util.Map<java.lang.String,com.trg.search.jpa.JPAAnnotationMetadata.Property> getProps()
public static java.lang.String[] getterName(java.lang.reflect.Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||