org.h2.table
Class TableLinkConnection

java.lang.Object
  extended by org.h2.table.TableLinkConnection

public class TableLinkConnection
extends java.lang.Object

A connection for a linked table. The same connection may be used for multiple tables, that means a connection may be shared.


Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
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)
          Open a new connection.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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)
                                throws java.sql.SQLException
Open a new connection.

Parameters:
map - the map where the connection should be stored (if shared connections are enabled).
driver - the JDBC driver class name
url - the database URL
user - the user name
password - the password
Returns:
a connection
Throws:
java.sql.SQLException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object