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.SQLException
public void free()
free
in interface java.sql.SQLXML
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
in interface java.sql.SQLXML
java.sql.SQLException
public java.io.Reader getCharacterStream() throws java.sql.SQLException
getCharacterStream
in interface java.sql.SQLXML
java.sql.SQLException
public <T extends javax.xml.transform.Source> T getSource(java.lang.Class<T> sourceClass) throws java.sql.SQLException
getSource
in interface java.sql.SQLXML
java.sql.SQLException
public java.lang.String getString() throws java.sql.SQLException
getString
in interface java.sql.SQLXML
java.sql.SQLException
public java.io.OutputStream setBinaryStream() throws java.sql.SQLException
setBinaryStream
in interface java.sql.SQLXML
java.sql.SQLException
public java.io.Writer setCharacterStream() throws java.sql.SQLException
setCharacterStream
in interface java.sql.SQLXML
java.sql.SQLException
public <T extends javax.xml.transform.Result> T setResult(java.lang.Class<T> resultClass) throws java.sql.SQLException
setResult
in interface java.sql.SQLXML
java.sql.SQLException
public void setString(java.lang.String value) throws java.sql.SQLException
setString
in interface java.sql.SQLXML
java.sql.SQLException
private void checkFreed() throws java.sql.SQLException
java.sql.SQLException
private void ensureInitialized() throws java.sql.SQLException
java.sql.SQLException
private void initialize() throws java.sql.SQLException
java.sql.SQLException