ValueString
Implementation of the VARCHAR data type.
It is also the base class for other ValueString* classes.
| Methods |
| static Value |
get(String s)
Get or create a string value for the given string.
|
| static Value |
get(String s)
Get or create a string value for the given string.
Parameters:
s - the string
Returns:
the value
|
| static Value |
get(String s, boolean treatEmptyStringsAsNull)
Get or create a string value for the given string.
|
| static Value |
get(String s, boolean treatEmptyStringsAsNull)
Get or create a string value for the given string.
Parameters:
s - the string
treatEmptyStringsAsNull - whether or not to treat empty strings as
NULL
Returns:
the value
|
| int |
compareSecure(Value o, CompareMode mode)
|
| int |
compareSecure(Value o, CompareMode mode)
|
| Value |
convertPrecision(long precision, boolean force)
|
| Value |
convertPrecision(long precision, boolean force)
|
| boolean |
equals(Object other)
|
| boolean |
equals(Object other)
|
| int |
getDisplaySize()
|
| int |
getDisplaySize()
|
| int |
getMemory()
|
| int |
getMemory()
|
| Value |
getNew(String s)
Create a new String value of the current class.
|
| Value |
getNew(String s)
Create a new String value of the current class.
This method is meant to be overridden by subclasses.
Parameters:
s - the string
Returns:
the value
|
| Object |
getObject()
|
| Object |
getObject()
|
| long |
getPrecision()
|
| long |
getPrecision()
|
| String |
getSQL()
|
| String |
getSQL()
|
| String |
getString()
|
| String |
getString()
|
| int |
getType()
|
| int |
getType()
|
| int |
hashCode()
|
| int |
hashCode()
|
| void |
set(PreparedStatement prep, int parameterIndex)
|
| void |
set(PreparedStatement prep, int parameterIndex) throws SQLException
|
| Fields |
| static String |
value
|
value
The string data.
|