org.shept.persistence.provider.hibernate
Class HibernateUtils_old

java.lang.Object
  extended by org.shept.persistence.provider.hibernate.HibernateUtils_old

public class HibernateUtils_old
extends Object

Version:
$$Id: HibernateUtils_old.java 70 2010-11-04 17:28:46Z aha $$
Author:
Andi

Constructor Summary
HibernateUtils_old()
           
 
Method Summary
static Object copyTemplate(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao, Object entityModelTemplate)
           
private static org.hibernate.metadata.ClassMetadata getClassMetadata(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao, Object model)
           
static String getIdentifierPropertyName(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao, Object model)
           
static Serializable getIdValue(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao, Object model)
           
static boolean isNewModel(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao, Object model)
          Checking if it is a new model If the index is a compound index we must check all components if they are all non null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUtils_old

public HibernateUtils_old()
Method Detail

getClassMetadata

private static org.hibernate.metadata.ClassMetadata getClassMetadata(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao,
                                                                     Object model)

getIdentifierPropertyName

public static String getIdentifierPropertyName(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao,
                                               Object model)

getIdValue

public static Serializable getIdValue(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao,
                                      Object model)

isNewModel

public static boolean isNewModel(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao,
                                 Object model)
Checking if it is a new model If the index is a compound index we must check all components if they are all non null

Parameters:
index -
Returns:

copyTemplate

public static Object copyTemplate(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao,
                                  Object entityModelTemplate)


Copyright © 2011. All Rights Reserved.