| |
|
| java.lang.Object org.mandarax.jdbc.server.sql.SQLObject org.mandarax.jdbc.server.sql.ColumnTerm org.mandarax.jdbc.server.sql.Value
Value | public class Value extends ColumnTerm (Code) | | Represents a constant term, e.g. 'Smith', 3, etc.
author: Jens Dietrich version: 3.3.2 <29 December 2004> since: 3.0 |
Constructor Summary | |
public | Value(String stringValue) Constructor. | public | Value(String stringValue, int type) Constructor. |
Value | public Value(String stringValue)(Code) | | Constructor.
Parameters: stringValue - the value as string |
Value | public Value(String stringValue, int type)(Code) | | Constructor.
Parameters: stringValue - the value as string Parameters: type - the type |
getConvertedValue | public Object getConvertedValue()(Code) | | Get the value as an instance of the class representing the actual type.
Wrapper classes are used for primitive types.
the converted value. |
getStringValue | public java.lang.String getStringValue()(Code) | | Getter for property stringValue.
Value of property stringValue. |
getType | public int getType()(Code) | | int |
prepare | public void prepare(java.util.List variables)(Code) | | Gather the host variables.
Parameters: variables - the list used to collect the variables |
print | public void print(StringBuffer out)(Code) | | Print the object on a buffer in order to display the parsed SQL.
Parameters: out - a string bufer to print on |
sameAs | public boolean sameAs(Object obj)(Code) | | Compares objects.
Parameters: obj - another object. a boolean |
setStringValue | public void setStringValue(java.lang.String stringValue)(Code) | | Setter for property stringValue.
Parameters: stringValue - New value of property stringValue. |
setType | public void setType(int type)(Code) | | Sets the type.
Parameters: type - The type to set |
|
|
|