return vecDDNameValue;
}
public QuestionList getQuestionList(int userID, int curFaqID)
{
QuestionList questionList = new QuestionList();
CVDal cvdl = new CVDal(dataSource);
Collection colList = null;
cvdl.setSql("support.faq.getquestionforfaq");
cvdl.setInt(1, curFaqID);
colList = cvdl.executeQuery();
cvdl.clearParameters();
cvdl.destroy();
if (colList.size() > 0)
{
Iterator it = colList.iterator();
int i = 0;
while (it.hasNext())
{
i++;
HashMap hm = (HashMap)it.next();
int questionID = ((Long)hm.get("questionid")).intValue();
try
{
IntMember intQuestionID = new IntMember("QuestionID", questionID, 10, "", 'T', false, 10);
StringMember strQuestion = null;
if ((hm.get("question") != null))
strQuestion = new StringMember("Question", (String)hm.get("question"), 10, "", 'T', true);
else
strQuestion = new StringMember("Question", null, 10, "", 'T', true);
StringMember strAnswer = null;
if ((hm.get("answer") != null))
strAnswer = new StringMember("Answer", (String)hm.get("answer"), 10, "", 'T', true);
else
strAnswer = new StringMember("Answer", null, 10, "", 'T', true);
QuestionListElement questionListElement = new QuestionListElement(questionID);
questionListElement.put("QuestionID", intQuestionID);
questionListElement.put("Question", strQuestion);
questionListElement.put("Answer", strAnswer);
StringBuffer stringbuffer = new StringBuffer("00000000000");
stringbuffer.setLength(11);
String s3 = (new Integer(i)).toString();
stringbuffer.replace(stringbuffer.length() - s3.length(), stringbuffer.length(), s3);
String s4 = stringbuffer.toString();
questionList.put(s4, questionListElement);
} catch (Exception e) {
logger.debug(" [Exception] SupportListEJB.getQuestionList " + e);
e.printStackTrace();
}
}