org.shept.persistence.provider
public class DaoUtils extends Object
| Constructor and Description |
|---|
DaoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkProvider(org.springframework.dao.support.DaoSupport dao) |
private static Object |
copyTemplate_Experimental(org.springframework.orm.hibernate3.support.HibernateDaoSupport dao,
Object entityModelTemplate) |
static Object |
deepCopyModel(org.springframework.dao.support.DaoSupport dao,
Object entityModelTemplate)
This deepCopy will copy all properties of the template model but ignore
the id.
|
private static org.hibernate.metadata.ClassMetadata |
getClassMetadata(org.springframework.dao.support.DaoSupport dao,
Object model) |
private static String |
getIdentifierPropertyName_old(org.springframework.dao.support.DaoSupport dao,
Object model) |
private static Serializable |
getIdValue_old(org.springframework.dao.support.DaoSupport dao,
Object model) |
static Object |
getIdValue(org.springframework.dao.support.DaoSupport dao,
Object entityModelTemplate) |
static boolean |
isEntity(org.springframework.dao.support.DaoSupport dao,
Object entityModelTemplate) |
static boolean |
isNewModel(org.springframework.dao.support.DaoSupport dao,
Object model)
Checking if it is a new model (identifier == null) If the index is a
compound index we must check all components if just one of them is null
|
static Object |
shallowCopyModel(org.springframework.dao.support.DaoSupport dao,
Object entityModelTemplate,
boolean includeId)
This Hibernate specific code will create shallow copies of the model
object
|
private static org.hibernate.metadata.ClassMetadata getClassMetadata(org.springframework.dao.support.DaoSupport dao,
Object model)
public static boolean isEntity(org.springframework.dao.support.DaoSupport dao,
Object entityModelTemplate)
dao - entityModelTemplate - public static Object getIdValue(org.springframework.dao.support.DaoSupport dao, Object entityModelTemplate)
public static boolean isNewModel(org.springframework.dao.support.DaoSupport dao,
Object model)
index - public static Object deepCopyModel(org.springframework.dao.support.DaoSupport dao, Object entityModelTemplate)
dao - entityModelTemplate - public static Object shallowCopyModel(org.springframework.dao.support.DaoSupport dao, Object entityModelTemplate, boolean includeId)
dao - entityModelTemplate - includeId - true if the id is to be includedpublic static void checkProvider(org.springframework.dao.support.DaoSupport dao)
private static Serializable getIdValue_old(org.springframework.dao.support.DaoSupport dao, Object model)
private static String getIdentifierPropertyName_old(org.springframework.dao.support.DaoSupport dao, Object model)
Copyright © 2014. All Rights Reserved.