org.jboss.errai.otec.client
Class TransactionLogImpl
java.lang.Object
org.jboss.errai.otec.client.TransactionLogImpl
- All Implemented Interfaces:
- TransactionLog
public class TransactionLogImpl
- extends Object
- implements TransactionLog
- Author:
- Christian Sadilek , Mike Brock
createTransactionLog
public static TransactionLog createTransactionLog(OTEntity entity)
getLock
public Object getLock()
- Specified by:
getLock
in interface TransactionLog
getLog
public List<OTOperation> getLog()
- Specified by:
getLog
in interface TransactionLog
purgeTo
public int purgeTo(int revision)
- Specified by:
purgeTo
in interface TransactionLog
pruneFromOperation
public void pruneFromOperation(OTOperation operation)
- Specified by:
pruneFromOperation
in interface TransactionLog
getLocalOpsSinceRemoteOperation
public List<OTOperation> getLocalOpsSinceRemoteOperation(OTOperation operation,
boolean includeNonCanon)
- Specified by:
getLocalOpsSinceRemoteOperation
in interface TransactionLog
getRemoteOpsSinceRevision
public List<OTOperation> getRemoteOpsSinceRevision(String agentId,
int rev)
- Specified by:
getRemoteOpsSinceRevision
in interface TransactionLog
getCanonLog
public List<OTOperation> getCanonLog()
- Specified by:
getCanonLog
in interface TransactionLog
getEffectiveStateForRevision
public LogQuery getEffectiveStateForRevision(int revision)
- Specified by:
getEffectiveStateForRevision
in interface TransactionLog
appendLog
public void appendLog(OTOperation operation)
- Specified by:
appendLog
in interface TransactionLog
insertLog
public void insertLog(int revision,
OTOperation operation)
- Specified by:
insertLog
in interface TransactionLog
markDirty
public void markDirty()
- Specified by:
markDirty
in interface TransactionLog
snapshot
public void snapshot()
- Specified by:
snapshot
in interface TransactionLog
cleanLog
public void cleanLog()
- Specified by:
cleanLog
in interface TransactionLog
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.