|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.ConditionsClause
This class presents the conditions which can be used in SQL statemnet
such as HAVING
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) class |
ConditionsClause.Item
|
static class |
ConditionsClause.SearchConditionInfo
|
(package private) class |
ConditionsClause.StatusInfo
|
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
classViewColumnsInitialized
|
static boolean |
DEBUG
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Vector |
items
|
private JoinIndex |
joinIndex
|
private static DebugWriter |
LOG
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private StringBuffer |
structureBuffer
|
Fields inherited from interface wt.query.SQLClause |
COUNT |
Constructor Summary | |
ConditionsClause()
|
Method Summary | |
private void |
append(char a_char)
|
protected void |
append(String a_string)
Supported API: false |
void |
append(WhereExpression a_where,
int a_whereIndex)
|
Object |
append(WhereExpression a_whereExpression,
int[] a_fromIndicies,
FromClause a_fromClause)
Appends a search condtion for the specified classes. |
Object |
append(WhereExpression a_whereExpression,
TableExpression[] a_fromTables,
String[] a_aliases,
int[] a_fromIndicies)
Supported API: false |
void |
appendAnd()
Supported API: false |
void |
appendCloseParen()
Supported API: false |
void |
appendNot()
Supported API: false |
void |
appendOpenParen()
Supported API: false |
void |
appendOr()
Supported API: false |
void |
appendSpace()
Supported API: false |
protected void |
checkOuterJoin(WhereExpression a_whereExpression,
TableExpression[] a_fromTables)
Supported API: false |
Object |
clone()
|
protected Object |
clone(ConditionsClause a_clone)
|
void |
deleteItemAt(int itemIndex)
|
void |
deleteLogicalString(int start,
int end)
|
List |
getAllSearchConditions()
|
static List |
getAllSearchConditions(List a_whereExpressions,
boolean a_negated)
|
static List |
getAllSearchConditions(WhereExpression a_whereExpression,
boolean a_negated,
List a_searchConditions)
|
protected int[] |
getClassAttributeFromIndicies(int a_fromCount,
FromClause a_fromClause,
int[] a_fromIndicies)
|
String |
getClause(FromClause a_fromClause,
boolean a_useBind,
Vector a_tableInfos,
Vector a_aliases)
String representation of the clause. |
int |
getCount()
Gets the value of the attribute: count; Number of items in the clause. |
protected int[] |
getFromIndicies(int a_index)
Supported API: false |
JoinIndex |
getJoinIndex()
Gets the value of the attribute: joinIndex. |
String |
getLogicalString(int start,
int end)
|
StringBuffer |
getStructureBuffer()
|
WhereExpression |
getWhereExpression(int a_index)
Supported API: false |
List |
getWhereExpressionFromIndicies()
|
List |
getWhereExpressions()
|
int |
getWhereIndex(int a_index)
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(ConditionsClause thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
resetWhereIndex(int itemStartIndex,
int length)
|
void |
setClassViewColumn(int a_index,
FromClause a_fromClause)
Supported API: false |
void |
setJoinIndex(JoinIndex a_JoinIndex)
Sets the value of the attribute: joinIndex. |
void |
setStructureBuffer(StringBuffer a_buffer)
|
String |
toString()
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private StringBuffer structureBuffer
private Vector items
private JoinIndex joinIndex
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final boolean DEBUG
private static final DebugWriter LOG
private transient boolean classViewColumnsInitialized
Constructor Detail |
public ConditionsClause()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ConditionsClause 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 JoinIndex getJoinIndex()
public void setJoinIndex(JoinIndex a_JoinIndex)
a_JoinIndex
- public Object append(WhereExpression a_whereExpression, int[] a_fromIndicies, FromClause a_fromClause) throws QueryException
a_whereExpression
- a_fromIndicies
- a_fromClause
-
QueryException
protected void append(String a_string)
a_string
- private void append(char a_char)
a_char
- public void setClassViewColumn(int a_index, FromClause a_fromClause) throws QueryException
a_index
- a_fromClause
-
QueryException
public String getClause(FromClause a_fromClause, boolean a_useBind, Vector a_tableInfos, Vector a_aliases) throws QueryException
getClause
in interface SQLClause
a_fromClause
- a_useBind
- Indicates if bind parameters should be used.a_tableInfos
- a_aliases
-
QueryException
public Object append(WhereExpression a_whereExpression, TableExpression[] a_fromTables, String[] a_aliases, int[] a_fromIndicies) throws QueryException
a_whereExpression
- a_fromTables
- a_aliases
- a_fromIndicies
-
QueryException
protected void checkOuterJoin(WhereExpression a_whereExpression, TableExpression[] a_fromTables)
a_whereExpression
- a_fromTables
- public WhereExpression getWhereExpression(int a_index)
a_index
-
protected int[] getFromIndicies(int a_index)
a_index
-
public void appendAnd()
public void appendOr()
public void appendNot()
public void appendCloseParen()
public void appendOpenParen()
public void appendSpace()
public int getWhereIndex(int a_index)
a_index
-
public int getCount()
getCount
in interface SQLClause
public void append(WhereExpression a_where, int a_whereIndex)
public StringBuffer getStructureBuffer()
public void setStructureBuffer(StringBuffer a_buffer)
public String getLogicalString(int start, int end)
public void deleteLogicalString(int start, int end)
public void resetWhereIndex(int itemStartIndex, int length)
public void deleteItemAt(int itemIndex)
public List getWhereExpressionFromIndicies()
public List getWhereExpressions()
public List getAllSearchConditions()
public static List getAllSearchConditions(List a_whereExpressions, boolean a_negated)
public static List getAllSearchConditions(WhereExpression a_whereExpression, boolean a_negated, List a_searchConditions)
protected int[] getClassAttributeFromIndicies(int a_fromCount, FromClause a_fromClause, int[] a_fromIndicies) throws QueryException
QueryException
public Object clone()
protected Object clone(ConditionsClause a_clone)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |