com.googlecode.genericdao.search.hibernate
Class HibernateEntityMetadata
java.lang.Object
com.googlecode.genericdao.search.hibernate.HibernateEntityMetadata
- All Implemented Interfaces:
- Metadata
public class HibernateEntityMetadata
- extends Object
- implements Metadata
Implementation of Metadata for a Hibernate entity.
- Author:
- dwolverton
|
Constructor Summary |
HibernateEntityMetadata(org.hibernate.SessionFactory sessionFactory,
org.hibernate.metadata.ClassMetadata classMetadata,
Class<?> collectionType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateEntityMetadata
public HibernateEntityMetadata(org.hibernate.SessionFactory sessionFactory,
org.hibernate.metadata.ClassMetadata classMetadata,
Class<?> collectionType)
getEntityName
public String getEntityName()
- Specified by:
getEntityName in interface Metadata
getIdProperty
public String getIdProperty()
- Specified by:
getIdProperty in interface Metadata
getIdType
public Metadata getIdType()
- Specified by:
getIdType in interface Metadata
getIdValue
public Serializable getIdValue(Object object)
- Specified by:
getIdValue in interface Metadata
getJavaClass
public Class<?> getJavaClass()
- Specified by:
getJavaClass in interface Metadata
getProperties
public String[] getProperties()
- Specified by:
getProperties in interface Metadata
getPropertyType
public Metadata getPropertyType(String property)
- Specified by:
getPropertyType in interface Metadata
getPropertyValue
public Object getPropertyValue(Object object,
String property)
- Specified by:
getPropertyValue in interface Metadata
isCollection
public boolean isCollection()
- Specified by:
isCollection in interface Metadata
getCollectionClass
public Class<?> getCollectionClass()
- Specified by:
getCollectionClass in interface Metadata
isEmeddable
public boolean isEmeddable()
- Specified by:
isEmeddable in interface Metadata
isEntity
public boolean isEntity()
- Specified by:
isEntity in interface Metadata
isNumeric
public boolean isNumeric()
- Specified by:
isNumeric in interface Metadata
isString
public boolean isString()
- Specified by:
isString in interface Metadata
Copyright © 2008-2011. All Rights Reserved.