org.apache.derby.impl.tools.ij
Class ConnectionEnv
java.lang.Object
org.apache.derby.impl.tools.ij.ConnectionEnv
class ConnectionEnv
- extends java.lang.Object
To enable multi-user use of ij.Main2
Constructor Summary |
ConnectionEnv(int userNumber,
boolean printUserNumber,
boolean theOnly)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessions
java.util.Hashtable sessions
currSession
private Session currSession
tag
private java.lang.String tag
only
private boolean only
CONNECTION_PROPERTY
private static final java.lang.String CONNECTION_PROPERTY
- See Also:
- Constant Field Values
protocol
private java.lang.String protocol
ConnectionEnv
ConnectionEnv(int userNumber,
boolean printUserNumber,
boolean theOnly)
init
void init(LocalizedOutput out)
throws java.sql.SQLException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- separate from the constructor so that connection
failure does not prevent object creation.
- Throws:
java.sql.SQLException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
doPrompt
void doPrompt(boolean newStatement,
LocalizedOutput out)
getConnection
java.sql.Connection getConnection()
addSession
void addSession(java.sql.Connection conn,
java.lang.String name)
- Making a new connection, add it to the pool, and make it current.
getUniqueConnectionName
public java.lang.String getUniqueConnectionName()
getSession
Session getSession()
getSessions
java.util.Hashtable getSessions()
getSession
Session getSession(java.lang.String name)
setCurrentSession
Session setCurrentSession(java.lang.String name)
haveSession
boolean haveSession(java.lang.String name)
removeCurrentSession
void removeCurrentSession()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
removeSession
void removeSession(java.lang.String name)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
removeAllSessions
void removeAllSessions()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
installConnection
private void installConnection(java.lang.String name,
java.lang.String value,
LocalizedOutput out)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.