public class IlrTraceDAOWrapper extends java.lang.Object implements IlrTraceDAO
| Constructor and Description |
|---|
IlrTraceDAOWrapper(IlrTraceDAO delegate)
Constructs a wrapper on top of a delegate trace DAO.
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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.
|
public IlrTraceDAOWrapper(IlrTraceDAO delegate)
delegate - The original trace DAO.public void beginTransaction()
throws IlrTraceDAOException
IlrTraceDAObeginTransaction in interface IlrTraceDAOIlrTraceDAOException - if an error occurs.public void close()
IlrTraceDAOclose in interface IlrTraceDAOpublic void commit()
throws IlrTraceDAOException
IlrTraceDAOcommit in interface IlrTraceDAOIlrTraceDAOException - if an error occurred while committing.public void rollback()
IlrTraceDAOrollback in interface IlrTraceDAOpublic void saveTrace(IlrDWTrace trace, IlrSessionRequest request, IlrSessionResponse response) throws IlrTraceDAOException
IlrTraceDAOsaveTrace in interface IlrTraceDAOIlrTraceDAOException - 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
IlrTraceDAOfindAllTraces in interface IlrTraceDAOIlrTraceDAOException - if an error occurred while saving the trace.public void deleteAllTraces()
throws IlrTraceDAOException
IlrTraceDAOdeleteAllTraces in interface IlrTraceDAOIlrTraceDAOException - if an error occurred while deleting traces.public void deleteTraces(IlrTraceQuery query) throws IlrTraceDAOException
IlrTraceDAOdeleteTraces in interface IlrTraceDAOIlrTraceDAOException - if an error occurred deleting the traces.query - The query.public IlrTraceQuery createQuery()
IlrTraceDAOIlrTraceQuery object.createQuery in interface IlrTraceDAOpublic IlrTraceIterator findTraces(IlrTraceQuery query) throws IlrTraceDAOException
IlrTraceDAOfindTraces in interface IlrTraceDAOIlrTraceDAOException - if an error occurred while searching for
the trace.query - A query that specifies the search criteria.public IlrDWTrace findByExecutionId(java.lang.String executionId) throws IlrTraceDAOException
IlrTraceDAOfindByExecutionId in interface IlrTraceDAOIlrTraceDAOException - 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.© Copyright IBM Corp. 1987, 2017