Package org.apache.derby.impl.tools.ij
Class ConnectionEnv
java.lang.Object
org.apache.derby.impl.tools.ij.ConnectionEnv
To enable multi-user use of ij.Main2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addSession
(Connection conn, String name) Making a new connection, add it to the pool, and make it current.(package private) void
doPrompt
(boolean newStatement, LocalizedOutput out) (package private) Connection
(package private) Session
(package private) Session
getSession
(String name) (package private) boolean
haveSession
(String name) (package private) void
init
(LocalizedOutput out) separate from the constructor so that connection failure does not prevent object creation.private void
installConnection
(String name, String value, LocalizedOutput out) (package private) void
(package private) void
(package private) void
removeSession
(String name) (package private) Session
setCurrentSession
(String name)
-
Field Details
-
sessions
-
currSession
-
tag
-
only
private boolean only -
CONNECTION_PROPERTY
- See Also:
-
protocol
-
-
Constructor Details
-
ConnectionEnv
ConnectionEnv(int userNumber, boolean printUserNumber, boolean theOnly)
-
-
Method Details
-
init
void init(LocalizedOutput out) throws SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException separate from the constructor so that connection failure does not prevent object creation. -
doPrompt
-
getConnection
Connection getConnection() -
addSession
Making a new connection, add it to the pool, and make it current. -
getUniqueConnectionName
-
getSession
Session getSession() -
getSessions
-
getSession
-
setCurrentSession
-
haveSession
-
removeCurrentSession
- Throws:
SQLException
-
removeSession
- Throws:
SQLException
-
removeAllSessions
- Throws:
SQLException
-
installConnection
- Throws:
SQLException
-