BasicClientConnectionPoolDataSource40 is similar to
ClientConnectionPoolDataSource except that it does not support JNDI,
i.e. it does not implement javax.naming.Referenceable.
ClientConnectionPoolDataSource40
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private int | maxStatements
Specifies the maximum number of statements that can be cached per connection by the JDBC driver. |
| private static final MessageUtil | msgUtil
Message utility used to obtain localized messages. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Maximum number of statements to cache, or0 if
caching is disabled (default).Implements org. |
| public PooledConnection | getPooledConnection()
Implements javax. |
| public PooledConnection | getPooledConnection(String
the database user on whose behalf the connection is being made user, String the user's password password)Implements javax. |
| public int | maxStatementsToPool()
Overrides org. |
| private void | readObject(ObjectInputStream
data stream to read objects from inputStream)Read an object from the ObjectInputStream. |
| public void | setMaxStatements(int
maximum number of cached statements maxStatements)Implements org. |
| private final void |
| className__ | back to summary |
|---|---|
| public static final String className__ Hides org. | |
| maxStatements | back to summary |
|---|---|
| private int maxStatements Specifies the maximum number of statements that can be cached per connection by the JDBC driver.
A value of | |
| msgUtil | back to summary |
|---|---|
| private static final MessageUtil msgUtil Message utility used to obtain localized messages. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| BasicClientConnectionPoolDataSource40 | back to summary |
|---|---|
| public BasicClientConnectionPoolDataSource40() | |
| getMaxStatements | back to summary |
|---|---|
| public int getMaxStatements() Implements org. Returns the maximum number of JDBC prepared statements a connection is allowed to cache.
| |
| getPooledConnection | back to summary |
|---|---|
| public PooledConnection getPooledConnection() throws SQLException Implements javax. Doc from javax. Attempts to establish a physical database connection that can be used as a pooled connection.
| |
| getPooledConnection | back to summary |
|---|---|
| public PooledConnection getPooledConnection(String user, String password) throws SQLException Implements javax. Doc from javax. Attempts to establish a physical database connection that can be used as a pooled connection.
| |
| maxStatementsToPool | back to summary |
|---|---|
| public int maxStatementsToPool() Overrides org. Internally used method.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream inputStream) throws ClassNotFoundException, IOException Read an object from the ObjectInputStream. This implementation differs from the default one by initiating state validation of the object created.
| |
| setMaxStatements | back to summary |
|---|---|
| public void setMaxStatements(int maxStatements) Implements org. Specifies the maximum size of the statement cache.
| |
| validateState | back to summary |
|---|---|
| private final void validateState() Make sure the state of the de-serialized object is valid. | |