public interface Record
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAsObject(int i)
Returns the value of the i-th column as a Java Object type.
|
java.lang.Object |
getAsObject(java.lang.String columnName)
Returns the value of the specified column as a Java Object type.
|
long |
getBigInt(int i)
Returns the BIGINT value of the i-th column as a Java long type.
|
long |
getBigInt(java.lang.String columnName)
Returns the BIGINT value of the specified column as a Java long type.
|
default java.nio.ByteBuffer |
getBlob(int i)
Returns the BLOB value of the i-th column as a Java ByteBuffer type.
|
default java.nio.ByteBuffer |
getBlob(java.lang.String columnName)
Returns the BLOB value of the specified column as a Java ByteBuffer type.
|
java.nio.ByteBuffer |
getBlobAsByteBuffer(int i)
Returns the BLOB value of the i-th column as a Java ByteBuffer type.
|
java.nio.ByteBuffer |
getBlobAsByteBuffer(java.lang.String columnName)
Returns the BLOB value of the specified column as a Java ByteBuffer type.
|
byte[] |
getBlobAsBytes(int i)
Returns the BLOB value of the i-th column as a Java byte array type.
|
byte[] |
getBlobAsBytes(java.lang.String columnName)
Returns the BLOB value of the specified column as a Java byte array type.
|
boolean |
getBoolean(int i)
Returns the BOOLEAN value of the i-th column as a Java boolean type.
|
boolean |
getBoolean(java.lang.String columnName)
Returns the BOOLEAN value of the specified column as a Java boolean type.
|
double |
getDouble(int i)
Returns the DOUBLE value of the i-th column as a Java double type.
|
double |
getDouble(java.lang.String columnName)
Returns the DOUBLE value of the specified column as a Java double type.
|
float |
getFloat(int i)
Returns the FLOAT value of the i-th column as a Java float type.
|
float |
getFloat(java.lang.String columnName)
Returns the FLOAT value of the specified column as a Java float type.
|
int |
getInt(int i)
Returns the INT value of the i-th column as a Java int type.
|
int |
getInt(java.lang.String columnName)
Returns the INT value of the specified column as a Java int type.
|
java.lang.String |
getText(int i)
Returns the TEXT value of the i-th column as a Java String type.
|
java.lang.String |
getText(java.lang.String columnName)
Returns the TEXT value of the specified column as a Java String type.
|
boolean |
isNull(int i)
Indicates whether the value of the i-th column is NULL.
|
boolean |
isNull(java.lang.String columnName)
Indicates whether the value of the specified column is NULL.
|
boolean isNull(java.lang.String columnName)
columnName
- a column name of the valueboolean isNull(int i)
i
- the position of the columnboolean getBoolean(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
columnName
- a column name of the valueboolean getBoolean(int i)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
i
- the position of the columnint getInt(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
columnName
- a column name of the valueint getInt(int i)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
i
- the position of the columnlong getBigInt(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
columnName
- a column name of the valuelong getBigInt(int i)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
i
- the position of the columnfloat getFloat(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0.0. If this doesn't work for you, either call isNull(String)
before
calling this method, or use getAsObject(String)
instead.
columnName
- a column name of the valuefloat getFloat(int i)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0.0. If this doesn't work for you, either call isNull(String)
before
calling this method, or use getAsObject(String)
instead.
i
- the position of the columndouble getDouble(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0.0. If this doesn't work for you, either call isNull(String)
before
calling this method, or use getAsObject(String)
instead.
columnName
- a column name of the valuedouble getDouble(int i)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0.0. If this doesn't work for you, either call isNull(String)
before
calling this method, or use getAsObject(String)
instead.
i
- the position of the column@Nullable java.lang.String getText(java.lang.String columnName)
columnName
- a column name of the value@Nullable java.lang.String getText(int i)
i
- the position of the column@Nullable default java.nio.ByteBuffer getBlob(java.lang.String columnName)
columnName
- a column name of the value@Nullable default java.nio.ByteBuffer getBlob(int i)
i
- the position of the column@Nullable java.nio.ByteBuffer getBlobAsByteBuffer(java.lang.String columnName)
columnName
- a column name of the value@Nullable java.nio.ByteBuffer getBlobAsByteBuffer(int i)
i
- the position of the column@Nullable byte[] getBlobAsBytes(java.lang.String columnName)
columnName
- a column name of the value@Nullable byte[] getBlobAsBytes(int i)
i
- the position of the column@Nullable java.lang.Object getAsObject(java.lang.String columnName)
If the columns is a BOOLEAN type, it returns a Boolean
object. If the columns is an
INT type, it returns an Integer
object. If the columns is a BIGINT type, it returns a
LONG
object. If the columns is a FLOAT type, it returns a FLOAT
object. If the
columns is a DOUBLE type, it returns a DOUBLE
object. If the columns is a TEXT type, it
returns a String
object. If the columns is a BLOB type, it returns a ByteBuffer
object.
columnName
- a column name of the value@Nullable java.lang.Object getAsObject(int i)
If the columns is a BOOLEAN type, it returns a Boolean
object. If the columns is an
INT type, it returns an Integer
object. If the columns is a BIGINT type, it returns a
LONG
object. If the columns is a FLOAT type, it returns a FLOAT
object. If the
columns is a DOUBLE type, it returns a DOUBLE
object. If the columns is a TEXT type, it
returns a String
object. If the columns is a BLOB type, it returns a ByteBuffer
object.
i
- the position of the column