KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javabb > dao > entity > ICategoryDAO


1 package org.javabb.dao.entity;
2
3 import java.util.List JavaDoc;
4
5 import org.javabb.dao.DAOConstants;
6 import org.javabb.vh.Stats;
7 import org.javabb.vo.Category;
8
9 /*
10  * Copyright 2004 JavaFree.org
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */

24
25 /**
26  * $Id: ICategoryDAO.java,v 1.4.8.2 2006/04/17 17:47:26 daltoncamargo Exp $
27  * @author Dalton Camargo - <a HREF="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
28  * @author Ronald Tetsuo Miura
29  */

30 public interface ICategoryDAO extends DAOConstants {
31
32     /** */
33     public static final int ID = 1;
34     /** */
35     public static final int SORTING_POSITION = 2;
36     /** */
37     public static final int NAME = 3;
38
39     /**
40      * @return post count
41      */

42     public int countAllPosts();
43
44     /**
45      * @return topic count
46      */

47     public int countAllTopics();
48
49     /**
50      * @return user count
51      */

52     public int countAllUsers();
53
54     /**
55      * @return
56      */

57     public Stats getStatistics();
58
59     /**
60      * @param categoryId
61      * @return category
62      */

63     public Category load(Long JavaDoc categoryId);
64
65     /**
66      * @param orderingFields
67      * @return
68      */

69     public List JavaDoc findAll(int[] orderingFields);
70     
71     public Category insertCategory(Category cat);
72     public Category getLastCattegoryByOrder();
73     public void deleteCategory(Category cat);
74     
75 }
76
Popular Tags