org.objectweb.speedo.runtime.genclass.collection
Class CollectionElem

org.objectweb.speedo.runtime.genclass.collection.CollectionElem
All Implemented Interfaces:
GenClassElement
Direct Known Subclasses:
MapElem, SetElem

public class CollectionElem
implements GenClassElement

Author:
P. D?chamboux

Field Summary
protected  java.lang.Object element
          This field is the element (or its PName for a reference).
static java.lang.String ERROR_MESSAGE_BAD_FIELD_NAME
          The error message thrown when an accessor method associated to a primitive element type is called.
static java.lang.String ERROR_MESSAGE_NO_NULL_INDEX
          The error message thrown when an accessor method associated to a primitive element type is called.
protected  java.lang.Object index
          This field can be the index.
static java.lang.String INDEX_FIELD_NAME
          This constant is the name of the index field.
protected  byte status
          This field represents the satus of the PIndexedEleme.
 
Constructor Summary
CollectionElem()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getElement()
           
 byte getElemStatus()
           
 java.lang.Object getIndex()
           
 java.lang.Object getRefElement(javax.jdo.PersistenceManager pm)
           
 int hashCode()
           
 java.math.BigDecimal pieGetBigDecimalElem()
           
 boolean pieGetBooleanElem()
           
 byte[] pieGetByteArrayElem()
           
 byte pieGetByteElem()
           
 byte pieGetByteIndexField(java.lang.String fn)
           
 char[] pieGetCharArrayElem()
           
 char pieGetCharElem()
           
 char pieGetCharIndexField(java.lang.String fn)
           
 java.util.Date pieGetDateElem()
           
 java.util.Date pieGetDateIndexField(java.lang.String fn)
           
 double pieGetDoubleElem()
           
 float pieGetFloatElem()
           
 int pieGetIntElem()
           
 int pieGetIntIndexField(java.lang.String fn)
           
 long pieGetLongElem()
           
 long pieGetLongIndexField(java.lang.String fn)
           
 java.lang.Boolean pieGetObooleanElem()
           
 java.lang.Byte pieGetObyteElem()
           
 java.lang.Byte pieGetObyteIndexField(java.lang.String fn)
           
 java.lang.Character pieGetOcharElem()
           
 java.lang.Character pieGetOcharIndexField(java.lang.String fn)
           
 java.lang.Double pieGetOdoubleElem()
           
 java.lang.Float pieGetOfloatElem()
           
 java.lang.Integer pieGetOintElem()
           
 java.lang.Integer pieGetOintIndexField(java.lang.String fn)
           
 java.lang.Long pieGetOlongElem()
           
 java.lang.Long pieGetOlongIndexField(java.lang.String fn)
           
 java.lang.Short pieGetOshortElem()
           
 java.lang.Short pieGetOshortIndexField(java.lang.String fn)
           
 org.objectweb.jorm.naming.api.PName pieGetRefElem()
           
 java.io.Serializable pieGetSerializedElem()
           
 short pieGetShortElem()
           
 short pieGetShortIndexField(java.lang.String fn)
           
 java.lang.String pieGetStringElem()
           
 java.lang.String pieGetStringIndexField(java.lang.String fn)
           
 void pieSetBigDecimalElem(java.math.BigDecimal bigDecimal)
           
 void pieSetBooleanElem(boolean value)
           
 void pieSetByteArrayElem(byte[] value)
           
 void pieSetByteElem(byte value)
           
 void pieSetByteIndexField(java.lang.String fn, byte value)
           
 void pieSetCharArrayElem(char[] value)
           
 void pieSetCharElem(char value)
           
 void pieSetCharIndexField(java.lang.String fn, char value)
           
 void pieSetDateElem(java.util.Date value)
           
 void pieSetDateIndexField(java.lang.String fn, java.util.Date value)
           
 void pieSetDoubleElem(double value)
           
 void pieSetFloatElem(float value)
           
 void pieSetIntElem(int value)
           
 void pieSetIntIndexField(java.lang.String fn, int value)
           
 void pieSetLongElem(long value)
           
 void pieSetLongIndexField(java.lang.String fn, long value)
           
 void pieSetObooleanElem(java.lang.Boolean value)
           
 void pieSetObyteElem(java.lang.Byte value)
           
 void pieSetObyteIndexField(java.lang.String fn, java.lang.Byte value)
           
 void pieSetOcharElem(java.lang.Character value)
           
 void pieSetOcharIndexField(java.lang.String fn, java.lang.Character value)
           
 void pieSetOdoubleElem(java.lang.Double value)
           
 void pieSetOfloatElem(java.lang.Float value)
           
 void pieSetOintElem(java.lang.Integer value)
           
 void pieSetOintIndexField(java.lang.String fn, java.lang.Integer value)
           
 void pieSetOlongElem(java.lang.Long value)
           
 void pieSetOlongIndexField(java.lang.String fn, java.lang.Long value)
           
 void pieSetOshortElem(java.lang.Short value)
           
 void pieSetOshortIndexField(java.lang.String fn, java.lang.Short value)
           
 void pieSetRefElem(org.objectweb.jorm.naming.api.PName value)
           
 void pieSetSerializedElem(java.io.Serializable value)
           
 void pieSetShortElem(short value)
           
 void pieSetShortIndexField(java.lang.String fn, short value)
           
 void pieSetStringElem(java.lang.String value)
           
 void pieSetStringIndexField(java.lang.String fn, java.lang.String value)
           
 void setElement(java.lang.Object element)
          Assignes the element of the gen class.
 void setIndex(java.lang.Object index)
          Assignes the index of the element of the gen class.
 void setStatus(byte s)
          Assignes the jorm status of the PIndexedElement
 

Field Detail

ERROR_MESSAGE_BAD_FIELD_NAME

public static final java.lang.String ERROR_MESSAGE_BAD_FIELD_NAME
The error message thrown when an accessor method associated to a primitive element type is called. Indeed this implementation supports only object elements.

ERROR_MESSAGE_NO_NULL_INDEX

public static final java.lang.String ERROR_MESSAGE_NO_NULL_INDEX
The error message thrown when an accessor method associated to a primitive element type is called. Indeed this implementation supports only object elements.

INDEX_FIELD_NAME

public static final java.lang.String INDEX_FIELD_NAME
This constant is the name of the index field. This value must be use with the methods associated to the management of the index.

element

protected java.lang.Object element
This field is the element (or its PName for a reference).

index

protected java.lang.Object index
This field can be the index. The index type is known at instanciation time.

status

protected byte status
This field represents the satus of the PIndexedEleme. The possible value are ELEM_CREATED, ELEM_DELETED, ELEM_MODIFIED, ELEM_UNMODIFIED
Constructor Detail

CollectionElem

public CollectionElem()
Method Detail

getIndex

public java.lang.Object getIndex()
Specified by:
getIndex in interface GenClassElement
Following copied from interface: org.objectweb.speedo.runtime.genclass.GenClassElement
Returns:
the index of this gen class element, possibly wrapped in an object.

setIndex

public void setIndex(java.lang.Object index)
Description copied from interface: GenClassElement
Assignes the index of the element of the gen class. It is a user object.
Specified by:
setIndex in interface GenClassElement
Following copied from interface: org.objectweb.speedo.runtime.genclass.GenClassElement
Parameters:
index - to add, it cannot be null.

getElement

public java.lang.Object getElement()
Specified by:
getElement in interface GenClassElement
Returns:
the element of the gen class. It is a user object.

setElement

public void setElement(java.lang.Object element)
Assignes the element of the gen class. It is a user object.
Specified by:
setElement in interface GenClassElement
Parameters:
element - to add

getRefElement

public java.lang.Object getRefElement(javax.jdo.PersistenceManager pm)
Specified by:
getRefElement in interface GenClassElement
Parameters:
pm - is the persistence manager which permits to resolve the PName into a java reference.
Returns:
the element of the gen class. The element is a reference (SpeedoProxy).

getElemStatus

public byte getElemStatus()

pieGetStringElem

public java.lang.String pieGetStringElem()
                                  throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetDateElem

public java.util.Date pieGetDateElem()
                              throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetCharArrayElem

public char[] pieGetCharArrayElem()
                           throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetByteArrayElem

public byte[] pieGetByteArrayElem()
                           throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetSerializedElem

public java.io.Serializable pieGetSerializedElem()
                                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetRefElem

public org.objectweb.jorm.naming.api.PName pieGetRefElem()

pieGetBooleanElem

public boolean pieGetBooleanElem()
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetObooleanElem

public java.lang.Boolean pieGetObooleanElem()
                                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetByteElem

public byte pieGetByteElem()
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetObyteElem

public java.lang.Byte pieGetObyteElem()
                               throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetCharElem

public char pieGetCharElem()
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOcharElem

public java.lang.Character pieGetOcharElem()
                                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetShortElem

public short pieGetShortElem()
                      throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOshortElem

public java.lang.Short pieGetOshortElem()
                                 throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetIntElem

public int pieGetIntElem()
                  throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOintElem

public java.lang.Integer pieGetOintElem()
                                 throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetLongElem

public long pieGetLongElem()
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOlongElem

public java.lang.Long pieGetOlongElem()
                               throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetFloatElem

public float pieGetFloatElem()
                      throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOfloatElem

public java.lang.Float pieGetOfloatElem()
                                 throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetDoubleElem

public double pieGetDoubleElem()
                        throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOdoubleElem

public java.lang.Double pieGetOdoubleElem()
                                   throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetBigDecimalElem

public java.math.BigDecimal pieGetBigDecimalElem()
                                          throws org.objectweb.jorm.api.PException

