com.sun.sgs.service.store.db
Interface DbTransaction


public interface DbTransaction

The interface for a database transaction.


Method Summary
 void abort()
          Aborts the transaction.
 void commit()
          Commits the transaction.
 void prepare(byte[] gid)
          Initiates the first phase of a two-phase commit.
 

Method Detail

prepare

void prepare(byte[] gid)
Initiates the first phase of a two-phase commit. This method should not be called if any cursors associated with this transaction are still open. No methods should be called on this transaction after this method is called.

Parameters:
gid - the global transaction ID, which must be at least 128 bytes
Throws:
DbDatabaseException - if an unexpected database problem occurs

commit

void commit()
Commits the transaction. This method should not be called if any cursors associated with this transaction are still open. No methods should be called on this transaction after this method is called.

Throws:
DbDatabaseException - if an unexpected database problem occurs

abort

void abort()
Aborts the transaction. This method should not be called if any cursors associated with this transaction are still open. No methods should be called on this transaction after this method is called.

Throws:
DbDatabaseException - if an unexpected database problem occurs

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved