wt.query
Class WhereClause

java.lang.Object
  extended bywt.query.ConditionsClause
      extended bywt.query.WhereClause
All Implemented Interfaces:
Cloneable, Externalizable, Serializable, SQLClause

public class WhereClause
extends ConditionsClause
implements Externalizable

This class represents a WHERE SQL clause.

Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.query.ConditionsClause
ConditionsClause.Item, ConditionsClause.SearchConditionInfo, ConditionsClause.StatusInfo
 
Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
protected static long OLD_SERIAL_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class wt.query.ConditionsClause
DEBUG
 
Fields inherited from interface wt.query.SQLClause
COUNT
 
Constructor Summary
WhereClause()
           
 
Method Summary
 Object append(WhereExpression a_whereExpression, TableExpression[] a_fromTables, String[] a_aliases)
          Appends a search condtion for the specified classes.
protected  void checkOuterJoin(WhereExpression a_whereExpression, TableExpression[] a_fromTables)
          

Supported API: false
private  void checkSearchCondition(SearchCondition a_searchCondition, TableExpression[] a_fromTables)
           
 Object clone()
          Returns a deep copy of this object.
 WhereClause getJoinWhereClause(String a_alias)
          

Supported API: false
 WhereClause getJoinWhereClause(String a_alias, int a_outerNonJoinFromIndex)
          

Supported API: false
 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(WhereClause thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.query.ConditionsClause
append, append, append, append, appendAnd, appendCloseParen, appendNot, appendOpenParen, appendOr, appendSpace, clone, deleteItemAt, deleteLogicalString, getAllSearchConditions, getAllSearchConditions, getAllSearchConditions, getClassAttributeFromIndicies, getClause, getCount, getFromIndicies, getJoinIndex, getLogicalString, getStructureBuffer, getWhereExpression, getWhereExpressionFromIndicies, getWhereExpressions, getWhereIndex, readVersion, resetWhereIndex, setClassViewColumn, setJoinIndex, setStructureBuffer, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

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

OLD_SERIAL_VERSION_UID

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

WhereClause

public WhereClause()
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 ConditionsClause
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 ConditionsClause
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WhereClause 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

append

public Object append(WhereExpression a_whereExpression,
                     TableExpression[] a_fromTables,
                     String[] a_aliases)
              throws QueryException
Appends a search condtion for the specified classes. Returns a bind parameter, if appropriate.

Supported API: false

Parameters:
a_whereExpression -
a_fromTables -
a_aliases -
Returns:
Object
Throws:
QueryException

checkOuterJoin

protected void checkOuterJoin(WhereExpression a_whereExpression,
                              TableExpression[] a_fromTables)


Supported API: false

Overrides:
checkOuterJoin in class ConditionsClause
Parameters:
a_whereExpression -
a_fromTables -

getJoinWhereClause

public WhereClause getJoinWhereClause(String a_alias)
                               throws QueryException


Supported API: false

Parameters:
a_alias -
Returns:
WhereClause
Throws:
QueryException

getJoinWhereClause

public WhereClause getJoinWhereClause(String a_alias,
                                      int a_outerNonJoinFromIndex)
                               throws QueryException


Supported API: false

Parameters:
a_alias -
a_outerNonJoinFromIndex -
Returns:
WhereClause
Throws:
QueryException

clone

public Object clone()
Returns a deep copy of this object.

Overrides:
clone in class ConditionsClause
Returns:
Object

checkSearchCondition

private void checkSearchCondition(SearchCondition a_searchCondition,
                                  TableExpression[] a_fromTables)