|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.util.PLSQLQuery
wt.epm.structure.NavigateQuery
NavigateQuery describes a simple SQL query used to navigate links with
using PL/SQL stored procedures. When executed, it will return a LinkProxy
object for each link found that matches the search criteria specified in
the query.
Supported API: false
Extendable: false
Nested Class Summary | |
protected static class |
NavigateQuery.LinkBuilder
|
Nested classes inherited from class wt.epm.util.PLSQLQuery |
PLSQLQuery.Operator, PLSQLQuery.WhereExpression |
Field Summary | |
private long[] |
databaseIds
|
private NavigateQuery.LinkBuilder |
linkBuilder
|
private LinkProxy.Role |
otherSideRole
|
Fields inherited from class wt.epm.util.PLSQLQuery |
EQUAL, IS_FALSE, IS_TRUE, LIKE, NOT_EQUAL |
Constructor Summary | |
NavigateQuery(long[] databaseIds,
Class linkClass,
LinkProxy.Role otherSideRole)
Constructs a NavigateQuery used to navigate a link class. |
Method Summary | |
protected String |
buildFromClause()
Builds FROM clause. |
protected Object |
buildResult(Object[] rawData)
Builds a result using the raw data returned by the stored procedure. |
protected String |
buildSelectStatement()
Builds SELECT statement. |
static VersionForeignKey |
buildVersionKey(Object className,
Object branchId)
Builds an VersionForeignKey from raw data returned from a stored procedure. |
protected String |
buildWhereClause()
Builds WHERE clause. |
private NavigateQuery.LinkBuilder |
chooseLinkBuilder(Class linkClass)
|
protected String |
getSQLFunctionName()
Returns the name of the stored procedure to call. |
protected StatementParameter[] |
getSQLFunctionParameters()
Returns an array of parameters to pass to the stored procedure. |
protected StatementParameter |
getSQLFunctionReturnType()
Returns the type of parameter the stored procedure is expected to return. |
Methods inherited from class wt.epm.util.PLSQLQuery |
appendAnd, appendCloseParen, appendOpenParen, appendOr, appendWhere, appendWhere, appendWhere, appendWhere, appendWhere, appendWhere, buildObjectId, buildResults, buildSQLStatement, getAlias, getColumnName, getColumnName, getConditionCount, getTableClass, getTableNames, getTableNames, setIncludeDescendants, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private long[] databaseIds
private LinkProxy.Role otherSideRole
private NavigateQuery.LinkBuilder linkBuilder
Constructor Detail |
public NavigateQuery(long[] databaseIds, Class linkClass, LinkProxy.Role otherSideRole) throws WTException
Method Detail |
protected String buildSelectStatement() throws WTException
PLSQLQuery
buildSelectStatement
in class PLSQLQuery
WTException
protected String buildFromClause() throws WTException
PLSQLQuery
buildFromClause
in class PLSQLQuery
WTException
protected String buildWhereClause() throws WTException
PLSQLQuery
buildWhereClause
in class PLSQLQuery
WTException
protected Object buildResult(Object[] rawData) throws WTException
PLSQLQuery
buildResult
in class PLSQLQuery
WTException
protected String getSQLFunctionName()
PLSQLQuery
getSQLFunctionName
in class PLSQLQuery
protected StatementParameter[] getSQLFunctionParameters() throws WTException
PLSQLQuery
getSQLFunctionParameters
in class PLSQLQuery
WTException
protected StatementParameter getSQLFunctionReturnType() throws WTException
PLSQLQuery
getSQLFunctionReturnType
in class PLSQLQuery
WTException
private NavigateQuery.LinkBuilder chooseLinkBuilder(Class linkClass)
public static VersionForeignKey buildVersionKey(Object className, Object branchId) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |