public class

HistoryImpl

extends Object
implements Serializable JPAEntity History
java.lang.Object
   ↳ vars.knowledgebase.jpa.HistoryImpl

Class Overview

CREATE TABLE HISTORY ( ID BIGINT NOT NULL, CONCEPTDELEGATEID_FK BIGINT, APPROVALDTG TIMESTAMP, CREATIONDTG TIMESTAMP, CREATORNAME VARCHAR(50), APPROVERNAME VARCHAR(50), FIELD VARCHAR(50), OLDVALUE VARCHAR(2048), NEWVALUE VARCHAR(2048), ACTION VARCHAR(16), COMMENT VARCHAR(2048), REJECTED SMALLINT NOT NULL, CONSTRAINT PK_HISTORY PRIMARY KEY(ID) ) GO CREATE INDEX IDX_CONCEPTDELEGATE2 ON HISTORY(CONCEPTDELEGATEID_FK) GO

Summary

[Expand]
Inherited Constants
From interface vars.knowledgebase.History
Public Constructors
HistoryImpl()
Public Methods
boolean equals(Object obj)
String getAction()
Gets the action of this History as a String.
String getComment()
Method description
ConceptMetadata getConceptMetadata()
Not for Developer use.
Date getCreationDate()
Gets the creation date of this History.
String getCreatorName()
Gets the previous value of the field name from the description of this History.
String getField()
Long getId()
String getNewValue()
Method description
String getOldValue()
Method description
Object getPrimaryKey()
Date getProcessedDate()
Gets the date that this History was processed (i.e.
String getProcessorName()
int hashCode()
boolean isAdd()
Determines whether the action of this History is an add.
Boolean isApproved()
Gets whether this History has been approved.
boolean isDelete()
Determines whether the action of this History is a delete.
boolean isProcessed()
boolean isRejected()
Determines whether this History was rejected.
boolean isReplace()
Determines whether the action of this History is a replace.
void setAction(String action)
Method description
void setApproved(Boolean approved)
Method description
void setComment(String comment)
Method description
void setCreationDate(Date creationDate)
Sets the Date the user created this History.
void setCreatorName(String creatorName)
Sets the name of the user that created this History.
void setField(String field)
Method description
void setId(Long id)
void setNewValue(String newValue)
Method description
void setOldValue(String oldValue)
Method description
void setProcessedDate(Date approvalDate)
Sets the approval Date this History.
void setProcessorName(String approverName)
String stringValue()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface vars.VARSObject
From interface vars.jpa.JPAEntity
From interface vars.knowledgebase.History

Public Constructors

public HistoryImpl ()

Public Methods

public boolean equals (Object obj)

public String getAction ()

Gets the action of this History as a String.

Returns
  • The action of this History.

public String getComment ()

Method description

public ConceptMetadata getConceptMetadata ()

Not for Developer use. This is required for Castor/DAO

Returns
  • The conceptDelegate value

public Date getCreationDate ()

Gets the creation date of this History.

Returns
  • The creation date of this History.

public String getCreatorName ()

Gets the previous value of the field name from the description of this History. This value represents the value of the field name before the action occurred.

Returns
  • The previous value of the field name from the description of this History.

public String getField ()

public Long getId ()

public String getNewValue ()

Method description

public String getOldValue ()

Method description

public Object getPrimaryKey ()

public Date getProcessedDate ()

Gets the date that this History was processed (i.e. approved or rejected.

Returns
  • The approval date of this History.

public String getProcessorName ()

public int hashCode ()

public boolean isAdd ()

Determines whether the action of this History is an add.

Returns
  • true if the action of this History is an add.

public Boolean isApproved ()

Gets whether this History has been approved.

Returns
  • true if this History has been approved.

public boolean isDelete ()

Determines whether the action of this History is a delete.

Returns
  • true if the action of this History is a delete.

public boolean isProcessed ()

public boolean isRejected ()

Determines whether this History was rejected.

Returns
  • true if this History was rejected.

public boolean isReplace ()

Determines whether the action of this History is a replace.

Returns
  • true if the action of this History is an replace.

public void setAction (String action)

Method description

public void setApproved (Boolean approved)

Method description

public void setComment (String comment)

Method description

public void setCreationDate (Date creationDate)

Sets the Date the user created this History. Necessary for Castor. Developers should use appropriate constructor.

Parameters
creationDate The Date the user created this History.

public void setCreatorName (String creatorName)

Sets the name of the user that created this History.

Parameters
creatorName The name of the user that created this History.

public void setField (String field)

Method description

public void setId (Long id)

public void setNewValue (String newValue)

Method description

public void setOldValue (String oldValue)

Method description

public void setProcessedDate (Date approvalDate)

Sets the approval Date this History. DO NOT CALL THIS DIRECTLY! USE approve() INSTEAD.

Parameters
approvalDate The approval Data of this History.

public void setProcessorName (String approverName)

public String stringValue ()

public String toString ()