KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > model > query > block > BlockQueryJDBC


1 /**
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6
7  http://www.apache.org/licenses/LICENSE-2.0
8
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */

15
16 package com.jdon.model.query.block;
17
18 import java.util.List JavaDoc;
19
20 import com.jdon.model.query.cache.QueryConditonDatakey;
21
22 /**
23  * Batch Query JDBC Template
24  * pack the sql execution.
25  *
26  * @author banq
27  */

28 public interface BlockQueryJDBC {
29
30     /**
31      * execute sql that fetch all count
32      * @param queryParam
33      * @param sqlquery
34      * @return int the count
35      * @throws Exception
36      */

37
38     public abstract int fetchDataAllCount(QueryConditonDatakey qcd);
39
40     /**
41      * execute sql that fetch all ID's collection
42      * @param queryParam
43      * @param sqlquery
44      * @param start
45      * @param count
46      * @return PageIterator create a PageIterator instance
47      * @throws Exception
48      */

49     public abstract List JavaDoc fetchDatas(QueryConditonDatakey qcdk) ;
50
51 }
52
Popular Tags