public class PgSQLXML
extends java.lang.Object
implements java.sql.SQLXML
| Modifier and Type | Field and 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 |
| Modifier | Constructor and Description |
|---|---|
|
PgSQLXML(BaseConnection conn) |
|
PgSQLXML(BaseConnection conn,
java.lang.String data) |
private |
PgSQLXML(BaseConnection conn,
java.lang.String data,
boolean initialized) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkFreed() |
private void |
ensureInitialized() |
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.Reader |
getCharacterStream() |
<T extends javax.xml.transform.Source> |
getSource(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> |
setResult(java.lang.Class<T> resultClass) |
void |
setString(java.lang.String value) |
private final BaseConnection conn
private java.lang.String data
private boolean initialized
private boolean active
private boolean freed
private java.io.ByteArrayOutputStream byteArrayOutputStream
private java.io.StringWriter stringWriter
private javax.xml.transform.dom.DOMResult domResult
public PgSQLXML(BaseConnection conn)
public PgSQLXML(BaseConnection conn, java.lang.String data)
private PgSQLXML(BaseConnection conn, java.lang.String data, boolean initialized)
private PGXmlFactoryFactory getXmlFactoryFactory() throws java.sql.SQLException
java.sql.SQLExceptionpublic void free()
free in interface java.sql.SQLXMLpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic <T extends javax.xml.transform.Source> T getSource(java.lang.Class<T> sourceClass)
throws java.sql.SQLException
getSource in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.lang.String getString()
throws java.sql.SQLException
getString in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream()
throws java.sql.SQLException
setBinaryStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.io.Writer setCharacterStream()
throws java.sql.SQLException
setCharacterStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic <T extends javax.xml.transform.Result> T setResult(java.lang.Class<T> resultClass)
throws java.sql.SQLException
setResult in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic void setString(java.lang.String value)
throws java.sql.SQLException
setString in interface java.sql.SQLXMLjava.sql.SQLExceptionprivate void checkFreed()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void ensureInitialized()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void initialize()
throws java.sql.SQLException
java.sql.SQLException