Constructor and Description |
---|
HibernateNonEntityMetadata(org.hibernate.SessionFactory sessionFactory,
org.hibernate.type.Type type,
java.lang.Class<?> collectionType) |
Modifier and Type | Method and Description |
---|---|
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 |
getEntityName()
If the type is an entity return the entity name.
|
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.
|
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.
|
boolean |
isCollection()
Return true if the type is a collection.
|
boolean |
isEmbeddable()
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 HibernateNonEntityMetadata(org.hibernate.SessionFactory sessionFactory, org.hibernate.type.Type type, java.lang.Class<?> collectionType)
public java.lang.String getIdProperty()
Metadata
getIdProperty
in interface Metadata
public Metadata getIdType()
Metadata
public java.io.Serializable getIdValue(java.lang.Object object)
Metadata
getIdValue
in interface Metadata
public java.lang.Class<?> getJavaClass()
Metadata
getJavaClass
in interface Metadata
public java.lang.String getEntityName()
Metadata
getEntityName
in interface Metadata
public java.lang.String[] getProperties()
Metadata
getProperties
in interface Metadata
public 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 Metadata
public boolean isCollection()
Metadata
isCollection
in interface Metadata
public java.lang.Class<?> getCollectionClass()
Metadata
Metadata.getJavaClass()
. For example: ArrayList<Project>,
Set<Person>, String[].getCollectionClass
in interface Metadata
public boolean isEmbeddable()
Metadata
isEmbeddable
in interface Metadata
public boolean isEntity()
Metadata
public boolean isNumeric()
Metadata