|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.xqj.SaxonXQDataSource
public class 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 | |
---|---|
Configuration |
getConfiguration()
Get the configuration in use. |
XQConnection |
getConnection()
|
XQConnection |
getConnection(Connection con)
Get a connection based on an underlying JDBC connection |
XQConnection |
getConnection(String username,
String password)
Get a connection, by supplying a username and password. |
int |
getLoginTimeout()
|
PrintWriter |
getLogWriter()
|
String |
getProperty(String name)
|
String[] |
getSupportedPropertyNames()
|
void |
setLoginTimeout(int seconds)
|
void |
setLogWriter(PrintWriter out)
|
void |
setProperties(Properties props)
|
void |
setProperty(String name,
String value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaxonXQDataSource()
public SaxonXQDataSource(Configuration config)
config
- The Saxon configuration to be usedMethod Detail |
---|
public Configuration getConfiguration()
public XQConnection getConnection() throws XQException
getConnection
in interface XQDataSource
XQException
public XQConnection getConnection(Connection con) throws XQException
getConnection
in interface XQDataSource
con
- 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(String username, String password) throws XQException
getConnection
in interface XQDataSource
username
- password
-
XQException
public int getLoginTimeout()
getLoginTimeout
in interface XQDataSource
public PrintWriter getLogWriter()
getLogWriter
in interface XQDataSource
public String getProperty(String name) throws XQException
getProperty
in interface XQDataSource
XQException
public String[] getSupportedPropertyNames()
getSupportedPropertyNames
in interface XQDataSource
public void setLoginTimeout(int seconds) throws XQException
setLoginTimeout
in interface XQDataSource
XQException
public void setLogWriter(PrintWriter out) throws XQException
setLogWriter
in interface XQDataSource
XQException
public void setProperties(Properties props) throws XQException
setProperties
in interface XQDataSource
XQException
public void setProperty(String name, String value) throws XQException
setProperty
in interface XQDataSource
XQException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |