|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.sql.SqlNode | +--net.sf.saffron.sql.SqlLiteral
A SqlLiteral
is a constant. It is, appropriately, immutable.
Nested Class Summary |
Nested classes inherited from class net.sf.saffron.sql.SqlNode |
SqlNode.DatabaseMetaDataInvocationHandler |
Field Summary | |
static SqlLiteral |
False
Constant for Boolean.FALSE . |
static SqlLiteral |
Null
Constant for the SQL NULL value. |
static SqlLiteral |
One
Constant for the Integer value 1. |
static SqlLiteral |
True
Constant for Boolean.TRUE . |
Object |
value
|
static SqlLiteral |
Zero
Constant for the Integer value 0. |
Constructor Summary | |
private |
SqlLiteral()
Creates the SqlLiteral representing the NULL
value. |
|
SqlLiteral(Object value)
Creates a SqlLiteral . |
Method Summary | |
static boolean |
booleanValue(SqlNode node)
|
Object |
clone()
|
static SqlLiteral |
create(boolean b)
Creates a boolean literal. |
static SqlLiteral |
create(Date date)
|
static SqlLiteral |
create(int i)
|
static SqlLiteral |
create(Object o)
|
static SqlLiteral |
create(Time time)
|
static SqlLiteral |
create(Timestamp timestamp)
|
boolean |
equals(Object obj)
|
private static boolean |
equals(Object o1,
Object o2)
|
SqlKind |
getKind()
Returns the type of node this is, or SqlKind.Other if it's
nothing special. |
Object |
getValue()
Returns the value of this literal. |
int |
hashCode()
|
static int |
intValue(SqlNode node)
|
void |
unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
Writes a SQL representation of this node to a writer. |
Methods inherited from class net.sf.saffron.sql.SqlNode |
cloneArray, isA, toString, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final SqlLiteral Null
NULL
value.
public static final SqlLiteral True
Boolean.TRUE
.
public static final SqlLiteral False
Boolean.FALSE
.
public static final SqlLiteral Zero
Integer
value 0.
public static final SqlLiteral One
Integer
value 1.
public final Object value
Constructor Detail |
public SqlLiteral(Object value)
SqlLiteral
.
private SqlLiteral()
SqlLiteral
representing the NULL
value.
Method Detail |
public SqlKind getKind()
SqlNode
SqlKind.Other
if it's
nothing special.
getKind
in class SqlNode
SqlKind
value, never nullpublic Object getValue()
public static boolean booleanValue(SqlNode node)
public static SqlLiteral create(boolean b)
public static SqlLiteral create(int i)
public static SqlLiteral create(Date date)
public static SqlLiteral create(Time time)
public static SqlLiteral create(Timestamp timestamp)
public static SqlLiteral create(Object o)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static int intValue(SqlNode node)
public Object clone()
clone
in class SqlNode
public void unparse(SqlWriter writer, int leftPrec, int rightPrec)
SqlNode
unparse
in class SqlNode
private static boolean equals(Object o1, Object o2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |