org.axiondb
Class Literal
java.lang.Object
org.axiondb.BaseSelectable
org.axiondb.Literal
- All Implemented Interfaces:
- Serializable, Selectable
- Direct Known Subclasses:
- BindVariable
public class Literal
- extends BaseSelectable
- implements Selectable
A typed
literal value.
- Version:
- $Revision: 1.16 $ $Date: 2005/12/20 18:32:40 $
- See Also:
- Serialized Form
_value
protected Object _value
Literal
public Literal(Object value)
Literal
public Literal(Object value,
DataType type)
Literal
protected Literal(DataType type)
equals
public boolean equals(Object otherobject)
- Returns
true
iff otherobject is a Literal
whose name
are equal to mine.
- Overrides:
equals
in class Object
evaluate
public Object evaluate()
throws AxionException
- Throws:
AxionException
evaluate
public final 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
/
hashCode
contract.
- Overrides:
hashCode
in class Object
setDataType
public void setDataType(DataType type)
getLabel
public String getLabel()
- Returns my Literal name.
- Specified by:
getLabel
in interface Selectable
- Overrides:
getLabel
in class BaseSelectable
getName
public String getName()
- Returns the name of Literal, if any.
- Specified by:
getName
in interface Selectable
- Overrides:
getName
in class BaseSelectable
toString
public String toString()
- Returns a
String
representation of me, suitable for debugging
output.
- Overrides:
toString
in class Object