FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 Session Object

The Session object, is an object instance derived from the fdoSession class (or subclass) and represents the front door to the persistence engine services. It is used to make connections to databases, save and retrieve business objects, update database schema definitions, Select , Insert, Update and Delete records in the database, perform object and SQL queries, and so on.

The Session object is the public interface to all of the persistence and mapping services. Internal implementation of these services is done actually by a related group of specialized components that encapsulate each service and call specific functions in the C++ FLL library, all of them working in a very efficient an integrated way. Public properties and Methods from these objects are exposed in the fdoSession class as an interface, making the core of FDO a fully scalable and robust foundation and hiding all the complexities of such a powerful engine.

The following figure shows the fdoSession class objects hierarchy.
 

fdoSession class objects hierarchy

 
 
Properties
 
AutomaticTransactions ConnectionMode ConnectionLifeTime
DataSession DataSource DataSourceLookupMode
EventsEnabled Errors IsConnected
IsInitializing IsDeletingObjects IsRetrievingObjects
IsSavingObjects ODBC_ConnectionHandler ofdoServer
PersistenceEventsEnabled SqlLogFileName  

 

Methods
 
ArrayToString ClearObject Connect
CreateObject CreateSchema DeleteObject
Disconnect EnsureDatabaseStatus GetData
GetObject GetObjectID GetXMLData
HasChanged IsObjectAdding IsObjectLoaded
LabelObject LoadSchema NewQuery
ObjectToString OldVal OpenSchemaManager
ReloadObject SaveObject SendData
StringToArray StringToObject SyncObject

 

Events
 
AfterCleanedUp AfterConnected AfterConnectionFailure
AfterDisconnected BeforeCleanUp BeforeConnect
BeforeDisconnect OnDestroy OnInit

 

Objects
 
Errors Collection MappingSchema Thermometer
Transaction    

 

Send feedback on this topic to RunAhead Technologies

For Technical support and product issues please contact us at support@foxdataobjects.com or visit http://www.foxdataobjects.com

Copyright (c) 2000-2005 RunAhead Technologies