cmu.survey.objects
Class AnswerSQL

java.lang.Object
  extended by cmu.survey.objects.AnswerStub
      extended by cmu.survey.objects.AnswerSQL
All Implemented Interfaces:
HasErrorInfo, HasErrorInfoAndSaves, Answer, AnswerWithSupplementalInfo, java.lang.Cloneable

public class AnswerSQL
extends AnswerStub
implements HasErrorInfoAndSaves, AnswerWithSupplementalInfo


Field Summary
 
Fields inherited from class cmu.survey.objects.AnswerStub
defaultValue, fieldName, type
 
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)
           
 
Method Summary
 java.lang.String getErrorInfo()
          This returns
 HasErrorInfo getSupplementalErrorInfo()
           
 java.lang.String getValue()
           
 void saveErrorInfo(java.lang.String error, java.lang.Throwable throwable)
           
 void setSupplementalErrorInfo(HasErrorInfo info)
           
 
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
 
Methods inherited from interface cmu.survey.objects.Answer
getDefaultValue, getDescriptor, getFieldName, getType, isTypeKey, isTypeNumeric, isTypeString, setDefaultValue, setType
 

Constructor Detail

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)
Method Detail

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 -