|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface that every data source must implement. Classes implementing this interface can be instantiated either directly, or through the XMLDriverManager class.
Method Summary | |
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. |
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. |
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. |
Method Detail |
public XMLConnection getConnection() throws XMLDBCException
XMLDBCException
- If a data source access error occurspublic XMLConnection getConnection(java.lang.String user, java.lang.String password) throws XMLDBCException
user
- the data source registered userpassword
- the user's password
XMLDBCException
- If a data source access error occurspublic void setLogWriter(java.io.PrintWriter writer)
writer
- the new logging/tracing java.io.PrintWriter object, or null to disable logging and tracingpublic java.io.PrintWriter getLogWriter()
public void setLoginTimeout(int seconds)
seconds
- the login time limit in secondspublic int getLoginTimeout()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |