|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xquark.bridge.XQBridge
Objects of this class encapsulate a JDBC connection and provide access to both
the XQuery and insertion capabilities of the XQBridge.
Objects of this class are thread-safe and can be reused multiple times.
However, as they encapsulate a JDBC connection, it is recommended to use
different objects with different JDBC connections for different threads.
Constructor Summary | |
XQBridge(java.sql.Connection jdbcConn)
|
|
XQBridge(java.sql.Connection jdbcConn,
java.lang.String confFile)
|
|
XQBridge(java.lang.String confFile)
|
Method Summary | |
void |
close()
|
java.lang.ClassLoader |
getClassLoader()
Returns the class loader used for loading drivers, mappings and user generators. |
java.sql.Connection |
getConnection()
Returns the JDBC connection used to access the underlying database. |
Mapping |
getMapping(org.xml.sax.InputSource source)
Deprecated. Prefer the string methods because they do not pose a problem for resolving relative URIs in mapping file schemaLocation attribute. |
Mapping |
getMapping(org.xml.sax.InputSource source,
boolean reload)
Deprecated. Prefer the string methods because they do not pose a problem for resolving relative URIs in mapping file schemaLocation attribute. |
Mapping |
getMapping(java.lang.String fileURI)
Creates a mapping object containing the processed version of the specified mapping file. |
Mapping |
getMapping(java.lang.String fileURI,
boolean reload)
Creates a mapping object containing the processed version of the specified mapping file. |
XMLConnection |
getXMLConnection()
Returns the XMLDBC connection used to execute XQuery statements over the database. |
static void |
main(java.lang.String[] args)
The method called from the command line to run the XQBridge as a standalone program. |
void |
setClassLoader(java.lang.ClassLoader loader)
Set the class loader used for loading drivers, mappings and user generators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XQBridge(java.sql.Connection jdbcConn)
public XQBridge(java.lang.String confFile)
public XQBridge(java.sql.Connection jdbcConn, java.lang.String confFile)
Method Detail |
public java.sql.Connection getConnection()
public XMLConnection getXMLConnection() throws XMLDBCException
XMLDBCException
public void close() throws XMLDBCException
XMLDBCException
public void setClassLoader(java.lang.ClassLoader loader)
loader
- ClassLoaderpublic java.lang.ClassLoader getClassLoader()
public Mapping getMapping(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, java.sql.SQLException, java.io.IOException
source
- a SAX input source encapsulating the mapping file.
java.io.IOException
- if an IO error occured while accessing the mapping file
org.xml.sax.SAXException
- if a SAX error occured while parsing the mapping file
java.sql.SQLException
- if an SQL error occured while accessing the databasepublic Mapping getMapping(org.xml.sax.InputSource source, boolean reload) throws org.xml.sax.SAXException, java.sql.SQLException, java.io.IOException
source
- a SAX input source encapsulating the mapping file.reload
- true if the mapping file must be reloaded even if found in the cache.
org.xml.sax.SAXException
java.sql.SQLException
java.io.IOException
public Mapping getMapping(java.lang.String fileURI) throws org.xml.sax.SAXException, java.sql.SQLException, java.io.IOException
fileURI
- the URI of the mapping file.
java.io.IOException
- if an IO error occured while accessing the mapping file
org.xml.sax.SAXException
- if a SAX error occured while parsing the mapping file
java.sql.SQLException
- if an SQL error occured while accessing the databasepublic Mapping getMapping(java.lang.String fileURI, boolean reload) throws org.xml.sax.SAXException, java.sql.SQLException, java.io.IOException
fileURI
- the URI of the mapping file.reload
- true if the mapping file must be reloaded even if found in the cache.
org.xml.sax.SAXException
java.sql.SQLException
java.io.IOException
public static void main(java.lang.String[] args)
args
- the command line parameters
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |