XQDataFactory
, XQDataSource
public class SaxonXQDataSource extends SaxonXQDataFactory implements XQDataSource
For full Javadoc descriptions of the public methods, see the XQJ specification.
Constructor | Description |
---|---|
SaxonXQDataSource() |
Create a SaxonXQDataSource using a default configuration.
|
SaxonXQDataSource(Configuration config) |
Create a Saxon XQDataSource with a specific configuration
|
Modifier and Type | Method | Description |
---|---|---|
XQCommonHandler |
getCommonHandler() |
Get the XQCommonHandler in use.
|
Configuration |
getConfiguration() |
Get the configuration in use.
|
XQConnection |
getConnection() |
|
XQConnection |
getConnection(java.lang.String username,
java.lang.String password) |
Get a connection, by supplying a username and password.
|
XQConnection |
getConnection(java.sql.Connection con) |
Get a connection based on an underlying JDBC connection
|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType, mapSaxonTypeToXQJ
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType
public SaxonXQDataSource()
public SaxonXQDataSource(Configuration config)
config
- The Saxon configuration to be usedpublic Configuration getConfiguration()
getConfiguration
in class SaxonXQDataFactory
public XQCommonHandler getCommonHandler()
getCommonHandler
in class SaxonXQDataFactory
public XQConnection getConnection() throws XQException
getConnection
in interface XQDataSource
XQException
public XQConnection getConnection(java.sql.Connection con) throws XQException
getConnection
in interface XQDataSource
con
- 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 XQDataSource
username
- password
- XQException
public int getLoginTimeout()
getLoginTimeout
in interface XQDataSource
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface XQDataSource
public java.lang.String getProperty(java.lang.String name) throws XQException
getProperty
in interface XQDataSource
XQException
public java.lang.String[] getSupportedPropertyNames()
getSupportedPropertyNames
in interface XQDataSource
public void setCommonHandler(XQCommonHandler handler) throws XQException
setCommonHandler
in interface XQDataSource
XQException
public void setLoginTimeout(int seconds) throws XQException
setLoginTimeout
in interface XQDataSource
XQException
public void setLogWriter(java.io.PrintWriter out) throws XQException
setLogWriter
in interface XQDataSource
XQException
public void setProperties(java.util.Properties props) throws XQException
setProperties
in interface XQDataSource
XQException
public void setProperty(java.lang.String name, java.lang.String value) throws XQException
setProperty
in interface XQDataSource
XQException