org.openanzo.model.event
Class TransactionCommittedToServerEvent

java.lang.Object
  extended by org.openanzo.model.event.Event
      extended by org.openanzo.model.event.TransactionCommittedToServerEvent
All Implemented Interfaces:
IEvent

public class TransactionCommittedToServerEvent
extends Event

The event fired when a transaction is successfully committed on server.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Field Summary
static org.openrdf.model.URI TYPE
          TransactionQueueCommitted event type
 
Constructor Summary
TransactionCommittedToServerEvent(ITransaction transaction, boolean commitSuccess, java.util.List<AnzoException> errors)
          Create a new TransactionQueueCommitedEvent
 
Method Summary
 boolean getCommitSuccess()
          Determine if the transaction was committed on the server
 java.util.List<AnzoException> getErrors()
          Get a list of errors if commit failed
 ITransaction getTransaction()
          Get the transaction that was committed
 
Methods inherited from class org.openanzo.model.event.Event
getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final org.openrdf.model.URI TYPE
TransactionQueueCommitted event type

Constructor Detail

TransactionCommittedToServerEvent

public TransactionCommittedToServerEvent(ITransaction transaction,
                                         boolean commitSuccess,
                                         java.util.List<AnzoException> errors)
Create a new TransactionQueueCommitedEvent

Parameters:
transaction - transaction that was committed
commitSuccess - true if committed successfully
errors - List of errors if commit failed
Method Detail

getTransaction

public ITransaction getTransaction()
Get the transaction that was committed

Returns:
the transaction that was committed

getCommitSuccess

public boolean getCommitSuccess()
Determine if the transaction was committed on the server

Returns:
true if the transaction was committed on the server

getErrors

public java.util.List<AnzoException> getErrors()
Get a list of errors if commit failed

Returns:
list of errors if commit failed


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.