|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.appltest.diagfwk.engine.provider.dao.db.OADBBaseDAO oracle.apps.fnd.appltest.diagfwk.engine.provider.dao.db.OADBTestRunDAO
public class OADBTestRunDAO
Provides Oracle Applications Database specific implementations for data access APIs related to Test runs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.provider.dao.BaseDAO |
---|
BaseDAO.DBSessionInfo |
Field Summary | |
---|---|
static int |
RUNS_ROWNUM_LIMIT_DEFAULT
Fetch row number limit when querying for test runs |
static java.lang.String |
SYSPROP_DIAGFWK_QUERYRUNS_LIMIT
System property that allows the maximum number of rows returned by the queryRuns API to be configured |
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.engine.provider.dao.db.OADBBaseDAO |
---|
langCode |
Constructor Summary | |
---|---|
OADBTestRunDAO()
|
Method Summary | |
---|---|
void |
deleteRun(java.lang.String pRunId)
Deletes the run with the given run ID (including all the executions in the run). |
void |
deleteRuns(java.lang.String[] pRunIds)
Deletes runs with the given set of run IDs. |
boolean |
existsExecution(java.lang.String pExecutionId)
Checks to see if an Execution with the given Execution ID exists. |
boolean |
existsRun(java.lang.String pRunId)
Checks to see if a Run with the given Run ID exists. |
TestExec |
fetch(java.lang.String pExecId)
Queries Diagnostic Test Execution data in the repository to fetch TestExec object. |
TestRun |
fetch(java.lang.String pRunId,
boolean pFetchExecs)
Queries Diagnostic Run data in the repository to fetch TestRun object. |
TestRun |
fetch(java.lang.String pRunId,
boolean pFetchExecs,
boolean bLoadReport)
Queries Diagnostic Run data in the repository to fetch TestRun object. |
TestRun |
fetchByRunName(java.lang.String pRunName,
boolean pFetchExecs)
Queries Diagnostic Run data in the repository to fetch TestRun object. |
TestRun |
fetchByRunName(java.lang.String pRunName,
boolean pFetchExecs,
boolean bLoadReport)
Queries Diagnostic Run data in the repository to fetch TestRun object. |
TestExec |
fetchExecution(java.lang.String pExecId,
boolean pIncludeChildren)
Gets the test execution for the given execution ID. |
TestExec |
fetchExecution(java.lang.String pExecId,
boolean pIncludeChildren,
boolean bLoadReport)
Gets the test execution for the given execution ID. |
TestExecList |
fetchExecutions(java.lang.String pRunId)
Fetches the executions for the given test run. |
TestExecList |
fetchExecutions(java.lang.String pRunId,
boolean bLoadReport)
Fetches the executions for the given test run. |
TestExec |
fetchTestExec(java.lang.String pExecId,
boolean bLoadReport)
Queries Diagnostic Test Execution data in the repository to fetch TestExec object. |
int |
getQueryRunsMaxLimit()
Returns the maximum limit on the number of rows returned by the query runs API. |
java.lang.String |
queryExecStatus(java.lang.String pExecId)
Queries the status of the given execution ID |
TestExecList |
queryImmediateChildExecutions(java.lang.String pParentExecId)
Queries the immediate test executions for the given execution ID. |
TestExecList |
queryImmediateExecutions(java.lang.String pRunId)
Queries the immediate test executions for the given run ID. |
java.lang.String |
queryRunId(java.lang.String pRunName)
Queries the Run ID for the given Run name. |
TestRunList |
queryRuns(java.lang.String[] pStatusCodes,
java.lang.Long pTimeInterval,
java.lang.String pRunByUser,
java.util.Date pFromDate,
java.util.Date pToDate,
java.lang.String pRunName,
java.lang.String pTestDisplayName)
Queries test runs based on the given criteria. |
java.lang.String |
queryRunStatus(java.lang.String pRunId)
Queries the status of the given run ID |
void |
save(TestExec exec)
Saves the given TestExec object into the repository. |
void |
save(TestRun pTestRun)
Saves the given TestRun object into the repository. |
protected static int |
setWhoColumnsForInsert(DiagBObj pObj,
java.sql.PreparedStatement pStmt,
int pStartIndex)
|
void |
updateRunStatus(TestRun pRun,
java.lang.String pExpectedCurrentStatusCode,
java.lang.String pNewStatusCode,
java.lang.String pExecStatusCodeToUpdate)
Updates the status of the given run to the specified status code. |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.provider.dao.db.OADBBaseDAO |
---|
close, close, close, createSysGuid, getCLOB, getConnection, getDBSessionInfo, getJdbcBatchSize, getLangCode, getSysDate, getSysDate, getSysGuid, populateWhoColumns, prepareWhoColumns, queryNlsParameters, querySysDate, querySysDate, returnConnection, rollBack, setFetchSize, setSavepoint, setWhoColumnsForUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.provider.dao.BaseDAO |
---|
createSysGuid, getDBSessionInfo, queryNlsParameters, querySysDate, querySysDate |
Field Detail |
---|
public static final int RUNS_ROWNUM_LIMIT_DEFAULT
public static final java.lang.String SYSPROP_DIAGFWK_QUERYRUNS_LIMIT
Constructor Detail |
---|
public OADBTestRunDAO()
Method Detail |
---|
public void save(TestExec exec)
TestRunDAO
save
in interface TestRunDAO
exec
- TestExec representing a particular test
execution to be saved into the test repository.public void save(TestRun pTestRun)
TestRunDAO
save
in interface TestRunDAO
pTestRun
- TestRun representing a particular test
run to be saved into the test repository.public TestExecList fetchExecutions(java.lang.String pRunId)
TestRunDAO
fetchExecutions
in interface TestRunDAO
pRunId
- Run GUID for the test run
public TestExecList fetchExecutions(java.lang.String pRunId, boolean bLoadReport)
TestRunDAO
fetchExecutions
in interface TestRunDAO
pRunId
- Run GUID for the test runbLoadReport
- flag that indicates whether the fetch should
check for view report security permission and
load the report if allowed
public TestRun fetchByRunName(java.lang.String pRunName, boolean pFetchExecs)
TestRunDAO
fetchByRunName
in interface TestRunDAO
pRunName
- name of the run for which to fetch detailspFetchExecs
- flag that indicates whether included
test executions should also be fetched.
public TestRun fetchByRunName(java.lang.String pRunName, boolean pFetchExecs, boolean bLoadReport)
TestRunDAO
fetchByRunName
in interface TestRunDAO
pRunName
- name of the run for which to fetch detailspFetchExecs
- flag that indicates whether included
test executions should also be fetched.bLoadReport
- flag that indicates whether the fetch should
check for view report security permission and load the report if allowed
public TestRun fetch(java.lang.String pRunId, boolean pFetchExecs)
TestRunDAO
fetch
in interface TestRunDAO
pRunId
- a GUID representing TestRun objectpFetchExecs
- - set true for returning all child
TestExecs for a giveb TestRun
public TestRun fetch(java.lang.String pRunId, boolean pFetchExecs, boolean bLoadReport)
TestRunDAO
fetch
in interface TestRunDAO
pRunId
- a GUID representing TestRun objectpFetchExecs
- - set true for returning all child
TestExecs for a giveb TestRunbLoadReport
- flag that indicates whether the fetch should
check for view report security permission and load the report if allowed
public TestRunList queryRuns(java.lang.String[] pStatusCodes, java.lang.Long pTimeInterval, java.lang.String pRunByUser, java.util.Date pFromDate, java.util.Date pToDate, java.lang.String pRunName, java.lang.String pTestDisplayName)
TestRunDAO
queryRuns
in interface TestRunDAO
pStatusCodes
- status codes for the test run. All runs with these
status codes are fetched.pTimeInterval
- time interval in seconds that specifies the interval
for querying test runs. All runs that started with the last specified number
of seconds are fetchedpRunByUser
- user like predicate to limit the list runs bypFromDate
- all runs started after this date are fetchedpToDate
- all runs started before this date are fetchedpRunName
- all runs with run names like this run name are fetched
public TestExecList queryImmediateExecutions(java.lang.String pRunId)
TestRunDAO
queryImmediateExecutions
in interface TestRunDAO
pRunId
- run ID for which to query the executions
public TestExecList queryImmediateChildExecutions(java.lang.String pParentExecId)
TestRunDAO
queryImmediateChildExecutions
in interface TestRunDAO
pParentExecId
- parent execution ID for which to query the
child executions
public java.lang.String queryRunId(java.lang.String pRunName)
TestRunDAO
queryRunId
in interface TestRunDAO
pRunName
- name for the run.
public TestExec fetchExecution(java.lang.String pExecId, boolean pIncludeChildren)
TestRunDAO
fetchExecution
in interface TestRunDAO
pExecId
- execution ID to fetchpIncludeChildren
- if true, the API will also fetch
child executions (if any exist) for the given execution ID.
public TestExec fetchExecution(java.lang.String pExecId, boolean pIncludeChildren, boolean bLoadReport)
TestRunDAO
fetchExecution
in interface TestRunDAO
pExecId
- execution ID to fetchpIncludeChildren
- if true, the API will also fetch
child executions (if any exist) for the given execution ID.bLoadReport
- if true, the API will check the report view
permission and load the report if allowed
public TestExec fetch(java.lang.String pExecId)
TestRunDAO
fetch
in interface TestRunDAO
pExecId
- - A GUID, representing a TestExec object
public TestExec fetchTestExec(java.lang.String pExecId, boolean bLoadReport)
TestRunDAO
fetchTestExec
in interface TestRunDAO
pExecId
- - A GUID, representing a TestExec objectbLoadReport
- flag that indicates whether the fetch should
check for view report security permission
and load report if allowed
protected static int setWhoColumnsForInsert(DiagBObj pObj, java.sql.PreparedStatement pStmt, int pStartIndex) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String queryRunStatus(java.lang.String pRunId)
TestRunDAO
queryRunStatus
in interface TestRunDAO
pRunId
- run ID
public java.lang.String queryExecStatus(java.lang.String pExecId)
TestRunDAO
queryExecStatus
in interface TestRunDAO
pExecId
- the execution ID
public void updateRunStatus(TestRun pRun, java.lang.String pExpectedCurrentStatusCode, java.lang.String pNewStatusCode, java.lang.String pExecStatusCodeToUpdate)
TestRunDAO
updateRunStatus
in interface TestRunDAO
pRun
- Test Run for which to update the status. The
run ID attribute for the test run must be set on the instance.pExpectedCurrentStatusCode
- the current expected
status code of the run. If the run is not in the expected
status code at the time of update then an exception is thrown
and update is not performed. If null, update is always performed
regardless of current status.pNewStatusCode
- the new status code to update to.pExecStatusCodeToUpdate
- Any nested executions for the given
run with with this status code are also updated to the new status code.
If this is null, then status of nested executions are not updated.public void deleteRun(java.lang.String pRunId)
TestRunDAO
deleteRun
in interface TestRunDAO
pRunId
- ID for the run to delete.public int getQueryRunsMaxLimit()
TestRunDAO
getQueryRunsMaxLimit
in interface TestRunDAO
public void deleteRuns(java.lang.String[] pRunIds)
TestRunDAO
deleteRuns
in interface TestRunDAO
pRunIds
- list of run IDs to delete.public boolean existsRun(java.lang.String pRunId)
TestRunDAO
existsRun
in interface TestRunDAO
pRunId
- Run ID
public boolean existsExecution(java.lang.String pExecutionId)
TestRunDAO
existsExecution
in interface TestRunDAO
pExecutionId
- Execution ID
|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |