org.jboss.errai.otec.client
Class OTEntityImpl<T extends State>
java.lang.Object
org.jboss.errai.otec.client.OTEntityImpl<T>
- All Implemented Interfaces:
- Cloneable, OTEntity<T>
public class OTEntityImpl<T extends State>
- extends Object
- implements OTEntity<T>, Cloneable
- Author:
- Mike Brock, Christian Sadilek
OTEntityImpl
public OTEntityImpl(int entityId,
T entity)
getRevision
public int getRevision()
- Specified by:
getRevision
in interface OTEntity<T extends State>
setRevision
public void setRevision(int revision)
- Specified by:
setRevision
in interface OTEntity<T extends State>
resetRevisionCounterTo
public void resetRevisionCounterTo(int revision)
- Specified by:
resetRevisionCounterTo
in interface OTEntity<T extends State>
incrementRevision
public void incrementRevision()
- Specified by:
incrementRevision
in interface OTEntity<T extends State>
decrementRevisionCounter
public void decrementRevisionCounter()
- Specified by:
decrementRevisionCounter
in interface OTEntity<T extends State>
getId
public int getId()
- Specified by:
getId
in interface OTEntity<T extends State>
getTransactionLog
public TransactionLog getTransactionLog()
- Specified by:
getTransactionLog
in interface OTEntity<T extends State>
getState
public T getState()
- Specified by:
getState
in interface OTEntity<T extends State>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.