Documente Academic
Documente Profesional
Documente Cultură
Página 1 de 10
Slovenska verzija
Home | Company | Products | Services
Index of classes
Block (aka BlockClosure) loose methods
Object loose methods
Object class loose methods
Class loose methods
OmniBase class methods
OmniBase database connection methods - instance methods of class
OmniBase
OmniBase transaction methods - instance methods of class
ODBTransaction and subclasses
BTreeDictionary methods - instance methods of class
ODBBTreeDictionary
z evaluateAndCommitIn: anODBTransaction
z evaluateIn: anODBTransaction
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 2 de 10
OmniBase root, OmniBase commit, ...) the developer can access the
database without referencing transaction explicitly. After the block
is evaluated the transaction is still active and has to be aborted or
committed. If the receiver block is curtailed during its evaluation the
transaction is automatically aborted and all locks are freed. Answer
the result of evaluating the receiver block.
z asBtreeKeyOfSize: keySize
Subclass and implement this method for objects which can be used
as a b-tree dictionary keys. Method should answer a ByteArray of
size keySize. See also Object>>newBTreeDictionary: and class
ODBBTreeDictionary.
z isIdenticalTo: anObject
z isODBReference
z makePersistent
z markDirty
Mark the receiver object as dirty. A new version of the object will be
stored into the database upon transaction commit. Signal an error if
the object is not already persistent.
z odbLoadedIn: anODBTransaction
z odbMadePersistentIn: anODBTransaction
This method is sent to the object when it has been made persistent in
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 3 de 10
a transaction.
z odbSerialize: serializer
z newPersistent
z odbTransientInstanceVariables
z allSessions
z checkpoint
z closeAll
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 4 de 10
z commit
z createOn: aString
z current
z currentTransaction
z newBTreeDictionary: keySize
z newBTreeIndexDictionary: keySize
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 5 de 10
z newPersistentDictionary
z objectAt: anODBObjectID
z openOn: aString
z rollback
z root
Answer the database root object. All objects in the database should
be accessible from the root object, otherwise they are automatically
garbage collected the next time a database GC is run. The root object
is an instance of ODBPersistentObject by default, but it can be
changed to any other object.
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 6 de 10
OmniBase methods
z close
Closes open database. All transactions are aborted and locks are
released. Do nothing if the database is already closed.
z existsContainerNamed: aString
z globalLock
Globally locks the database so that no other user can change objects
while it is locked. Global lock will fail if any user (including
yourself) holds a lock on at least one object. Answers true if
successful, false otherwise.
z globalUnlock
Releases global lock. Afterwards all other users will be able to lock
objects for writing and change their contents. Answers true if
successfull, false otherwise.
z isGlobalLocked
z newContainer: aString
z newReadOnlyTransaction
z newTransaction
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 7 de 10
z numberOfClients
z setUserDescription: aString
z garbageCollect
z reorganize
Objects in the database can be accessed only through transaction. First you
access the root object from which you can navigate to whatever object in
the database. While a transaction is active it can hold locks on objects.
While an object is locked in one transaction it can not be locked and
changed in any other transaction. See instance methods of class
ODBLocalTransaction for further details.
z abort
z commit
commits transaction i.e. writes all changes made in transaction to
database. Two-phase commit process is used to write changes to the
databases. If commit succeds all changes made during the
transaction will be written to the database. Otherwise nothing will be
changed (e.g. if network or some other HW error occurs). Locks are
not released. After commit transaction is still active until it receives
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 8 de 10
z at: aString
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 9 de 10
z lockKey: aString
z unlockKey: aString
z size
z goTo: aString
z getCurrent
z getNext
z getPrevious
z getFirst
Answers first association and positiones cursor to the first key in the
dictionary. Answer nil if dictionary is empty.
z getLast
Answers the last association and positiones cursor to the last key in
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004
IT consulting GORISEK d.o.o. Página 10 de 10
http://www.gorisek.com/homepage/WOB-BWWnMttdy9Xm1VzR1eW0u5Fp-1-10.ht... 18/06/2004