public class JdbcDuration extends JdbcOther
DURATION CQL type (corresponding Java type: CqlDuration).
CQL type description: a duration with nanosecond precision.
| Modifier and Type | Field and Description |
|---|---|
static JdbcDuration |
INSTANCE
Gets a
JdbcDuration instance. |
DEFAULT_PRECISION, DEFAULT_SCALE| Constructor and Description |
|---|
JdbcDuration() |
| Modifier and Type | Method and Description |
|---|---|
String |
compose(Object value)
Transforms the given object to an instance of the Java type corresponding to this type.
|
Object |
decompose(String value)
Transforms the given instance of the Java type corresponding to this type to a generic object.
|
boolean |
isCaseSensitive()
Gets whether the values of this type are case-sensitive (if applicable).
|
boolean |
needsQuotes()
Gets whether the values of this type require quotes.
|
getJdbcType, getPrecision, getScale, getString, getType, isCurrency, isSigned, toStringpublic static final JdbcDuration INSTANCE
JdbcDuration instance.public boolean isCaseSensitive()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCaseSensitive in class JdbcOthertrue if the values are case-sensitive, false otherwise.public boolean needsQuotes()
AbstractJdbcTypeneedsQuotes in class JdbcOthertrue if the values need to be surrounded by quotes, false otherwise.public String compose(Object value)
AbstractJdbcTypepublic Object decompose(String value)
AbstractJdbcTypeCopyright © 2020–2024 ING Bank. All rights reserved.