public class SaxonXQDataSource extends SaxonXQDataFactory implements XQDataSource
For full Javadoc descriptions of the public methods, see the XQJ specification.
| Constructor and Description |
|---|
SaxonXQDataSource()
Create a SaxonXQDataSource using a default configuration.
|
SaxonXQDataSource(Configuration config)
Create a Saxon XQDataSource with a specific configuration
|
| Modifier and Type | Method and Description |
|---|---|
XQCommonHandler |
getCommonHandler()
Get the XQCommonHandler in use.
|
Configuration |
getConfiguration()
Get the configuration in use.
|
XQConnection |
getConnection() |
XQConnection |
getConnection(java.sql.Connection con)
Get a connection based on an underlying JDBC connection
|
XQConnection |
getConnection(java.lang.String username,
java.lang.String password)
Get a connection, by supplying a username and password.
|
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.lang.String |
getProperty(java.lang.String name) |
java.lang.String[] |
getSupportedPropertyNames() |
void |
setCommonHandler(XQCommonHandler handler) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
void |
setProperties(java.util.Properties props) |
void |
setProperty(java.lang.String name,
java.lang.String value) |
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType, mapSaxonTypeToXQJclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceTypepublic SaxonXQDataSource()
public SaxonXQDataSource(Configuration config)
config - The Saxon configuration to be usedpublic Configuration getConfiguration()
getConfiguration in class SaxonXQDataFactorypublic XQCommonHandler getCommonHandler()
getCommonHandler in class SaxonXQDataFactorypublic XQConnection getConnection() throws XQException
getConnection in interface XQDataSourceXQExceptionpublic XQConnection getConnection(java.sql.Connection con) throws XQException
getConnection in interface XQDataSourcecon - the JDBC connectionXQException - The Saxon implementation of this method always throws
an XQException, indicating that Saxon does not support connection to a JDBC data source.public XQConnection getConnection(java.lang.String username, java.lang.String password) throws XQException
getConnection in interface XQDataSourceusername - password - XQExceptionpublic int getLoginTimeout()
getLoginTimeout in interface XQDataSourcepublic java.io.PrintWriter getLogWriter()
getLogWriter in interface XQDataSourcepublic java.lang.String getProperty(java.lang.String name)
throws XQException
getProperty in interface XQDataSourceXQExceptionpublic java.lang.String[] getSupportedPropertyNames()
getSupportedPropertyNames in interface XQDataSourcepublic void setCommonHandler(XQCommonHandler handler) throws XQException
setCommonHandler in interface XQDataSourceXQExceptionpublic void setLoginTimeout(int seconds)
throws XQException
setLoginTimeout in interface XQDataSourceXQExceptionpublic void setLogWriter(java.io.PrintWriter out)
throws XQException
setLogWriter in interface XQDataSourceXQExceptionpublic void setProperties(java.util.Properties props)
throws XQException
setProperties in interface XQDataSourceXQExceptionpublic void setProperty(java.lang.String name,
java.lang.String value)
throws XQException
setProperty in interface XQDataSourceXQException