Class ScaleChallengeAttempt
- java.lang.Object
-
- edu.cnm.deepdive.scalescroller.model.entity.ScaleChallengeAttempt
-
public class ScaleChallengeAttempt extends Object
An associative entity that aids in the many-to-many relationship betweenChallengeAttemptandScale. Also holds a timestamp for each particularScalewithin theChallengeAttempt.
-
-
Constructor Summary
Constructors Constructor Description ScaleChallengeAttempt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAttemptId()Returns the id of theChallengeAttemptforeign key.longgetId()Returns the auto-generated id for the associative entity.longgetScaleId()Returns the id of theScaleforeign key.DategetTimestamp()Returns the timestamp when the associative entity was created.voidsetAttemptId(long attemptId)Sets the id of theChallengeAttemptforeign key.voidsetId(long id)Sets the auto-generated id for the associative entity.voidsetScaleId(long scaleId)Sets the id of theScaleforeign key.voidsetTimestamp(Date timestamp)Sets the timestamp when the associative entity was created.
-
-
-
Method Detail
-
getId
public long getId()
Returns the auto-generated id for the associative entity.- Returns:
- The id.
-
setId
public void setId(long id)
Sets the auto-generated id for the associative entity.- Parameters:
id- The id to be set.
-
getAttemptId
public long getAttemptId()
Returns the id of theChallengeAttemptforeign key.- Returns:
- The id of the challenge attempt.
-
setAttemptId
public void setAttemptId(long attemptId)
Sets the id of theChallengeAttemptforeign key.- Parameters:
attemptId- The id of theChallengeAttemptforeign key.
-
getScaleId
public long getScaleId()
Returns the id of theScaleforeign key.- Returns:
- The id of the scale.
-
setScaleId
public void setScaleId(long scaleId)
Sets the id of theScaleforeign key.- Parameters:
scaleId- The id of theScaleforeign key.
-
getTimestamp
@NonNull public Date getTimestamp()
Returns the timestamp when the associative entity was created.- Returns:
- The timestamp.
-
-