]> review.fuel-infra Code Review - packages/trusty/mysql-wsrep-5.6.git/blob
5e36e5c6531c17b36bbc30c3da3e69797366fec5
[packages/trusty/mysql-wsrep-5.6.git] /
1 /*
2  *  Copyright (c) 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 testsuite.clusterj.model;
19
20 import com.mysql.clusterj.annotation.PersistenceCapable;
21 import com.mysql.clusterj.annotation.PrimaryKey;
22
23 /** Schema
24  *
25 drop table if exists varbinarytypes;
26 create table varbinarytypes (
27  id int not null primary key,
28
29  binary1 varbinary(1),
30  binary2 varbinary(2),
31  binary4 varbinary(4),
32  binary8 varbinary(8),
33  binary16 varbinary(16),
34  binary32 varbinary(32),
35  binary64 varbinary(64),
36  binary128 varbinary(128),
37  binary256 varbinary(256),
38  binary512 varbinary(512),
39  binary1024 varbinary(1024),
40  binary2048 varbinary(2048)
41
42 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
43
44  */
45
46 @PersistenceCapable(table="varbinarytypes")
47 @PrimaryKey(column="id")
48 public interface VarbinaryTypes extends IdBase {
49
50     int getId();
51     void setId(int id);
52
53     // Byte Array
54     byte[] getBinary1();
55     void setBinary1(byte[] value);
56
57     // Byte Array
58     byte[] getBinary2();
59     void setBinary2(byte[] value);
60
61     // Byte Array
62     byte[] getBinary4();
63     void setBinary4(byte[] value);
64
65     // Byte Array
66     byte[] getBinary8();
67     void setBinary8(byte[] value);
68
69     // Byte Array
70     byte[] getBinary16();
71     void setBinary16(byte[] value);
72
73     // Byte Array
74     byte[] getBinary32();
75     void setBinary32(byte[] value);
76
77     // Byte Array
78     byte[] getBinary64();
79     void setBinary64(byte[] value);
80
81     // Byte Array
82     byte[] getBinary128();
83     void setBinary128(byte[] value);
84
85     // Byte Array
86     byte[] getBinary256();
87     void setBinary256(byte[] value);
88
89     // Byte Array
90     byte[] getBinary512();
91     void setBinary512(byte[] value);
92
93     // Byte Array
94     byte[] getBinary1024();
95     void setBinary1024(byte[] value);
96
97     // Byte Array
98     byte[] getBinary2048();
99     void setBinary2048(byte[] value);
100
101 }