org.drools.persistence.map
Class MapBasedPersistenceContext

java.lang.Object
  extended by org.drools.persistence.map.MapBasedPersistenceContext
All Implemented Interfaces:
NonTransactionalPersistentSession, PersistenceContext

public class MapBasedPersistenceContext
extends Object
implements PersistenceContext, NonTransactionalPersistentSession


Constructor Summary
MapBasedPersistenceContext(KnowledgeSessionStorage storage)
           
 
Method Summary
 void clear()
           
 void close()
           
 SessionInfo findSessionInfo(Integer sessionId)
           
 WorkItemInfo findWorkItemInfo(Long id)
           
 List<SessionInfo> getStoredKnowledgeSessions()
           
 List<WorkItemInfo> getStoredWorkItems()
           
 boolean isOpen()
           
 void joinTransaction()
           
 WorkItemInfo merge(WorkItemInfo workItemInfo)
           
 void persist(SessionInfo entity)
           
 void persist(WorkItemInfo workItemInfo)
           
 void remove(WorkItemInfo workItemInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBasedPersistenceContext

public MapBasedPersistenceContext(KnowledgeSessionStorage storage)
Method Detail

persist

public void persist(SessionInfo entity)
Specified by:
persist in interface PersistenceContext

findSessionInfo

public SessionInfo findSessionInfo(Integer sessionId)
Specified by:
findSessionInfo in interface PersistenceContext

isOpen

public boolean isOpen()
Specified by:
isOpen in interface PersistenceContext

joinTransaction

public void joinTransaction()
Specified by:
joinTransaction in interface PersistenceContext

close

public void close()
Specified by:
close in interface PersistenceContext

clear

public void clear()
Specified by:
clear in interface NonTransactionalPersistentSession

getStoredKnowledgeSessions

public List<SessionInfo> getStoredKnowledgeSessions()
Specified by:
getStoredKnowledgeSessions in interface NonTransactionalPersistentSession

persist

public void persist(WorkItemInfo workItemInfo)
Specified by:
persist in interface PersistenceContext

getStoredWorkItems

public List<WorkItemInfo> getStoredWorkItems()
Specified by:
getStoredWorkItems in interface NonTransactionalPersistentSession

findWorkItemInfo

public WorkItemInfo findWorkItemInfo(Long id)
Specified by:
findWorkItemInfo in interface PersistenceContext

remove

public void remove(WorkItemInfo workItemInfo)
Specified by:
remove in interface PersistenceContext

merge

public WorkItemInfo merge(WorkItemInfo workItemInfo)
Specified by:
merge in interface PersistenceContext


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.