|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xquark.xml.xdbc.DefaultReadOnlyXMLConnection | +--org.xquark.extractor.ExtractorConnection
Extractor implementation of XMLConnection
.
Field Summary |
Fields inherited from interface org.xquark.xml.xdbc.XMLConnection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE, XPATH_STRING_TYPE, XQUERY_STRING_TYPE |
Method Summary | |
void |
close()
To close the current data source connection. |
void |
commit()
Makes all changes made since the previous commit/rollback permanent and releases any data source locks currently held by the Connection. |
XMLStatement |
createStatement()
Creates a statement object for sending XQuery (query type by default) statements to the data source. |
XMLStatement |
createStatement(short queryType)
Creates a statement object for sending XQuery or XPath (according to the specified type) statements to the data source. |
protected void |
finalize()
|
Extractor |
getExtractor()
|
java.sql.Connection |
getJdbcConnection()
|
XMLDataSourceMetaData |
getMetaData()
Gets the metadata regarding this connection's data source. |
XMLDataSourceMetaData |
getMetaData(boolean refresh)
Gets the metadata regarding this connection's data source. |
java.lang.String |
getURL()
To get the current URL of this connection. |
java.lang.String |
getUserName()
To get the current user name. |
boolean |
isClosed()
To know the connection state (opened or closed). |
void |
loadModule(java.lang.String moduleURL)
|
void |
loadSchema(org.xml.sax.InputSource source)
|
PreparedXMLStatement |
prepareStatement(java.lang.String query)
Creates a prepared statement object for sending parameterized XQuery (query type by default) statements to the data source. |
void |
setBaseURI(java.lang.String baseURI)
Sets the base URI for documents. |
void |
statementClosed(XMLStatement closedStatement)
|
Methods inherited from class org.xquark.xml.xdbc.DefaultReadOnlyXMLConnection |
createCollection, createCollectionConfig, deleteAllCollections, deleteCollection, getAutoCommit, getCollection, getTransactionIsolation, isReadOnly, renameCollection, rollback, setAutoCommit, setReadOnly, setTransactionIsolation |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xquark.xml.xdbc.XMLConnection |
createCollection, createCollectionConfig, deleteAllCollections, deleteCollection, getAutoCommit, getCollection, getTransactionIsolation, isReadOnly, renameCollection, rollback, setAutoCommit, setReadOnly, setTransactionIsolation |
Method Detail |
public java.sql.Connection getJdbcConnection()
public Extractor getExtractor()
public void close() throws XMLDBCException
XMLConnection
close
in interface XMLConnection
XMLDBCException
- if a data source access error occurs.public void commit() throws XMLDBCException, XMLDBCNotSupportedException
XMLConnection
commit
in interface XMLConnection
commit
in class DefaultReadOnlyXMLConnection
XMLDBCNotSupportedException
- if the data source does not support transactions
XMLDBCException
- if a data source access error occurs.public boolean isClosed() throws XMLDBCException
XMLConnection
isClosed
in interface XMLConnection
XMLDBCException
- if a data source access error occurs.public java.lang.String getUserName() throws XMLDBCException
XMLConnection
getUserName
in interface XMLConnection
XMLDBCException
- if a data source access error occurs.public java.lang.String getURL() throws XMLDBCException
XMLConnection
getURL
in interface XMLConnection
XMLDBCException
- if a data source access error occurs.public XMLStatement createStatement(short queryType) throws XMLDBCException
XMLConnection
createStatement
in interface XMLConnection
queryType
- the type of query for this statement (see constants in this interface).
XMLDBCException
- if a data source access error occurs.public XMLStatement createStatement() throws XMLDBCException
XMLConnection
createStatement
in interface XMLConnection
XMLDBCException
- if a data source access error occurs.public PreparedXMLStatement prepareStatement(java.lang.String query) throws XMLDBCException, XMLDBCNotSupportedException
XMLConnection
prepareStatement
in interface XMLConnection
query
- a parameterized XQuery.
XMLDBCException
- if a data source access error occurs.
XMLDBCNotSupportedException
- if the method is not supported.public XMLDataSourceMetaData getMetaData() throws XMLDBCException
getMetaData
in interface XMLConnection
XMLDBCException
- if a data source access error occurs.public XMLDataSourceMetaData getMetaData(boolean refresh) throws XMLDBCException
XMLConnection
getMetaData
in interface XMLConnection
refresh
- if true, reload metadata.
XMLDBCException
- if a data source access error occurs.public void statementClosed(XMLStatement closedStatement) throws XMLDBCException
XMLDBCException
protected void finalize() throws java.lang.Exception
finalize
in class java.lang.Object
java.lang.Exception
public void loadModule(java.lang.String moduleURL) throws XMLDBCException
XMLDBCException
public void loadSchema(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, XMLDBCException
org.xml.sax.SAXException
XMLDBCException
public void setBaseURI(java.lang.String baseURI)
setBaseURI
in interface XMLConnection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |