com.googlecode.genericdao.search.hibernate
Class HibernateMetadataUtil
java.lang.Object
com.googlecode.genericdao.search.hibernate.HibernateMetadataUtil
- All Implemented Interfaces:
- MetadataUtil
public class HibernateMetadataUtil
- extends Object
- implements MetadataUtil
Implementation of MetadataUtil for Hibernate
A singleton instance of this class is maintained for each SessionFactory.
This should be accessed using
getInstanceForSessionFactory(SessionFactory).
- Author:
- dwolverton
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateMetadataUtil
protected HibernateMetadataUtil()
getInstanceForSessionFactory
public static HibernateMetadataUtil getInstanceForSessionFactory(org.hibernate.SessionFactory sessionFactory)
getId
public Serializable getId(Object entity)
- Specified by:
getId in interface MetadataUtil
isId
public boolean isId(Class<?> rootClass,
String propertyPath)
- Specified by:
isId in interface MetadataUtil
get
public Metadata get(Class<?> entityClass)
- Specified by:
get in interface MetadataUtil
get
public Metadata get(Class<?> rootEntityClass,
String propertyPath)
- Specified by:
get in interface MetadataUtil
getUnproxiedClass
public <T> Class<T> getUnproxiedClass(Class<?> klass)
- Specified by:
getUnproxiedClass in interface MetadataUtil
getUnproxiedClass
public <T> Class<T> getUnproxiedClass(Object entity)
- Specified by:
getUnproxiedClass in interface MetadataUtil
Copyright © 2008-2011. All Rights Reserved.