|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractDataFactory
de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractDataSource
public abstract class XQAbstractDataSource
Constructor Summary | |
---|---|
XQAbstractDataSource()
|
Method Summary | |
---|---|
XQConnection |
getConnection()
Attempts to create a connection to an XML datasource. |
XQConnection |
getConnection(java.sql.Connection con)
Attempts to create a connection to the XML datasource using an existing JDBC connection. |
XQConnection |
getConnection(java.lang.String username,
java.lang.String passwd)
Attempts to establish a connection to an XML datasource. |
int |
getLoginTimeout()
Gets the maximum time in seconds that this datasource can wait while attempting to connect to a database. |
java.io.PrintWriter |
getLogWriter()
Retrieves the log writer for this XQDataSource object. |
java.lang.String |
getProperty(java.lang.String name)
Returns the current value of the named property if set, else null. |
java.lang.String[] |
getSupportedPropertyNames()
Returns an array containing the property names supported by this XQDataSource. |
void |
setCommonHandler(XQCommonHandler hdlr)
Sets the default common handler to be used for converting items to and from Java objects in the setObject and getObject methods on an item. |
void |
setLoginTimeout(int seconds)
Sets the maximum time in seconds that this datasource will wait while attempting to connect to a database. |
void |
setLogWriter(java.io.PrintWriter out)
Sets the log writer for this XQDataSource object to the given java.io.PrintWriter object. |
void |
setProperties(java.util.Properties props)
Sets the data source properties from the specified Properties instance. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the named property to the specified value. |
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractDataFactory |
---|
createCachedSequence, createCachedSequence, createItem, createItemFromByte, createItemFromDate, createItemFromInt, createItemFromLong, createItemFromString, createItemType, createItemType, createSequenceType, createSequenceType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.xquery.XQDataFactory |
---|
createCachedSequence, createCachedSequence, createItem, createItemFromByte, createItemFromDate, createItemFromInt, createItemFromLong, createItemFromString, createItemType, createItemType, createSequenceType, createSequenceType |
Constructor Detail |
---|
public XQAbstractDataSource()
Method Detail |
---|
public XQConnection getConnection() throws XQException
XQDatasource
getConnection
in interface XQDatasource
XQException
public XQConnection getConnection(java.sql.Connection con) throws XQException
XQDatasource
getConnection
in interface XQDatasource
XQException
public XQConnection getConnection(java.lang.String username, java.lang.String passwd) throws XQException
XQDatasource
getConnection
in interface XQDatasource
XQException
public int getLoginTimeout() throws XQException
XQDatasource
getLoginTimeout
in interface XQDatasource
XQException
public java.io.PrintWriter getLogWriter() throws XQException
XQDatasource
getLogWriter
in interface XQDatasource
XQException
public java.lang.String getProperty(java.lang.String name) throws XQException
XQDatasource
getProperty
in interface XQDatasource
XQException
public java.lang.String[] getSupportedPropertyNames()
XQDatasource
getSupportedPropertyNames
in interface XQDatasource
public void setCommonHandler(XQCommonHandler hdlr) throws XQException
XQDatasource
setCommonHandler
in interface XQDatasource
XQException
public void setLoginTimeout(int seconds) throws XQException
XQDatasource
setLoginTimeout
in interface XQDatasource
XQException
public void setLogWriter(java.io.PrintWriter out) throws XQException
XQDatasource
setLogWriter
in interface XQDatasource
XQException
public void setProperties(java.util.Properties props) throws XQException
XQDatasource
setProperties
in interface XQDatasource
XQException
public void setProperty(java.lang.String name, java.lang.String value) throws XQException
XQDatasource
setProperty
in interface XQDatasource
XQException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |