Public Member Functions | |
void | close () |
Vector | getConnections () |
LogicalDBInterface | getDB () |
String | getName () |
Session (String name) | |
Protected Attributes | |
Vector | connections |
LogicalDBInterface | db |
String | name |
A session is associated to one or more connections and maintains the access to a logical DB.
A session (and its database) may be shared by several connections. Thus, each access to a session or its database MUST be enclosed by a "synchronized(session)" statement.
If a session is no longer needed, then the close() method should be called. This method must not be called if the session is still associated to one or more connections.
Definition at line 44 of file Session.java.
ATPInterface.Session.Session | ( | String | name | ) | [inline] |
Creates a session of a certain name.
Definition at line 58 of file Session.java.
void ATPInterface.Session.close | ( | ) | [inline] |
Closes the session and its database forever, can be called only if the collection returned by getConnections() is empty.
Definition at line 94 of file Session.java.
Vector ATPInterface.Session.getConnections | ( | ) | [inline] |
These are the connections this session is associated to.
The session must not be closed if this collection still holds any connections.
Definition at line 76 of file Session.java.
LogicalDBInterface ATPInterface.Session.getDB | ( | ) | [inline] |
Returns the logical database of this session, DO NOT forget to synchronize the access to it (see class description above)!!
Definition at line 85 of file Session.java.
String ATPInterface.Session.getName | ( | ) | [inline] |
Returns the name of this session.
Definition at line 67 of file Session.java.
Vector ATPInterface.Session.connections [protected] |
Definition at line 50 of file Session.java.
LogicalDBInterface ATPInterface.Session.db [protected] |
Definition at line 53 of file Session.java.
String ATPInterface.Session.name [protected] |
Definition at line 47 of file Session.java.