pieSetStringElem

public void pieSetStringElem(java.lang.String value)
                      throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetDateElem

public void pieSetDateElem(java.util.Date value)
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetCharArrayElem

public void pieSetCharArrayElem(char[] value)
                         throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetByteArrayElem

public void pieSetByteArrayElem(byte[] value)
                         throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetSerializedElem

public void pieSetSerializedElem(java.io.Serializable value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetRefElem

public void pieSetRefElem(org.objectweb.jorm.naming.api.PName value)
                   throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetBooleanElem

public void pieSetBooleanElem(boolean value)
                       throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetObooleanElem

public void pieSetObooleanElem(java.lang.Boolean value)
                        throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetByteElem

public void pieSetByteElem(byte value)
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetObyteElem

public void pieSetObyteElem(java.lang.Byte value)
                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetCharElem

public void pieSetCharElem(char value)
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOcharElem

public void pieSetOcharElem(java.lang.Character value)
                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetShortElem

public void pieSetShortElem(short value)
                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOshortElem

public void pieSetOshortElem(java.lang.Short value)
                      throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetIntElem

public void pieSetIntElem(int value)
                   throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOintElem

public void pieSetOintElem(java.lang.Integer value)
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetLongElem

public void pieSetLongElem(long value)
                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOlongElem

public void pieSetOlongElem(java.lang.Long value)
                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetFloatElem

public void pieSetFloatElem(float value)
                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOfloatElem

public void pieSetOfloatElem(java.lang.Float value)
                      throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetDoubleElem

public void pieSetDoubleElem(double value)
                      throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOdoubleElem

public void pieSetOdoubleElem(java.lang.Double value)
                       throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetBigDecimalElem

public void pieSetBigDecimalElem(java.math.BigDecimal bigDecimal)
                          throws org.objectweb.jorm.api.PException

pieSetByteIndexField

public void pieSetByteIndexField(java.lang.String fn,
                                 byte value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetObyteIndexField

public void pieSetObyteIndexField(java.lang.String fn,
                                  java.lang.Byte value)
                           throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetCharIndexField

public void pieSetCharIndexField(java.lang.String fn,
                                 char value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOcharIndexField

public void pieSetOcharIndexField(java.lang.String fn,
                                  java.lang.Character value)
                           throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetShortIndexField

public void pieSetShortIndexField(java.lang.String fn,
                                  short value)
                           throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOshortIndexField

public void pieSetOshortIndexField(java.lang.String fn,
                                   java.lang.Short value)
                            throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetIntIndexField

public void pieSetIntIndexField(java.lang.String fn,
                                int value)
                         throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOintIndexField

public void pieSetOintIndexField(java.lang.String fn,
                                 java.lang.Integer value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetLongIndexField

public void pieSetLongIndexField(java.lang.String fn,
                                 long value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetOlongIndexField

public void pieSetOlongIndexField(java.lang.String fn,
                                  java.lang.Long value)
                           throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetStringIndexField

public void pieSetStringIndexField(java.lang.String fn,
                                   java.lang.String value)
                            throws org.objectweb.jorm.type.api.PExceptionTyping

pieSetDateIndexField

public void pieSetDateIndexField(java.lang.String fn,
                                 java.util.Date value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetShortIndexField

public short pieGetShortIndexField(java.lang.String fn)
                            throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOshortIndexField

public java.lang.Short pieGetOshortIndexField(java.lang.String fn)
                                       throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetLongIndexField

public long pieGetLongIndexField(java.lang.String fn)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOlongIndexField

public java.lang.Long pieGetOlongIndexField(java.lang.String fn)
                                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetIntIndexField

public int pieGetIntIndexField(java.lang.String fn)
                        throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOintIndexField

public java.lang.Integer pieGetOintIndexField(java.lang.String fn)
                                       throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetStringIndexField

public java.lang.String pieGetStringIndexField(java.lang.String fn)
                                        throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetDateIndexField

public java.util.Date pieGetDateIndexField(java.lang.String fn)
                                    throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetByteIndexField

public byte pieGetByteIndexField(java.lang.String fn)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetObyteIndexField

public java.lang.Byte pieGetObyteIndexField(java.lang.String fn)
                                     throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetCharIndexField

public char pieGetCharIndexField(java.lang.String fn)
                          throws org.objectweb.jorm.type.api.PExceptionTyping

pieGetOcharIndexField

public java.lang.Character pieGetOcharIndexField(java.lang.String fn)
                                          throws org.objectweb.jorm.type.api.PExceptionTyping

setStatus

public void setStatus(byte s)
Description copied from interface: GenClassElement
Assignes the jorm status of the PIndexedElement
Specified by:
setStatus in interface GenClassElement
Following copied from interface: org.objectweb.speedo.runtime.genclass.GenClassElement
Parameters:
s - the new status

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()