|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aspsimon.termcomp.entity.TerminationProblem
public abstract class TerminationProblem
This class is the main parent class for the TerminationProblems.
Originally intended to be a generic TerminationProblem object. However,
this proved almost impossible to combine all 4 classes of termination
problems into one unified format, so this class was replaced with the
TPInterface hierarchy.
reference/en/html/entity.html#d0e870
By having an abstract class implement the TPInterface interface, this remains
backwards compatible with the database in termcomp 1.0, but should enable
termcomp 2.0 to handle results and problem searches better.
| Constructor Summary | |
|---|---|
TerminationProblem()
|
|
| Method Summary | |
|---|---|
User |
getApprovedBy()
Get the User with database administrative rights who approved
this termination problem. |
java.lang.String |
getOriginalFileName()
Get the original filename of this Termination Problem where it is
stored under /opt/competition/tpdb/. |
User |
getSubmittedBy()
Get the User who submitted this termination problem. |
java.sql.Timestamp |
getSubmittedDate()
Set the date and time this termination problem was originally submitted to the TPDB. |
java.lang.Long |
getTPId()
Get the unique identifier for this Termination Problem. |
boolean |
isApproved()
Determine whether this termination problem is approved for public consumption. |
boolean |
isRejected()
Determines whether this termination problem passed the review process or not. |
boolean |
isSecret()
Return the secret status of this problem. |
void |
prepersist()
Hibernate lifecycle convenience method. |
void |
setApproved(boolean approved)
Set the approval status of this problem. |
void |
setApprovedBy(User approvedBy)
Set the User with administrative rights who approved this
problem. |
void |
setOriginalFileName(java.lang.String originalFileName)
Set the original filename of this Termination Problem |
void |
setRejected(boolean rejected)
Set the rejected status of this problem. |
void |
setSecret(boolean secret)
Set the secret status of this problem. |
void |
setSubmittedBy(User submittedBy)
Set the User who submitted this problem. |
void |
setSubmittedDate(java.sql.Timestamp submittedDate)
Set the date this problem was submitted to the TPDB. |
void |
setTPId(java.lang.Long tpId)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.aspsimon.termcomp.entity.TPInterface |
|---|
getType |
| Constructor Detail |
|---|
public TerminationProblem()
| Method Detail |
|---|
public java.lang.Long getTPId()
TPInterfaceTermination Problem. As
Hibernate maintains a single sequence for all managed database
objects, this is guaranteed to be globally unique as long as the object
was created through a hibernate session.
getTPId in interface TPInterfaceTermination Problem.public java.lang.String getOriginalFileName()
Termination Problem where it is
stored under /opt/competition/tpdb/.
getOriginalFileName in interface TPInterface/opt/competition/tpdb/.public boolean isApproved()
isApproved in interface TPInterfacepublic boolean isRejected()
isRejected in interface TPInterfacepublic boolean isSecret()
isSecret in interface TPInterfacepublic User getSubmittedBy()
User who submitted this termination problem.
getSubmittedBy in interface TPInterfaceUser who submitted this problem.public User getApprovedBy()
User with database administrative rights who approved
this termination problem. Currently unused.
getApprovedBy in interface TPInterfaceUser who approved this problempublic java.sql.Timestamp getSubmittedDate()
getSubmittedDate in interface TPInterfacepublic void setTPId(java.lang.Long tpId)
public void setOriginalFileName(java.lang.String originalFileName)
Termination Problem
setOriginalFileName in interface TPInterfaceoriginalFileName - The file name relative to /opt/competition/tpdb/.public void setApproved(boolean approved)
setApproved in interface TPInterfaceapproved - A boolean value.public void setRejected(boolean rejected)
setRejected in interface TPInterfacerejected - A boolean value.public void setSecret(boolean secret)
setSecret in interface TPInterfacesecret - A boolean value representing whether this problem is secret or
not.public void setSubmittedBy(User submittedBy)
User who submitted this problem.
setSubmittedBy in interface TPInterfacesubmittedBy - The User who submitted the problem.public void setApprovedBy(User approvedBy)
User with administrative rights who approved this
problem.
setApprovedBy in interface TPInterfaceapprovedBy - The User who approved this problem.public void setSubmittedDate(java.sql.Timestamp submittedDate)
setSubmittedDate in interface TPInterfacesubmittedDate - The time and date this problem was originally submitted.public void prepersist()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||