public class JdbcBytes extends AbstractJdbcType<ByteBuffer>
BLOB CQL type (corresponding Java type: ByteBuffer).
CQL type description: arbitrary bytes (no validation), expressed as hexadecimal.
| Modifier and Type | Field and Description |
|---|---|
static JdbcBytes |
INSTANCE
Gets a
JdbcBytes instance. |
DEFAULT_PRECISION, DEFAULT_SCALE| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
compose(ByteBuffer bytes)
Duplicates the given
ByteBuffer. |
ByteBuffer |
compose(Object obj)
Transforms the given object to an instance of the Java type corresponding to this type.
|
ByteBuffer |
decompose(ByteBuffer value)
Transforms the given instance of the Java type corresponding to this type to a generic object.
|
int |
getJdbcType()
Gets the JDBC type constant.
|
int |
getPrecision(ByteBuffer obj)
Gets the precision of the given value (if applicable).
|
int |
getScale(ByteBuffer obj)
Gets the scale of the given value (if applicable).
|
Class<ByteBuffer> |
getType()
Gets the Java type corresponding to this type.
|
boolean |
isCaseSensitive()
Gets whether the values of this type are case-sensitive (if applicable).
|
boolean |
isCurrency()
Gets whether the values of this type are currencies (if applicable).
|
boolean |
isSigned()
Gets whether the values of this type are signed (if applicable).
|
boolean |
needsQuotes()
Gets whether the values of this type require quotes.
|
String |
toString(ByteBuffer obj)
Gets a string representation of the given value.
|
public static final JdbcBytes INSTANCE
JdbcBytes instance.public boolean isCaseSensitive()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCaseSensitive in class AbstractJdbcType<ByteBuffer>true if the values are case-sensitive, false otherwise.public int getScale(ByteBuffer obj)
AbstractJdbcTypeThe implementation should return 0 if not applicable.
getScale in class AbstractJdbcType<ByteBuffer>obj - The value.public int getPrecision(ByteBuffer obj)
AbstractJdbcTypeThe implementation should return -1 if not applicable.
getPrecision in class AbstractJdbcType<ByteBuffer>obj - The value.public boolean isCurrency()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCurrency in class AbstractJdbcType<ByteBuffer>true if the values are currencies, false otherwise.public boolean isSigned()
AbstractJdbcTypeThe implementation should return false if not applicable.
isSigned in class AbstractJdbcType<ByteBuffer>true if the values are signed, false otherwise.public String toString(ByteBuffer obj)
AbstractJdbcTypetoString in class AbstractJdbcType<ByteBuffer>obj - The value.public boolean needsQuotes()
AbstractJdbcTypeneedsQuotes in class AbstractJdbcType<ByteBuffer>true if the values need to be surrounded by quotes, false otherwise.public Class<ByteBuffer> getType()
AbstractJdbcTypegetType in class AbstractJdbcType<ByteBuffer>public int getJdbcType()
AbstractJdbcTypegetJdbcType in class AbstractJdbcType<ByteBuffer>Typespublic ByteBuffer compose(ByteBuffer bytes)
ByteBuffer.bytes - The ByteBuffer instance.ByteBuffer.public ByteBuffer compose(Object obj)
AbstractJdbcTypecompose in class AbstractJdbcType<ByteBuffer>obj - The object.T.public ByteBuffer decompose(ByteBuffer value)
AbstractJdbcTypedecompose in class AbstractJdbcType<ByteBuffer>value - The value.Copyright © 2020–2024 ING Bank. All rights reserved.