Errai 3.0.1-SNAPSHOT

org.jboss.errai.otec.client
Class OTEntityImpl<T extends State>

java.lang.Object
  extended by 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

Constructor Summary
OTEntityImpl(int entityId, T entity)
           
 
Method Summary
 void decrementRevisionCounter()
           
 int getId()
           
 int getRevision()
           
 T getState()
           
 TransactionLog getTransactionLog()
           
 void incrementRevision()
           
 void resetRevisionCounterTo(int revision)
           
 void setRevision(int revision)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OTEntityImpl

public OTEntityImpl(int entityId,
                    T entity)
Method Detail

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

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.