00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 package org.objectweb.jonas_ejb.container.jorm;
00029
00030 import org.objectweb.jorm.api.PIndexedElem;
00031 import org.objectweb.jorm.api.PException;
00032 import org.objectweb.jorm.naming.api.PName;
00033 import org.objectweb.jorm.type.api.PExceptionTyping;
00034 import org.objectweb.jonas_ejb.container.TraceEjb;
00035 import org.objectweb.util.monolog.api.BasicLevel;
00036
00037 import java.util.Date;
00038 import java.io.Serializable;
00039 import java.math.BigDecimal;
00040
00048 public class GenClassElement implements PIndexedElem {
00049
00054 public byte status = PIndexedElem.ELEM_UNMODIFIED;
00055
00056 public boolean hasBeenCreated = false;
00057
00062 public PName pname = null;
00063
00068 public PObject value = null;
00069
00074 public GenClassImpl gc = null;
00075
00076
00077 public GenClassElement(GenClassImpl gc) {
00078 this.gc = gc;
00079 }
00080
00081
00082
00083
00084 public byte getElemStatus() {
00085 return status;
00086 }
00087
00088 public PName pieGetRefElem() throws PException {
00089 if (pname == null) {
00090 pname = gc.gcObject2ref(value);
00091 }
00092 TraceEjb.genclass.log(BasicLevel.DEBUG, "pn=" + pname);
00093 return pname;
00094 }
00098 public void pieSetRefElem(PName pn) throws PException {
00099 pname = pn;
00100 value = null;
00101 TraceEjb.genclass.log(BasicLevel.DEBUG, "pn=" + pname);
00102 }
00103
00104 public boolean pieGetBooleanElem() throws PException {
00105 throw new PExceptionTyping("Bad elem type: asked: boolean, been: object");
00106 }
00107 public Boolean pieGetObooleanElem() throws PException {
00108 throw new PExceptionTyping("Bad elem type: asked: Boolean, been: object");
00109 }
00110 public byte pieGetByteElem() throws PException {
00111 throw new PExceptionTyping("Bad elem type: asked: byte, been: object");
00112 }
00113 public Byte pieGetObyteElem() throws PException {
00114 throw new PExceptionTyping("Bad elem type: asked: Byte, been: object");
00115 }
00116 public byte pieGetByteIndexField(String fn) throws PException {
00117 throw new PExceptionTyping("No index");
00118 }
00119 public Byte pieGetObyteIndexField(String fn) throws PException {
00120 throw new PExceptionTyping("No index");
00121 }
00122 public char pieGetCharElem() throws PException {
00123 throw new PExceptionTyping("Bad elem type: asked: char, been: object");
00124 }
00125 public Character pieGetOcharElem() throws PException {
00126 throw new PExceptionTyping("Bad elem type: asked: Char, been: object");
00127 }
00128 public char pieGetCharIndexField(String fn) throws PException {
00129 throw new PExceptionTyping("No index");
00130 }
00131 public Character pieGetOcharIndexField(String fn) throws PException {
00132 throw new PExceptionTyping("No index");
00133 }
00134 public short pieGetShortElem() throws PException {
00135 throw new PExceptionTyping("Bad elem type: asked: short, been: object");
00136 }
00137 public Short pieGetOshortElem() throws PException {
00138 throw new PExceptionTyping("Bad elem type: asked: Short, been: object");
00139 }
00140 public short pieGetShortIndexField(String fn) throws PException {
00141 throw new PExceptionTyping("No index");
00142 }
00143 public Short pieGetOshortIndexField(String fn) throws PException {
00144 throw new PExceptionTyping("No index");
00145 }
00146 public int pieGetIntElem() throws PException {
00147 throw new PExceptionTyping("Bad elem type: asked: int, been: object");
00148 }
00149 public Integer pieGetOintElem() throws PException {
00150 throw new PExceptionTyping("Bad elem type: asked: Int, been: object");
00151 }
00152 public int pieGetIntIndexField(String fn) throws PException {
00153 throw new PExceptionTyping("No index");
00154 }
00155 public Integer pieGetOintIndexField(String fn) throws PException {
00156 throw new PExceptionTyping("No index");
00157 }
00158 public long pieGetLongElem() throws PException {
00159 throw new PExceptionTyping("Bad elem type: asked: long, been: object");
00160 }
00161 public Long pieGetOlongElem() throws PException {
00162 throw new PExceptionTyping("Bad elem type: asked: Long, been: object");
00163 }
00164 public long pieGetLongIndexField(String fn) throws PException {
00165 throw new PExceptionTyping("No index");
00166 }
00167 public Long pieGetOlongIndexField(String fn) throws PException {
00168 throw new PExceptionTyping("No index");
00169 }
00170 public float pieGetFloatElem() throws PException {
00171 throw new PExceptionTyping("Bad elem type: asked: float, been: object");
00172 }
00173 public Float pieGetOfloatElem() throws PException {
00174 throw new PExceptionTyping("Bad elem type: asked: Float, been: object");
00175 }
00176 public double pieGetDoubleElem() throws PException {
00177 throw new PExceptionTyping("Bad elem type: asked: double, been: object");
00178 }
00179 public Double pieGetOdoubleElem() throws PException {
00180 throw new PExceptionTyping("Bad elem type: asked: Double, been: object");
00181 }
00182 public String pieGetStringElem() throws PException {
00183 throw new PExceptionTyping("Bad elem type: asked: String, been: object");
00184 }
00185 public String pieGetStringIndexField(String fn) throws PException {
00186 return null;
00187 }
00188 public Date pieGetDateElem() throws PException {
00189 throw new PExceptionTyping("Bad elem type: asked: java.util.Date, been: object");
00190 }
00191 public Date pieGetDateIndexField(String fn) throws PException {
00192 throw new PExceptionTyping("No index");
00193 }
00194 public char[] pieGetCharArrayElem() throws PException {
00195 throw new PExceptionTyping("Bad elem type: asked: char[], been: object");
00196 }
00197 public byte[] pieGetByteArrayElem() throws PException {
00198 throw new PExceptionTyping("Bad elem type: asked: byte[], been: object");
00199 }
00200 public Serializable pieGetSerializedElem() throws PException {
00201 throw new PExceptionTyping("Bad elem type: asked: Serializable, been: object");
00202 }
00203 public void pieSetBooleanElem(boolean value) throws PException {
00204 throw new PExceptionTyping("Bad elem type: asked: boolean, been: object");
00205 }
00206 public void pieSetObooleanElem(Boolean value) throws PException {
00207 throw new PExceptionTyping("Bad elem type: asked: boolean, been: object");
00208 }
00209 public void pieSetByteElem(byte value) throws PException {
00210 throw new PExceptionTyping("Bad elem type: asked: byte, been: object");
00211 }
00212 public void pieSetObyteElem(Byte value) throws PException {
00213 throw new PExceptionTyping("Bad elem type: asked: Byte, been: object");
00214 }
00215 public void pieSetByteIndexField(String fn, byte value) throws PException {
00216 throw new PExceptionTyping("No index");
00217 }
00218 public void pieSetObyteIndexField(String fn, Byte value) throws PException {
00219 throw new PExceptionTyping("No index");
00220 }
00221 public void pieSetCharElem(char value) throws PException {
00222 throw new PExceptionTyping("Bad elem type: asked: char, been: object");
00223 }
00224 public void pieSetOcharElem(Character value) throws PException {
00225 throw new PExceptionTyping("Bad elem type: asked: Char, been: object");
00226 }
00227 public void pieSetCharIndexField(String fn, char value) throws PException {
00228 throw new PExceptionTyping("No index");
00229 }
00230 public void pieSetOcharIndexField(String fn, Character value) throws PException {
00231 throw new PExceptionTyping("No index");
00232 }
00233 public void pieSetShortElem(short value) throws PException {
00234 throw new PExceptionTyping("Bad elem type: asked: short, been: object");
00235 }
00236 public void pieSetOshortElem(Short value) throws PException {
00237 throw new PExceptionTyping("Bad elem type: asked: Short, been: object");
00238 }
00239 public void pieSetShortIndexField(String fn, short value) throws PException {
00240 throw new PExceptionTyping("No index");
00241 }
00242 public void pieSetOshortIndexField(String fn, Short value) throws PException {
00243 throw new PExceptionTyping("No index");
00244 }
00245 public void pieSetIntElem(int value) throws PException {
00246 throw new PExceptionTyping("Bad elem type: asked: int, been: object");
00247 }
00248 public void pieSetOintElem(Integer value) throws PException {
00249 throw new PExceptionTyping("Bad elem type: asked: Int, been: object");
00250 }
00251 public void pieSetIntIndexField(String fn, int value) throws PException {
00252 throw new PExceptionTyping("No index");
00253 }
00254 public void pieSetOintIndexField(String fn, Integer value) throws PException {
00255 throw new PExceptionTyping("No index");
00256 }
00257 public void pieSetLongElem(long value) throws PException {
00258 throw new PExceptionTyping("Bad elem type: asked: long, been: object");
00259 }
00260 public void pieSetOlongElem(Long value) throws PException {
00261 throw new PExceptionTyping("Bad elem type: asked: Long, been: object");
00262 }
00263 public void pieSetLongIndexField(String fn, long value) throws PException {
00264 throw new PExceptionTyping("No index");
00265 }
00266 public void pieSetOlongIndexField(String fn, Long value) throws PException {
00267 throw new PExceptionTyping("No index");
00268 }
00269 public void pieSetFloatElem(float value) throws PException {
00270 throw new PExceptionTyping("Bad elem type: asked: float, been: object");
00271 }
00272 public void pieSetOfloatElem(Float value) throws PException {
00273 throw new PExceptionTyping("Bad elem type: asked: Float, been: object");
00274 }
00275 public void pieSetDoubleElem(double value) throws PException {
00276 throw new PExceptionTyping("Bad elem type: asked: double, been: object");
00277 }
00278 public void pieSetOdoubleElem(Double value) throws PException {
00279 throw new PExceptionTyping("Bad elem type: asked: Double, been: object");
00280 }
00281 public void pieSetStringElem(String value) throws PException {
00282 throw new PExceptionTyping("Bad elem type: asked: String, been: object");
00283 }
00284 public void pieSetStringIndexField(String fn, String value) throws PException {
00285 throw new PExceptionTyping("No index");
00286 }
00287 public void pieSetDateElem(Date value) throws PException {
00288 throw new PExceptionTyping("Bad elem type: asked: java.util.Date, been: object");
00289 }
00290 public void pieSetDateIndexField(String fn, Date value) throws PException {
00291 throw new PExceptionTyping("No index");
00292 }
00293 public void pieSetCharArrayElem(char[] value) throws PException {
00294 throw new PExceptionTyping("Bad elem type: asked: char[], been: object");
00295 }
00296 public void pieSetByteArrayElem(byte[] value) throws PException {
00297 throw new PExceptionTyping("Bad elem type: asked: byte[], been: object");
00298 }
00299 public void pieSetSerializedElem(Serializable value) throws PException {
00300 throw new PExceptionTyping("Bad elem type: asked: Serializable, been: object");
00301 }
00302 public BigDecimal pieGetBigDecimalElem() throws PException {
00303 throw new PExceptionTyping("Bad elem type: asked: BigDecimal, been: object");
00304 }
00305 public void pieSetBigDecimalElem(BigDecimal value) throws PException {
00306 throw new PExceptionTyping("Bad elem type: asked: BigDecimal, been: object");
00307 }
00308 public java.math.BigInteger pieGetBigIntegerElem() throws PException {
00309 throw new PExceptionTyping("Bad elem type: asked: BigInteger, been: object");
00310 }
00311 public void pieSetBigIntegerElem(java.math.BigInteger value) throws PException {
00312 throw new PExceptionTyping("Bad elem type: asked: BigInteger, been: object");
00313 }
00314 }