MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IB0.java
1 /* -*- mode: java; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=4:tabstop=4:smarttab:
3  *
4  * Copyright 2010 Sun Microsystems, Inc.
5  * All rights reserved. Use is subject to license terms.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; version 2 of the License.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 package com.mysql.cluster.crund;
22 
23 import com.mysql.clusterj.annotation.Column;
24 import com.mysql.clusterj.annotation.PersistenceCapable;
25 
29 @PersistenceCapable(table="b0")
30 public interface IB0 {
31 
32  public int getId();
33  public void setId(int id);
34 
35  public int getCint();
36  public void setCint(int cint);
37 
38  public long getClong();
39  public void setClong(long clong);
40 
41  public float getCfloat();
42  public void setCfloat(float cfloat);
43 
44  public double getCdouble();
45  public void setCdouble(double cdouble);
46 
47 /*
48  // XXX NPE despite allowsNull="true" annotation, must set to non-null
49  o.setCvarbinary_def(new byte[0]);
50 
51  [java] SEVERE: Error executing getInsertOperation on table b0.
52  [java] caught com.mysql.clusterj.ClusterJException: Error executing getInsertOperation on table b0. Caused by java.lang.NullPointerException:null
53  [java] com.mysql.clusterj.ClusterJException: Error executing getInsertOperation on table b0. Caused by java.lang.NullPointerException:null
54  [java] at com.mysql.clusterj.core.SessionImpl.insert(SessionImpl.java:283)
55 */
56  // XXX @javax.persistence.Basic(fetch=javax.persistence.FetchType.LAZY)
57  @Column(name="cvarbinary_def",allowsNull="true")
58  public byte[] getCvarbinary_def();
59  public void setCvarbinary_def(byte[] cvarbinary_def);
60 
61  // XXX @javax.persistence.Basic(fetch=javax.persistence.FetchType.LAZY)
62  @Column(name="cvarchar_def")
63  public String getCvarchar_def();
64  public void setCvarchar_def(String cvarchar_def);
65 
66  @Column(name="a_id") // or change name of attr
67  public int getAid();
68  public void setAid(int aid);
69 }