public interface PersistenceContext
Modifier and Type | Method and Description |
---|---|
void |
close() |
PersistentSession |
findSession(Long id) |
PersistentWorkItem |
findWorkItem(Long id) |
boolean |
isOpen() |
void |
joinTransaction() |
void |
lock(PersistentWorkItem workItem)
This method pessimistically locks the
WorkItemInfo instance |
PersistentWorkItem |
merge(PersistentWorkItem workItem) |
PersistentSession |
persist(PersistentSession session)
This method persists the entity.
|
PersistentWorkItem |
persist(PersistentWorkItem workItem) |
void |
remove(PersistentSession sessionInfo) |
void |
remove(PersistentWorkItem workItem) |
PersistentSession persist(PersistentSession session)
sessionInfo
- The SessionInfo
instance representing the state of the KieSession
SessionInfo
instance.PersistentSession findSession(Long id)
void remove(PersistentSession sessionInfo)
boolean isOpen()
void joinTransaction()
void close()
PersistentWorkItem persist(PersistentWorkItem workItem)
PersistentWorkItem findWorkItem(Long id)
void remove(PersistentWorkItem workItem)
void lock(PersistentWorkItem workItem)
WorkItemInfo
instancesessionInfo
- The persistent representation of a WorkItem
PersistentWorkItem merge(PersistentWorkItem workItem)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.