@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.
|
List<ModelInstanceEntity> |
findFormPreviewModelInstances()
Returns all model instances created by form preview.
|
List<Long> |
findModelInstanceIdsByNotifications(Collection<String> notifications)
Returns all model instances which have at least one of the given notifications.
|
protected String |
getColName(String colName) |
protected javax.persistence.EntityManager |
getEntityManager() |
clear, contains, findById, findById, flush, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JpaModelInstanceDao()
public JpaModelInstanceDao(javax.persistence.EntityManager em)
JpaModelInstanceDao
.em
- protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<ModelInstanceEntity,Long>
protected String getColName(String colName)
getColName
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<ModelInstanceEntity,Long>
public QueryResult<ModelInstanceEntity> findByCriteria(ModelInstanceCriteria criteria)
ModelInstanceDao
findByCriteria
in interface ModelInstanceDao
public List<Long> findModelInstanceIdsByNotifications(Collection<String> notifications)
ModelInstanceDao
findModelInstanceIdsByNotifications
in interface ModelInstanceDao
public List<ModelInstanceEntity> findFormPreviewModelInstances()
ModelInstanceDao
findFormPreviewModelInstances
in interface ModelInstanceDao
public long countNotFinishedModelInstances(long moduleId)
ModelInstanceDao
countNotFinishedModelInstances
in interface ModelInstanceDao
moduleId
- the module identifierCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.