|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.util.question.ejb.QuestionDAO
public class QuestionDAO
This class is made to access database only (table SB_Question_Question)
| Field Summary | |
|---|---|
static String |
QUESTIONCOLUMNNAMES
|
| Constructor Summary | |
|---|---|
QuestionDAO()
|
|
| Method Summary | |
|---|---|
static QuestionPK |
createQuestion(Connection con,
Question question)
Create a new question |
static void |
deleteQuestion(Connection con,
QuestionPK questionPK)
Delete a question |
static void |
deleteQuestionsByFatherPK(Connection con,
QuestionPK questionPK,
String fatherId)
Delete all questions linked to a given father |
static Question |
getQuestion(Connection con,
QuestionPK questionPK)
Return a question |
static Collection<Question> |
getQuestionsByFatherPK(Connection con,
QuestionPK questionPK,
String fatherId)
Return the questions linked to a given father |
static void |
updateQuestion(Connection con,
Question question)
Update a question |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String QUESTIONCOLUMNNAMES
| Constructor Detail |
|---|
public QuestionDAO()
| Method Detail |
|---|
public static Question getQuestion(Connection con,
QuestionPK questionPK)
throws SQLException
con - the Connection to dataBasequestionPK - the question id
SQLException
public static Collection<Question> getQuestionsByFatherPK(Connection con,
QuestionPK questionPK,
String fatherId)
throws SQLException
con - the Connection to dataBasequestionPK - the question idfatherId - the father id
SQLException
public static QuestionPK createQuestion(Connection con,
Question question)
throws SQLException
con - the Connection to dataBasequestion - the Question to create
SQLException
public static void updateQuestion(Connection con,
Question question)
throws SQLException
con - the Connection to dataBasequestion - the Question to update
SQLException
public static void deleteQuestion(Connection con,
QuestionPK questionPK)
throws SQLException
con - the Connection to dataBasequestionPK - the question id
SQLException
public static void deleteQuestionsByFatherPK(Connection con,
QuestionPK questionPK,
String fatherId)
throws SQLException
con - the Connection to dataBasequestionPK - to know the contextfatherId - the father id
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||