Package org.geysermc.databaseutils.sql
Class FlexibleSqlInput
java.lang.Object
org.geysermc.databaseutils.sql.FlexibleSqlInput
The default SQLInput (with SQLInputImpl as impl) is not very flexible.
If you expect an int but the database return a BigDecimal (e.g. for the NUMBER type) then it'd fail to cast
BigDecimal to Integer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadBigDecimal(BigDecimal defaultValue) readBoolean(Boolean defaultValue) readByte()byte[]byte[]readBytes(byte[] defaultValue) readDouble(Double defaultValue) readInt()readLong()readString(String defaultValue)
-
Constructor Details
-
FlexibleSqlInput
-
-
Method Details
-
readString
-
readString
-
readBoolean
-
readBoolean
-
readByte
-
readByte
-
readShort
-
readShort
-
readInt
-
readInt
-
readLong
-
readLong
-
readFloat
-
readFloat
-
readDouble
-
readDouble
-
readBigDecimal
-
readBigDecimal
-
readBytes
public byte[] readBytes() -
readBytes
public byte[] readBytes(byte[] defaultValue)
-