sk.stuba.fiit.foo07.genex.beans
Class Question
java.lang.Object
sk.stuba.fiit.foo07.genex.beans.Question
- All Implemented Interfaces:
- java.lang.Comparable<Question>
public class Question
- extends java.lang.Object
- implements java.lang.Comparable<Question>
- Author:
- Martin
Constructor Summary |
Question()
|
Question(java.lang.String text,
java.lang.Integer difficulty,
java.sql.Timestamp created,
java.sql.Timestamp lastUpdate,
java.lang.Integer questionID,
java.lang.Integer userID,
java.lang.Integer questionTypeID,
java.lang.Integer derivedFromID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Question
public Question()
Question
public Question(java.lang.String text,
java.lang.Integer difficulty,
java.sql.Timestamp created,
java.sql.Timestamp lastUpdate,
java.lang.Integer questionID,
java.lang.Integer userID,
java.lang.Integer questionTypeID,
java.lang.Integer derivedFromID)
getText
public java.lang.String getText()
- Returns:
- the text
setText
public void setText(java.lang.String text)
- Parameters:
text
- the text to set
getDifficulty
public java.lang.Integer getDifficulty()
- Returns:
- the difficulty
setDifficulty
public void setDifficulty(java.lang.Integer difficulty)
- Parameters:
difficulty
- the difficulty to set
getCreated
public java.sql.Timestamp getCreated()
- Returns:
- the created
setCreated
public void setCreated(java.sql.Timestamp created)
- Parameters:
created
- the created to set
getLastUpdate
public java.sql.Timestamp getLastUpdate()
- Returns:
- the lastUpdate
setLastUpdate
public void setLastUpdate(java.sql.Timestamp lastUpdate)
- Parameters:
lastUpdate
- the lastUpdate to set
getQuestionID
public java.lang.Integer getQuestionID()
- Returns:
- the questionID
setQuestionID
public void setQuestionID(java.lang.Integer questionID)
- Parameters:
questionID
- the questionID to set
getUserID
public java.lang.Integer getUserID()
- Returns:
- the userID
setUserID
public void setUserID(java.lang.Integer userID)
- Parameters:
userID
- the userID to set
getQuestionTypeID
public java.lang.Integer getQuestionTypeID()
- Returns:
- the questionTypeID
setQuestionTypeID
public void setQuestionTypeID(java.lang.Integer questionTypeID)
- Parameters:
questionTypeID
- the questionTypeID to set
getDerivedFromID
public java.lang.Integer getDerivedFromID()
- Returns:
setDerivedFromID
public void setDerivedFromID(java.lang.Integer derivedFromID)
- Parameters:
derivedFromID
- id of question from which this question is derived
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(Question arg0)
- Specified by:
compareTo
in interface java.lang.Comparable<Question>
Copyright © 2008 Faculty of Informatics and Information Technologies, STU Bratislava. All Rights Reserved.