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, version 2.0,
6  *  as published by the Free Software Foundation.
7  *
8  *  This program is also distributed with certain software (including
9  *  but not limited to OpenSSL) that is licensed under separate terms,
10  *  as designated in a particular file or component or in included license
11  *  documentation.  The authors of MySQL hereby grant you an additional
12  *  permission to link the program and your derivative works with the
13  *  separately licensed software that they have included with MySQL.
14  *
15  *  This program is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *  GNU General Public License, version 2.0, for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with this program; if not, write to the Free Software
22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
23 */
24 
25 package testsuite.clusterj.model;
26 
27 import com.mysql.clusterj.annotation.PersistenceCapable;
28 import com.mysql.clusterj.annotation.PrimaryKey;
29 
30 /** Schema
31  *
32 drop table if exists varbinarytypes;
33 create table varbinarytypes (
34  id int not null primary key,
35 
36  binary1 varbinary(1),
37  binary2 varbinary(2),
38  binary4 varbinary(4),
39  binary8 varbinary(8),
40  binary16 varbinary(16),
41  binary32 varbinary(32),
42  binary64 varbinary(64),
43  binary128 varbinary(128),
44  binary256 varbinary(256),
45  binary512 varbinary(512),
46  binary1024 varbinary(1024),
47  binary2048 varbinary(2048)
48 
49 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
50 
51  */
52 
53 @PersistenceCapable(table="varbinarytypes")
54 @PrimaryKey(column="id")
55 public interface VarbinaryTypes extends IdBase {
56 
getId()57     int getId();
setId(int id)58     void setId(int id);
59 
60     // Byte Array
getBinary1()61     byte[] getBinary1();
setBinary1(byte[] value)62     void setBinary1(byte[] value);
63 
64     // Byte Array
getBinary2()65     byte[] getBinary2();
setBinary2(byte[] value)66     void setBinary2(byte[] value);
67 
68     // Byte Array
getBinary4()69     byte[] getBinary4();
setBinary4(byte[] value)70     void setBinary4(byte[] value);
71 
72     // Byte Array
getBinary8()73     byte[] getBinary8();
setBinary8(byte[] value)74     void setBinary8(byte[] value);
75 
76     // Byte Array
getBinary16()77     byte[] getBinary16();
setBinary16(byte[] value)78     void setBinary16(byte[] value);
79 
80     // Byte Array
getBinary32()81     byte[] getBinary32();
setBinary32(byte[] value)82     void setBinary32(byte[] value);
83 
84     // Byte Array
getBinary64()85     byte[] getBinary64();
setBinary64(byte[] value)86     void setBinary64(byte[] value);
87 
88     // Byte Array
getBinary128()89     byte[] getBinary128();
setBinary128(byte[] value)90     void setBinary128(byte[] value);
91 
92     // Byte Array
getBinary256()93     byte[] getBinary256();
setBinary256(byte[] value)94     void setBinary256(byte[] value);
95 
96     // Byte Array
getBinary512()97     byte[] getBinary512();
setBinary512(byte[] value)98     void setBinary512(byte[] value);
99 
100     // Byte Array
getBinary1024()101     byte[] getBinary1024();
setBinary1024(byte[] value)102     void setBinary1024(byte[] value);
103 
104     // Byte Array
getBinary2048()105     byte[] getBinary2048();
setBinary2048(byte[] value)106     void setBinary2048(byte[] value);
107 
108 }
109