MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AllPrimitives.java
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 as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 package testsuite.clusterj.model;
20 
21 import com.mysql.clusterj.annotation.Column;
22 import com.mysql.clusterj.annotation.Index;
23 import com.mysql.clusterj.annotation.Indices;
24 import com.mysql.clusterj.annotation.PersistenceCapable;
25 import com.mysql.clusterj.annotation.PrimaryKey;
26 
27 @Indices({
28  @Index(name="idx_int_not_null_both", columns=@Column(name="int_not_null_both")),
29  @Index(name="idx_int_null_both", columns=@Column(name="int_null_both")),
30  @Index(name="idx_byte_not_null_both", columns=@Column(name="byte_not_null_both")),
31  @Index(name="idx_byte_null_both", columns=@Column(name="byte_null_both")),
32  @Index(name="idx_short_not_null_both", columns=@Column(name="short_not_null_both")),
33  @Index(name="idx_short_null_both", columns=@Column(name="short_null_both")),
34  @Index(name="idx_long_not_null_both", columns=@Column(name="long_not_null_both")),
35  @Index(name="idx_long_null_both", columns=@Column(name="long_null_both"))
36 })
37 @PersistenceCapable(table="allprimitives")
38 @PrimaryKey(column="id")
39 public interface AllPrimitives extends IdBase {
40 
41  int getId();
42  void setId(int id);
43 
44  // Integer
45  @Column(name="int_not_null_hash")
46  @Index(name="idx_int_not_null_hash")
47  int getInt_not_null_hash();
48  void setInt_not_null_hash(int value);
49  @Column(name="int_not_null_btree")
50  @Index(name="idx_int_not_null_btree")
51  int getInt_not_null_btree();
52  void setInt_not_null_btree(int value);
53  @Column(name="int_not_null_both")
54  int getInt_not_null_both();
55  void setInt_not_null_both(int value);
56  @Column(name="int_not_null_none")
57  int getInt_not_null_none();
58  void setInt_not_null_none(int value);
59  @Column(name="int_null_hash")
60  @Index(name="idx_int_null_hash")
61  Integer getInt_null_hash();
62  void setInt_null_hash(Integer value);
63  @Column(name="int_null_btree")
64  @Index(name="idx_int_null_btree")
65  Integer getInt_null_btree();
66  void setInt_null_btree(Integer value);
67  @Column(name="int_null_both")
68  Integer getInt_null_both();
69  void setInt_null_both(Integer value);
70  @Column(name="int_null_none")
71  Integer getInt_null_none();
72  void setInt_null_none(Integer value);
73 
74  // Byte
75  @Column(name="byte_not_null_hash")
76  @Index(name="idx_byte_not_null_hash")
77  byte getByte_not_null_hash();
78  void setByte_not_null_hash(byte value);
79  @Column(name="byte_not_null_btree")
80  @Index(name="idx_byte_not_null_btree")
81  byte getByte_not_null_btree();
82  void setByte_not_null_btree(byte value);
83  @Column(name="byte_not_null_both")
84  byte getByte_not_null_both();
85  void setByte_not_null_both(byte value);
86  @Column(name="byte_not_null_none")
87  byte getByte_not_null_none();
88  void setByte_not_null_none(byte value);
89  @Column(name="byte_null_hash")
90  @Index(name="idx_byte_null_hash")
91  Byte getByte_null_hash();
92  void setByte_null_hash(Byte value);
93  @Column(name="byte_null_btree")
94  @Index(name="idx_byte_null_btree")
95  Byte getByte_null_btree();
96  void setByte_null_btree(Byte value);
97  @Column(name="byte_null_both")
98  Byte getByte_null_both();
99  void setByte_null_both(Byte value);
100  @Column(name="byte_null_none")
101  Byte getByte_null_none();
102  void setByte_null_none(Byte value);
103 
104  // Short
105  @Column(name="short_not_null_hash")
106  @Index(name="idx_short_not_null_hash")
107  short getShort_not_null_hash();
108  void setShort_not_null_hash(short value);
109  @Column(name="short_not_null_btree")
110  @Index(name="idx_short_not_null_btree")
111  short getShort_not_null_btree();
112  void setShort_not_null_btree(short value);
113  @Column(name="short_not_null_both")
114  short getShort_not_null_both();
115  void setShort_not_null_both(short value);
116  @Column(name="short_not_null_none")
117  short getShort_not_null_none();
118  void setShort_not_null_none(short value);
119  @Column(name="short_null_hash")
120  @Index(name="idx_short_null_hash")
121  Short getShort_null_hash();
122  void setShort_null_hash(Short value);
123  @Column(name="short_null_btree")
124  @Index(name="idx_short_null_btree")
125  Short getShort_null_btree();
126  void setShort_null_btree(Short value);
127  @Column(name="short_null_both")
128  Short getShort_null_both();
129  void setShort_null_both(Short value);
130  @Column(name="short_null_none")
131  Short getShort_null_none();
132  void setShort_null_none(Short value);
133 
134  // Long
135  @Column(name="long_not_null_hash")
136  @Index(name="idx_long_not_null_hash")
137  long getLong_not_null_hash();
138  void setLong_not_null_hash(long value);
139  @Column(name="long_not_null_btree")
140  @Index(name="idx_long_not_null_btree")
141  long getLong_not_null_btree();
142  void setLong_not_null_btree(long value);
143  @Column(name="long_not_null_both")
144  long getLong_not_null_both();
145  void setLong_not_null_both(long value);
146  @Column(name="long_not_null_none")
147  long getLong_not_null_none();
148  void setLong_not_null_none(long value);
149  @Column(name="long_null_hash")
150  @Index(name="idx_long_null_hash")
151  Long getLong_null_hash();
152  void setLong_null_hash(Long value);
153  @Column(name="long_null_btree")
154  @Index(name="idx_long_null_btree")
155  Long getLong_null_btree();
156  void setLong_null_btree(Long value);
157  @Column(name="long_null_both")
158  Long getLong_null_both();
159  void setLong_null_both(Long value);
160  @Column(name="long_null_none")
161  Long getLong_null_none();
162  void setLong_null_none(Long value);
163 
164 
165 }