org.basex.query.util
Class JDBCConnections

java.lang.Object
  extended by org.basex.query.util.JDBCConnections

public final class JDBCConnections
extends java.lang.Object

Opened JDBC connections.

Author:
BaseX Team 2005-12, BSD License, Rositsa Shadura

Constructor Summary
JDBCConnections()
           
 
Method Summary
 int add(java.lang.Object obj)
          Adds a connection or prepared statement to depot.
 void close()
          Closes all opened connections.
 java.lang.Object get(int id)
          Returns connection or prepared statement with the given id.
 void remove(int id)
          Removes either a connection or a prepared statement from the depot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCConnections

public JDBCConnections()
Method Detail

add

public int add(java.lang.Object obj)
Adds a connection or prepared statement to depot.

Parameters:
obj - connection or prepared statement
Returns:
connection/prepared statement id

get

public java.lang.Object get(int id)
Returns connection or prepared statement with the given id.

Parameters:
id - id
Returns:
connection or prepared statement

remove

public void remove(int id)
Removes either a connection or a prepared statement from the depot.

Parameters:
id - connection/prepared statement id

close

public void close()
Closes all opened connections.