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, 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 /** Schema 35 * 36 drop table if exists binarytypes; 37 create table binarytypes ( 38 id int not null primary key, 39 40 binary1 binary(1), 41 binary2 binary(2), 42 binary4 binary(4), 43 binary8 binary(8), 44 binary16 binary(16), 45 binary32 binary(32), 46 binary64 binary(64), 47 binary128 binary(128) 48 49 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1; 50 51 */ 52 53 @PersistenceCapable(table="binarytypes") 54 @PrimaryKey(column="id") 55 public interface BinaryTypes 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 } 93