MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
B0.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 java.io.Serializable;
24 import java.io.ObjectInputStream;
25 import java.io.ObjectOutputStream;
26 import java.io.IOException;
27 
31 @javax.persistence.Entity
32 @javax.persistence.Table(name="b0")
33 public class B0 implements Serializable {
34  // @javax.persistence.Basic default for primitive types, wrappers, String
35  // Defaults:
36  // fetch=EAGER
37  // optional=true (value of all nonprimitive field/property may be null)
38  // @javax.persistence.Lob specifies for the @Basic mapping that a
39  // persistent property or field should be persisted as a large object
40  // to a database-supported large object type. A Lob may be either a
41  // binary or character type.
42  // @javax.persistence.Transient specify a field or property of an entity
43  // that is not persistent
44  // @javax.persistence.ManyToOne for a single-valued association to another
45  // entity class that has many-to-one multiplicity. Defaults:
46  // cascade=new javax.persistence.CascadeType[]{}
47  // fetch=javax.persistence.FetchType.EAGER
48  // optional=true (value of all field/property may be null)
49  // @javax.persistence.ManyToOne for a many-valued association to another
50  // entity class that has one-to-many multiplicity. Defaults:
51  // [mappedBy=field_name (relationship is bidirectional)]
52  // cascade=new javax.persistence.CascadeType[]{}
53  // fetch=javax.persistence.FetchType.LAZY
54  // optional=true (value of all field/property may be null)
55 
56  @javax.persistence.Id
57  private int id;
58 
59  private int cint;
60 
61  private long clong;
62 
63  private float cfloat;
64 
65  private double cdouble;
66 
67  @javax.persistence.Basic(fetch=javax.persistence.FetchType.LAZY)
68  private byte[] cvarbinary_def;
69 
70  @javax.persistence.Basic(fetch=javax.persistence.FetchType.LAZY)
71  private String cvarchar_def;
72 
73  @javax.persistence.ManyToOne(fetch=javax.persistence.FetchType.LAZY)
74  @javax.persistence.Column(name="a_id")
75  @org.apache.openjpa.persistence.jdbc.Index(name="I_B0_FK")
76  private A a;
77 
78  public B0() {
79  }
80 
81  public int getId() {
82  return id;
83  }
84 
85  public void setId(int id) {
86  this.id = id;
87  }
88 
89  public int getCint() {
90  return cint;
91  }
92 
93  public void setCint(int cint) {
94  this.cint = cint;
95  }
96 
97  public long getClong() {
98  return clong;
99  }
100 
101  public void setClong(long clong) {
102  this.clong = clong;
103  }
104 
105  public float getCfloat() {
106  return cfloat;
107  }
108 
109  public void setCfloat(float cfloat) {
110  this.cfloat = cfloat;
111  }
112 
113  public double getCdouble() {
114  return cdouble;
115  }
116 
117  public void setCdouble(double cdouble) {
118  this.cdouble = cdouble;
119  }
120 
121  public byte[] getCvarbinary_def() {
122  return cvarbinary_def;
123  }
124 
125  public void setCvarbinary_def(byte[] cvarbinary_def) {
126  this.cvarbinary_def = cvarbinary_def;
127  }
128 
129  public String getCvarchar_def() {
130  return cvarchar_def;
131  }
132 
133  public void setCvarchar_def(String cvarchar_def) {
134  this.cvarchar_def = cvarchar_def;
135  }
136 
137  public A getA() {
138  return a;
139  }
140 
141  public void setA(A a) {
142  this.a = a;
143  }
144 
145  // while implementing Serializable...
146  static private final long serialVersionUID = 4644052765183330073L;
147 
148  // while implementing Serializable...
149  private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
150  in.defaultReadObject();
151  }
152 
153  // while implementing Serializable...
154  private void writeObject(ObjectOutputStream out) throws IOException {
155  out.defaultWriteObject();
156  }
157 
158 /*
159  static public class Oid implements Serializable {
160 
161  public int id;
162 
163  public Oid() {
164  }
165 
166  public boolean equals(Object obj) {
167  if (obj == null || !this.getClass().equals(obj.getClass()))
168  return false;
169  Oid o = (Oid)obj;
170  return (this.id == o.id);
171  }
172 
173  public int hashCode() {
174  return id;
175  }
176  }
177 */
178 }