01: /*
02: * Copyright 2006 Davide Deidda
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: /*
18: * QueryFilter.java
19: *
20: * Created on 28 aprile 2005, 19.39
21: */
22:
23: package it.biobytes.ammentos.query;
24:
25: import java.sql.*;
26:
27: /**
28: *
29: * @author davide
30: */
31: public interface QueryFilter {
32: public static final int OP_EQUALS = 0;
33: public static final int OP_NOTEQUALS = 1;
34: public static final int OP_BIGGERTHAN = 2;
35: public static final int OP_BIGGERTHANOREQUALS = 3;
36: public static final int OP_SMALLERTHAN = 4;
37: public static final int OP_SMALLERTHANOREQUALS = 5;
38:
39: public static final int APP_OR = 0;
40: public static final int APP_AND = 1;
41:
42: public String getSql();
43:
44: public int setParamValues(PreparedStatement pstmt, int initialIndex)
45: throws SQLException;
46:
47: public String getPreviousAppender();
48: }
|