Package org.postgresql.jdbc
Class PgSQLXML
- java.lang.Object
-
- org.postgresql.jdbc.PgSQLXML
-
- All Implemented Interfaces:
java.sql.SQLXML
public class PgSQLXML extends java.lang.Object implements java.sql.SQLXML
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
active
private java.io.ByteArrayOutputStream
byteArrayOutputStream
private BaseConnection
conn
private java.lang.String
data
private javax.xml.transform.dom.DOMResult
domResult
private boolean
freed
private boolean
initialized
private java.io.StringWriter
stringWriter
-
Constructor Summary
Constructors Modifier Constructor Description PgSQLXML(BaseConnection conn)
PgSQLXML(BaseConnection conn, java.lang.String data)
private
PgSQLXML(BaseConnection conn, java.lang.String data, boolean initialized)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkFreed()
private void
ensureInitialized()
void
free()
java.io.InputStream
getBinaryStream()
java.io.Reader
getCharacterStream()
<T extends javax.xml.transform.Source>
TgetSource(java.lang.Class<T> sourceClass)
java.lang.String
getString()
private PGXmlFactoryFactory
getXmlFactoryFactory()
private void
initialize()
java.io.OutputStream
setBinaryStream()
java.io.Writer
setCharacterStream()
<T extends javax.xml.transform.Result>
TsetResult(java.lang.Class<T> resultClass)
void
setString(java.lang.String value)
-
-
-
Field Detail
-
conn
private final BaseConnection conn
-
data
private java.lang.String data
-
initialized
private boolean initialized
-
active
private boolean active
-
freed
private boolean freed
-
byteArrayOutputStream
private java.io.ByteArrayOutputStream byteArrayOutputStream
-
stringWriter
private java.io.StringWriter stringWriter
-
domResult
private javax.xml.transform.dom.DOMResult domResult
-
-
Constructor Detail
-
PgSQLXML
public PgSQLXML(BaseConnection conn)
-
PgSQLXML
public PgSQLXML(BaseConnection conn, java.lang.String data)
-
PgSQLXML
private PgSQLXML(BaseConnection conn, java.lang.String data, boolean initialized)
-
-
Method Detail
-
getXmlFactoryFactory
private PGXmlFactoryFactory getXmlFactoryFactory() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
free
public void free()
- Specified by:
free
in interfacejava.sql.SQLXML
-
getBinaryStream
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
- Specified by:
getBinaryStream
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream() throws java.sql.SQLException
- Specified by:
getCharacterStream
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
getSource
public <T extends javax.xml.transform.Source> T getSource(java.lang.Class<T> sourceClass) throws java.sql.SQLException
- Specified by:
getSource
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLException
- Specified by:
getString
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
setBinaryStream
public java.io.OutputStream setBinaryStream() throws java.sql.SQLException
- Specified by:
setBinaryStream
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
setCharacterStream
public java.io.Writer setCharacterStream() throws java.sql.SQLException
- Specified by:
setCharacterStream
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
setResult
public <T extends javax.xml.transform.Result> T setResult(java.lang.Class<T> resultClass) throws java.sql.SQLException
- Specified by:
setResult
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
setString
public void setString(java.lang.String value) throws java.sql.SQLException
- Specified by:
setString
in interfacejava.sql.SQLXML
- Throws:
java.sql.SQLException
-
checkFreed
private void checkFreed() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
ensureInitialized
private void ensureInitialized() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
initialize
private void initialize() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-