|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.xqj.SaxonXQDataFactory
net.sf.saxon.xqj.SaxonXQDataSource
Saxon implementation of the XQJ XQDataSource interface. The first action of a client application is to instantiate a SaxonXQDataSource. This is done directly: there is no factory class as with JAXP. An application that does not want compile-time references to the Saxon XQJ implementation can instantiate this class dynamically using the reflection API (class.newInstance()).
For full Javadoc descriptions of the public methods, see the XQJ specification.
| Constructor Summary | |
SaxonXQDataSource()
Create a SaxonXQDataSource using a default configuration. |
|
SaxonXQDataSource(Configuration config)
Create a Saxon XQDataSource with a specific configuration |
|
| Method Summary | |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.javax.xml.xquery.XQDataFactory |
createAtomicItemType, createItem, createItemFromAtomicValue, createItemFromBoolean, createItemFromByte, createItemFromDocument, createItemFromDouble, createItemFromFloat, createItemFromInt, createItemFromLong, createItemFromNode, createItemFromObject, createItemFromShort, createItemType, createItemType, createSequence, createSequence, createSequenceType |
| Constructor Detail |
public SaxonXQDataSource()
public SaxonXQDataSource(Configuration config)
config - The Saxon configuration to be used| Method Detail |
public Configuration getConfiguration()
public XQCommonHandler getCommonHandler()
public XQConnection getConnection()
throws XQException
getConnection in interface XQDataSourceXQException
public XQConnection getConnection(java.sql.Connection con)
throws XQException
getConnection in interface XQDataSourcecon - the JDBC connection
XQException - 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 XQDataSource
public java.lang.String getProperty(java.lang.String name)
throws XQException
getProperty in interface XQDataSourceXQExceptionpublic java.lang.String[] getSupportedPropertyNames()
getSupportedPropertyNames in interface XQDataSource
public void setCommonHandler(XQCommonHandler handler)
throws XQException
setCommonHandler in interface XQDataSourceXQException
public void setLoginTimeout(int seconds)
throws XQException
setLoginTimeout in interface XQDataSourceXQException
public void setLogWriter(java.io.PrintWriter out)
throws XQException
setLogWriter in interface XQDataSourceXQException
public void setProperties(java.util.Properties props)
throws XQException
setProperties in interface XQDataSourceXQException
public void setProperty(java.lang.String name,
java.lang.String value)
throws XQException
setProperty in interface XQDataSourceXQException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||