com.rapidtransform.core.model
Class VersionControlled
java.lang.Object
com.rapidtransform.core.model.AbstractBaseModel
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
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 |
VersionControlled
public VersionControlled()
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)