public class JdbcInetAddress extends AbstractJdbcType<InetAddress>
INET CQL type (corresponding Java type: InetAddress).
CQL type description: IP address string in IPv4 or IPv6 format, used by the python-cql driver and CQL native protocols.
| Modifier and Type | Field and Description |
|---|---|
static JdbcInetAddress |
INSTANCE
Gets a
JdbcInetAddress instance. |
DEFAULT_PRECISION, DEFAULT_SCALE| Modifier and Type | Method and Description |
|---|---|
InetAddress |
compose(Object value)
Transforms the given object to an instance of the Java type corresponding to this type.
|
Object |
decompose(InetAddress 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(InetAddress obj)
Gets the precision of the given value (if applicable).
|
int |
getScale(InetAddress obj)
Gets the scale of the given value (if applicable).
|
String |
getString(ByteBuffer bytes) |
Class<InetAddress> |
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(InetAddress obj)
Gets a string representation of the given value.
|
public static final JdbcInetAddress INSTANCE
JdbcInetAddress instance.public boolean isCaseSensitive()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCaseSensitive in class AbstractJdbcType<InetAddress>true if the values are case-sensitive, false otherwise.public int getScale(InetAddress obj)
AbstractJdbcTypeThe implementation should return 0 if not applicable.
getScale in class AbstractJdbcType<InetAddress>obj - The value.public int getPrecision(InetAddress obj)
AbstractJdbcTypeThe implementation should return -1 if not applicable.
getPrecision in class AbstractJdbcType<InetAddress>obj - The value.public boolean isCurrency()
AbstractJdbcTypeThe implementation should return false if not applicable.
isCurrency in class AbstractJdbcType<InetAddress>true if the values are currencies, false otherwise.public boolean isSigned()
AbstractJdbcTypeThe implementation should return false if not applicable.
isSigned in class AbstractJdbcType<InetAddress>true if the values are signed, false otherwise.public String toString(InetAddress obj)
AbstractJdbcTypetoString in class AbstractJdbcType<InetAddress>obj - The value.public boolean needsQuotes()
AbstractJdbcTypeneedsQuotes in class AbstractJdbcType<InetAddress>true if the values need to be surrounded by quotes, false otherwise.public String getString(ByteBuffer bytes)
public Class<InetAddress> getType()
AbstractJdbcTypegetType in class AbstractJdbcType<InetAddress>public int getJdbcType()
AbstractJdbcTypegetJdbcType in class AbstractJdbcType<InetAddress>Typespublic InetAddress compose(Object value)
AbstractJdbcTypecompose in class AbstractJdbcType<InetAddress>value - The object.T.public Object decompose(InetAddress value)
AbstractJdbcTypedecompose in class AbstractJdbcType<InetAddress>value - The value.Copyright © 2020–2024 ING Bank. All rights reserved.