Package org.h2.table
Class TableLinkConnection
- java.lang.Object
-
- org.h2.table.TableLinkConnection
-
public class TableLinkConnection extends java.lang.ObjectA connection for a linked table. The same connection may be used for multiple tables, that means a connection may be shared.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)booleangetAutocommit()The autocommit modeinthashCode()static TableLinkConnectionopen(java.util.HashMap<TableLinkConnection,TableLinkConnection> map, java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, boolean shareLinkedConnections)Open a new connection.voidsetAutoCommit(boolean mode)Specify if the autocommit mode is activated or not
-
-
-
Method Detail
-
open
public static TableLinkConnection open(java.util.HashMap<TableLinkConnection,TableLinkConnection> map, java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password, boolean shareLinkedConnections)
Open a new connection.- Parameters:
map- the map where the connection should be stored (if shared connections are enabled).driver- the JDBC driver class nameurl- the database URLuser- the usernamepassword- the passwordshareLinkedConnections- if connections should be shared- Returns:
- a connection
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
setAutoCommit
public void setAutoCommit(boolean mode)
Specify if the autocommit mode is activated or not- Parameters:
mode- to set
-
getAutocommit
public boolean getAutocommit()
The autocommit mode- Returns:
- true if autocommit is on
-
-