org.axiondb
Class Literal
java.lang.Object
org.axiondb.BaseSelectable
org.axiondb.Literal
- All Implemented Interfaces:
- java.io.Serializable, Selectable
- Direct Known Subclasses:
- BindVariable
public class Literal
- extends BaseSelectable
- implements Selectable
A typedliteral value.
- Version:
- $Revision: 1.16 $ $Date: 2005/12/20 18:32:40 $
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_value
|
|
Method Summary |
boolean |
equals(java.lang.Object otherobject)
Returns true iff otherobject is a Literalwhose name
are equal to mine. |
java.lang.Object |
evaluate()
|
java.lang.Object |
evaluate(RowDecorator row)
|
DataType |
getDataType()
|
java.lang.String |
getLabel()
Returns my Literal name. |
java.lang.String |
getName()
Returns the name of Literal, if any. |
int |
hashCode()
Returns a hash code in keeping with the standard equals/
hashCodecontract. |
void |
setDataType(DataType type)
|
java.lang.String |
toString()
Returns a String representation of me, suitable for debugging
output. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_value
protected java.lang.Object _value
Literal
public Literal(java.lang.Object value)
Literal
public Literal(java.lang.Object value,
DataType type)
Literal
protected Literal(DataType type)
equals
public boolean equals(java.lang.Object otherobject)
- Returns
true iff otherobject is a Literalwhose name
are equal to mine.
- Overrides:
equals in class java.lang.Object
evaluate
public java.lang.Object evaluate()
throws AxionException
- Throws:
AxionException
evaluate
public final java.lang.Object evaluate(RowDecorator row)
throws AxionException
- Specified by:
evaluate in interface Selectable
- Parameters:
row - is ignored and may be null.
- Throws:
AxionException- See Also:
evaluate()
getDataType
public DataType getDataType()
- Specified by:
getDataType in interface Selectable
hashCode
public int hashCode()
- Returns a hash code in keeping with the standard
equals/
hashCodecontract.
- Overrides:
hashCode in class java.lang.Object
setDataType
public void setDataType(DataType type)
getLabel
public java.lang.String getLabel()
- Returns my Literal name.
- Specified by:
getLabel in interface Selectable- Overrides:
getLabel in class BaseSelectable
getName
public java.lang.String getName()
- Returns the name of Literal, if any.
- Specified by:
getName in interface Selectable- Overrides:
getName in class BaseSelectable
toString
public java.lang.String toString()
- Returns a
String representation of me, suitable for debugging
output.
- Overrides:
toString in class java.lang.Object