edu.vt.middleware.ed
Class PasswordQuestion

java.lang.Object
  extended by edu.vt.middleware.ed.AbstractDataObject
      extended by edu.vt.middleware.ed.AbstractMutableDataObject
          extended by edu.vt.middleware.ed.PasswordQuestion
All Implemented Interfaces:
CarbonCopy<PasswordQuestion>, Congruence<PasswordQuestion>, DataObject, MutableDataObject, Persistable, Serializable, Comparable<DataObject>

public class PasswordQuestion
extends AbstractMutableDataObject
implements Serializable, CarbonCopy<PasswordQuestion>, Congruence<PasswordQuestion>

Contains attributes that identify a password question.

Version:
$Revision: 7374 $
Author:
Daniel Fisher
See Also:
Serialized Form

Field Summary
private  Account account
          account that owns this password question
private  String answer
          answer
private  String question
          question
private static long serialVersionUID
          serial version UID
 
Fields inherited from class edu.vt.middleware.ed.AbstractMutableDataObject
modificationDate, modifiedBy
 
Fields inherited from class edu.vt.middleware.ed.AbstractDataObject
createdBy, creationDate, uid
 
Constructor Summary
PasswordQuestion()
           
 
Method Summary
 void copyValues(PasswordQuestion dataObject)
          Copies the non-relationship values from the supplied object into this object.
 Account getAccount()
          Gets the account that owns this password.
 String getAnswer()
          This returns the answer.
 String getQuestion()
          This returns the question.
 Long getUid()
          This returns the uid.
 boolean isCongruent(PasswordQuestion other)
          Determines whether the given object is congruent/equivalent to this object via equals comparison on properties.
 void setAccount(Account acct)
          Sets the account that owns this password.
 void setAnswer(String s)
          This sets the answer.
 void setQuestion(String s)
          This sets the question.
 
Methods inherited from class edu.vt.middleware.ed.AbstractMutableDataObject
getModificationDate, getModifiedBy, setModificationDate, setModifiedBy
 
Methods inherited from class edu.vt.middleware.ed.AbstractDataObject
compareTo, getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid, toString, validateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.vt.middleware.ed.DataObject
getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid
 

Field Detail

serialVersionUID

private static final long serialVersionUID
serial version UID

See Also:
Constant Field Values

question

private String question
question


answer

private String answer
answer


account

private Account account
account that owns this password question

Constructor Detail

PasswordQuestion

public PasswordQuestion()
Method Detail

getUid

public Long getUid()
This returns the uid.

Specified by:
getUid in interface DataObject
Overrides:
getUid in class AbstractDataObject
Returns:
Long - uid

getAccount

public Account getAccount()
Gets the account that owns this password.

Returns:
Owning account.

setAccount

public void setAccount(Account acct)
Sets the account that owns this password.

Parameters:
acct - Owning account.

getQuestion

public String getQuestion()
This returns the question.

Returns:
String

setQuestion

public void setQuestion(String s)
This sets the question.

Parameters:
s - String

getAnswer

public String getAnswer()
This returns the answer.

Returns:
String

setAnswer

public void setAnswer(String s)
This sets the answer.

Parameters:
s - String

copyValues

public void copyValues(PasswordQuestion dataObject)
Copies the non-relationship values from the supplied object into this object.

Specified by:
copyValues in interface CarbonCopy<PasswordQuestion>
Parameters:
dataObject - Source to copy from.

isCongruent

public boolean isCongruent(PasswordQuestion other)
Determines whether the given object is congruent/equivalent to this object via equals comparison on properties.

Specified by:
isCongruent in interface Congruence<PasswordQuestion>
Parameters:
other - The object to compare to this instance.
Returns:
True if the given object is congruent to this instance, false otherwise.


Copyright © 2008 Virginia Tech. All Rights Reserved.