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