|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xquark.mediator.Mediator
This class represent the mediator as a source that can be accessed by xdbc.
Constructor Summary | |
Mediator()
|
|
Mediator(java.lang.String configURI)
Initialize the mediator with a configuration file URI where wrappers location are defined. |
Method Summary | |
void |
addXDBCWrapper(java.lang.String name,
java.lang.String driver,
java.lang.String uri)
|
void |
addXDBCWrapper(java.lang.String name,
java.lang.String driver,
java.lang.String uri,
java.lang.String login,
java.lang.String password)
|
void |
addXDBCWrapper(java.lang.String name,
XMLDataSource ds)
|
void |
addXDBCWrapper(XDBCWrapper wrapper)
Add a new Subaccessor in the mediator hashmap. |
java.lang.ClassLoader |
getClassLoader()
Returns the class loader used for loading drivers, mappings and user generators. |
XMLConnection |
getConnection()
Attempts to establish a connection with the data source. |
XMLConnection |
getConnection(java.lang.String user,
java.lang.String password)
Attempts to establish a connection with the data source. |
protected org.xquark.xquery.metadata.MetaDataImpl |
getDataSourceMetaData(boolean refresh)
|
int |
getLoginTimeout()
Gets the maximum time in seconds that the object can wait when attempting to log in to a data source |
java.io.PrintWriter |
getLogWriter()
Retrieves the log writer currently used by the XDataSource object to print messages. |
java.lang.String |
getName()
|
java.lang.String |
getURL()
|
XDBCWrapper |
getWrapper(java.lang.String name)
|
java.util.Map |
getWrappers()
|
void |
loadSchema(org.xml.sax.InputSource source)
Loads an XML schema in memory. |
void |
setClassLoader(java.lang.ClassLoader loader)
Set the class loader used for loading drivers, mappings and user generators. |
void |
setLoginTimeout(int seconds)
Sets the maximum time in seconds that the object will wait when attempting to log in to a data source. |
void |
setLogWriter(java.io.PrintWriter writer)
Sets the logging/tracing java.io.PrintWriter object that is used by the XDataSource object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Mediator()
public Mediator(java.lang.String configURI) throws XMLDBCException
Method Detail |
public java.lang.String getName()
public java.lang.String getURL()
public void addXDBCWrapper(XDBCWrapper wrapper) throws XMLDBCException
XMLDBCException
public void addXDBCWrapper(java.lang.String name, XMLDataSource ds) throws XMLDBCException
XMLDBCException
public void addXDBCWrapper(java.lang.String name, java.lang.String driver, java.lang.String uri) throws XMLDBCException
XMLDBCException
public void addXDBCWrapper(java.lang.String name, java.lang.String driver, java.lang.String uri, java.lang.String login, java.lang.String password) throws XMLDBCException
XMLDBCException
public java.util.Map getWrappers()
public XDBCWrapper getWrapper(java.lang.String name)
protected org.xquark.xquery.metadata.MetaDataImpl getDataSourceMetaData(boolean refresh) throws XMLDBCException
XMLDBCException
public XMLConnection getConnection() throws XMLDBCException
getConnection
in interface XMLDataSource
XMLDBCException
- If a data source access error occurspublic XMLConnection getConnection(java.lang.String user, java.lang.String password) throws XMLDBCException
getConnection
in interface XMLDataSource
user
- the data source registered userpassword
- the user's password
XMLDBCException
- If a data source access error occurspublic void setLogWriter(java.io.PrintWriter writer)
setLogWriter
in interface XMLDataSource
writer
- the new logging/tracing java.io.PrintWriter object, or null to disable logging and tracingpublic java.io.PrintWriter getLogWriter()
getLogWriter
in interface XMLDataSource
public void setLoginTimeout(int seconds)
setLoginTimeout
in interface XMLDataSource
seconds
- the login time limit in secondspublic int getLoginTimeout()
getLoginTimeout
in interface XMLDataSource
public void setClassLoader(java.lang.ClassLoader loader)
loader
- ClassLoaderpublic java.lang.ClassLoader getClassLoader()
public void loadSchema(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, XMLDBCException
org.xml.sax.SAXException
XMLDBCException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |