com.rapidtransform.core.model
Class VersionControlled

java.lang.Object
  extended by com.rapidtransform.core.model.AbstractBaseModel
      extended by com.rapidtransform.core.model.VersionControlled
All Implemented Interfaces:
Model, Versioned, java.io.Serializable
Direct Known Subclasses:
DesignConstraint, Document, Item, ItemInstance, ItemVersion, ItemView, Part, Product, ProductClass, Specification

public class VersionControlled
extends AbstractBaseModel
implements Versioned

A VersionControlled object is controlled by optimistic locking to prevent data corruption. The iteration attribute is auto-incremented and used by Hibernate to perform the optimistic lock.

Author:
Steve
See Also:
Serialized Form

Constructor Summary
VersionControlled()
           
 
Method Summary
 User getCreatedBy()
           
 java.util.Date getCreatedDate()
           
 int getIteration()
           
 User getModifiedBy()
           
 java.util.Date getModifiedDate()
           
 void setCreatedBy(User createdBy)
           
 void setCreatedDate(java.util.Date createdDate)
           
 void setIteration(int iteration)
           
 void setModifiedBy(User modifiedBy)
           
 void setModifiedDate(java.util.Date modifiedDate)
           
 
Methods inherited from class com.rapidtransform.core.model.AbstractBaseModel
equals, generateUuid, getId, getMetaTypeName, getPropertyHolder, getUuid, hashCode, setId, setMetaTypeName, setPropertyHolder, setUuid
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionControlled

public VersionControlled()
Method Detail

getIteration

public int getIteration()
Specified by:
getIteration in interface Versioned

setIteration

public void setIteration(int iteration)

getCreatedBy

public User getCreatedBy()

setCreatedBy

public void setCreatedBy(User createdBy)

getCreatedDate

public java.util.Date getCreatedDate()

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)

getModifiedBy

public User getModifiedBy()

setModifiedBy

public void setModifiedBy(User modifiedBy)

getModifiedDate

public java.util.Date getModifiedDate()

setModifiedDate

public void setModifiedDate(java.util.Date modifiedDate)