|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.res.persistence.trace.IlrTraceDAOWrapper
public class IlrTraceDAOWrapper
A DAO wrapper trace utility class. Use this class to extend the default behavior of the JRules trace DAOs. // * @since 7.0
Constructor Summary | |
---|---|
IlrTraceDAOWrapper(IlrTraceDAO delegate)
Constructs a wrapper on top of a delegate trace DAO. |
Method Summary | |
---|---|
void |
beginTransaction()
Begins a transaction. |
void |
close()
Closes the underlying transaction. |
void |
commit()
Commits the underlying transaction. |
IlrTraceQuery |
createQuery()
Creates and returns an IlrTraceQuery object. |
void |
deleteAllTraces()
Deletes all the stored traces. |
void |
deleteTraces(IlrTraceQuery query)
Deletes the traces matching the query criteria. |
IlrTraceIterator |
findAllTraces()
Returns an iterator on all the execution traces stored. |
IlrDWTrace |
findByExecutionId(String executionId)
Returns the trace that matches an execution ID (UUID). |
IlrTraceIterator |
findTraces(IlrTraceQuery query)
Returns a trace iterator that matches the query criteria. |
void |
rollback()
Rollback the underlying transaction. |
void |
saveTrace(IlrDWTrace trace,
IlrSessionRequest request,
IlrSessionResponse response)
Saves a given trace instance after ruleset execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrTraceDAOWrapper(IlrTraceDAO delegate)
delegate
- The original trace DAO.Method Detail |
---|
public void beginTransaction() throws IlrTraceDAOException
IlrTraceDAO
beginTransaction
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurs.public void close()
IlrTraceDAO
close
in interface IlrTraceDAO
public void commit() throws IlrTraceDAOException
IlrTraceDAO
commit
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred while committing.public void rollback()
IlrTraceDAO
rollback
in interface IlrTraceDAO
public void saveTrace(IlrDWTrace trace, IlrSessionRequest request, IlrSessionResponse response) throws IlrTraceDAOException
IlrTraceDAO
saveTrace
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred while saving
the trace.trace
- The Decision Warehouse trace instance to save.request
- The session request used for the execution.response
- The session response returned by the execution.public IlrTraceIterator findAllTraces() throws IlrTraceDAOException
IlrTraceDAO
findAllTraces
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred while saving the trace.
public void deleteAllTraces() throws IlrTraceDAOException
IlrTraceDAO
deleteAllTraces
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred while deleting traces.public void deleteTraces(IlrTraceQuery query) throws IlrTraceDAOException
IlrTraceDAO
deleteTraces
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred deleting the traces.query
- The query.public IlrTraceQuery createQuery()
IlrTraceDAO
IlrTraceQuery
object.
createQuery
in interface IlrTraceDAO
public IlrTraceIterator findTraces(IlrTraceQuery query) throws IlrTraceDAOException
IlrTraceDAO
findTraces
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred while searching for
the trace.query
- A query that specifies the search criteria.
public IlrDWTrace findByExecutionId(String executionId) throws IlrTraceDAOException
IlrTraceDAO
findByExecutionId
in interface IlrTraceDAO
IlrTraceDAOException
- if an error occurred while searching for
the trace.executionId
- The execution ID to search for.
executionId
. If no matching
trace is found, null
is returned.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |