]> review.fuel-infra Code Review - packages/trusty/mysql-wsrep-5.6.git/blob
068fd8f11128292ac643e15a3f33d121bde1e7fb
[packages/trusty/mysql-wsrep-5.6.git] /
1 /*
2    Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; version 2 of the License.
7
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12
13    You should have received a copy of the GNU General Public License
14    along with this program; if not, write to the Free Software
15    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
16 */
17
18 package com.mysql.clusterj.core.store;
19
20 import java.math.BigDecimal;
21 import java.math.BigInteger;
22
23 /**
24  *
25  */
26 public interface ScanFilter {
27
28     public enum BinaryCondition{COND_GE, COND_LE, COND_EQ, COND_GT, COND_LT, COND_LIKE}
29
30     public enum Group {GROUP_AND, GROUP_OR, GROUP_NAND, GROUP_NOR}
31
32     public void begin();
33
34     public void begin(Group group);
35
36     public void cmpBigInteger(BinaryCondition condition, Column storeColumn, BigInteger value);
37
38     public void cmpBoolean(BinaryCondition condition, Column storeColumn, boolean value);
39
40     public void cmpByte(BinaryCondition condition, Column storeColumn, byte b);
41
42     public void cmpBytes(BinaryCondition condition, Column storeColumn, byte[] value);
43
44     public void cmpDecimal(BinaryCondition condition, Column storeColumn, BigDecimal value);
45
46     public void cmpDouble(BinaryCondition condition, Column storeColumn, double value);
47
48     public void cmpFloat(BinaryCondition condition, Column storeColumn, float value);
49
50     public void cmpShort(BinaryCondition condition, Column storeColumn, short shortValue);
51
52     public void cmpInt(BinaryCondition condition, Column storeColumn, int value);
53
54     public void cmpLong(BinaryCondition condition, Column storeColumn, long longValue);
55
56     public void cmpString(BinaryCondition condition, Column storeColumn, String value);
57
58     public void end();
59
60     public void isNull(Column storeColumn);
61     
62     public void delete();
63
64 }