@PermitAll public class JpaModelInstanceDao extends com.whitestein.lsps.common.jpa.AbstractJpaEntityDao<ModelInstanceEntity> implements ModelInstanceDao
ModelInstanceDao.| Constructor and Description |
|---|
JpaModelInstanceDao()
Creates new instance.
|
JpaModelInstanceDao(javax.persistence.EntityManager em)
Creates new instance of
JpaModelInstanceDao. |
| Modifier and Type | Method and Description |
|---|---|
long |
countNotFinishedModelInstances(long moduleId)
Counts unfinished model instances for a module.
|
QueryResult<ModelInstanceEntity> |
findByCriteria(ModelInstanceCriteria criteria)
Returns process instances according to the given criteria.
|
java.util.List<ModelInstanceEntity> |
findFormPreviewModelInstances()
Returns all model instances created by form preview.
|
java.util.List<java.lang.Long> |
findModelInstanceIdsByNotifications(java.util.Collection<java.lang.String> notifications)
Returns all model instances which have at least one of the given notifications.
|
protected java.lang.String |
getColName(java.lang.String colName) |
protected javax.persistence.EntityManager |
getEntityManager() |
clear, contains, findById, findById, flush, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic JpaModelInstanceDao()
public JpaModelInstanceDao(javax.persistence.EntityManager em)
JpaModelInstanceDao.em - protected javax.persistence.EntityManager getEntityManager()
getEntityManager in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<ModelInstanceEntity,java.lang.Long>protected java.lang.String getColName(java.lang.String colName)
getColName in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<ModelInstanceEntity,java.lang.Long>public QueryResult<ModelInstanceEntity> findByCriteria(ModelInstanceCriteria criteria)
ModelInstanceDaofindByCriteria in interface ModelInstanceDaopublic java.util.List<java.lang.Long> findModelInstanceIdsByNotifications(java.util.Collection<java.lang.String> notifications)
ModelInstanceDaofindModelInstanceIdsByNotifications in interface ModelInstanceDaopublic java.util.List<ModelInstanceEntity> findFormPreviewModelInstances()
ModelInstanceDaofindFormPreviewModelInstances in interface ModelInstanceDaopublic long countNotFinishedModelInstances(long moduleId)
ModelInstanceDaocountNotFinishedModelInstances in interface ModelInstanceDaomoduleId - the module identifierCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.