public class HelperDAO extends CommonDAO
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TABLE_HELPER_ANSWER |
static java.lang.String |
TABLE_HELPER_BOOKMARK |
static java.lang.String |
TABLE_HELPER_NODE |
static java.lang.String |
TABLE_HELPER_NODE_ANSWER |
static java.lang.String |
TABLE_HELPER_NODE_QUESTION |
static java.lang.String |
TABLE_HELPER_PATTERN |
static java.lang.String |
TABLE_HELPER_QUESTION |
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE
Constructor and Description |
---|
HelperDAO(java.sql.Connection con) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public static final java.lang.String TABLE_HELPER_ANSWER
public static final java.lang.String TABLE_HELPER_QUESTION
public static final java.lang.String TABLE_HELPER_NODE
public static final java.lang.String TABLE_HELPER_NODE_ANSWER
public static final java.lang.String TABLE_HELPER_NODE_QUESTION
public static final java.lang.String TABLE_HELPER_BOOKMARK
public static final java.lang.String TABLE_HELPER_PATTERN
public HelperTreeNode getHelperTreeNodeById(int id, boolean loadChildList) throws java.sql.SQLException
java.sql.SQLException
public HelperMapNode getHelperMapNodeById(int id) throws java.sql.SQLException
java.sql.SQLException
public HelperQuestion getHelperQuestionById(int id) throws java.sql.SQLException
java.sql.SQLException
public HelperAnswer getHelperAnswerById(int id) throws java.sql.SQLException
java.sql.SQLException
public void updateHelperQuestion(HelperQuestion helperQuestion) throws java.sql.SQLException
java.sql.SQLException
public void updateHelperAnswer(HelperAnswer helperAnswer) throws java.sql.SQLException
java.sql.SQLException
public void updateProblemAnswer(HelperAnswer helperAnswer) throws java.sql.SQLException
java.sql.SQLException
public void updateHelperTreeNode(HelperTreeNode helperNode) throws java.sql.SQLException
java.sql.SQLException
public void updateHelperMapNode(HelperMapNode helperNode) throws java.sql.SQLException
java.sql.SQLException
public void deleteHelperTreeNode(int nodeId) throws java.sql.SQLException
java.sql.SQLException
public void searchNodeList(SearchResult<HelperMapNode> searchResult) throws java.sql.SQLException
java.sql.SQLException
public void searchQuestionList(SearchResult<HelperQuestion> searchResult) throws java.sql.SQLException
java.sql.SQLException
public void searchAnswerList(SearchResult<HelperAnswer> searchResult) throws java.sql.SQLException
java.sql.SQLException
public java.util.Map<java.lang.Integer,java.lang.Integer> getTreeParentNodeMap() throws java.sql.SQLException
java.sql.SQLException
public void searchBookmarkList(SearchResult<HelperBookmark> searchResult) throws java.sql.SQLException
java.sql.SQLException
public HelperBookmark getHelperBookmarkByNodeId(int nodeId) throws java.sql.SQLException
java.sql.SQLException
public void updateHelperBookmark(HelperBookmark helperBookmark) throws java.sql.SQLException
java.sql.SQLException
public void deleteHelperBookmark(int id) throws java.sql.SQLException
java.sql.SQLException
public void searchPatternList(SearchResult<HelperPattern> searchResult) throws java.sql.SQLException
java.sql.SQLException
public HelperPattern getHelperPatternById(int id) throws java.sql.SQLException
java.sql.SQLException
public void updateHelperPattern(HelperPattern helperPattern) throws java.sql.SQLException
java.sql.SQLException