| java.lang.Object com.flexive.sqlParser.Value
All known Subclasses: com.flexive.sqlParser.Property, com.flexive.sqlParser.Constant,
Value | public class Value (Code) | | author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
protected | Value(Object sValue) Constructor. |
Value | protected Value(Object sValue)(Code) | | Constructor.
Parameters: sValue - the value |
addFunction | public Value addFunction(String functionName)(Code) | | Adds a function to the value info.
Parameters: functionName - the name of the function the value info itself |
equals | public boolean equals(Object obj)(Code) | | Compares to value objects.
Parameters: obj - the object true if the objects are equal |
getFunctions | public String[] getFunctions()(Code) | | Returns all functions that wrapp the value in the correct order.
all functions that wrapp the value. |
getFunctionsEnd | public String getFunctionsEnd()(Code) | | Returns the functions end, eg "))".
the functions start |
getFunctionsStart | public String getFunctionsStart()(Code) | | Returns the functions start, eg "upper(max(".
the functions start |
getValue | public Object getValue()(Code) | | Returns the value.
the value |
hasFunction | public boolean hasFunction()(Code) | | Returns true if the vlaue is wrapped by at least one function.
true if the vlaue is wrapped by at least one function. |
isNull | public boolean isNull()(Code) | | Returns true if this is a NULL value.
true if this is a NULL value |
toString | public String toString()(Code) | | Returns a string representation of the object.
a string representation of the object |
|
|