org.openanzo.serialization.handlers
Class ClientUpdatesHandler

java.lang.Object
  extended by org.openanzo.serialization.handlers.HandlerAdapter
      extended by org.openanzo.serialization.handlers.ClientUpdatesHandler
All Implemented Interfaces:
IRepositoryHandler, IModelUpdate

public class ClientUpdatesHandler
extends HandlerAdapter
implements IModelUpdate

IRepositoryHandler that handles changes as a result of an update call to server

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
ClientUpdatesHandler()
           
 
Method Summary
 java.util.List<IModelTransactionUpdates> getTransactions()
          Get a List of IModelTransactionUpdates that makeup the update call
 boolean handleError(int errorNumber, int errorSubNumnber, java.lang.String... errorMessageArgs)
          Handle an error message
 boolean handleTransactionEnd()
          Handle end of transaction message
 boolean handleTransactionStart(java.lang.Long id, java.lang.Long timestamp)
          Handle start of transaction message
 
Methods inherited from class org.openanzo.serialization.handlers.HandlerAdapter
handleAci, handleAcl, handleCommandEnd, handleCommandStart, handleEndDocument, handleNamedGraph, handleNode, handleReset, handleRole, handleStartDocument, handleStatement, handleSubRoleOf, handleUser, handleUserInRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientUpdatesHandler

public ClientUpdatesHandler()
Method Detail

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

handleTransactionStart

public boolean handleTransactionStart(java.lang.Long id,
                                      java.lang.Long timestamp)
Description copied from interface: IRepositoryHandler
Handle start of transaction message

Specified by:
handleTransactionStart in interface IRepositoryHandler
Overrides:
handleTransactionStart in class HandlerAdapter
Parameters:
id - Id of transaction
timestamp - timestamp when transaction was committed
Returns:
Message handled successfully

handleTransactionEnd

public boolean handleTransactionEnd()
Description copied from interface: IRepositoryHandler
Handle end of transaction message

Specified by:
handleTransactionEnd in interface IRepositoryHandler
Overrides:
handleTransactionEnd in class HandlerAdapter
Returns:
Message handled successfully

handleError

public boolean handleError(int errorNumber,
                           int errorSubNumnber,
                           java.lang.String... errorMessageArgs)
Description copied from interface: IRepositoryHandler
Handle an error message

Specified by:
handleError in interface IRepositoryHandler
Overrides:
handleError in class HandlerAdapter
Parameters:
errorNumber - Major error code
errorSubNumnber - Minor error code
errorMessageArgs - Arguments to error message
Returns:
Message handled successfully


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