|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.FixedLengthStringExpression
This class represents a fixed length string constant in a SQL statement.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static DMLGenerator |
dmlGenerator
|
private static String |
RESOURCE
|
private String |
value
|
Fields inherited from interface wt.query.RelationalExpression |
BIND_PARAMETER |
Fields inherited from interface wt.query.Expression |
FROM_COUNT |
Constructor Summary | |
FixedLengthStringExpression(Character a_value,
int a_length,
char a_fill)
Supported API: true |
|
FixedLengthStringExpression(String a_value,
int a_length,
char a_fill)
Supported API: true |
Method Summary | |
Object |
getBindParameter()
Gets the value of the attribute: bindParameter; Returns a bind parameter for this expression (if supported). |
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. |
int |
getFromCount()
Gets the value of the attribute: fromCount; Number of from index values that this expression requires Supported API: false |
int |
setFromAlias(String[] a_aliases,
int a_offset)
This method sets the FROM clause alias for this expression. |
int |
validate(TableExpression[] a_tableExpressions,
int a_offset)
This method validates this expression against the specified table expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String value
private static DMLGenerator dmlGenerator
Constructor Detail |
public FixedLengthStringExpression(String a_value, int a_length, char a_fill)
a_value
- String value.a_length
- Fixed length of the string column.a_fill
- Character to use to fill if the string size is less than a_length.public FixedLengthStringExpression(Character a_value, int a_length, char a_fill)
a_value
- Character value for the Stringa_length
- Fixed length of the string column.a_fill
- Character to use to fill if the string size is less than a_length.Method Detail |
public Object getBindParameter() throws WTException
getBindParameter
in interface RelationalExpression
WTException
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
private DMLGenerator getDMLGenerator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |