public class JdbcUdt extends AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>
UdtValue).| Modifier and Type | Field and Description |
|---|---|
static JdbcUdt |
INSTANCE
Gets a
JdbcUdt instance. |
DEFAULT_PRECISION, DEFAULT_SCALE| Modifier and Type | Method and Description |
|---|---|
com.datastax.oss.driver.api.core.data.UdtValue |
compose(Object obj)
Transforms the given object to an instance of the Java type corresponding to this type.
|
Object |
decompose(com.datastax.oss.driver.api.core.data.UdtValue 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(com.datastax.oss.driver.api.core.data.UdtValue obj)
Gets the precision of the given value (if applicable).
|
int |
getScale(com.datastax.oss.driver.api.core.data.UdtValue obj)
Gets the scale of the given value (if applicable).
|
String |
getString(Object obj) |
Class<com.datastax.oss.driver.api.core.data.UdtValue> |
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(com.datastax.oss.driver.api.core.data.UdtValue obj)
Gets a string representation of the given value.
|
public static final JdbcUdt INSTANCE
JdbcUdt instance.public boolean isCaseSensitive()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCaseSensitive in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>true if the values are case-sensitive, false otherwise.public boolean isCurrency()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCurrency in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>true if the values are currencies, false otherwise.public boolean isSigned()
AbstractJdbcTypeThe implementation should return false if not applicable.
isSigned in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>true if the values are signed, false otherwise.public String toString(@Nonnull com.datastax.oss.driver.api.core.data.UdtValue obj)
AbstractJdbcTypetoString in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>obj - The value.public boolean needsQuotes()
AbstractJdbcTypeneedsQuotes in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>true if the values need to be surrounded by quotes, false otherwise.public Class<com.datastax.oss.driver.api.core.data.UdtValue> getType()
AbstractJdbcTypegetType in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>public int getJdbcType()
AbstractJdbcTypegetJdbcType in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>Typespublic com.datastax.oss.driver.api.core.data.UdtValue compose(Object obj)
AbstractJdbcTypecompose in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>obj - The object.T.public Object decompose(com.datastax.oss.driver.api.core.data.UdtValue value)
AbstractJdbcTypedecompose in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>value - The value.public int getScale(com.datastax.oss.driver.api.core.data.UdtValue obj)
AbstractJdbcTypeThe implementation should return 0 if not applicable.
getScale in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>obj - The value.public int getPrecision(com.datastax.oss.driver.api.core.data.UdtValue obj)
AbstractJdbcTypeThe implementation should return -1 if not applicable.
getPrecision in class AbstractJdbcType<com.datastax.oss.driver.api.core.data.UdtValue>obj - The value.Copyright © 2020–2024 ING Bank. All rights reserved.