org.openanzo.server.repository.update
Class UpdateResults

java.lang.Object
  extended by org.openanzo.server.repository.update.UpdateResults
All Implemented Interfaces:
IModelUpdate

public class UpdateResults
extends java.lang.Object
implements IModelUpdate

List of IModelTransactionUpdates that occured in one update call

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
UpdateResults(java.lang.Long userId)
          Create a new UpdateResults
 
Method Summary
 java.util.List<IModelTransactionUpdates> getTransactions()
          Get a List of IModelTransactionUpdates that makeup the update call
 TransactionUpdateResults nextTransaction(long transactionId, java.lang.Long timestamp)
          Create a new transaction with given ID and add it list of transactions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateResults

public UpdateResults(java.lang.Long userId)
Create a new UpdateResults

Parameters:
userId - User that called update
Method Detail

nextTransaction

public TransactionUpdateResults nextTransaction(long transactionId,
                                                java.lang.Long timestamp)
Create a new transaction with given ID and add it list of transactions

Parameters:
transactionId - ID of transaction
timestamp - timestamp of transaction
Returns:
a TransactionUpdateResults with given ID

getTransactions

public java.util.List<IModelTransactionUpdates> getTransactions()
Description copied from interface: IModelUpdate
Get a List of IModelTransactionUpdates that makeup the update call

Specified by:
getTransactions in interface IModelUpdate
Returns:
List of IModelTransactionUpdates that makeup the update call


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