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 betweenChallengeAttempt
andScale
. Also holds a timestamp for each particularScale
within theChallengeAttempt
.
-
-
Constructor Summary
Constructors Constructor Description ScaleChallengeAttempt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAttemptId()
Returns the id of theChallengeAttempt
foreign key.long
getId()
Returns the auto-generated id for the associative entity.long
getScaleId()
Returns the id of theScale
foreign key.Date
getTimestamp()
Returns the timestamp when the associative entity was created.void
setAttemptId(long attemptId)
Sets the id of theChallengeAttempt
foreign key.void
setId(long id)
Sets the auto-generated id for the associative entity.void
setScaleId(long scaleId)
Sets the id of theScale
foreign key.void
setTimestamp(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 theChallengeAttempt
foreign key.- Returns:
- The id of the challenge attempt.
-
setAttemptId
public void setAttemptId(long attemptId)
Sets the id of theChallengeAttempt
foreign key.- Parameters:
attemptId
- The id of theChallengeAttempt
foreign key.
-
getScaleId
public long getScaleId()
Returns the id of theScale
foreign key.- Returns:
- The id of the scale.
-
setScaleId
public void setScaleId(long scaleId)
Sets the id of theScale
foreign key.- Parameters:
scaleId
- The id of theScale
foreign key.
-
getTimestamp
@NonNull public Date getTimestamp()
Returns the timestamp when the associative entity was created.- Returns:
- The timestamp.
-
-