In any case, in order to use this ConnectionPoolDataSource, you must set the property databaseName. The settings for serverName, portNumber, user, and password are optional.
Note
these properties are declared in the superclass.
This implementation supports JDK 1.3 and higher.
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDescription()
Implements abstract org. Gets a description of this DataSource. |
| public PooledConnection | getPooledConnection()
Implements javax. Gets a connection which may be pooled by the app server or middleware implementation of DataSource. |
| public PooledConnection | getPooledConnection(String
the database user on whose behalf the connection is being made user, String the user's password password)Implements javax. Gets a connection which may be pooled by the app server or middleware implementation of DataSource. |
| public boolean | Returns: true if connections supplied by this pool will have autoCommitGets whether connections supplied by this pool will have autoCommit turned on by default. |
| private void | |
| public void | setDefaultAutoCommit(boolean
whether connections supplied by this pool will have autoCommit defaultAutoCommit)Sets whether connections supplied by this pool will have autoCommit turned on by default. |
| private void |
| defaultAutoCommit | back to summary |
|---|---|
| private boolean defaultAutoCommit | |
| PGConnectionPoolDataSource | back to summary |
|---|---|
| public PGConnectionPoolDataSource() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Gets a description of this DataSource.
| |
| getPooledConnection | back to summary |
|---|---|
| public PooledConnection getPooledConnection() throws SQLException Implements javax. Gets a connection which may be pooled by the app server or middleware implementation of DataSource.
| |
| getPooledConnection | back to summary |
|---|---|
| public PooledConnection getPooledConnection(String user, String password) throws SQLException Implements javax. Gets a connection which may be pooled by the app server or middleware implementation of DataSource.
| |
| isDefaultAutoCommit | back to summary |
|---|---|
| public boolean isDefaultAutoCommit() Gets whether connections supplied by this pool will have autoCommit turned on by default. The
default value is
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException | |
| setDefaultAutoCommit | back to summary |
|---|---|
| public void setDefaultAutoCommit(boolean defaultAutoCommit) Sets whether connections supplied by this pool will have autoCommit turned on by default. The
default value is
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException | |