|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.info.sqlutil.parsql.Constant
Constant: a representation of SQL constants
Field Summary | |
static int |
COLUMNNAME
Type column name |
static int |
NULL
Type null. |
static int |
NUMBER
Type number. |
static int |
STRING
Type string. |
static int |
UNKNOWN
Type unknown. |
Constructor Summary | |
Constant(java.lang.String value,
int type)
Create a new constant, given its name and type. |
Method Summary | |
static java.lang.String |
escapeBackslash(java.lang.String str)
Replaces single backslashes with doubles in the given string. |
static java.lang.String |
escapeQuotes(java.lang.String str,
char quoteChar)
Escapes occurrences of 'quoteChar' by repeating the character. |
int |
getType()
Returns the constant type. |
java.lang.String |
getTypeName()
Gets the name of the type of this Constant. |
java.lang.String |
getValue()
Returns the constant value. |
java.lang.String |
toString()
Return String representation of Constant in a form which SQL can use. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
public static final int COLUMNNAME
public static final int NULL
public static final int NUMBER
public static final int STRING
Constructor Detail |
public Constant(java.lang.String value, int type)
value
- Constant's valuetype
- Constant's typeMethod Detail |
public int getType()
public java.lang.String getValue()
public static java.lang.String escapeQuotes(java.lang.String str, char quoteChar)
str
- String to process.quoteChar
- Quote character to escape.
public static java.lang.String escapeBackslash(java.lang.String str)
str
- String to escape.
public java.lang.String toString()
public java.lang.String getTypeName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |