|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase
eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase<CdmBase>
eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmGenericDaoImpl
@Repository public class CdmGenericDaoImpl
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase |
|---|
defaultBeanInitializer, flushAfterNo, type, version |
| Constructor Summary | |
|---|---|
CdmGenericDaoImpl()
|
|
| Method Summary | ||
|---|---|---|
|
find(Class<T> clazz,
int id)
|
|
|
findMatching(T objectToMatch,
IMatchStrategy matchStrategy)
Returns a List of matching persistent objects according to the match strategy |
|
|
findMatchingNullSafe(T objectToMatch,
IMatchStrategy matchStrategy)
|
|
Set<Class<? extends CdmBase>> |
getAllCdmClasses(boolean includeAbstractClasses)
Returns all CDM classes. |
|
List<CdmBase> |
getCdmBasesByFieldAndClass(Class clazz,
String propertyName,
CdmBase referencedCdmBase)
Returns a CdmBase object of class clazz that has a property with name
propertyName that references the CdmBase object referencedCdmBase. |
|
List<CdmBase> |
getCdmBasesWithItemInCollection(Class itemClass,
Class clazz,
String propertyName,
CdmBase item)
Returns ... |
|
List<CdmBase> |
getHqlResult(String hqlQuery)
Returns the result of an hql query TODO implement parameters |
|
List<CdmMetaData> |
getMetaData()
|
|
Set<CdmBase> |
getReferencingObjects(CdmBase referencedCdmBase)
Returns all CdmBase objects that reference the referencedCdmBase. |
|
|
merge(T cdmBase1,
T cdmBase2,
IMergeStrategy mergeStrategy)
Merges cdmBase2 into cdmBase2 and rearranges all reference to cdmBase2 by letting them point to cdmBase1. |
|
void |
saveMetaData(CdmMetaData cdmMetaData)
|
|
void |
test()
|
|
| Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase |
|---|
addCriteria, addExample, addGroups, addOrder, clear, count, count, count, countByParam, countGroups, delete, exists, findById, findByParam, findByUuid, getSession, getType, group, list, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update |
| Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase |
|---|
addOrder, flush, getSessionFactory, setSessionFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmGenericDao |
|---|
delete, save, saveOrUpdate, update |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao |
|---|
flush |
| Constructor Detail |
|---|
public CdmGenericDaoImpl()
| Method Detail |
|---|
public List<CdmBase> getCdmBasesByFieldAndClass(Class clazz,
String propertyName,
CdmBase referencedCdmBase)
ICdmGenericDaoclazz that has a property with name
propertyName that references the CdmBase object referencedCdmBase.
getCdmBasesByFieldAndClass in interface ICdmGenericDao
public List<CdmBase> getCdmBasesWithItemInCollection(Class itemClass,
Class clazz,
String propertyName,
CdmBase item)
ICdmGenericDao
getCdmBasesWithItemInCollection in interface ICdmGenericDaopublic Set<Class<? extends CdmBase>> getAllCdmClasses(boolean includeAbstractClasses)
ICdmGenericDao
getAllCdmClasses in interface ICdmGenericDaopublic Set<CdmBase> getReferencingObjects(CdmBase referencedCdmBase)
ICdmGenericDao
getReferencingObjects in interface ICdmGenericDaopublic List<CdmBase> getHqlResult(String hqlQuery)
ICdmGenericDao
getHqlResult in interface ICdmGenericDao
public <T extends CdmBase> void merge(T cdmBase1,
T cdmBase2,
IMergeStrategy mergeStrategy)
throws MergeException
ICdmGenericDaonull) the default merge strategy is taken instead.
merge in interface ICdmGenericDaoMergeExceptionpublic void test()
test in interface ICdmGenericDao
public <T extends CdmBase> T find(Class<T> clazz,
int id)
find in interface ICdmGenericDao
public <T extends IMatchable> List<T> findMatching(T objectToMatch,
IMatchStrategy matchStrategy)
throws MatchException
ICdmGenericDao
findMatching in interface ICdmGenericDaoMatchException
public <T extends IMatchable> List<T> findMatchingNullSafe(T objectToMatch,
IMatchStrategy matchStrategy)
throws IllegalArgumentException,
IllegalAccessException,
MatchException
IllegalArgumentException
IllegalAccessException
MatchExceptionpublic void saveMetaData(CdmMetaData cdmMetaData)
saveMetaData in interface ICdmGenericDaopublic List<CdmMetaData> getMetaData()
getMetaData in interface ICdmGenericDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||