Package de.xima.fc.dao.impl
Class FormVersionDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<FormVersion,
,Long, IEntityContext> IFormVersionDao
,IGenericDao<FormVersion>
,IProjektDependentBaseDao<FormVersion>
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
calcNewVersionNumber
(IEntityContext ec, Projekt projekt) copy
(IEntityContext ec, FormVersion source, Projekt projekt) createDefaultFormVersion
(IEntityContext ec, Projekt project, IUser user) Returns a new default form version on the basis of a given project.getBy
(IEntityContext ec, Projekt projekt, int versionNumber) getByProjekt
(IEntityContext ec, Projekt projekt) getByUUID
(IEntityContext ec, Projekt project, String uuid) Returns the form version for the given UUID string and projectgetByUUID
(IEntityContext ec, Projekt project, UUID uuid) Returns the form version for the given UUID and projectgetEntityRefs
(IEntityContext ec, FormVersion formversion) Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<FormVersion>
protected IFCDaoActionHook<FormVersion>
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
count, findAll, findSingle, read
-
Constructor Details
-
FormVersionDao
public FormVersionDao()
-
-
Method Details
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, FormVersion formversion) Description copied from interface:IGenericDao
Returns a set of entities that reference the given entity and depend on it. An entity can usually not be deleted if it is still being referenced by and depended on by other entities.- Specified by:
getEntityRefs
in interfaceIGenericDao<FormVersion>
- Overrides:
getEntityRefs
in classGenericDao<FormVersion>
- Parameters:
ec
- entity context for database transactions.formversion
- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
getByProjekt
- Specified by:
getByProjekt
in interfaceIFormVersionDao
-
getByUUID
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
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
- Specified by:
getBy
in interfaceIFormVersionDao
-
calcNewVersionNumber
- 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
- Overrides:
getPreActionHook
in classGenericDao<FormVersion>
-
getPostActionHook
- Overrides:
getPostActionHook
in classGenericDao<FormVersion>
-
createDefaultFormVersion
Description copied from interface:IFormVersionDao
Returns a new default form version on the basis of a given project.- Specified by:
createDefaultFormVersion
in interfaceIFormVersionDao
- Parameters:
ec
-IEntityContext
to useproject
-Projekt
context in which to create the form versionuser
-IUser
user for form file data informations- Returns:
- default
FormVersion
for the given project
-