概述 | 软件包 | 类 | 使用 | 树 | 已过时 | 索引 | 帮助
上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法

## tot.dao.jdbc
类 ArticleDaoImplJDBC

    java.lang.Object
      tot.dao.AbstractDao
          tot.dao.jdbc.ArticleDaoImplJDBC

    public class ArticleDaoImplJDBC

extends AbstractDao

构造函数摘要
`ArticleDaoImplJDBC()` Creates a new instance of ArticleDaoImplJDBC

方法摘要
`boolean` | `addArticle(java.lang.String title, java.lang.String subHeading, java.lang.String titleColor, java.lang.String keyWords, java.lang.String relateKey, int relateNum, java.lang.String content, int isOutLink, java.lang.String outLinkUrl, int parentId, int categoryId, int templateId, int specialId, int top1, int toTop, int toHot, int recommend, int images, int checked, java.lang.String author, java.lang.String sourceFrom, java.lang.String editor, java.lang.String userName, java.lang.String photo, int hits, java.lang.String savePath, java.sql.Timestamp moditime, int isslide, java.lang.String summary)` add new article
`void` | `batCheck(java.lang.String[] s)` check articles
`void` | `batDelete(java.lang.String[] s)` delete articles
`void` | `batRecommend(java.lang.String[] s)` recommend articles
`void` | `batUncheck(java.lang.String[] s)` uncheck articles
`void` | `batUnrecommend(java.lang.String[] s)` unrecommend articles
`boolean` | `delArticle(int id, java.lang.String path)`
`java.lang.String` | `get1Content(int categoryId, java.lang.String sort, java.lang.String ArticleAttr, int charMax, java.lang.String linkStyle)` get 1 content
`java.lang.String` | `get1Title(int categoryId, java.lang.String sort, java.lang.String ArticleAttr, int charMax, java.lang.String linkStyle)` get title
`DataField` | `getArticle(int id)`
`java.util.Collection` | `getArticleAuditingList_Limit(int status, int categoryid, int currentpage, int pagesize)` get article by auditing
`java.util.Collection` | `getArticleDeleteList_Limit(int categoryid, int currentpage, int pagesize)` get article which delete by admin
`java.util.Collection` | `getArticleHits_Limit(int dateset, int currentpage, int pagesize)`
`java.util.Collection` | `getArticleIndex_Limit(int categoryid, int currentpage, int pagesize)` get index article list
`java.util.Collection` | `getArticleList_Limit(int categoryid, int currentpage, int pagesize)` get article genery
`java.util.Collection` | `getArticleListBySpecial_Limit(int specialid, int currentpage, int pagesize)`
`java.lang.String` | `getArticles(int categoryId, java.lang.String tableWidth, java.lang.String tableStyle, int lineHeight, int rowsNum, int colsNum, java.lang.String sort, int charMax, java.lang.String titlePrefix, int showTime, int getChilds, int showCatalog, java.lang.String ArticleAttr)`
`java.lang.String` | `getArticlesDiv(int categoryId, int rowsNum, java.lang.String sort, int charMax, java.lang.String titlePrefix, int showTime, int getChilds, int showCatalog, java.lang.String ArticleAttr)`
`DataField` | `getArticleSimple(int id)` get article simple info by id
`java.util.Collection` | `getArticleSpecialList_Limit(int specialid, int currentpage, int pagesize)` get article by special
`int` | `getCheckedTotalCount(int categoryid)`
`int` | `getHits(int id)`
`java.lang.String` | `getImgs(int categoryId, java.lang.String tableWidth, java.lang.String tableStyle, int rowsNum, int colsNum, java.lang.String sort, int charMax, java.lang.String titlePrefix, int ImgW, int ImgH, int getChilds, int showBorder, java.lang.String ArticleAttr)`
`java.lang.String` | `getImgsDiv(int categoryId, int rowsNum, int showTitle, java.lang.String sort, int charMax, java.lang.String titlePrefix, int ImgW, int ImgH, int getChilds, int showBorder, java.lang.String ArticleAttr)`
`java.lang.String` | `getImgsDivDesc(int categoryId, int rowsNum, int showTitle, java.lang.String sort, int charMax, java.lang.String titlePrefix, int ImgW, int ImgH, int getChilds, int showBorder, java.lang.String ArticleAttr)`
`int` | `getLastId()`
`int` | `getLastId2()`
`int` | `getNoCheckedTotalCount(int categoryid)`
`java.lang.String` | `getRelate(java.lang.String keyword, int rowsNum, boolean isShowDate)` get article by relate keywords
`java.util.Collection` | `getSlideArticleList_Limit(int categoryid, int currentpage, int pagesize)` get article genery
`java.lang.String` | `getSpecialArticles(int specialId, java.lang.String tableWidth, java.lang.String tableStyle, int lineHeight, int rowsNum, int colsNum, java.lang.String sort, int charMax, java.lang.String titlePrefix, int showTime, int showSpecial, java.lang.String ArticleAttr)`
`int` | `getTotalCount_Date(int dateset)` get article count by date ,if 0 then return all
`int` | `getTotalCount_delete(int categoryid)` get article count by delete
`int` | `getTotalCount_Slide(int categoryid)` get article count by slide ,if 0 then return all
`int` | `getTotalCount_Special(int specialid)` get article count by special id,if 0 then return all
`int` | `getTotalCount(int categoryid)` get article count by category id,if 0 then return all
`boolean` | `modArticle(int id, java.lang.String title, java.lang.String subHeading, java.lang.String titleColor, java.lang.String keyWords, java.lang.String relateKey, int relateNum, java.lang.String content, int isOutLink, java.lang.String outLinkUrl, int parentId, int categoryId, int templateId, int specialId, int top1, int toTop, int toHot, int recommend, int images, int checked, java.lang.String author, java.lang.String sourceFrom, java.lang.String editor, java.lang.String userName, java.lang.String photo, int hits, java.lang.String savePath, java.sql.Timestamp moditime, int isslide, java.lang.String summary, int sortid, java.lang.String moddate)`
`boolean` | `moveToRecycle(int id)` move article to recycle
`void` | `removeArticle(java.lang.String[] s, int tocategoryid)` remove article
`void` | `resumes(java.lang.String[] s)` restore article so it can be reused
`void` | `sendToRecycle(java.lang.String[] s)` send article to recycle then it can be restored if you want

