Package com.impossibl.postgres.jdbc
Class PGSQLOutput
- java.lang.Object
-
- com.impossibl.postgres.jdbc.PGSQLOutput
-
-
Constructor Summary
Constructors Constructor Description PGSQLOutput(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type[]
getAttributeTypes()
Object[]
getAttributeValues()
PGConnection
getConnection()
void
writeArray(Array x)
void
writeAsciiStream(InputStream x)
void
writeBigDecimal(BigDecimal x)
void
writeBinaryStream(InputStream x)
void
writeBlob(Blob x)
void
writeBoolean(boolean x)
void
writeByte(byte x)
void
writeBytes(byte[] x)
void
writeCharacterStream(Reader x)
void
writeClob(Clob x)
void
writeDate(Date x)
void
writeDouble(double x)
void
writeFloat(float x)
void
writeInt(int x)
void
writeLong(long x)
void
writeNClob(NClob x)
void
writeNString(String x)
void
writeObject(Object x, SQLType targetSqlType)
void
writeObject(SQLData x)
void
writeRef(Ref x)
void
writeRowId(RowId x)
void
writeShort(short x)
void
writeSQLXML(SQLXML x)
void
writeString(String x)
void
writeStruct(Struct x)
void
writeTime(Time x)
void
writeTimestamp(Timestamp x)
void
writeURL(URL x)
-
-
-
Constructor Detail
-
PGSQLOutput
public PGSQLOutput(Context context)
-
-
Method Detail
-
getConnection
public PGConnection getConnection()
-
getAttributeTypes
public Type[] getAttributeTypes()
-
getAttributeValues
public Object[] getAttributeValues()
-
writeString
public void writeString(String x) throws SQLException
- Specified by:
writeString
in interfaceSQLOutput
- Throws:
SQLException
-
writeBoolean
public void writeBoolean(boolean x) throws SQLException
- Specified by:
writeBoolean
in interfaceSQLOutput
- Throws:
SQLException
-
writeByte
public void writeByte(byte x) throws SQLException
- Specified by:
writeByte
in interfaceSQLOutput
- Throws:
SQLException
-
writeShort
public void writeShort(short x) throws SQLException
- Specified by:
writeShort
in interfaceSQLOutput
- Throws:
SQLException
-
writeInt
public void writeInt(int x) throws SQLException
- Specified by:
writeInt
in interfaceSQLOutput
- Throws:
SQLException
-
writeLong
public void writeLong(long x) throws SQLException
- Specified by:
writeLong
in interfaceSQLOutput
- Throws:
SQLException
-
writeFloat
public void writeFloat(float x) throws SQLException
- Specified by:
writeFloat
in interfaceSQLOutput
- Throws:
SQLException
-
writeDouble
public void writeDouble(double x) throws SQLException
- Specified by:
writeDouble
in interfaceSQLOutput
- Throws:
SQLException
-
writeBigDecimal
public void writeBigDecimal(BigDecimal x) throws SQLException
- Specified by:
writeBigDecimal
in interfaceSQLOutput
- Throws:
SQLException
-
writeBytes
public void writeBytes(byte[] x) throws SQLException
- Specified by:
writeBytes
in interfaceSQLOutput
- Throws:
SQLException
-
writeDate
public void writeDate(Date x) throws SQLException
- Specified by:
writeDate
in interfaceSQLOutput
- Throws:
SQLException
-
writeTime
public void writeTime(Time x) throws SQLException
- Specified by:
writeTime
in interfaceSQLOutput
- Throws:
SQLException
-
writeTimestamp
public void writeTimestamp(Timestamp x) throws SQLException
- Specified by:
writeTimestamp
in interfaceSQLOutput
- Throws:
SQLException
-
writeCharacterStream
public void writeCharacterStream(Reader x) throws SQLException
- Specified by:
writeCharacterStream
in interfaceSQLOutput
- Throws:
SQLException
-
writeAsciiStream
public void writeAsciiStream(InputStream x) throws SQLException
- Specified by:
writeAsciiStream
in interfaceSQLOutput
- Throws:
SQLException
-
writeBinaryStream
public void writeBinaryStream(InputStream x) throws SQLException
- Specified by:
writeBinaryStream
in interfaceSQLOutput
- Throws:
SQLException
-
writeArray
public void writeArray(Array x) throws SQLException
- Specified by:
writeArray
in interfaceSQLOutput
- Throws:
SQLException
-
writeURL
public void writeURL(URL x) throws SQLException
- Specified by:
writeURL
in interfaceSQLOutput
- Throws:
SQLException
-
writeObject
public void writeObject(SQLData x) throws SQLException
- Specified by:
writeObject
in interfaceSQLOutput
- Throws:
SQLException
-
writeObject
public void writeObject(Object x, SQLType targetSqlType) throws SQLException
- Specified by:
writeObject
in interfaceSQLOutput
- Throws:
SQLException
-
writeBlob
public void writeBlob(Blob x) throws SQLException
- Specified by:
writeBlob
in interfaceSQLOutput
- Throws:
SQLException
-
writeClob
public void writeClob(Clob x) throws SQLException
- Specified by:
writeClob
in interfaceSQLOutput
- Throws:
SQLException
-
writeStruct
public void writeStruct(Struct x) throws SQLException
- Specified by:
writeStruct
in interfaceSQLOutput
- Throws:
SQLException
-
writeSQLXML
public void writeSQLXML(SQLXML x) throws SQLException
- Specified by:
writeSQLXML
in interfaceSQLOutput
- Throws:
SQLException
-
writeRowId
public void writeRowId(RowId x) throws SQLException
- Specified by:
writeRowId
in interfaceSQLOutput
- Throws:
SQLException
-
writeRef
public void writeRef(Ref x) throws SQLException
- Specified by:
writeRef
in interfaceSQLOutput
- Throws:
SQLException
-
writeNString
public void writeNString(String x) throws SQLException
- Specified by:
writeNString
in interfaceSQLOutput
- Throws:
SQLException
-
writeNClob
public void writeNClob(NClob x) throws SQLException
- Specified by:
writeNClob
in interfaceSQLOutput
- Throws:
SQLException
-
-