2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
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.
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.
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
18 package testsuite.clusterj.model;
20 import com.mysql.clusterj.annotation.PersistenceCapable;
21 import com.mysql.clusterj.annotation.PrimaryKey;
25 drop table if exists varbinarytypes;
26 create table varbinarytypes (
27 id int not null primary key,
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)
42 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
46 @PersistenceCapable(table="varbinarytypes")
47 @PrimaryKey(column="id")
48 public interface VarbinaryTypes extends IdBase {
55 void setBinary1(byte[] value);
59 void setBinary2(byte[] value);
63 void setBinary4(byte[] value);
67 void setBinary8(byte[] value);
71 void setBinary16(byte[] value);
75 void setBinary32(byte[] value);
79 void setBinary64(byte[] value);
82 byte[] getBinary128();
83 void setBinary128(byte[] value);
86 byte[] getBinary256();
87 void setBinary256(byte[] value);
90 byte[] getBinary512();
91 void setBinary512(byte[] value);
94 byte[] getBinary1024();
95 void setBinary1024(byte[] value);
98 byte[] getBinary2048();
99 void setBinary2048(byte[] value);