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) voidaddSession(Connection conn, String name) Making a new connection, add it to the pool, and make it current.(package private) voiddoPrompt(boolean newStatement, LocalizedOutput out) (package private) Connection(package private) Session(package private) SessiongetSession(String name) (package private) booleanhaveSession(String name) (package private) voidinit(LocalizedOutput out) separate from the constructor so that connection failure does not prevent object creation.private voidinstallConnection(String name, String value, LocalizedOutput out) (package private) void(package private) void(package private) voidremoveSession(String name) (package private) SessionsetCurrentSession(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
-