Package com.impossibl.postgres.jdbc
Class PGSQLInput<Buffer>
- java.lang.Object
-
- com.impossibl.postgres.jdbc.PGSQLInput<Buffer>
-
- All Implemented Interfaces:
SQLInput
- Direct Known Subclasses:
PGSQLInput.Binary,PGSQLInput.Text
public abstract class PGSQLInput<Buffer> extends Object implements SQLInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPGSQLInput.Binarystatic classPGSQLInput.Text
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Type.Codec.Decoder<Buffer>getDecoder(Type type)ArrayreadArray()InputStreamreadAsciiStream()BigDecimalreadBigDecimal()InputStreamreadBinaryStream()BlobreadBlob()booleanreadBoolean()bytereadByte()byte[]readBytes()ReaderreadCharacterStream()ClobreadClob()DatereadDate()doublereadDouble()floatreadFloat()intreadInt()longreadLong()NClobreadNClob()StringreadNString()ObjectreadObject()<T> TreadObject(Class<T> type)RefreadRef()RowIdreadRowId()shortreadShort()SQLXMLreadSQLXML()StringreadString()TimereadTime()TimestampreadTimestamp()URLreadURL()booleanwasNull()
-
-
-
Method Detail
-
getDecoder
protected abstract Type.Codec.Decoder<Buffer> getDecoder(Type type)
-
readString
public String readString() throws SQLException
- Specified by:
readStringin interfaceSQLInput- Throws:
SQLException
-
readBoolean
public boolean readBoolean() throws SQLException- Specified by:
readBooleanin interfaceSQLInput- Throws:
SQLException
-
readByte
public byte readByte() throws SQLException- Specified by:
readBytein interfaceSQLInput- Throws:
SQLException
-
readShort
public short readShort() throws SQLException- Specified by:
readShortin interfaceSQLInput- Throws:
SQLException
-
readInt
public int readInt() throws SQLException- Specified by:
readIntin interfaceSQLInput- Throws:
SQLException
-
readLong
public long readLong() throws SQLException- Specified by:
readLongin interfaceSQLInput- Throws:
SQLException
-
readFloat
public float readFloat() throws SQLException- Specified by:
readFloatin interfaceSQLInput- Throws:
SQLException
-
readDouble
public double readDouble() throws SQLException- Specified by:
readDoublein interfaceSQLInput- Throws:
SQLException
-
readBigDecimal
public BigDecimal readBigDecimal() throws SQLException
- Specified by:
readBigDecimalin interfaceSQLInput- Throws:
SQLException
-
readBytes
public byte[] readBytes() throws SQLException- Specified by:
readBytesin interfaceSQLInput- Throws:
SQLException
-
readDate
public Date readDate() throws SQLException
- Specified by:
readDatein interfaceSQLInput- Throws:
SQLException
-
readTime
public Time readTime() throws SQLException
- Specified by:
readTimein interfaceSQLInput- Throws:
SQLException
-
readTimestamp
public Timestamp readTimestamp() throws SQLException
- Specified by:
readTimestampin interfaceSQLInput- Throws:
SQLException
-
readCharacterStream
public Reader readCharacterStream() throws SQLException
- Specified by:
readCharacterStreamin interfaceSQLInput- Throws:
SQLException
-
readAsciiStream
public InputStream readAsciiStream() throws SQLException
- Specified by:
readAsciiStreamin interfaceSQLInput- Throws:
SQLException
-
readBinaryStream
public InputStream readBinaryStream() throws SQLException
- Specified by:
readBinaryStreamin interfaceSQLInput- Throws:
SQLException
-
readObject
public Object readObject() throws SQLException
- Specified by:
readObjectin interfaceSQLInput- Throws:
SQLException
-
readObject
public <T> T readObject(Class<T> type) throws SQLException
- Specified by:
readObjectin interfaceSQLInput- Throws:
SQLException
-
readRef
public Ref readRef() throws SQLException
- Specified by:
readRefin interfaceSQLInput- Throws:
SQLException
-
readBlob
public Blob readBlob() throws SQLException
- Specified by:
readBlobin interfaceSQLInput- Throws:
SQLException
-
readClob
public Clob readClob() throws SQLException
- Specified by:
readClobin interfaceSQLInput- Throws:
SQLException
-
readArray
public Array readArray() throws SQLException
- Specified by:
readArrayin interfaceSQLInput- Throws:
SQLException
-
readURL
public URL readURL() throws SQLException
- Specified by:
readURLin interfaceSQLInput- Throws:
SQLException
-
readSQLXML
public SQLXML readSQLXML() throws SQLException
- Specified by:
readSQLXMLin interfaceSQLInput- Throws:
SQLException
-
readRowId
public RowId readRowId() throws SQLException
- Specified by:
readRowIdin interfaceSQLInput- Throws:
SQLException
-
wasNull
public boolean wasNull() throws SQLException- Specified by:
wasNullin interfaceSQLInput- Throws:
SQLException
-
readNClob
public NClob readNClob() throws SQLException
- Specified by:
readNClobin interfaceSQLInput- Throws:
SQLException
-
readNString
public String readNString() throws SQLException
- Specified by:
readNStringin interfaceSQLInput- Throws:
SQLException
-
-