| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Connection | conn
The database connection. |
| private final String | driver
The connection information. |
| private final HashMap | map
The map where the link is kept. |
| private final String | password
The connection information. |
| private final String | url
The connection information. |
| private int | useCounter
How many times the connection is used. |
| private final String | user
The connection information. |
| Access | Constructor and Description |
|---|---|
| private | TableLinkConnection(HashMap<TableLinkConnection, TableLinkConnection> map, String driver, String url, String user, String password)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | close(boolean
if the connection needs to be closed even if it is still
used elsewhere (for example, because the connection is broken) force)Closes the connection if this is the last link to it. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| pack-priv Connection | |
| public int | |
| public static TableLinkConnection | Returns: a connectionthe map where the connection should be stored
(if shared connections are enabled). map, String the JDBC driver class name driver, String the database URL url, String the user name user, String the password password, boolean if connections should be shared shareLinkedConnections)Open a new connection. |
| private void | |
| public void |
| autocommit | back to summary |
|---|---|
| private boolean autocommit | |
| conn | back to summary |
|---|---|
| private Connection conn The database connection. | |
| driver | back to summary |
|---|---|
| private final String driver The connection information. | |
| map | back to summary |
|---|---|
| private final HashMap<TableLinkConnection, TableLinkConnection> map The map where the link is kept. | |
| password | back to summary |
|---|---|
| private final String password The connection information. | |
| url | back to summary |
|---|---|
| private final String url The connection information. | |
| useCounter | back to summary |
|---|---|
| private int useCounter How many times the connection is used. | |
| user | back to summary |
|---|---|
| private final String user The connection information. | |
| TableLinkConnection | back to summary |
|---|---|
| private TableLinkConnection(HashMap<TableLinkConnection, TableLinkConnection> map, String driver, String url, String user, String password) | |
| close | back to summary |
|---|---|
| pack-priv void close(boolean force) Closes the connection if this is the last link to it.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAutocommit | back to summary |
|---|---|
| public boolean getAutocommit() The autocommit mode
| |
| getConnection | back to summary |
|---|---|
| pack-priv Connection getConnection() Get the connection. This method and methods on the statement must be synchronized on this object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| open | back to summary |
|---|---|
| public static TableLinkConnection open(HashMap<TableLinkConnection, TableLinkConnection> map, String driver, String url, String user, String password, boolean shareLinkedConnections) Open a new connection.
| |
| open | back to summary |
|---|---|
| private void open() | |
| setAutoCommit | back to summary |
|---|---|
| public void setAutoCommit(boolean mode) Specify if the autocommit mode is activated or not
| |