Package org.mariadb.jdbc.codec
Class TextRowDecoder
- java.lang.Object
-
- org.mariadb.jdbc.codec.RowDecoder
-
- org.mariadb.jdbc.codec.TextRowDecoder
-
public class TextRowDecoder extends RowDecoder
-
-
Field Summary
-
Fields inherited from class org.mariadb.jdbc.codec.RowDecoder
columnCount, columns, index, length, NULL_LENGTH, readBuf
-
-
Constructor Summary
Constructors Constructor Description TextRowDecoder(int columnCount, ColumnDefinitionPacket[] columns, Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tdecode(Codec<T> codec, java.util.Calendar cal)booleandecodeBoolean()bytedecodeByte()doubledecodeDouble()floatdecodeFloat()intdecodeInt()longdecodeLong()shortdecodeShort()voidsetPosition(int newIndex)Set length and pos indicator to asked index.booleanwasNull()-
Methods inherited from class org.mariadb.jdbc.codec.RowDecoder
getBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValue, getValue, setRow
-
-
-
-
Constructor Detail
-
TextRowDecoder
public TextRowDecoder(int columnCount, ColumnDefinitionPacket[] columns, Configuration conf)
-
-
Method Detail
-
decode
public <T> T decode(Codec<T> codec, java.util.Calendar cal) throws java.sql.SQLException
- Specified by:
decodein classRowDecoder- Throws:
java.sql.SQLException
-
decodeByte
public byte decodeByte() throws java.sql.SQLException- Specified by:
decodeBytein classRowDecoder- Throws:
java.sql.SQLException
-
decodeBoolean
public boolean decodeBoolean() throws java.sql.SQLException- Specified by:
decodeBooleanin classRowDecoder- Throws:
java.sql.SQLException
-
decodeShort
public short decodeShort() throws java.sql.SQLException- Specified by:
decodeShortin classRowDecoder- Throws:
java.sql.SQLException
-
decodeInt
public int decodeInt() throws java.sql.SQLException- Specified by:
decodeIntin classRowDecoder- Throws:
java.sql.SQLException
-
decodeLong
public long decodeLong() throws java.sql.SQLException- Specified by:
decodeLongin classRowDecoder- Throws:
java.sql.SQLException
-
decodeFloat
public float decodeFloat() throws java.sql.SQLException- Specified by:
decodeFloatin classRowDecoder- Throws:
java.sql.SQLException
-
decodeDouble
public double decodeDouble() throws java.sql.SQLException- Specified by:
decodeDoublein classRowDecoder- Throws:
java.sql.SQLException
-
wasNull
public boolean wasNull()
- Specified by:
wasNullin classRowDecoder
-
setPosition
public void setPosition(int newIndex)
Set length and pos indicator to asked index.- Specified by:
setPositionin classRowDecoder- Parameters:
newIndex- index (0 is first).
-
-