public class ValueUuid extends Value
Value.ValueBlob, Value.ValueClobARRAY, 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 o,
CompareMode mode)
Compare the value with another value of the same type.
|
boolean |
equals(java.lang.Object other)
Check if the two values have the same hash code.
|
static ValueUuid |
get(byte[] binary)
Get or create a UUID for the given 16 bytes.
|
static ValueUuid |
get(long high,
long low)
Get or create a UUID for the given high and low order values.
|
static ValueUuid |
get(java.lang.String s)
Get or create a UUID for the given text representation.
|
static ValueUuid |
get(java.util.UUID uuid)
Get or create a UUID for the given Java UUID.
|
byte[] |
getBytes() |
int |
getDisplaySize()
Get the display size in characters.
|
long |
getHigh()
Get the most significant 64 bits of this UUID.
|
long |
getLow()
Get the least significant 64 bits of this UUID.
|
static ValueUuid |
getNewRandom()
Create a new UUID using the pseudo random number generator.
|
java.lang.Object |
getObject()
Get the value as an object.
|
long |
getPrecision()
Get the precision.
|
java.lang.String |
getSQL()
Get the SQL expression for this value.
|
java.lang.String |
getString()
Get the value as a string.
|
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, convertTo, convertTo, convertTo, convertToEnum, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getBytesNoCopy, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getInt, getLong, getMemory, getReader, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinkedToTable, modulus, multiply, negate, remove, subtract, throwUnsupportedExceptionForType, toStringpublic static ValueUuid getNewRandom()
public static ValueUuid get(byte[] binary)
binary - the byte array (must be at least 16 bytes long)public static ValueUuid get(long high, long low)
high - the most significant bitslow - the least significant bitspublic static ValueUuid get(java.util.UUID uuid)
uuid - Java UUIDpublic static ValueUuid get(java.lang.String s)
s - the text representation of the UUIDpublic java.lang.String getSQL()
Valuepublic int getType()
Valuepublic long getPrecision()
ValuegetPrecision in class Valuepublic java.lang.String getString()
Valueprotected int compareSecure(Value o, CompareMode mode)
ValuecompareSecure in class Valueo - the other valuemode - the compare modepublic boolean equals(java.lang.Object other)
Valuepublic java.lang.Object getObject()
Valuepublic void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Valuepublic long getHigh()
public long getLow()
public int getDisplaySize()
ValuegetDisplaySize in class Value