public class ValueNull extends Value
Value.ValueBlob, Value.ValueClob| Modifier and Type | Field and Description |
|---|---|
static ValueNull |
DELETED
This special instance is used as a marker for deleted entries in a map.
|
static ValueNull |
INSTANCE
The main NULL instance.
|
ARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, ENUM, FLOAT, GEOMETRY, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TIMESTAMP_TZ, TYPE_COUNT, UNKNOWN, UUID| Modifier and Type | Method and Description |
|---|---|
protected int |
compareSecure(Value v,
CompareMode mode)
Compare the value with another value of the same type.
|
Value |
convertTo(int type)
Compare a value to the specified type.
|
boolean |
equals(java.lang.Object other)
Check if the two values have the same hash code.
|
java.math.BigDecimal |
getBigDecimal() |
java.lang.Boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getBytes() |
java.sql.Date |
getDate() |
int |
getDisplaySize()
Get the display size in characters.
|
double |
getDouble() |
float |
getFloat() |
java.io.InputStream |
getInputStream() |
int |
getInt() |
long |
getLong() |
java.lang.Object |
getObject()
Get the value as an object.
|
long |
getPrecision()
Get the precision.
|
java.io.Reader |
getReader() |
short |
getShort() |
java.lang.String |
getSQL()
Get the SQL expression for this value.
|
java.lang.String |
getString()
Get the value as a string.
|
java.sql.Time |
getTime() |
java.sql.Timestamp |
getTimestamp() |
int |
getType()
Get the value type.
|
int |
hashCode() |
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement.
|
add, checkPrecision, clearCache, compareTo, compareTypeSafe, convertPrecision, convertScale, copy, copyToResult, copyToTemp, divide, getBytesNoCopy, getDataHandler, getHigherOrder, getMemory, getResultSet, getScale, getSignum, getSmall, getTableId, getTraceSQL, isLinkedToTable, modulus, multiply, negate, remove, subtract, throwUnsupportedExceptionForType, toStringpublic static final ValueNull INSTANCE
public static final ValueNull DELETED
public java.lang.String getSQL()
Valuepublic int getType()
Valuepublic java.lang.String getString()
Valuepublic java.lang.Boolean getBoolean()
getBoolean in class Valuepublic java.sql.Timestamp getTimestamp()
getTimestamp in class Valuepublic java.math.BigDecimal getBigDecimal()
getBigDecimal in class Valuepublic java.io.InputStream getInputStream()
getInputStream in class Valuepublic Value convertTo(int type)
Valueprotected int compareSecure(Value v, CompareMode mode)
ValuecompareSecure in class Valuev - the other valuemode - the compare modepublic long getPrecision()
ValuegetPrecision in class Valuepublic java.lang.Object getObject()
Valuepublic void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Valuepublic int getDisplaySize()
ValuegetDisplaySize in class Valuepublic boolean equals(java.lang.Object other)
Value