Package org.mariadb.jdbc.codec
Class TextRowDecoder
java.lang.Object
org.mariadb.jdbc.codec.RowDecoder
org.mariadb.jdbc.codec.TextRowDecoder
-
Field Summary
Fields inherited from class org.mariadb.jdbc.codec.RowDecoder
columnCount, columns, index, length, NULL_LENGTH, readBuf
-
Constructor Summary
ConstructorsConstructorDescriptionTextRowDecoder
(int columnCount, ColumnDefinitionPacket[] columns, Configuration conf) -
Method Summary
Modifier and TypeMethodDescription<T> T
boolean
byte
double
float
int
long
short
void
setPosition
(int newIndex) Set length and pos indicator to asked index.boolean
wasNull()
Methods inherited from class org.mariadb.jdbc.codec.RowDecoder
getBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValue, getValue, setRow
-
Constructor Details
-
TextRowDecoder
-
-
Method Details
-
decode
- Specified by:
decode
in classRowDecoder
- Throws:
SQLException
-
decodeByte
- Specified by:
decodeByte
in classRowDecoder
- Throws:
SQLException
-
decodeBoolean
- Specified by:
decodeBoolean
in classRowDecoder
- Throws:
SQLException
-
decodeShort
- Specified by:
decodeShort
in classRowDecoder
- Throws:
SQLException
-
decodeInt
- Specified by:
decodeInt
in classRowDecoder
- Throws:
SQLException
-
decodeLong
- Specified by:
decodeLong
in classRowDecoder
- Throws:
SQLException
-
decodeFloat
- Specified by:
decodeFloat
in classRowDecoder
- Throws:
SQLException
-
decodeDouble
- Specified by:
decodeDouble
in classRowDecoder
- Throws:
SQLException
-
wasNull
public boolean wasNull()- Specified by:
wasNull
in classRowDecoder
-
setPosition
public void setPosition(int newIndex) Set length and pos indicator to asked index.- Specified by:
setPosition
in classRowDecoder
- Parameters:
newIndex
- index (0 is first).
-