|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.value.Value
org.h2.value.ValueNull
public class ValueNull
Implementation of NULL. NULL is not a regular data type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.h2.value.Value |
|---|
Value.ValueBlob, Value.ValueClob |
| Field Summary | |
|---|---|
static ValueNull |
DELETED
This special instance is used as a marker for deleted entries in a map. |
static ValueNull |
INSTANCE
The main NULL instance. |
| Fields inherited from class org.h2.value.Value |
|---|
ARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TYPE_COUNT, UNKNOWN, UUID |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.h2.value.Value |
|---|
add, checkPrecision, clearCache, close, compareTo, compareTypeSave, convertPrecision, convertScale, copyToTemp, divide, getBytesNoCopy, getHigherOrder, getMemory, getResultSet, getScale, getSignum, getSmall, getTableId, getTraceSQL, isLinked, link, modulus, multiply, negate, subtract, throwUnsupportedExceptionForType, toString, unlink |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ValueNull INSTANCE
public static final ValueNull DELETED
| Method Detail |
|---|
public java.lang.String getSQL()
Value
getSQL in class Valuepublic int getType()
Value
getType in class Valuepublic java.lang.String getString()
Value
getString in class Valuepublic java.lang.Boolean getBoolean()
getBoolean in class Valuepublic java.sql.Date getDate()
getDate in class Valuepublic java.sql.Time getTime()
getTime in class Valuepublic java.sql.Timestamp getTimestamp()
getTimestamp in class Valuepublic byte[] getBytes()
getBytes in class Valuepublic byte getByte()
getByte in class Valuepublic short getShort()
getShort in class Valuepublic java.math.BigDecimal getBigDecimal()
getBigDecimal in class Valuepublic double getDouble()
getDouble in class Valuepublic float getFloat()
getFloat in class Valuepublic int getInt()
getInt in class Valuepublic long getLong()
getLong in class Valuepublic java.io.InputStream getInputStream()
getInputStream in class Valuepublic java.io.Reader getReader()
getReader in class Valuepublic Value convertTo(int type)
Value
convertTo in class Valuetype - the type of the returned value
protected int compareSecure(Value v,
CompareMode mode)
Value
compareSecure in class Valuev - the other valuemode - the compare mode
public long getPrecision()
Value
getPrecision in class Valuepublic int hashCode()
hashCode in class Valuepublic java.lang.Object getObject()
Value
getObject in class Value
public void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Value
set in class Valueprep - the prepared statementparameterIndex - the parameter index
java.sql.SQLExceptionpublic int getDisplaySize()
Value
getDisplaySize in class Valuepublic boolean equals(java.lang.Object other)
Value
equals in class Valueother - the other value
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||