1 /*
2    Copyright (c) 2010, 2021, Oracle and/or its affiliates.
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 package testsuite.clusterj.model;
27 
28 import com.mysql.clusterj.annotation.Column;
29 import com.mysql.clusterj.annotation.Index;
30 import com.mysql.clusterj.annotation.Indices;
31 import com.mysql.clusterj.annotation.PersistenceCapable;
32 import com.mysql.clusterj.annotation.PrimaryKey;
33 
34 @Indices({
35     @Index(name="idx_int_not_null_both", columns=@Column(name="int_not_null_both")),
36     @Index(name="idx_int_null_both", columns=@Column(name="int_null_both")),
37     @Index(name="idx_byte_not_null_both", columns=@Column(name="byte_not_null_both")),
38     @Index(name="idx_byte_null_both", columns=@Column(name="byte_null_both")),
39     @Index(name="idx_short_not_null_both", columns=@Column(name="short_not_null_both")),
40     @Index(name="idx_short_null_both", columns=@Column(name="short_null_both")),
41     @Index(name="idx_long_not_null_both", columns=@Column(name="long_not_null_both")),
42     @Index(name="idx_long_null_both", columns=@Column(name="long_null_both"))
43 })
44 @PersistenceCapable(table="allprimitives")
45 @PrimaryKey(column="id")
46 public interface AllPrimitives extends IdBase {
47 
getId()48     int getId();
setId(int id)49     void setId(int id);
50 
51     // Integer
52     @Column(name="int_not_null_hash")
53     @Index(name="idx_int_not_null_hash")
getInt_not_null_hash()54     int getInt_not_null_hash();
setInt_not_null_hash(int value)55     void setInt_not_null_hash(int value);
56     @Column(name="int_not_null_btree")
57     @Index(name="idx_int_not_null_btree")
getInt_not_null_btree()58     int getInt_not_null_btree();
setInt_not_null_btree(int value)59     void setInt_not_null_btree(int value);
60     @Column(name="int_not_null_both")
getInt_not_null_both()61     int getInt_not_null_both();
setInt_not_null_both(int value)62     void setInt_not_null_both(int value);
63     @Column(name="int_not_null_none")
getInt_not_null_none()64     int getInt_not_null_none();
setInt_not_null_none(int value)65     void setInt_not_null_none(int value);
66     @Column(name="int_null_hash")
67     @Index(name="idx_int_null_hash")
getInt_null_hash()68     Integer getInt_null_hash();
setInt_null_hash(Integer value)69     void setInt_null_hash(Integer value);
70     @Column(name="int_null_btree")
71     @Index(name="idx_int_null_btree")
getInt_null_btree()72     Integer getInt_null_btree();
setInt_null_btree(Integer value)73     void setInt_null_btree(Integer value);
74     @Column(name="int_null_both")
getInt_null_both()75     Integer getInt_null_both();
setInt_null_both(Integer value)76     void setInt_null_both(Integer value);
77     @Column(name="int_null_none")
getInt_null_none()78     Integer getInt_null_none();
setInt_null_none(Integer value)79     void setInt_null_none(Integer value);
80 
81     // Byte
82     @Column(name="byte_not_null_hash")
83     @Index(name="idx_byte_not_null_hash")
getByte_not_null_hash()84     byte getByte_not_null_hash();
setByte_not_null_hash(byte value)85     void setByte_not_null_hash(byte value);
86     @Column(name="byte_not_null_btree")
87     @Index(name="idx_byte_not_null_btree")
getByte_not_null_btree()88     byte getByte_not_null_btree();
setByte_not_null_btree(byte value)89     void setByte_not_null_btree(byte value);
90     @Column(name="byte_not_null_both")
getByte_not_null_both()91     byte getByte_not_null_both();
setByte_not_null_both(byte value)92     void setByte_not_null_both(byte value);
93     @Column(name="byte_not_null_none")
getByte_not_null_none()94     byte getByte_not_null_none();
setByte_not_null_none(byte value)95     void setByte_not_null_none(byte value);
96     @Column(name="byte_null_hash")
97     @Index(name="idx_byte_null_hash")
getByte_null_hash()98     Byte getByte_null_hash();
setByte_null_hash(Byte value)99     void setByte_null_hash(Byte value);
100     @Column(name="byte_null_btree")
101     @Index(name="idx_byte_null_btree")
getByte_null_btree()102     Byte getByte_null_btree();
setByte_null_btree(Byte value)103     void setByte_null_btree(Byte value);
104     @Column(name="byte_null_both")
getByte_null_both()105     Byte getByte_null_both();
setByte_null_both(Byte value)106     void setByte_null_both(Byte value);
107     @Column(name="byte_null_none")
getByte_null_none()108     Byte getByte_null_none();
setByte_null_none(Byte value)109     void setByte_null_none(Byte value);
110 
111     // Short
112     @Column(name="short_not_null_hash")
113     @Index(name="idx_short_not_null_hash")
getShort_not_null_hash()114     short getShort_not_null_hash();
setShort_not_null_hash(short value)115     void setShort_not_null_hash(short value);
116     @Column(name="short_not_null_btree")
117     @Index(name="idx_short_not_null_btree")
getShort_not_null_btree()118     short getShort_not_null_btree();
setShort_not_null_btree(short value)119     void setShort_not_null_btree(short value);
120     @Column(name="short_not_null_both")
getShort_not_null_both()121     short getShort_not_null_both();
setShort_not_null_both(short value)122     void setShort_not_null_both(short value);
123     @Column(name="short_not_null_none")
getShort_not_null_none()124     short getShort_not_null_none();
setShort_not_null_none(short value)125     void setShort_not_null_none(short value);
126     @Column(name="short_null_hash")
127     @Index(name="idx_short_null_hash")
getShort_null_hash()128     Short getShort_null_hash();
setShort_null_hash(Short value)129     void setShort_null_hash(Short value);
130     @Column(name="short_null_btree")
131     @Index(name="idx_short_null_btree")
getShort_null_btree()132     Short getShort_null_btree();
setShort_null_btree(Short value)133     void setShort_null_btree(Short value);
134     @Column(name="short_null_both")
getShort_null_both()135     Short getShort_null_both();
setShort_null_both(Short value)136     void setShort_null_both(Short value);
137     @Column(name="short_null_none")
getShort_null_none()138     Short getShort_null_none();
setShort_null_none(Short value)139     void setShort_null_none(Short value);
140 
141     // Long
142     @Column(name="long_not_null_hash")
143     @Index(name="idx_long_not_null_hash")
getLong_not_null_hash()144     long getLong_not_null_hash();
setLong_not_null_hash(long value)145     void setLong_not_null_hash(long value);
146     @Column(name="long_not_null_btree")
147     @Index(name="idx_long_not_null_btree")
getLong_not_null_btree()148     long getLong_not_null_btree();
setLong_not_null_btree(long value)149     void setLong_not_null_btree(long value);
150     @Column(name="long_not_null_both")
getLong_not_null_both()151     long getLong_not_null_both();
setLong_not_null_both(long value)152     void setLong_not_null_both(long value);
153     @Column(name="long_not_null_none")
getLong_not_null_none()154     long getLong_not_null_none();
setLong_not_null_none(long value)155     void setLong_not_null_none(long value);
156     @Column(name="long_null_hash")
157     @Index(name="idx_long_null_hash")
getLong_null_hash()158     Long getLong_null_hash();
setLong_null_hash(Long value)159     void setLong_null_hash(Long value);
160     @Column(name="long_null_btree")
161     @Index(name="idx_long_null_btree")
getLong_null_btree()162     Long getLong_null_btree();
setLong_null_btree(Long value)163     void setLong_null_btree(Long value);
164     @Column(name="long_null_both")
getLong_null_both()165     Long getLong_null_both();
setLong_null_both(Long value)166     void setLong_null_both(Long value);
167     @Column(name="long_null_none")
getLong_null_none()168     Long getLong_null_none();
setLong_null_none(Long value)169     void setLong_null_none(Long value);
170 
171 
172 }
173