1 /*
2   Copyright 2010 Sun Microsystems, Inc.
3   All rights reserved. Use is subject to license terms.
4 
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License, version 2.0,
7   as published by the Free Software Foundation.
8 
9   This program is also distributed with certain software (including
10   but not limited to OpenSSL) that is licensed under separate terms,
11   as designated in a particular file or component or in included license
12   documentation.  The authors of MySQL hereby grant you an additional
13   permission to link the program and your derivative works with the
14   separately licensed software that they have included with MySQL.
15 
16   This program is distributed in the hope that it will be useful,
17   but WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   GNU General Public License, version 2.0, for more details.
20 
21   You should have received a copy of the GNU General Public License
22   along with this program; if not, write to the Free Software
23   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
24 */
25 /*
26  * NdbScanFilter.java
27  */
28 
29 package com.mysql.ndbjtie.ndbapi;
30 
31 import java.nio.ByteBuffer;
32 
33 import com.mysql.jtie.Wrapper;
34 
35 public class NdbScanFilter extends Wrapper implements NdbScanFilterConst
36 {
getNdbError()37     public final native NdbErrorConst/*_const NdbError &_*/ getNdbError() /*_const_*/;
getInterpretedCode()38     public final native NdbInterpretedCodeConst/*_const NdbInterpretedCode *_*/ getInterpretedCode() /*_const_*/;
getNdbOperation()39     public final native NdbOperation/*_NdbOperation *_*/ getNdbOperation() /*_const_*/;
create(NdbInterpretedCode code)40     static public final native NdbScanFilter create(NdbInterpretedCode/*_NdbInterpretedCode *_*/ code);
create(NdbOperation op)41     static public final native NdbScanFilter create(NdbOperation/*_NdbOperation *_*/ op);
delete(NdbScanFilter p0)42     static public final native void delete(NdbScanFilter p0);
43     public interface /*_enum_*/ Group
44     {
45         int AND = 1,
46             OR = 2,
47             NAND = 3,
48             NOR = 4;
49     }
50     public interface /*_enum_*/ BinaryCondition
51     {
52         int COND_LE = 0,
53             COND_LT = 1,
54             COND_GE = 2,
55             COND_GT = 3,
56             COND_EQ = 4,
57             COND_NE = 5,
58             COND_LIKE = 6,
59             COND_NOT_LIKE = 7;
60     }
begin(int group )61     public final native int begin(int/*_Group_*/ group /*_= AND_*/);
end()62     public final native int end();
istrue()63     public final native int istrue();
isfalse()64     public final native int isfalse();
cmp(int cond, int ColId, ByteBuffer val, int len )65     public final native int cmp(int/*_BinaryCondition_*/ cond, int ColId, ByteBuffer/*_const void *_*/ val, int/*_Uint32_*/ len /*_= 0_*/);
eq(int ColId, int value)66     public final native int eq(int ColId, int/*_Uint32_*/ value);
ne(int ColId, int value)67     public final native int ne(int ColId, int/*_Uint32_*/ value);
lt(int ColId, int value)68     public final native int lt(int ColId, int/*_Uint32_*/ value);
le(int ColId, int value)69     public final native int le(int ColId, int/*_Uint32_*/ value);
gt(int ColId, int value)70     public final native int gt(int ColId, int/*_Uint32_*/ value);
ge(int ColId, int value)71     public final native int ge(int ColId, int/*_Uint32_*/ value);
eq(int ColId, long value)72     public final native int eq(int ColId, long/*_Uint64_*/ value);
ne(int ColId, long value)73     public final native int ne(int ColId, long/*_Uint64_*/ value);
lt(int ColId, long value)74     public final native int lt(int ColId, long/*_Uint64_*/ value);
le(int ColId, long value)75     public final native int le(int ColId, long/*_Uint64_*/ value);
gt(int ColId, long value)76     public final native int gt(int ColId, long/*_Uint64_*/ value);
ge(int ColId, long value)77     public final native int ge(int ColId, long/*_Uint64_*/ value);
isnull(int ColId)78     public final native int isnull(int ColId);
isnotnull(int ColId)79     public final native int isnotnull(int ColId);
80     public interface /*_enum_*/ Error
81     {
82         int FilterTooLarge = 4294;
83     }
84 }
85