|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.BasicStatementBuilder
wt.pds.SelectStatementBuilder
wt.pds.QuerySpecStatementBuilder
Supported API: false
Extendable: false
Field Summary | |
private Vector |
allAccessConditionBindParameters
|
private Vector |
allConditionBindParameters
|
private Vector |
allSingleBindParameters
|
private Vector |
allTableBindParameters
|
private static String |
CLASSNAME
|
private Vector |
conditions
|
static boolean |
DEBUG
|
static long |
EXTERNALIZATION_VERSION_UID
|
private boolean |
forUpdateSet
|
private JoinClause |
joinClause
|
private static DebugWriter |
LOG
|
protected static long |
OLD_FORMAT_VERSION_UID
|
protected static long |
OLD_SERIAL_VERSION_UID
|
private QuerySpec |
querySpec
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private Vector |
singleBindParameters
|
Fields inherited from class wt.pds.SelectStatementBuilder |
chunkCount, LARGE_IN_LIST_WARNING |
Fields inherited from class wt.pds.BasicStatementBuilder |
DMLGENERATOR |
Fields inherited from interface wt.pds.StatementBuilder |
CHUNKING_ENABLED, FETCH_SIZE, SQL_STATEMENTS, STATEMENT_COUNT |
Constructor Summary | |
QuerySpecStatementBuilder()
|
Method Summary | |
void |
appendCondition(WhereCondition a_condition)
Appends the specified WhereCondition to the query. |
void |
appendJoin(JoinCondition a_joinCondition)
Deprecated. as of R7.0, use appendCondition(WhereCondition) |
String |
buildEmptyAggregateSQL()
Supported API: false |
void |
buildJoinIndexSet()
Supported API: false |
String |
buildSQLStatement(Vector a_tables,
Vector a_aliases,
ResultBuilder a_resultBuilder,
boolean a_distinct,
WhereClause a_whereClause,
String a_orderByClause,
GroupByClause a_groupByClause,
ConditionsClause a_havingClause,
int a_sqlIndex,
boolean a_forUpdate)
This method builds a SQL statement. |
Object |
clone()
|
(package private) static List |
filterArrayChunkProcessors(List a_list,
int a_arraySizeThreshold,
List a_filtered)
This method processes a List of ArrayChunkProcessor instances to return all instances greater than the array size threshold. |
protected List |
getArrayChunkProcessors(int a_arraySizeThreshold)
This method returns a List of ArrayChunkProcessor instances for this query. |
FromClause |
getFromClause()
Gets the object for the association that plays role: fromClause. |
GroupByClause |
getGroupByClause()
Gets the value of the attribute: groupByClause. |
ConditionsClause |
getHavingClause()
Gets the value of the attribute: havingClause. |
JoinClause |
getJoinClause()
Gets the object for the association that plays role: joinClause. |
Set |
getJoinFromIndicies(int a_fromIndex)
|
String |
getJoinString()
|
WhereClause |
getJoinWhereClause(WhereClause a_whereClause,
Set a_joinIndexSet)
Supported API: false |
OrderByClause |
getOrderByClause()
Gets the value of the attribute: orderByClause. |
QuerySpec |
getQuerySpec()
Gets the object for the association that plays role: querySpec. |
Vector |
getSingleBindParameters()
Gets the value of the attribute: singleBindParameters; Bind parameters for a single statement (excluding join bind parameters) Supported API: false |
Vector |
getStatementBindParameters(int a_sqlIndex)
Returns a Vector of bind parameters for the specified statement. |
StatementFilter |
getStatementFilter(Vector[] a_fromArray)
StatementBuilder used to generate SQL for the depth threshold query. |
private int[] |
getTableOrder(Vector a_tables,
int[] a_joinOrder)
|
Vector[] |
getTables()
This method returns an array of Vectors. |
Vector[] |
getTables(FromClause a_fromClause,
int offset,
int length)
|
WhereClause |
getWhereClause()
Gets the value of the attribute: whereClause. |
boolean |
isAggregateSelect()
Supported API: false |
boolean |
isDistinct()
Gets the value of the attribute: distinct. |
boolean |
isForUpdateSet()
Gets the value of the attribute: forUpdateSet. |
boolean |
isQuerySpecSetLock()
Supported API: false |
boolean |
isUseBind()
Gets the value of the attribute: useBind. |
List |
preBuildSQL()
This method is used to process join search conditions, construct bind parameters for the Where, and set class view attributes. |
private boolean |
processJoinSet(JoinIndex joinIndex,
Set joinIndiciesSet,
Set joinIndexSet)
|
private void |
querySpecValidate(QuerySpec a_QuerySpec)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(QuerySpecStatementBuilder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
resetBindParameterVectors()
|
void |
setForUpdateSet(boolean a_ForUpdateSet)
Sets the value of the attribute: forUpdateSet. |
void |
setJoinClause(JoinClause a_JoinClause)
Sets the object for the association that plays role: joinClause. |
void |
setQuerySpec(QuerySpec a_QuerySpec)
Sets the object for the association that plays role: querySpec. |
protected void |
setSingleBindParameters(Vector a_SingleBindParameters)
Sets the value of the attribute: singleBindParameters; Bind parameters for a single statement (excluding join bind parameters) Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.pds.SelectStatementBuilder |
buildSQL, clone, getChunkProcessorCount, getChunkProcessorCount, getDepthThreshold, getTotalCount, isQueryChunkingRequired, isQueryChunkingRequired, isQueryChunkingSupported, isUnionStatement, readVersion, setDepthThreshold |
Methods inherited from class wt.pds.BasicStatementBuilder |
appendBindParameter, buildSQL, clone, getFetchSize, getSqlStatements, getStatement, getStatementCount, insertBindParameterAt, isChunkingEnabled, readVersion, setChunkingEnabled, setFetchSize, setSqlStatements |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Vector conditions
private Vector singleBindParameters
private transient boolean forUpdateSet
private QuerySpec querySpec
private JoinClause joinClause
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final long OLD_SERIAL_VERSION_UID
public static final boolean DEBUG
private static final DebugWriter LOG
private transient Vector allAccessConditionBindParameters
private transient Vector allConditionBindParameters
private transient Vector allTableBindParameters
private transient Vector allSingleBindParameters
Constructor Detail |
public QuerySpecStatementBuilder()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SelectStatementBuilder
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SelectStatementBuilder
input
-
IOException
ClassNotFoundException
protected boolean readVersion(QuerySpecStatementBuilder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Vector getSingleBindParameters()
protected void setSingleBindParameters(Vector a_SingleBindParameters) throws WTPropertyVetoException
a_SingleBindParameters
-
WTPropertyVetoException
public boolean isForUpdateSet()
isForUpdateSet
in class SelectStatementBuilder
public void setForUpdateSet(boolean a_ForUpdateSet) throws WTPropertyVetoException
setForUpdateSet
in class SelectStatementBuilder
a_ForUpdateSet
-
WTPropertyVetoException
public QuerySpec getQuerySpec()
public void setQuerySpec(QuerySpec a_QuerySpec) throws WTPropertyVetoException
a_QuerySpec
-
WTPropertyVetoException
private void querySpecValidate(QuerySpec a_QuerySpec) throws WTPropertyVetoException
a_QuerySpec
-
WTPropertyVetoException
public JoinClause getJoinClause()
public void setJoinClause(JoinClause a_JoinClause) throws WTPropertyVetoException
a_JoinClause
-
WTPropertyVetoException
public Vector getStatementBindParameters(int a_sqlIndex) throws PersistenceException
getStatementBindParameters
in interface StatementBuilder
getStatementBindParameters
in class BasicStatementBuilder
a_sqlIndex
-
PersistenceException
public void appendJoin(JoinCondition a_joinCondition)
a_joinCondition
- public void appendCondition(WhereCondition a_condition) throws WTException
a_condition
- Condition to append to the query.
WTException
public WhereClause getJoinWhereClause(WhereClause a_whereClause, Set a_joinIndexSet)
a_whereClause
- a_joinIndexSet
-
public void buildJoinIndexSet()
public boolean isDistinct()
isDistinct
in class SelectStatementBuilder
public WhereClause getWhereClause()
getWhereClause
in class SelectStatementBuilder
public OrderByClause getOrderByClause() throws WTException
getOrderByClause
in class SelectStatementBuilder
WTException
public GroupByClause getGroupByClause() throws WTException
getGroupByClause
in class SelectStatementBuilder
WTException
public boolean isUseBind()
isUseBind
in class SelectStatementBuilder
public ConditionsClause getHavingClause() throws WTException
getHavingClause
in class SelectStatementBuilder
WTException
public Vector[] getTables() throws PersistenceException
getTables
in class SelectStatementBuilder
PersistenceException
public String buildSQLStatement(Vector a_tables, Vector a_aliases, ResultBuilder a_resultBuilder, boolean a_distinct, WhereClause a_whereClause, String a_orderByClause, GroupByClause a_groupByClause, ConditionsClause a_havingClause, int a_sqlIndex, boolean a_forUpdate) throws PersistenceException
buildSQLStatement
in class SelectStatementBuilder
a_tables
- The TableExpressions for this statement.a_aliases
- The aliases corresponding to the TableExpressions for this statement.a_resultBuilder
- Result builder instance to use for constructing the statement.a_distinct
- a_whereClause
- a_orderByClause
- a_groupByClause
- a_havingClause
- a_sqlIndex
- SQL index of this statement.a_forUpdate
-
PersistenceException
public StatementFilter getStatementFilter(Vector[] a_fromArray) throws PersistenceException
getStatementFilter
in class SelectStatementBuilder
a_fromArray
- Array of Vectors containing FromExpression instances
PersistenceException
public String buildEmptyAggregateSQL() throws PersistenceException
buildEmptyAggregateSQL
in class SelectStatementBuilder
PersistenceException
public boolean isAggregateSelect()
isAggregateSelect
in class SelectStatementBuilder
public boolean isQuerySpecSetLock()
isQuerySpecSetLock
in class SelectStatementBuilder
public List preBuildSQL() throws PersistenceException
preBuildSQL
in class SelectStatementBuilder
PersistenceException
public FromClause getFromClause()
getFromClause
in class SelectStatementBuilder
public Set getJoinFromIndicies(int a_fromIndex)
public String getJoinString()
public Object clone()
public Vector[] getTables(FromClause a_fromClause, int offset, int length) throws PersistenceException
PersistenceException
protected List getArrayChunkProcessors(int a_arraySizeThreshold) throws WTException
getArrayChunkProcessors
in class SelectStatementBuilder
WTException
static List filterArrayChunkProcessors(List a_list, int a_arraySizeThreshold, List a_filtered) throws WTException
WTException
private int[] getTableOrder(Vector a_tables, int[] a_joinOrder)
private boolean processJoinSet(JoinIndex joinIndex, Set joinIndiciesSet, Set joinIndexSet)
protected void resetBindParameterVectors()
resetBindParameterVectors
in class SelectStatementBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |