tot.dao.jdbc
类 AnswerDaoImplJDBC

java.lang.Object
  继承者 tot.dao.AbstractDao
      继承者 tot.dao.jdbc.AnswerDaoImplJDBC

public class AnswerDaoImplJDBC
extends AbstractDao


构造函数摘要
AnswerDaoImplJDBC()
          Creates a new instance of EduVersionDaoImplJDBC
 
方法摘要
 boolean add(int askid, java.lang.String userid, java.lang.String content, java.lang.String attach, java.sql.Timestamp moditime, int status)
          add Keywords
 void batDel(java.lang.String[] s)
           
 void batStatus(java.lang.String[] s, int val)
           
 boolean del(int id)
           
 DataField get(int id)
           
 int getLastId()
           
 java.util.Collection getList(int askid, int currentpage, int pagesize)
           
 DataField getShow(int id)
           
 int getTotalCount(int askid)
           
 boolean mod(int id, java.lang.String content, java.lang.String attach, java.sql.Timestamp moditime)
           
 void upStatus(int id, int val)
           
 
从类 tot.dao.AbstractDao 继承的方法
bat, exe, exeTransaction, findByPrimaryKey, getData, getDataCount, getDataList_Limit_Normal, getDataList_mysqlLimit, getFirstData
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造函数详细信息

AnswerDaoImplJDBC

public AnswerDaoImplJDBC()
Creates a new instance of EduVersionDaoImplJDBC

方法详细信息

getLastId

public int getLastId()

add

public boolean add(int askid,
                   java.lang.String userid,
                   java.lang.String content,
                   java.lang.String attach,
                   java.sql.Timestamp moditime,
                   int status)
add Keywords


mod

public boolean mod(int id,
                   java.lang.String content,
                   java.lang.String attach,
                   java.sql.Timestamp moditime)

getList

public java.util.Collection getList(int askid,
                                    int currentpage,
                                    int pagesize)

get

public DataField get(int id)

getShow

public DataField getShow(int id)

getTotalCount

public int getTotalCount(int askid)

batDel

public void batDel(java.lang.String[] s)

batStatus

public void batStatus(java.lang.String[] s,
                      int val)

upStatus

public void upStatus(int id,
                     int val)
              throws ObjectNotFoundException,
                     DatabaseException
抛出:
ObjectNotFoundException
DatabaseException

del

public boolean del(int id)
            throws ObjectNotFoundException,
                   DatabaseException
抛出:
ObjectNotFoundException
DatabaseException