public abstract class InstanceAuditHeader extends InstanceElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected String |
createdBy |
protected Date |
createTime |
protected InstanceStatus |
currentStatus |
protected InstanceStatus |
statusOnDelete |
protected InstanceType |
type |
protected String |
updatedBy |
protected Date |
updateTime |
protected long |
version |
| Constructor and Description |
|---|
InstanceAuditHeader()
Default Constructor sets the instance to nulls.
|
InstanceAuditHeader(InstanceAuditHeader template)
Copy/clone constructor set the value to those supplied in the template.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Validate if the supplied object equals this object.
|
String |
getCreatedBy()
Return the name of the user that created this instance.
|
Date |
getCreateTime()
Return the date/time that this instance was created.
|
InstanceStatus |
getStatus()
Return the status of this instance (UNKNOWN, PROPOSED, DRAFT, ACTIVE, DELETED).
|
InstanceStatus |
getStatusOnDelete()
Return the status to use when a deleted instance is restored.
|
InstanceType |
getType()
Return the type of this instance.
|
String |
getUpdatedBy()
Return the name of the user that last updated this instance.
|
Date |
getUpdateTime()
Return what was the late time this instance was updated.
|
long |
getVersion()
Return the version number for this instance.
|
int |
hashCode()
Return a hash code based on the values of this object.
|
void |
setCreatedBy(String createdBy)
Set up the name of the user that created this instance.
|
void |
setCreateTime(Date createTime)
Set up the time that this instance was created.
|
void |
setStatus(InstanceStatus newStatus)
Set up the status of this instance (UNKNOWN, PROPOSED, DRAFT, ACTIVE, DELETED).
|
void |
setStatusOnDelete(InstanceStatus statusOnDelete)
Set up the status to use when a deleted instance is restored.
|
void |
setType(InstanceType type)
Set up the type of this instance.
|
void |
setUpdatedBy(String updatedBy)
Set up the name of the user that last updated this instance.
|
void |
setUpdateTime(Date updateTime)
Set up the last update time for this instance.
|
void |
setVersion(long version)
Set up the version number for this instance.
|
String |
toString()
Standard toString method.
|
protected InstanceType type
protected String createdBy
protected String updatedBy
protected Date createTime
protected Date updateTime
protected long version
protected InstanceStatus currentStatus
protected InstanceStatus statusOnDelete
public InstanceAuditHeader()
public InstanceAuditHeader(InstanceAuditHeader template)
template - Instance headerpublic InstanceType getType()
public void setType(InstanceType type)
type - InstanceType objectpublic InstanceStatus getStatus()
public void setStatus(InstanceStatus newStatus)
newStatus - InstanceStatuspublic String getCreatedBy()
public void setCreatedBy(String createdBy)
createdBy - String user namepublic String getUpdatedBy()
public void setUpdatedBy(String updatedBy)
updatedBy - String user namepublic Date getCreateTime()
public void setCreateTime(Date createTime)
createTime - Date/Time of creationpublic Date getUpdateTime()
public void setUpdateTime(Date updateTime)
updateTime - Date/Time last updatedpublic long getVersion()
public void setVersion(long version)
version - Long version numberpublic InstanceStatus getStatusOnDelete()
public void setStatusOnDelete(InstanceStatus statusOnDelete)
statusOnDelete - InstanceStatus Enumpublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2017–2018 ODPi. All rights reserved.