A binary UUID is exactly 16 bytes.
Cast from CHARACTER types to BINARY converts a hexadecimal UUID string with or without the dashes.
Cast to CHARACTER types converts to a hexadecimal UUID string.
| Modifier and Type | Field and Description |
|---|---|
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public int | canMoveFrom(Type otherType)
Overrides org. When canConvertFrom() is true, can convert without changing the object |
| pack-priv Object | castOrConvertToType(SessionInterface session, Object a, Type otherType, boolean cast)
Overrides org.
|
| public Object | castToType(SessionInterface session, Object a, Type otherType)
Overrides org. Explicit casts are handled by this method. |
| public int | |
| public Object | |
| public Object | convertJavaToSQL(SessionInterface session, Object a)
Overrides org.
|
| public Object | convertSQLToJava(SessionInterface session, Object a)
Overrides org.
|
| public Object | convertToDefaultType(SessionInterface session, Object a)
Overrides org. Converts the object to the given type without limit checks. |
| public String | |
| public String | |
| public Object | convertToType(SessionInterface session, Object a, Type otherType)
Overrides org. Same as castToType except for CHARACTER values. |
| public Object | convertToTypeLimits(SessionInterface session, Object a)
Overrides org.
|
| public int | |
| public Type | getAggregateType(Type other)
Overrides org. Common type used in comparison operations. |
| public static BinaryData | |
| public static BinaryData | |
| public Type | getCombinedType(Session session, Type other, int operation)
Overrides org. Returns type for concat |
| public String | getDefinition()
Overrides org. Returns the full definition of the type, including parameters |
| public static UUID | |
| public Class | |
| public String | getJDBCClassName()
Overrides org. Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name. |
| public int | getJDBCTypeCode()
Overrides org. Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type. |
| public long | |
| public String | |
| public String | |
| pack-priv int | |
| public boolean | |
| public boolean | |
| public BlobData | overlay(Session session, BlobData data, BlobData overlay, long offset, long length, boolean hasLength)
Overrides org.
|
| public long | position(SessionInterface session, BlobData data, BlobData otherData, Type otherType, long offset)
Overrides org.
|
| public int | precedenceDegree(Type other)
Overrides org. relaxes the SQL standard list to avoid problems with conversion of literals and java method parameter type issues |
| public boolean | |
| public BlobData | substring(SessionInterface session, BlobData data, long offset, long length, boolean hasLength)
Overrides org.
|
| public BlobData | trim(Session session, BlobData data, int trim, boolean leading, boolean trailing)
Overrides org.
|
| binaryUUIDPrecision | back to summary |
|---|---|
| public static final int binaryUUIDPrecision | |
| BinaryUUIDType | back to summary |
|---|---|
| protected BinaryUUIDType() | |
| acceptsPrecision | back to summary |
|---|---|
| public boolean acceptsPrecision() Overrides org. | |
| canConvertFrom | back to summary |
|---|---|
| public boolean canConvertFrom(Type otherType) Overrides org. | |
| canMoveFrom | back to summary |
|---|---|
| public int canMoveFrom(Type otherType) Overrides org. Doc from org. When canConvertFrom() is true, can convert without changing the object | |
| castOrConvertToType | back to summary |
|---|---|
| pack-priv Object castOrConvertToType(SessionInterface session, Object a, Type otherType, boolean cast) | |
| castToType | back to summary |
|---|---|
| public Object castToType(SessionInterface session, Object a, Type otherType) Overrides org. Doc from org. Explicit casts are handled by this method. SQL standard 6.12 rules for enforcement of size, precision and scale are implemented. For CHARACTER values, it performs truncation in all cases of long strings. | |
| compare | back to summary |
|---|---|
| public int compare(Session session, Object a, Object b) Overrides org. | |
| concat | back to summary |
|---|---|
| public Object concat(Session session, Object a, Object b) Overrides org. | |
| convertJavaToSQL | back to summary |
|---|---|
| public Object convertJavaToSQL(SessionInterface session, Object a) Overrides org. | |
| convertSQLToJava | back to summary |
|---|---|
| public Object convertSQLToJava(SessionInterface session, Object a) Overrides org. | |
| convertToDefaultType | back to summary |
|---|---|
| public Object convertToDefaultType(SessionInterface session, Object a) Overrides org. Doc from org. Converts the object to the given type without limit checks. Used for JDBC writes. | |
| convertToSQLString | back to summary |
|---|---|
| public String convertToSQLString(Object a) | |
| convertToString | back to summary |
|---|---|
| public String convertToString(Object a) Overrides org. | |
| convertToType | back to summary |
|---|---|
| public Object convertToType(SessionInterface session, Object a, Type otherType) Overrides org. Doc from org. Same as castToType except for CHARACTER values. Perform string truncation of trailing spaces only. For other long strings, it raises an exception. | |
| convertToTypeLimits | back to summary |
|---|---|
| public Object convertToTypeLimits(SessionInterface session, Object a) | |
| displaySize | back to summary |
|---|---|
| public int displaySize() Overrides org. | |
| getAggregateType | back to summary |
|---|---|
| public Type getAggregateType(Type other) Overrides org. Doc from org. Common type used in comparison operations. other must be comparable with this. | |
| getBinary | back to summary |
|---|---|
| public static BinaryData getBinary(long hi, long lo) | |
| getBinary | back to summary |
|---|---|
| public static BinaryData getBinary(UUID uuid) | |
| getCombinedType | back to summary |
|---|---|
| public Type getCombinedType(Session session, Type other, int operation) Overrides org. Returns type for concat | |
| getDefinition | back to summary |
|---|---|
| public String getDefinition() Overrides org. Doc from org. Returns the full definition of the type, including parameters | |
| getJavaUUID | back to summary |
|---|---|
| public static UUID getJavaUUID(BinaryData data) | |
| getJDBCClass | back to summary |
|---|---|
| public Class Overrides org. | |
| getJDBCClassName | back to summary |
|---|---|
| public String getJDBCClassName() Overrides org. Doc from org. Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name. | |
| getJDBCTypeCode | back to summary |
|---|---|
| public int getJDBCTypeCode() Overrides org. Doc from org. Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type. | |
| getMaxPrecision | back to summary |
|---|---|
| public long getMaxPrecision() Overrides org. | |
| getNameFullString | back to summary |
|---|---|
| public String getNameFullString() | |
| getNameString | back to summary |
|---|---|
| public String getNameString() Overrides org. Doc from org. Returns the name of the type | |
| getRightTrimSize | back to summary |
|---|---|
| pack-priv int getRightTrimSize(BlobData data) Overrides org. | |
| isBinaryType | back to summary |
|---|---|
| public boolean isBinaryType() Overrides org. | |
| isUUIDType | back to summary |
|---|---|
| public boolean isUUIDType() Overrides org. | |
| overlay | back to summary |
|---|---|
| public BlobData overlay(Session session, BlobData data, BlobData overlay, long offset, long length, boolean hasLength) Overrides org. | |
| position | back to summary |
|---|---|
| public long position(SessionInterface session, BlobData data, BlobData otherData, Type otherType, long offset) Overrides org. | |
| precedenceDegree | back to summary |
|---|---|
| public int precedenceDegree(Type other) Overrides org. relaxes the SQL standard list to avoid problems with conversion of literals and java method parameter type issues | |
| requiresPrecision | back to summary |
|---|---|
| public boolean requiresPrecision() | |
| substring | back to summary |
|---|---|
| public BlobData substring(SessionInterface session, BlobData data, long offset, long length, boolean hasLength) Overrides org. | |
| trim | back to summary |
|---|---|
| public BlobData trim(Session session, BlobData data, int trim, boolean leading, boolean trailing) Overrides org. | |