cmu.survey.objects
Class AnswerSQL
java.lang.Object
cmu.survey.objects.AnswerStub
cmu.survey.objects.AnswerSQL
- All Implemented Interfaces:
- HasErrorInfo, HasErrorInfoAndSaves, Answer, AnswerWithSupplementalInfo, java.lang.Cloneable
public class AnswerSQL
- extends AnswerStub
- implements HasErrorInfoAndSaves, AnswerWithSupplementalInfo
Constructor Summary |
AnswerSQL(DataStorageSQL storage)
|
AnswerSQL(java.lang.String descriptor,
DataStorageSQL storage)
|
AnswerSQL(java.lang.String type,
java.lang.String fieldName,
DataStorageSQL storage)
|
AnswerSQL(java.lang.String type,
java.lang.String fieldName,
java.lang.String theTable,
DataStorageSQL storage)
|
AnswerSQL(java.lang.String type,
java.lang.String fieldName,
java.lang.String theTable,
java.lang.String theWhere,
DataStorageSQL storage)
|
Methods inherited from class cmu.survey.objects.AnswerStub |
clone, getDefaultValue, getDescriptor, getFieldName, getType, isTypeKey, isTypeNumeric, isTypeString, setDefaultValue, setFieldName, setType |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnswerSQL
public AnswerSQL(java.lang.String descriptor,
DataStorageSQL storage)
AnswerSQL
public AnswerSQL(java.lang.String type,
java.lang.String fieldName,
DataStorageSQL storage)
AnswerSQL
public AnswerSQL(java.lang.String type,
java.lang.String fieldName,
java.lang.String theTable,
DataStorageSQL storage)
AnswerSQL
public AnswerSQL(java.lang.String type,
java.lang.String fieldName,
java.lang.String theTable,
java.lang.String theWhere,
DataStorageSQL storage)
AnswerSQL
public AnswerSQL(DataStorageSQL storage)
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interface Answer
- Overrides:
getValue
in class AnswerStub
getErrorInfo
public java.lang.String getErrorInfo()
- Description copied from interface:
HasErrorInfo
- This returns
- Specified by:
getErrorInfo
in interface HasErrorInfo
- Returns:
saveErrorInfo
public void saveErrorInfo(java.lang.String error,
java.lang.Throwable throwable)
- Specified by:
saveErrorInfo
in interface HasErrorInfoAndSaves
getSupplementalErrorInfo
public HasErrorInfo getSupplementalErrorInfo()
- Specified by:
getSupplementalErrorInfo
in interface AnswerWithSupplementalInfo
- Returns:
setSupplementalErrorInfo
public void setSupplementalErrorInfo(HasErrorInfo info)
- Parameters:
info
-