@PermitAll public class JpaWsRequestHandlerDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<WsRequestHandler,Long> implements WsRequestHandlerDao
WsRequestHandlerDao
. Provides basic methods for
accessing the WsRequestWaitPoint entity objects.Constructor and Description |
---|
JpaWsRequestHandlerDao()
Creates new instance.
|
JpaWsRequestHandlerDao(javax.persistence.EntityManager em)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Long |
findIdByTask(long modelInstanceId,
long taskId)
Returns a point id associated with a task.
|
QueryResult<Object[]> |
findRequestHandlers(WsRequestHandlerCriteria criteria)
Finds all
WsRequestHandler objects which conforms the search criteria. |
protected String |
getColName(String colName) |
protected javax.persistence.EntityManager |
getEntityManager() |
Object[] |
getResponse(Long id)
Returns request wait point with given id.
|
clear, contains, findById, findById, findByIds, flush, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JpaWsRequestHandlerDao()
public JpaWsRequestHandlerDao(javax.persistence.EntityManager em)
em
- the entity managerprotected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<WsRequestHandler,Long>
protected String getColName(String colName)
getColName
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<WsRequestHandler,Long>
public QueryResult<Object[]> findRequestHandlers(WsRequestHandlerCriteria criteria)
WsRequestHandlerDao
WsRequestHandler
objects which conforms the search criteria. Returned waiting points doesn't have filled identifier, response and request fields.
So the returned list contains the arrays of objects where the order of fields is: id, modelInstanceId, operationURI, created, requestReceived, finished, timedout, errorfindRequestHandlers
in interface WsRequestHandlerDao
criteria
- search criteriapublic Object[] getResponse(Long id)
WsRequestHandlerDao
getResponse
in interface WsRequestHandlerDao
id
- id of WsRequestWaitPoint entitypublic Long findIdByTask(long modelInstanceId, long taskId)
WsRequestHandlerDao
findIdByTask
in interface WsRequestHandlerDao
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.