|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--com.mimer.jdbc.MimerDataSource
|
+--com.mimer.jdbc.MimerConnectionPoolDataSource
MimerConnectionPoolDataSource implements the javax.sql.ConnectionPoolDataSource interface and its primary purpose is to provide a connection object to be embedded in connection pools.
The MimerConnectionDataSource object supports Javabeans. This means this class may be configured using generic IDE tools.
Before a connection is attempted by calling MimerConnectionPoolDataSource.getConnection
the database name attribute must be set. This specifies database on the host to connect to. Use MimerDataSource.setDatabaseName(java.lang.String) to set this attribute.
| Constructor Summary | |
MimerConnectionPoolDataSource()
|
|
| Method Summary | |
Connection |
getConnection()
The plain .getConnection() method from DataSource is available but always throws an exception. |
Connection |
getConnection(String user,
String password)
The plain .getConnection() method from DataSource is available but always throws an exception. |
PooledConnection |
getPooledConnection()
Attempts the connection to the host. |
PooledConnection |
getPooledConnection(String user,
String password)
Attempts the connection to the host with the specified user and password. |
| Methods inherited from class com.mimer.jdbc.MimerDataSource |
getDatabaseName, getDescription, getLoginTimeout, getLogWriter, getPassword, getPortNumber, getReference, getServerName, getUser, setDatabaseName, setDescription, setLoginTimeout, setLogWriter, setPassword, setPortNumber, setServerName, setUser |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.ConnectionPoolDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
| Methods inherited from interface javax.naming.Referenceable |
getReference |
| Constructor Detail |
public MimerConnectionPoolDataSource()
| Method Detail |
public Connection getConnection()
throws SQLException
DataSource is available but always throws an exception.
getConnection in interface DataSourcegetConnection in class MimerDataSourceSQLException
public Connection getConnection(String user,
String password)
throws SQLException
DataSource is available but always throws an exception.
getConnection in interface DataSourcegetConnection in class MimerDataSourceSQLException
public PooledConnection getPooledConnection()
throws SQLException
Before calling this method, the following attributes should be set.
MimerDataSource.setUser(java.lang.String) to set this attribute.MimerDataSource.setPassword(java.lang.String) to set this attribute.
getPooledConnection in interface ConnectionPoolDataSourceSQLException - if an error occurs. SQLSTATE 08004 is thrown if the connection failed because of a wrong user or password, or if an attempt was made to connect to a Mimer SQL server older than 8.2. 08001 is thrown if the connection failed because the server could not be contacted, perhaps it was down.
public PooledConnection getPooledConnection(String user,
String password)
throws SQLException
Before calling this method, the following attributes should be set.
getPooledConnection in interface ConnectionPoolDataSourceSQLException - if an error occurs. SQLSTATE 08004 is thrown if the connection failed because of a wrong user or password, or if an attempt was made to connect to a Mimer SQL server older than 8.2. 08001 is thrown if the connection failed because the server could not be contacted, perhaps it was down.
|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||