wt.pds
Class CompoundStatementBuilder

java.lang.Object
  extended bywt.pds.BasicStatementBuilder
      extended bywt.pds.BasicCompoundStatementBuilder
          extended bywt.pds.CompoundStatementBuilder
All Implemented Interfaces:
Externalizable, Serializable, StatementBuilder

public class CompoundStatementBuilder
extends BasicCompoundStatementBuilder
implements Externalizable

This class builds a select statement by appending component SQL statements with a Set Operator.

It implements the methods for accessing the Set Operator and component statements via delegation to a CompoundQuerySpec instance.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  Vector components
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  SetOperator setOperator
           
 
Fields inherited from class wt.pds.BasicCompoundStatementBuilder
DEBUG
 
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
CompoundStatementBuilder()
           
 
Method Summary
private  void componentsValidate(Vector a_Components)
           
 Vector getComponents()
          Gets the object for the association that plays role: components.
 SetOperator getSetOperator()
          Gets the object for the association that plays role: setOperator.
 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(CompoundStatementBuilder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setComponents(Vector a_Components)
          Sets the object for the association that plays role: components.
private  void setOperatorValidate(SetOperator a_SetOperator)
           
 void setSetOperator(SetOperator a_SetOperator)
          Sets the object for the association that plays role: setOperator.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.pds.BasicCompoundStatementBuilder
buildSQL, getChunkableComponents, getOrderBy, getStatementBindParameters, isIncludeNestedParantheses, isQueryChunkSupported, isUseComponentOrderBy, readVersion, setIncludeNestedParantheses, setUseComponentOrderBy
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

setOperator

private SetOperator setOperator

components

private Vector components

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

CompoundStatementBuilder

public CompoundStatementBuilder()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class BasicCompoundStatementBuilder
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class BasicCompoundStatementBuilder
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(CompoundStatementBuilder thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getSetOperator

public SetOperator getSetOperator()
Gets the object for the association that plays role: setOperator.

Supported API: false

Specified by:
getSetOperator in class BasicCompoundStatementBuilder
Returns:
SetOperator

setSetOperator

public void setSetOperator(SetOperator a_SetOperator)
                    throws WTPropertyVetoException
Sets the object for the association that plays role: setOperator.

Supported API: false

Parameters:
a_SetOperator -
Throws:
WTPropertyVetoException

setOperatorValidate

private void setOperatorValidate(SetOperator a_SetOperator)
                          throws WTPropertyVetoException
Parameters:
a_SetOperator -
Throws:
WTPropertyVetoException

getComponents

public Vector getComponents()
Gets the object for the association that plays role: components.

Supported API: false

Specified by:
getComponents in class BasicCompoundStatementBuilder
Returns:
Vector

setComponents

public void setComponents(Vector a_Components)
                   throws WTPropertyVetoException
Sets the object for the association that plays role: components.

Supported API: false

Parameters:
a_Components -
Throws:
WTPropertyVetoException

componentsValidate

private void componentsValidate(Vector a_Components)
                         throws WTPropertyVetoException
Parameters:
a_Components -
Throws:
WTPropertyVetoException