org.openanzo.services.impl
Class ModelTransactionUpdates

java.lang.Object
  extended by org.openanzo.services.impl.ModelTransactionUpdates
All Implemented Interfaces:
IModelTransactionUpdates

public class ModelTransactionUpdates
extends java.lang.Object
implements IModelTransactionUpdates

Implementation of IModelTransactionUpdates

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
ModelTransactionUpdates(long transactionId)
          Create new ModelTransactionUpdates with given transaction id
 
Method Summary
 java.io.ByteArrayOutputStream getErrorOutputStream()
          Get the errors as an outputStream to which errors can be written
 java.util.List<AnzoException> getErrors()
          Get the list of errors from server
 java.io.ByteArrayOutputStream getOutputStream()
          Get the results outputStream that can be handed to a stream parser.
 long getTransactionId()
          Get the transaction id
 java.lang.Long getTransactionTimestamp()
          Get the transactionTimestamp
 void setTransactionTimestamp(java.lang.Long transactionTimestamp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelTransactionUpdates

public ModelTransactionUpdates(long transactionId)
Create new ModelTransactionUpdates with given transaction id

Parameters:
transactionId -
Method Detail

getErrorOutputStream

public java.io.ByteArrayOutputStream getErrorOutputStream()
Description copied from interface: IModelTransactionUpdates
Get the errors as an outputStream to which errors can be written

Specified by:
getErrorOutputStream in interface IModelTransactionUpdates
Returns:
the errors as an outputStream to which errors can be written

getOutputStream

public java.io.ByteArrayOutputStream getOutputStream()
Description copied from interface: IModelTransactionUpdates
Get the results outputStream that can be handed to a stream parser.

Specified by:
getOutputStream in interface IModelTransactionUpdates
Returns:
the results outputStream that can be handed to a stream parser.

getErrors

public java.util.List<AnzoException> getErrors()
Get the list of errors from server

Specified by:
getErrors in interface IModelTransactionUpdates
Returns:
Returns the errors.

getTransactionId

public long getTransactionId()
Get the transaction id

Specified by:
getTransactionId in interface IModelTransactionUpdates
Returns:
Returns the transactionId.

getTransactionTimestamp

public java.lang.Long getTransactionTimestamp()
Get the transactionTimestamp

Specified by:
getTransactionTimestamp in interface IModelTransactionUpdates
Returns:
the transactionTimestamp

setTransactionTimestamp

public void setTransactionTimestamp(java.lang.Long transactionTimestamp)
Parameters:
transactionTimestamp - the transactionTimestamp to set


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