Package org.h2.table
Class TableLinkConnection
java.lang.Object
org.h2.table.TableLinkConnection
A connection for a linked table. The same connection may be used for multiple
tables, that means a connection may be shared.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanThe autocommit modeinthashCode()static TableLinkConnectionopen(HashMap<TableLinkConnection, TableLinkConnection> map, String driver, String url, String user, String password, boolean shareLinkedConnections) Open a new connection.voidsetAutoCommit(boolean mode) Specify if the autocommit mode is activated or not
-
Method Details
-
open
public static TableLinkConnection open(HashMap<TableLinkConnection, TableLinkConnection> map, String driver, String url, String user, 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() -
equals
-
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
-