Public Member Functions | Protected Attributes
ATPInterface.Session Class Reference

List of all members.

Public Member Functions

void close ()
Vector getConnections ()
LogicalDBInterface getDB ()
String getName ()
 Session (String name)

Protected Attributes

Vector connections
LogicalDBInterface db
String name

Detailed Description

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.

Author:
Joerg WEBER
Version:
1.0, DATE: 18.10.2005

Definition at line 44 of file Session.java.


Constructor & Destructor Documentation

ATPInterface.Session.Session ( String  name) [inline]

Creates a session of a certain name.

Definition at line 58 of file Session.java.


Member Function Documentation

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.

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.

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.


Member Data Documentation

Definition at line 50 of file Session.java.

Definition at line 53 of file Session.java.

String ATPInterface.Session.name [protected]

Definition at line 47 of file Session.java.


The documentation for this class was generated from the following file:


tug_ist_diagnosis_engine
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:16