Goods.Database Class
Class representing GOODS database connection

Access: Public
Base Classes: Object
  Members Description  
    IsolationLevel Set isolation level

 
    CacheManager Get number of storages in the database

 
    NumberOfStorages    
    Root Get/Set root object of the first storage in the database

 
    AllocBufferSize Set buffer size for bulk alloc. Bulk alloc alllows to minimize number of messages sent o the server by preallocating several OIDs during one request.

 
    storages    
    notifications    
    cacheManager    
    allocBufSize    
    Database Constructor of the database

 
    rawBinaryFactory Factory of raw binary objects which is used to pack/unpack raw binary objects

 
    onTransactionAbortEvent    
    attach Attach current thread to the database. This method is used in per-thread-transaction model associate the current thread with cache manager

 
    detach Detach current thread fro the database

 
    PER_PROCESS_TRANSACTION Transaction isolation levels.

 
    PER_THREAD_TRANSACTION    
    connections Get database cache manager. In per-thread transaction model each database has its own cache manager, providing isolation of the threads from each other. In cooperative model all databases share the same cache managers.

 
    getDatabase Create or reuse existed connection from connection pool

 
    closeAll Close all database active connections.

 
    closeAllDead Iterate through the listy of all active conenction and close ones associated with dead threads.

 
    Open Open the database

 
    Close Close database connection

 
    getRoot Get root of the specified storage

 
    getSize Get size of the database file of the storage

 
    setRoot Set root object for the specified storage in the database

 
    attach Associate persistent capable object with particular storage. Object should not yet be persistent (not belongs to soe storage)

 
    getObject Parse oid into number and get that id from the first storage

 
    getObject Get object from the storage by OID

 
    notifyOnModification Register event to be signaled on object modification

 
    notifyOnTransactionAbort Register event to be signaled when transaction is aborted by server

 
    handleError Error handler. Override this method in derived class to provide applciation specified error handling policy.

 
    handleException Error handler. Override this method in derived class to provide applciation specified error handling policy.

 
    createStorage Create storage

 
    disconnected Handler of client server connection failure. This method is called when connection with server is broken. Override this method in derived class to provide applciation specified error handling policy.

 
    abortTransaction