|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.Literal
public class Literal
A literal value, for example a string, a number or an
object.
| Constructor Summary | |
|---|---|
Literal(java.lang.Object value)
Create a new literal. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests whether this literal is equal to another object. |
java.lang.String |
getSqlValue(EvalContext eval)
Returns the SQL representation for this term. |
java.lang.Object |
getValue()
Returns the value of this literal. |
int |
hashCode()
|
boolean |
isConstant()
Tests whether the expression can be evaluated without an object. |
boolean |
isJoin()
Tests whether this expression enforces any kind of join. |
boolean |
isSelection()
Tests whether this expression is a selection. |
static java.lang.String |
quoteString(java.lang.String s)
Quotes the string by doubling any '. |
java.lang.String |
toString()
Returns a textual representation for this literal. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Literal(java.lang.Object value)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objecttrue if the other object is an existing literal with
equal value.public final java.lang.Object getValue()
public java.lang.String getSqlValue(EvalContext eval)
getSqlValue in interface Termeval - An unused evaluation context.toString()public int hashCode()
hashCode in class java.lang.Objectpublic final boolean isConstant()
Term
isConstant in interface Termpublic final boolean isJoin()
Term
isJoin in interface Termpublic final boolean isSelection()
TermWith selection is an expression meant that binds a Member to
one Literal.
isSelection in interface Termpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String quoteString(java.lang.String s)
'.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||