DataSource
interface. It allows to set the URL, user name, and password to its properties. It can be bound via JNDI so that the properties can be set by an "application server" and a "ready-to-use" reference to DataSource
can be retrieved via JNDI.
DataSource.java の 47 行で定義されています。
Public メソッド | |
DataSource () | |
java.sql.Connection | getConnection () throws SQLException |
java.sql.Connection | getConnection (String user, String password) throws SQLException |
void | setLogWriter (PrintWriter output) throws SQLException |
java.io.PrintWriter | getLogWriter () |
void | setLoginTimeout (int seconds) throws SQLException |
int | getLoginTimeout () throws SQLException |
Reference | getReference () throws NamingException |
String | getDescription () |
void | setUrl (String url) |
void | setURL (String url) |
String | getUrl () |
String | getURL () |
void | setUser (String userName) |
String | getUser () |
void | setPassword (String pwd) |
Protected メソッド | |
java.sql.Connection | getConnection (Properties props) throws SQLException |
Protected 変数 | |
String | url = null |
String | user = null |
String | password = null |
PrintWriter | logWriter = null |
Static Protected 変数 | |
final String | URL_PROPERTY = "url" |
final String | USER_PROPERTY = Driver.USER_PROPERTY |
final String | PASSWORD_PROPERTY = Driver.PASSWORD_PROPERTY |
final String | DRIVER_CLASSNAME = "org.objectweb.cjdbc.driver.Driver" |
final String | FACTORY_CLASSNAME = "org.objectweb.cjdbc.driver.DataSourceFactory" |
final String | DESCRIPTION_PROPERTY = "description" |
Driver | driver = null |
スタティック関数 | |
[static initializer] |
|
Default constructor. DataSource.java の 85 行で定義されています。
|
|
|
|
Creates a connection using the specified properties.
参照先 org.objectweb.cjdbc.driver.Driver.connect(), org.objectweb.cjdbc.driver.DataSource.driver, と org.objectweb.cjdbc.driver.DataSource.url.
|
|
Gets connection. Retrieves a new connection using the user name and password specified.
参照先 org.objectweb.cjdbc.driver.DataSource.getConnection(), org.objectweb.cjdbc.driver.DataSource.password, org.objectweb.cjdbc.driver.DataSource.PASSWORD_PROPERTY, org.objectweb.cjdbc.driver.DataSource.user, と org.objectweb.cjdbc.driver.DataSource.USER_PROPERTY.
|
|
Gets connection. Retrieves a new connection using the user name and password that have been already set.
参照先 org.objectweb.cjdbc.driver.DataSource.password, と org.objectweb.cjdbc.driver.DataSource.user. 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection().
|
|
Return the description of this Datasource with the Driver version number.
参照先 org.objectweb.cjdbc.driver.DataSource.driver, org.objectweb.cjdbc.driver.Driver.getMajorVersion(), と org.objectweb.cjdbc.driver.Driver.getMinorVersion(). 参照元 org.objectweb.cjdbc.driver.DataSource.getReference().
|
|
Gets the login timeout.
|
|
Gets the log writer.
参照先 org.objectweb.cjdbc.driver.DataSource.logWriter.
|
|
|
Gets URL of the C-JDBC controller(s) to connect. The URL is stored in the URL_PROPERTYproperty.
参照先 org.objectweb.cjdbc.driver.DataSource.getUrl().
|
|
Gets url of the C-JDBC controller(s) to connect. The URL is stored in the URL_PROPERTYproperty.
参照先 org.objectweb.cjdbc.driver.DataSource.url. 参照元 org.objectweb.cjdbc.driver.DataSource.getReference(), と org.objectweb.cjdbc.driver.DataSource.getURL().
|
|
Gets user name to be used to connect the C-JDBC controller(s). The user name is stored in the USER_PROPERTYproperty.
参照先 org.objectweb.cjdbc.driver.DataSource.user. 参照元 org.objectweb.cjdbc.driver.DataSource.getReference().
|
|
Sets the timeout. Actually does nothing.
|
|
Sets the log writer for this data source.
参照先 org.objectweb.cjdbc.driver.DataSource.logWriter.
|
|
Sets password to be used to connect the C-JDBC controller(s). The method can be used by the "application server" to set the password (potentially according a deployment descriptor). The password is stored in the PASSWORD_PROPERTYproperty. Note that there is not a
参照先 org.objectweb.cjdbc.driver.DataSource.password. 参照元 org.objectweb.cjdbc.driver.DataSourceFactory.getObjectInstance().
|
|
Sets URL of the C-JDBC controller(s) to connect. The method is used by the "application server" to set the URL (potentially according a deployment descriptor). The URL is stored in the "url" property.
参照先 org.objectweb.cjdbc.driver.DataSource.setUrl().
|
|
Sets url of the C-JDBC controller(s) to connect. The method is used by the "application server" to set the URL (potentially according a deployment descriptor). The url is stored in the URL_PROPERTYproperty.
参照元 org.objectweb.cjdbc.driver.DataSourceFactory.getObjectInstance(), と org.objectweb.cjdbc.driver.DataSource.setURL().
|
|
Sets user name to be used to connect the C-JDBC controller(s). The method can be used by the "application server" to set the user name (potentially according a deployment descriptor). The user name is stored in the USER_PROPERTYproperty.
参照先 org.objectweb.cjdbc.driver.DataSource.user. 参照元 org.objectweb.cjdbc.driver.DataSourceFactory.getObjectInstance().
|
|
DataSource.java の 60 行で定義されています。 |
|
Wrapped driver for to get connections. DataSource.java の 63 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection(), と org.objectweb.cjdbc.driver.DataSource.getDescription(). |
|
DataSource.java の 58 行で定義されています。 |
|
DataSource.java の 59 行で定義されています。 |
|
DataSource.java の 80 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getLogWriter(), と org.objectweb.cjdbc.driver.DataSource.setLogWriter(). |
|
DataSource.java の 79 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection(), org.objectweb.cjdbc.driver.DataSource.getReference(), と org.objectweb.cjdbc.driver.DataSource.setPassword(). |
|
DataSource.java の 57 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection(), と org.objectweb.cjdbc.driver.DataSource.getReference(). |
|
DataSource properties DataSource.java の 77 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection(), と org.objectweb.cjdbc.driver.DataSource.getUrl(). |
|
DataSource properties DataSource.java の 55 行で定義されています。 |
|
DataSource.java の 78 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection(), org.objectweb.cjdbc.driver.DataSource.getUser(), と org.objectweb.cjdbc.driver.DataSource.setUser(). |
|
DataSource.java の 56 行で定義されています。 参照元 org.objectweb.cjdbc.driver.DataSource.getConnection(), と org.objectweb.cjdbc.driver.DataSource.getReference(). |