从类 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`

构造函数详细信息

### ArticleDaoImplJDBC

    public ArticleDaoImplJDBC()

  Creates a new instance of ArticleDaoImplJDBC

方法详细信息

### getLastId

    public int getLastId()

### getLastId2

    public int getLastId2()

### getHits

    public int getHits(int id)

### addArticle

    public boolean addArticle(java.lang.String title,
                              java.lang.String subHeading,
                              java.lang.String titleColor,
                              java.lang.String keyWords,
                              java.lang.String relateKey,
                              int relateNum,
                              java.lang.String content,
                              int isOutLink,
                              java.lang.String outLinkUrl,
                              int parentId,
                              int categoryId,
                              int templateId,
                              int specialId,
                              int top1,
                              int toTop,
                              int toHot,
                              int recommend,
                              int images,
                              int checked,
                              java.lang.String author,
                              java.lang.String sourceFrom,
                              java.lang.String editor,
                              java.lang.String userName,
                              java.lang.String photo,
                              int hits,
                              java.lang.String savePath,
                              java.sql.Timestamp moditime,
                              int isslide,
                              java.lang.String summary)

  add new article

### modArticle

    public boolean modArticle(int id,
                              java.lang.String title,
                              java.lang.String subHeading,
                              java.lang.String titleColor,
                              java.lang.String keyWords,
                              java.lang.String relateKey,
                              int relateNum,
                              java.lang.String content,
                              int isOutLink,
                              java.lang.String outLinkUrl,
                              int parentId,
                              int categoryId,
                              int templateId,
                              int specialId,
                              int top1,
                              int toTop,
                              int toHot,
                              int recommend,
                              int images,
                              int checked,
                              java.lang.String author,
                              java.lang.String sourceFrom,
                              java.lang.String editor,
                              java.lang.String userName,
                              java.lang.String photo,
                              int hits,
                              java.lang.String savePath,
                              java.sql.Timestamp moditime,
                              int isslide,
                              java.lang.String summary,
                              int sortid,
                              java.lang.String moddate)

### sendToRecycle

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

  send article to recycle then it can be restored if you want

### resumes

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

  restore article so it can be reused

### moveToRecycle

    public boolean moveToRecycle(int id)
                          throws ObjectNotFoundException,
                                 DatabaseException

  move article to recycle

  抛出：
    `ObjectNotFoundException`
    `DatabaseException`

### delArticle

    public boolean delArticle(int id,
                              java.lang.String path)
                       throws ObjectNotFoundException,
                              DatabaseException

  抛出：
    `ObjectNotFoundException`
    `DatabaseException`

### getArticle

    public DataField getArticle(int id)

### getArticleSimple

    public DataField getArticleSimple(int id)

  get article simple info by id

### batCheck

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

  check articles

### batUncheck

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

  uncheck articles

### batRecommend

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

  recommend articles

### batUnrecommend

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

  unrecommend articles

### batDelete

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

  delete articles

### removeArticle

    public void removeArticle(java.lang.String[] s,
                              int tocategoryid)

  remove article

### getArticleIndex_Limit

    public java.util.Collection getArticleIndex_Limit(int categoryid,
                                                      int currentpage,
                                                      int pagesize)

  get index article list

### getArticleHits_Limit

    public java.util.Collection getArticleHits_Limit(int dateset,
                                                     int currentpage,
                                                     int pagesize)

### getArticleList_Limit

    public java.util.Collection getArticleList_Limit(int categoryid,
                                                     int currentpage,
                                                     int pagesize)

  get article genery

### getArticleListBySpecial_Limit

    public java.util.Collection getArticleListBySpecial_Limit(int specialid,
                                                              int currentpage,
                                                              int pagesize)

### getSlideArticleList_Limit

    public java.util.Collection getSlideArticleList_Limit(int categoryid,
                                                          int currentpage,
                                                          int pagesize)

  get article genery

### getArticleSpecialList_Limit

    public java.util.Collection getArticleSpecialList_Limit(int specialid,
                                                            int currentpage,
                                                            int pagesize)

  get article by special

### getArticleDeleteList_Limit

    public java.util.Collection getArticleDeleteList_Limit(int categoryid,
                                                           int currentpage,
                                                           int pagesize)

  get article which delete by admin

### getArticleAuditingList_Limit

    public java.util.Collection getArticleAuditingList_Limit(int status,
                                                             int categoryid,
                                                             int currentpage,
                                                             int pagesize)

  get article by auditing

### getTotalCount

    public int getTotalCount(int categoryid)

  get article count by category id,if 0 then return all

### getCheckedTotalCount

    public int getCheckedTotalCount(int categoryid)

### getNoCheckedTotalCount

    public int getNoCheckedTotalCount(int categoryid)

### getTotalCount_Special

    public int getTotalCount_Special(int specialid)

  get article count by special id,if 0 then return all

### getTotalCount_Slide

    public int getTotalCount_Slide(int categoryid)

  get article count by slide ,if 0 then return all

### getTotalCount_delete

    public int getTotalCount_delete(int categoryid)

  get article count by delete

### getTotalCount_Date

    public int getTotalCount_Date(int dateset)

  get article count by date ,if 0 then return all

### get1Title

    public java.lang.String get1Title(int categoryId,
                                      java.lang.String sort,
                                      java.lang.String ArticleAttr,
                                      int charMax,
                                      java.lang.String linkStyle)

  get title

### get1Content

    public java.lang.String get1Content(int categoryId,
                                        java.lang.String sort,
                                        java.lang.String ArticleAttr,
                                        int charMax,
                                        java.lang.String linkStyle)

  get 1 content

### getArticles

    public java.lang.String getArticles(int categoryId,
                                        java.lang.String tableWidth,
                                        java.lang.String tableStyle,
                                        int lineHeight,
                                        int rowsNum,
                                        int colsNum,
                                        java.lang.String sort,
                                        int charMax,
                                        java.lang.String titlePrefix,
                                        int showTime,
                                        int getChilds,
                                        int showCatalog,
                                        java.lang.String ArticleAttr)

### getArticlesDiv

    public java.lang.String getArticlesDiv(int categoryId,
                                           int rowsNum,
                                           java.lang.String sort,
                                           int charMax,
                                           java.lang.String titlePrefix,
                                           int showTime,
                                           int getChilds,
                                           int showCatalog,
                                           java.lang.String ArticleAttr)

### getSpecialArticles

    public java.lang.String getSpecialArticles(int specialId,
                                               java.lang.String tableWidth,
                                               java.lang.String tableStyle,
                                               int lineHeight,
                                               int rowsNum,
                                               int colsNum,
                                               java.lang.String sort,
                                               int charMax,
                                               java.lang.String titlePrefix,
                                               int showTime,
                                               int showSpecial,
                                               java.lang.String ArticleAttr)

### getImgs

    public java.lang.String getImgs(int categoryId,
                                    java.lang.String tableWidth,
                                    java.lang.String tableStyle,
                                    int rowsNum,
                                    int colsNum,
                                    java.lang.String sort,
                                    int charMax,
                                    java.lang.String titlePrefix,
                                    int ImgW,
                                    int ImgH,
                                    int getChilds,
                                    int showBorder,
                                    java.lang.String ArticleAttr)

### getImgsDiv

    public java.lang.String getImgsDiv(int categoryId,
                                       int rowsNum,
                                       int showTitle,
                                       java.lang.String sort,
                                       int charMax,
                                       java.lang.String titlePrefix,
                                       int ImgW,
                                       int ImgH,
                                       int getChilds,
                                       int showBorder,
                                       java.lang.String ArticleAttr)

### getImgsDivDesc

    public java.lang.String getImgsDivDesc(int categoryId,
                                           int rowsNum,
                                           int showTitle,
                                           java.lang.String sort,
                                           int charMax,
                                           java.lang.String titlePrefix,
                                           int ImgW,
                                           int ImgH,
                                           int getChilds,
                                           int showBorder,
                                           java.lang.String ArticleAttr)

### getRelate

    public java.lang.String getRelate(java.lang.String keyword,
                                      int rowsNum,
                                      boolean isShowDate)

  get article by relate keywords

概述 | 软件包 | 类 | 使用 | 树 | 已过时 | 索引 | 帮助
上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法