|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.ArrayExpression
This class represents an array of constants in a SQL IN clause.
Supported API: true
Extendable: false
Field Summary | |
private Object[] |
array
|
private boolean |
bindOptimizationEnabled
|
private int |
chunkSize
|
private static String |
CLASSNAME
|
private static String |
DATE_TABLE_TYPE
|
private static DMLGenerator |
dmlGenerator
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static StatementParameterFactory |
FACTORY
|
private boolean |
includeQuote
|
private int |
length
|
private static String |
NUMBER_TABLE_TYPE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private String |
oracleType
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String |
VARCHAR2_TABLE_TYPE
|
Fields inherited from interface wt.query.RelationalExpression |
BIND_PARAMETER |
Fields inherited from interface wt.query.Expression |
FROM_COUNT |
Fields inherited from interface wt.pds.ArrayChunkProcessor |
CHUNK_COUNT, CHUNK_SIZE, SIZE |
Constructor Summary | |
|
ArrayExpression()
Supported API: false |
|
ArrayExpression(long[] a_value)
Supported API: true |
|
ArrayExpression(long[] a_value,
int a_length)
Supported API: true |
|
ArrayExpression(Object[] a_value)
Supported API: true |
|
ArrayExpression(Object[] a_value,
int a_length)
Supported API: true |
private |
ArrayExpression(Object[] a_value,
int a_offset,
int a_length,
boolean a_includeQuote,
String a_oracleType)
|
|
ArrayExpression(Object[] a_value,
int a_length,
String a_javaTypeName)
|
|
ArrayExpression(Object[] a_value,
String a_javaTypeName)
|
|
ArrayExpression(String[] a_value)
Supported API: true |
|
ArrayExpression(String[] a_value,
int a_length)
Supported API: true |
Method Summary | |
Object |
getBindParameter()
Gets the value of the attribute: bindParameter; Returns a bind parameter for this expression (if supported). |
List |
getChunkBindParameters(int a_sqlIndex)
This method returns a list of values to be used as bind parameters for an individual chunk. |
int |
getChunkCount()
Gets the value of the attribute: chunkCount; Number of chunks for this array. |
static int |
getChunkCount(int a_size,
int a_chunkSize)
|
int |
getChunkSize()
Gets the value of the attribute: chunkSize; Size of each individual chunk for this array. |
List |
getClassAttributes()
Supported API: false |
private DMLGenerator |
getDMLGenerator()
|
String |
getExpression(boolean a_useBind,
Vector a_tableInfos,
Vector a_aliases,
boolean a_outerJoin)
Return string representation of this expression. |
private int |
getFixedLength()
|
int |
getFromCount()
Gets the value of the attribute: fromCount; Number of from index values that this expression requires Supported API: false |
private static int |
getMinNaturalLength(int l1,
int l2)
|
int |
getSize()
Gets the value of the attribute: size; Size of the array to be chunked. |
private int |
getStartIndex(int a_sqlIndex)
|
private boolean |
isBindEnabled()
|
boolean |
isBindOptimizationEnabled()
Gets the value of the attribute: bindOptimizationEnabled; Indicates if bind optimization is enabled. |
(package private) boolean |
isSplitRequired(boolean a_useBind)
|
static ArrayExpression |
newArrayExpression(String inList,
String delimiter,
boolean is_string)
|
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(ArrayExpression thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setBindOptimizationEnabled(boolean a_BindOptimizationEnabled)
Sets the value of the attribute: bindOptimizationEnabled; Indicates if bind optimization is enabled. |
void |
setChunkSize(int a_ChunkSize)
Sets the value of the attribute: chunkSize; Size of each individual chunk for this array. |
int |
setFromAlias(String[] a_aliases,
int a_offset)
This method sets the FROM clause alias for this expression. |
(package private) ArrayExpression[] |
split(boolean a_useBind)
|
String |
toString()
|
int |
validate(TableExpression[] a_tableExpressions,
int a_offset)
This method validates this expression against the specified table expression. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private int length
private Object[] array
private boolean includeQuote
private String oracleType
private boolean bindOptimizationEnabled
private int chunkSize
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final StatementParameterFactory FACTORY
private static final String VARCHAR2_TABLE_TYPE
private static final String NUMBER_TABLE_TYPE
private static final String DATE_TABLE_TYPE
private static DMLGenerator dmlGenerator
Constructor Detail |
public ArrayExpression()
public ArrayExpression(long[] a_value)
a_value
- Array of constant long values.public ArrayExpression(String[] a_value)
a_value
- Array of constant String values.public ArrayExpression(long[] a_value, int a_length)
a_value
- Array of constant long values.a_length
- Number of valid values in the a_value array.public ArrayExpression(String[] a_value, int a_length)
a_value
- Array of constant String values.a_length
- Number of valid values in the a_value array.public ArrayExpression(Object[] a_value)
a_value
- Array of constant values.public ArrayExpression(Object[] a_value, int a_length)
a_value
- Array of constant values.a_length
- Number of valid values in the a_value array.public ArrayExpression(Object[] a_value, String a_javaTypeName) throws WTException
public ArrayExpression(Object[] a_value, int a_length, String a_javaTypeName) throws WTException
private ArrayExpression(Object[] a_value, int a_offset, int a_length, boolean a_includeQuote, String a_oracleType)
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(ArrayExpression 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 Object getBindParameter() throws WTException
getBindParameter
in interface RelationalExpression
WTException
public boolean isBindOptimizationEnabled()
public void setBindOptimizationEnabled(boolean a_BindOptimizationEnabled) throws WTPropertyVetoException
a_BindOptimizationEnabled
-
WTPropertyVetoException
public String getExpression(boolean a_useBind, Vector a_tableInfos, Vector a_aliases, boolean a_outerJoin) throws QueryException
getExpression
in interface RelationalExpression
a_useBind
- Indicates that bind variables should be used for this expression.a_tableInfos
- a_aliases
- a_outerJoin
- Indicates that outer join syntax should be used for this expression.
QueryException
public List getClassAttributes()
getClassAttributes
in interface RelationalExpression
public int getFromCount()
getFromCount
in interface Expression
public int validate(TableExpression[] a_tableExpressions, int a_offset) throws QueryException
validate
in interface Expression
a_tableExpressions
- Table expression to validate against.a_offset
- Offset index into the TableExpression array for the next valid TableExpression
QueryException
public int setFromAlias(String[] a_aliases, int a_offset)
setFromAlias
in interface Expression
a_aliases
- Array of aliases for expressionsa_offset
- Offset index into the alias array for the next valid alias
public int getSize()
getSize
in interface ArrayChunkProcessor
public int getChunkCount()
getChunkCount
in interface ArrayChunkProcessor
public int getChunkSize()
getChunkSize
in interface ArrayChunkProcessor
public void setChunkSize(int a_ChunkSize) throws WTPropertyVetoException
setChunkSize
in interface ArrayChunkProcessor
a_ChunkSize
-
WTPropertyVetoException
public List getChunkBindParameters(int a_sqlIndex) throws WTException
getChunkBindParameters
in interface ArrayChunkProcessor
a_sqlIndex
- Index of the SQL statement for this chunk.
WTException
public static int getChunkCount(int a_size, int a_chunkSize)
public String toString()
private static int getMinNaturalLength(int l1, int l2)
private boolean isBindEnabled()
boolean isSplitRequired(boolean a_useBind)
ArrayExpression[] split(boolean a_useBind)
private int getFixedLength()
private int getStartIndex(int a_sqlIndex)
public static ArrayExpression newArrayExpression(String inList, String delimiter, boolean is_string)
private DMLGenerator getDMLGenerator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |