| User's Guide: Small Ada 95 Object Database; Version 0.1.0; Document Revision $Revision: 1.9 $ | ||
|---|---|---|
| Prev | Chapter 30. Sdb.Session | Next |
procedure Begin_Session(
This : in out Object;
Name : in String );
Begin a session which is connected to the given object space.
None
Session is active
None
procedure End_Session(
This : in out Object );
End a session. All objects which are member of a transaction which has not been committed yet are lost.
Session is active
Is_Sesstion_Active = False
None
procedure Set_Current_Session(
Ses : in Handle );
Set the current session handle for the current thread.
None
The current thread referres to the give session handle.
Notes:
function Current_Session return Handle;
Return the current session handle
Session is active
Exceptions:
Wrong_Session_State
function Connection(
H : Handle ) return Service.Client.Handle;
function Connection(
H : in Handle ) return Service.Client.Object;
Get the handle of the connection object.
Session is active
none
Wrong_Session_State
procedure Get_Object(
Obj : in out Persistent.Object'Class;
Name : in String := "";
Id : in Object_ID := Null_Object_ID;
Create : in Boolean := True );
Get the object from the object space. If it does not exist create a new object. The object can be selected either by the object id or the name. If the name does not exist a new root name entry will be created.
Postconditions:
Notes:
procedure Delete_Object(
Obj : in out Persistent.Object'Class;
Name : in String := "" );
Delete the object from the object space assgined to the current session. If the parameter Name is not given, the object is identified by the object identifier, otherwise the name is looked up in the root name table of the object space.
P.1 - Session is active
P.2 - Object identifier is set or Name given
Exceptions:
function Rootname(
Name : in String ) return Object_ID;
Preconditions:
Exceptions:
function Image(
Ses : in Handle ) return String;
Wrong_Session_State : exception;
Not_Assigned : exception;
Invalid_Parameters : exception;
Object_Not_Found : exception;
Provide an string which represents the handle by returning the data base space connected. If the handle is not valid (null) the string undefined is returned.
none
none
none
none