|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.task.service.persistence.TaskPersistenceManager
public class TaskPersistenceManager
Method Summary | |
---|---|
boolean |
beginTransaction()
|
javax.persistence.Query |
createNewQuery(String queryString)
|
javax.persistence.Query |
createQuery(String queryName)
|
void |
deleteEntity(Object entity)
|
void |
endPersistenceContext()
|
void |
endTransaction(boolean txOwner)
This method attempts to end a transaction -- if it's called by someone/thing claiming to be the transaction owner (otherwise known as the thing that started the transaction). |
Object |
findEntity(Class<?> entityClass,
Object primaryKey)
|
List<DeadlineSummary> |
getUnescalatedDeadlines()
Special onetime method |
List<DeadlineSummary> |
getUnescalatedDeadlinesList()
|
List<TaskSummary> |
queryTasksWithUserIdAndLanguage(String queryName,
String userId,
String language)
|
void |
rollBackTransaction(boolean txOwner)
|
void |
saveEntity(Object entity)
|
void |
setTaskStatusInTransaction(Object taskId,
Status taskStatus)
Special onetime method |
boolean |
userExists(String userId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean beginTransaction()
public void endTransaction(boolean txOwner)
em
- The EntityManager: neccessary for local/entity transactions.txOwner
- Whether or not the caller started this transaction.public void rollBackTransaction(boolean txOwner)
public void endPersistenceContext()
public List<DeadlineSummary> getUnescalatedDeadlines()
public void setTaskStatusInTransaction(Object taskId, Status taskStatus)
taskId
- taskStatus
- public List<DeadlineSummary> getUnescalatedDeadlinesList()
public Object findEntity(Class<?> entityClass, Object primaryKey)
public void deleteEntity(Object entity)
public void saveEntity(Object entity)
public javax.persistence.Query createQuery(String queryName)
public javax.persistence.Query createNewQuery(String queryString)
public boolean userExists(String userId)
public List<TaskSummary> queryTasksWithUserIdAndLanguage(String queryName, String userId, String language)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |