Home
A B C D E G I J L N O P R S T W X

A

abort() - Method in class xl2.odb.XL2Transaction
 
abort() - Static method in class xl2.odb.XL2TransactionMgr
Calls the corresponding method on the XL2Transaction of the calling thread.
abort() - Method in class xl2.transaction.AbstractTransaction
 
abort() - Static method in class xl2.transaction.TransactionMgr
Calls abort on the current transaction.
abort() - Method in interface xl2.transaction.Transaction
Rollback the transaction.
ABORTED - Static variable in class xl2.odb.LockNotGrantedException
The in-memory instance in question was write locked in a transaction which was aborted.
AbortFailedException - exception xl2.transaction.AbortFailedException.
An exception occurred while aborting a transaction - very bad.
AbortFailedException(Transaction, Exception) - Constructor for class xl2.transaction.AbortFailedException
 
AbstractTransaction - class xl2.transaction.AbstractTransaction.
Skeletal implementation of the Transaction interface.
AbstractTransaction() - Constructor for class xl2.transaction.AbstractTransaction
 

B

begin() - Method in class xl2.odb.XL2Transaction
 
begin() - Static method in class xl2.odb.XL2TransactionMgr
Calls the corresponding method on the XL2Transaction of the calling thread.
begin() - Method in class xl2.transaction.AbstractTransaction
 
begin() - Static method in class xl2.transaction.TransactionMgr
Calls begin on the current transaction.
begin() - Method in interface xl2.transaction.Transaction
Calling begin multiple times on the same transaction, without an intervening call to commit or abort, causes TransactionNotClosedException to be thrown on the second and subsequent calls.

C

close() - Method in class xl2.odb.XL2Database
Aborts open transactions, evicts database contents from memory, and unlocks the database.
closeException(Exception) - Method in class xl2.odb.XL2Database
Deprecated. Replaced by log(Throwable)
commit() - Method in class xl2.odb.XL2Transaction
 
commit() - Static method in class xl2.odb.XL2TransactionMgr
Calls the corresponding method on the XL2Transaction of the calling thread.
commit() - Method in class xl2.transaction.AbstractTransaction
 
commit() - Static method in class xl2.transaction.TransactionMgr
Calls commit on the current transaction.
commit() - Method in interface xl2.transaction.Transaction
Save the transaction state.
create(String) - Static method in class xl2.odb.XL2Database
Creates and returns a new XL2Database that will be open for read/write.
currentTransaction() - Static method in class xl2.odb.XL2TransactionMgr
The XL2Transaction of the calling thread.
currentTransaction() - Static method in class xl2.transaction.TransactionMgr
The transaction of the calling thread.

D

DatabaseLockedException - exception xl2.odb.DatabaseLockedException.
A lock exists which prevents the database from being opened in the desired mode.
DatabaseLockedException(String) - Constructor for class xl2.odb.DatabaseLockedException
 
DatabaseNotOpenException - exception xl2.odb.DatabaseNotOpenException.
A call was made that required an XL2Database to be open when it was not.
DatabaseNotOpenException(XL2Database) - Constructor for class xl2.odb.DatabaseNotOpenException
 

E

EncryptedDatabase - class xl2.odb.EncryptedDatabase.
Encypts serialized objects using Password Based Encryption with MD5 and DES.
EncryptedDatabase() - Constructor for class xl2.odb.EncryptedDatabase
 

G

get() - Method in class xl2.odb.XL2Reference
Returns the referent.
getDatabase() - Method in class xl2.odb.XL2Transaction
The database of the transaction.
getException() - Method in class xl2.util.NestedException
The inner exception.
getExpiration() - Method in class xl2.odb.XL2Transaction
The time (System.currentTimeMillis) after which the open transaction will be automatically aborted.
getGlobal() - Static method in class xl2.odb.XL2TransactionMgr
The default XL2Transaction for any thread not explicitly joined to one.
getGlobal() - Static method in class xl2.transaction.TransactionMgr
The default transaction for any thread not explicitly joined to one.
getLocalizedMessage() - Method in class xl2.util.NestedException
 
getLockFile() - Method in class xl2.odb.DatabaseLockedException
 
getMessage() - Method in class xl2.util.NestedException
 
getObject() - Method in class xl2.odb.InvalidObjectException
The object in question.
getObject() - Method in class xl2.odb.LockNotGrantedException
 
getObjectInput(InputStream) - Method in class xl2.odb.XL2Database
Callback for subclasses to manage serialization.
getObjectInput(InputStream) - Method in class xl2.odb.EncryptedDatabase
Returns an ObjectInputStream nesting a CipherInputStream.
getObjectOutput(OutputStream) - Method in class xl2.odb.XL2Database
Callback for subclasses to manage serialization.
getObjectOutput(OutputStream) - Method in class xl2.odb.EncryptedDatabase
Returns an ObjectOutputStream nesting a CipherOutputStream.
getOpenMode() - Method in class xl2.odb.XL2Database
NOT_OPEN, OPEN_READ_ONLY, or OPEN_READ_WRITE
getReason() - Method in class xl2.odb.LockNotGrantedException
See the constants above.
getRoot() - Method in class xl2.odb.XL2Database
Returns the database entry object.
getStatus() - Method in class xl2.transaction.AbstractTransaction
 
getStatus() - Method in interface xl2.transaction.Transaction
See Transaction STATUS_??? fields.
getTimeout() - Method in class xl2.odb.XL2Transaction
The length of time after which an open transaction will be automatically aborted.
getTransaction() - Method in class xl2.transaction.TransactionNotClosedException
 
getTransaction() - Method in class xl2.transaction.TransactionAbortedException
The transaction in question.
getTransaction() - Method in class xl2.transaction.TransactionNotOpenException
 
getXL2Database() - Method in class xl2.odb.DatabaseNotOpenException
 

I

InvalidObjectException - exception xl2.odb.InvalidObjectException.
Thrown when attempting to lock objects whose state may differ from there last committed state.
InvalidObjectException(Object) - Constructor for class xl2.odb.InvalidObjectException
 
isClosed() - Method in class xl2.transaction.AbstractTransaction
 
isClosed() - Method in interface xl2.transaction.Transaction
True if the status aborted, committed, or instantiated.
isOpen() - Method in class xl2.transaction.AbstractTransaction
 
isOpen() - Method in interface xl2.transaction.Transaction
True if the status is in progress or marked for abort.
isReadLocked(Object) - Static method in class xl2.odb.XL2Transaction
Returns true if the object is read locked by one or more transactions.
isReadOnly() - Method in class xl2.odb.XL2Transaction
True if the transaction can not write lock objects.
isWriteLocked(Object) - Static method in class xl2.odb.XL2Transaction
Returns true if the object is write locked by any transaction.

J

join() - Method in class xl2.transaction.AbstractTransaction
 
join() - Method in interface xl2.transaction.Transaction
Associates the calling thread to the transaction.

L

leave() - Method in class xl2.transaction.AbstractTransaction
 
leave() - Method in interface xl2.transaction.Transaction
Disassociates the calling thread from the transaction.
lock(Object, int) - Method in class xl2.odb.XL2Transaction
Attempts to lock the object with the given mode.
lock(Object, int) - Static method in class xl2.odb.XL2TransactionMgr
Calls the corresponding method on the XL2Transaction of the calling thread.
LockNotGrantedException - exception xl2.odb.LockNotGrantedException.
Indicates a lock could not be granted on an object.
LockNotGrantedException(Object, String) - Constructor for class xl2.odb.LockNotGrantedException
 
log(String, Throwable) - Method in class xl2.odb.XL2Database
Prints a timestamp, message and stack trace to "log.xl2" in the database directory.

N

NestedException - exception xl2.util.NestedException.
RuntimeException most likely wrapping some other exception and delegates all method calls to the inner exception.
NestedException() - Constructor for class xl2.util.NestedException
 
NestedException(Exception) - Constructor for class xl2.util.NestedException
 
NestedException(String) - Constructor for class xl2.util.NestedException
 
newDatabase(String) - Method in class xl2.odb.XL2Database
Creates a database that will be closed upon completion of this method.
newDatabase(String) - Method in class xl2.odb.EncryptedDatabase
Will throw an exception, use newDatabase(String,String)
newDatabase(String, String) - Method in class xl2.odb.EncryptedDatabase
Creates an EncryptedDatabase that will be closed upon completion of this method.
newTransaction() - Method in class xl2.odb.XL2Database
Required to access and mutate XL2References and opened database instances.
NOT_OPEN - Static variable in class xl2.odb.XL2Database
Open mode.

O

OPEN_READ_ONLY - Static variable in class xl2.odb.XL2Database
Open mode.
OPEN_READ_WRITE - Static variable in class xl2.odb.XL2Database
Open mode.
open(String, int) - Method in class xl2.odb.XL2Database
Opens the database with the given mode.
open(String, int) - Method in class xl2.odb.EncryptedDatabase
Password must have be set before calling this: Opens the database with the given mode.

P

printStackTrace() - Method in class xl2.util.NestedException
 
printStackTrace(PrintStream) - Method in class xl2.util.NestedException
 
printStackTrace(PrintWriter) - Method in class xl2.util.NestedException
 

R

READ - Static variable in class xl2.odb.XL2Transaction
Lock type.
READ - Static variable in class xl2.odb.XL2TransactionMgr
Lock type.
READ_LOCKED - Static variable in class xl2.odb.LockNotGrantedException
A write lock was requested on an object which was already read locked.
readExternal(ObjectInput) - Method in class xl2.odb.XL2Reference
For serialization, not for applications.
readLock(Object) - Method in class xl2.odb.XL2Transaction
A convenience function that calls lock(object,XL2Transaction.READ).
readLock(Object) - Static method in class xl2.odb.XL2TransactionMgr
Convenience function that calls lock(Object,int).
READONLY_TRANSACTION - Static variable in class xl2.odb.LockNotGrantedException
A write lock was requested in a read-only transaction.

S

set(Object) - Method in class xl2.odb.XL2Reference
Changes the referent.
setAbortOnly() - Method in class xl2.transaction.AbstractTransaction
 
setAbortOnly() - Method in interface xl2.transaction.Transaction
Modifies the transaction such that the only possible outcome is to abort the transaction.
setGlobal(Transaction) - Static method in class xl2.transaction.TransactionMgr
If currentTransaction() can not find a transaction for the calling thread, it will return the transaction specified here.
setGlobal(XL2Transaction) - Static method in class xl2.odb.XL2TransactionMgr
The default XL2Transaction for any thread not explicitly joined to one.
setPassword(String) - Method in class xl2.odb.EncryptedDatabase
Must be called before opening a database.
setReadOnly(boolean) - Method in class xl2.odb.XL2Transaction
Only to be called when the transaction is closed.
setRoot(Object) - Method in class xl2.odb.XL2Database
Sets the database root.
setTimeout(long) - Method in class xl2.odb.XL2Transaction
The length of time after which an open transaction will be automatically aborted.
STATUS_ABORT_FAILED - Static variable in interface xl2.transaction.Transaction
Transaction aborted - closed state.
STATUS_ABORTED - Static variable in interface xl2.transaction.Transaction
Transaction aborted - closed state.
STATUS_ABORTING - Static variable in interface xl2.transaction.Transaction
Transaction in the process of aborting.
STATUS_BEGINNING - Static variable in interface xl2.transaction.Transaction
Transaction in the process of beginning.
STATUS_COMMITTED - Static variable in interface xl2.transaction.Transaction
Transaction has been committed - closed state.
STATUS_COMMITTING - Static variable in interface xl2.transaction.Transaction
Transaction is committing.
STATUS_IN_PROGRESS - Static variable in interface xl2.transaction.Transaction
Transaction is in progress and has not been marked STATUS_MARKED_ABORT - open state.
STATUS_INSTANTIATED - Static variable in interface xl2.transaction.Transaction
Transaction has been constructed and not yet begun - closed state.
STATUS_MARKED_ABORT - Static variable in interface xl2.transaction.Transaction
Transaction is in progress, and can only abort - open state.

T

toString() - Method in class xl2.util.NestedException
 
Transaction - interface xl2.transaction.Transaction.
Basic interface that defines the state boundries for a set of resoures.
TRANSACTION_REQUIRED - Static variable in class xl2.odb.LockNotGrantedException
A lock was requested on an object but the calling thread was not joined to a XL2Transaction and there was no global XL2Transaction.
TransactionAbortedException - exception xl2.transaction.TransactionAbortedException.
A transaction inadvertently aborted.
TransactionAbortedException(Transaction, Exception) - Constructor for class xl2.transaction.TransactionAbortedException
 
TransactionAbortedException(Transaction, String) - Constructor for class xl2.transaction.TransactionAbortedException
 
TransactionException - exception xl2.transaction.TransactionException.
All transaction exceptions are of this type.
TransactionException() - Constructor for class xl2.transaction.TransactionException
 
TransactionException(Exception) - Constructor for class xl2.transaction.TransactionException
 
TransactionException(String) - Constructor for class xl2.transaction.TransactionException
 
TransactionMgr - class xl2.transaction.TransactionMgr.
Provides static access to threads' transactions.
TransactionMgr() - Constructor for class xl2.transaction.TransactionMgr
 
TransactionNotClosedException - exception xl2.transaction.TransactionNotClosedException.
A call was made when a transaction should have been closed.
TransactionNotClosedException(Transaction) - Constructor for class xl2.transaction.TransactionNotClosedException
 
TransactionNotClosedException(Transaction, String) - Constructor for class xl2.transaction.TransactionNotClosedException
 
TransactionNotOpenException - exception xl2.transaction.TransactionNotOpenException.
A call was made when a transaction should have been open.
TransactionNotOpenException(Transaction) - Constructor for class xl2.transaction.TransactionNotOpenException
 
TransactionNotOpenException(Transaction, String) - Constructor for class xl2.transaction.TransactionNotOpenException
 
TransactionRequiredException - exception xl2.transaction.TransactionRequiredException.
No current transaction existed for the calling thread when it called a method in TransactionMgr.
TransactionRequiredException() - Constructor for class xl2.transaction.TransactionRequiredException
 
tryLock(Object, int) - Method in class xl2.odb.XL2Transaction
Same as lock(Object,int) except no exception is thrown.

W

WRITE - Static variable in class xl2.odb.XL2Transaction
Lock type.
WRITE - Static variable in class xl2.odb.XL2TransactionMgr
Lock type.
WRITE_LOCKED - Static variable in class xl2.odb.LockNotGrantedException
A lock was requested on an object which was already write locked.
writeExternal(ObjectOutput) - Method in class xl2.odb.XL2Reference
For serialization, not for applications.
writeLock(Object) - Method in class xl2.odb.XL2Transaction
A convenience function that calls lock(object,XL2Transaction.WRITE).
writeLock(Object) - Static method in class xl2.odb.XL2TransactionMgr
Convenience function that calls lock(Object,int).

X

xl2.odb - package xl2.odb
Object database.
xl2.transaction - package xl2.transaction
Lightweight transaction framework.
XL2Database - class xl2.odb.XL2Database.
A network of serialized objects accessible from a single root object.
XL2Database() - Constructor for class xl2.odb.XL2Database
See open()
XL2Exception - exception xl2.odb.XL2Exception.
Base exception for this package.
XL2Exception() - Constructor for class xl2.odb.XL2Exception
 
XL2Exception(Exception) - Constructor for class xl2.odb.XL2Exception
 
XL2Exception(String) - Constructor for class xl2.odb.XL2Exception
 
XL2Reference - class xl2.odb.XL2Reference.
Persistent reference.
XL2Reference() - Constructor for class xl2.odb.XL2Reference
 
XL2Reference(int) - Constructor for class xl2.odb.XL2Reference
Constructs an XL2Reference with itself as the parent such that changing the ref will lock itself with the current XL2Transaction.
XL2Reference(Object) - Constructor for class xl2.odb.XL2Reference
Constructs an XL2Reference with the specified parent.
XL2Transaction - class xl2.odb.XL2Transaction.
A transaction of a single XL2database.
XL2TransactionMgr - class xl2.odb.XL2TransactionMgr.
Static access to a thread's XL2Transaction.
XL2TransactionMgr() - Constructor for class xl2.odb.XL2TransactionMgr
 

A B C D E G I J L N O P R S T W X
Home