Package de.xima.fc.dao.impl
Class FormVersionDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<E>
-
- de.xima.fc.dao.impl.ProjektDependentBaseDao<FormVersion>
-
- de.xima.fc.dao.impl.FormVersionDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<FormVersion,Long,IEntityContext>
,IFormVersionDao
,IGenericDao<FormVersion>
,IProjektDependentBaseDao<FormVersion>
public class FormVersionDao extends ProjektDependentBaseDao<FormVersion> implements IFormVersionDao
-
-
Constructor Summary
Constructors Constructor Description FormVersionDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcNewVersionNumber(IEntityContext ec, Projekt projekt)
FormVersion
copy(IEntityContext ec, FormVersion source, Projekt projekt)
FormVersion
getBy(IEntityContext ec, Projekt projekt, int versionNumber)
List<FormVersion>
getByProjekt(IEntityContext ec, Projekt projekt)
FormVersion
getByUUID(IEntityContext ec, Projekt project, String uuid)
Returns the form version for the given UUID string and projectFormVersion
getByUUID(IEntityContext ec, Projekt project, UUID uuid)
Returns the form version for the given UUID and projectSet<de.xima.cmn.dao.interfaces.IEntity<Long>>
getEntityRefs(IEntityContext ec, FormVersion formversion)
protected IFCDaoActionHook<FormVersion>
getPostActionHook()
protected IFCDaoActionHook<FormVersion>
getPreActionHook()
-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
read
-
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
read
-
-
-
-
Method Detail
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, FormVersion formversion)
- Specified by:
getEntityRefs
in interfaceIGenericDao<FormVersion>
- Overrides:
getEntityRefs
in classGenericDao<FormVersion>
-
getByProjekt
public List<FormVersion> getByProjekt(IEntityContext ec, Projekt projekt)
- Specified by:
getByProjekt
in interfaceIFormVersionDao
-
getByUUID
public FormVersion getByUUID(IEntityContext ec, Projekt project, String uuid)
Description copied from interface:IFormVersionDao
Returns the form version for the given UUID string and project- Specified by:
getByUUID
in interfaceIFormVersionDao
- Parameters:
ec
-IEntityContext
to useproject
-Projekt
context in which to look for form versionuuid
-String
UUID string of the form version- Returns:
FormVersion
for the given UUID and project
-
getByUUID
public FormVersion getByUUID(IEntityContext ec, Projekt project, UUID uuid)
Description copied from interface:IFormVersionDao
Returns the form version for the given UUID and project- Specified by:
getByUUID
in interfaceIFormVersionDao
- Parameters:
ec
-IEntityContext
to useproject
-Projekt
context in which to look for form versionuuid
-UUID
UUID of the form version- Returns:
FormVersion
for the given UUID and project
-
getBy
public FormVersion getBy(IEntityContext ec, Projekt projekt, int versionNumber)
- Specified by:
getBy
in interfaceIFormVersionDao
-
calcNewVersionNumber
public int calcNewVersionNumber(IEntityContext ec, Projekt projekt)
- Specified by:
calcNewVersionNumber
in interfaceIFormVersionDao
-
copy
public FormVersion copy(IEntityContext ec, FormVersion source, Projekt projekt) throws de.xima.cmn.dao.exceptions.CreateException
- Specified by:
copy
in interfaceIFormVersionDao
- Throws:
de.xima.cmn.dao.exceptions.CreateException
-
getPreActionHook
protected IFCDaoActionHook<FormVersion> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<FormVersion>
-
getPostActionHook
protected IFCDaoActionHook<FormVersion> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<FormVersion>
-
-