tot.dao.jdbc
类 VoteDaoImplJDBC

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

public class VoteDaoImplJDBC
extends AbstractDao


构造函数摘要
VoteDaoImplJDBC()
          Creates a new instance of VoteDaoImplJDBC
 
方法摘要
 boolean addVote(int id, java.lang.String title, int optionnum, int optiontype, int status, java.sql.Timestamp expirestime, java.sql.Timestamp moditime)
          add vote
 boolean addVoteItem(int voteid, java.lang.String[] items)
           
 boolean delVote(int id)
           
 boolean delVoteItem(int voteid)
           
 int getLastId()
           
 int getTotalCount()
           
 DataField getVote(int id)
           
 int[] getVoteItemHits(int voteid)
           
 java.util.Collection getVoteItems(int voteid)
           
 java.util.Collection getVoteList_Limit(int currentpage, int pagesize)
           
 java.util.Collection getVotes()
           
 boolean isExpired(int id)
           
 boolean modVote(int id, java.lang.String title, int optionnum, int optiontype, int status, java.sql.Timestamp expirestime, java.sql.Timestamp moditime)
           
 boolean modVoteItem(int voteid, java.lang.String[] items)
           
 boolean updateHits(int id)
           
 
从类 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
 

构造函数详细信息

VoteDaoImplJDBC

public VoteDaoImplJDBC()
Creates a new instance of VoteDaoImplJDBC

方法详细信息

getLastId

public int getLastId()

addVote

public boolean addVote(int id,
                       java.lang.String title,
                       int optionnum,
                       int optiontype,
                       int status,
                       java.sql.Timestamp expirestime,
                       java.sql.Timestamp moditime)
add vote


modVote

public boolean modVote(int id,
                       java.lang.String title,
                       int optionnum,
                       int optiontype,
                       int status,
                       java.sql.Timestamp expirestime,
                       java.sql.Timestamp moditime)

addVoteItem

public boolean addVoteItem(int voteid,
                           java.lang.String[] items)

getVoteItemHits

public int[] getVoteItemHits(int voteid)

modVoteItem

public boolean modVoteItem(int voteid,
                           java.lang.String[] items)
                    throws ObjectNotFoundException,
                           DatabaseException
抛出:
ObjectNotFoundException
DatabaseException

delVote

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

delVoteItem

public boolean delVoteItem(int voteid)
                    throws ObjectNotFoundException,
                           DatabaseException
抛出:
ObjectNotFoundException
DatabaseException

getVotes

public java.util.Collection getVotes()

getVoteItems

public java.util.Collection getVoteItems(int voteid)

getVoteList_Limit

public java.util.Collection getVoteList_Limit(int currentpage,
                                              int pagesize)

getVote

public DataField getVote(int id)

getTotalCount

public int getTotalCount()

updateHits

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

isExpired

public boolean isExpired(int id)