org.objectweb.speedo.genclass.collection
Class SetElem

java.lang.Object
  extended byorg.objectweb.speedo.genclass.collection.CollectionElem
      extended byorg.objectweb.speedo.genclass.collection.SetElem
All Implemented Interfaces:
GenClassElement, org.objectweb.jorm.api.PIndexedElem

public class SetElem
extends CollectionElem

Author:
Sebastien Chassande-Barrioz

Field Summary
static java.lang.String ERROR_MESSAGE_NO_INDEX
          The error message thrown when an accessor method associated to an index is called.
 
Fields inherited from class org.objectweb.speedo.genclass.collection.CollectionElem
element, ERROR_MESSAGE_BAD_FIELD_NAME, ERROR_MESSAGE_NO_NULL_INDEX, gca, index, INDEX_FIELD_NAME, status
 
Fields inherited from interface org.objectweb.jorm.api.PIndexedElem
ELEM_CREATED, ELEM_DELETED, ELEM_MODIFIED, ELEM_UNMODIFIED
 
Constructor Summary
SetElem(GenClassAccessor gca)
           
 
Method Summary
 GenClassElement cloneGCE()
           
 byte pieGetByteIndexField(java.lang.String fn)
           
 char pieGetCharIndexField(java.lang.String fn)
           
 int pieGetIntIndexField(java.lang.String fn)
           
 long pieGetLongIndexField(java.lang.String fn)
           
 short pieGetShortIndexField(java.lang.String fn)
           
 java.lang.String pieGetStringIndexField(java.lang.String fn)
           
 void pieSetByteIndexField(java.lang.String fn, byte value)
           
 void pieSetCharIndexField(java.lang.String fn, char value)
           
 void pieSetIntIndexField(java.lang.String fn, int value)
           
 void pieSetLongIndexField(java.lang.String fn, long value)
           
 void pieSetShortIndexField(java.lang.String fn, short value)
           
 void pieSetStringIndexField(java.lang.String fn, java.lang.String value)
           
 
Methods inherited from class org.objectweb.speedo.genclass.collection.CollectionElem
cleanStatusForMerge, cloneGCE, equals, getElement, getElement, getElemStatus, getIndex, getSpeedoAccessor, getStatusForMerge, pieGetBigDecimalElem, pieGetBigIntegerElem, pieGetBooleanElem, pieGetByteArrayElem, pieGetByteElem, pieGetCharArrayElem, pieGetCharElem, pieGetDateElem, pieGetDateIndexField, pieGetDoubleElem, pieGetFloatElem, pieGetIntElem, pieGetLongElem, pieGetObooleanElem, pieGetObyteElem, pieGetObyteIndexField, pieGetOcharElem, pieGetOcharIndexField, pieGetOdoubleElem, pieGetOfloatElem, pieGetOintElem, pieGetOintIndexField, pieGetOlongElem, pieGetOlongIndexField, pieGetOshortElem, pieGetOshortIndexField, pieGetRefElem, pieGetSerializedElem, pieGetShortElem, pieGetStringElem, pieSetBigDecimalElem, pieSetBigIntegerElem, pieSetBooleanElem, pieSetByteArrayElem, pieSetByteElem, pieSetCharArrayElem, pieSetCharElem, pieSetDateElem, pieSetDateIndexField, pieSetDoubleElem, pieSetFloatElem, pieSetIntElem, pieSetLongElem, pieSetObooleanElem, pieSetObyteElem, pieSetObyteIndexField, pieSetOcharElem, pieSetOcharIndexField, pieSetOdoubleElem, pieSetOfloatElem, pieSetOintElem, pieSetOintIndexField, pieSetOlongElem, pieSetOlongIndexField, pieSetOshortElem, pieSetOshortIndexField, pieSetRefElem, pieSetSerializedElem, pieSetShortElem, pieSetStringElem, retainStatusForMerge, setElement, setIndex, setStatus, unSwizzle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_MESSAGE_NO_INDEX

public static final java.lang.String ERROR_MESSAGE_NO_INDEX
The error message thrown when an accessor method associated to an index is called. Indeed a set does not need index because all element must be unique and they are not ordered.

See Also:
Constant Field Values
Constructor Detail

SetElem

public SetElem(GenClassAccessor gca)
Method Detail

cloneGCE

public GenClassElement cloneGCE()
Specified by:
cloneGCE in interface GenClassElement
Overrides:
cloneGCE in class CollectionElem

pieSetByteIndexField

public void pieSetByteIndexField(java.lang.String fn,
                                 byte value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieSetByteIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieSetByteIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieSetCharIndexField

public void pieSetCharIndexField(java.lang.String fn,
                                 char value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieSetCharIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieSetCharIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieSetShortIndexField

public void pieSetShortIndexField(java.lang.String fn,
                                  short value)
                           throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieSetShortIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieSetShortIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieSetIntIndexField

public void pieSetIntIndexField(java.lang.String fn,
                                int value)
                         throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieSetIntIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieSetIntIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieSetLongIndexField

public void pieSetLongIndexField(java.lang.String fn,
                                 long value)
                          throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieSetLongIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieSetLongIndexField in class CollectionElem
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
Specified by:
pieSetStringIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieSetStringIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieGetShortIndexField

public short pieGetShortIndexField(java.lang.String fn)
                            throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieGetShortIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieGetShortIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieGetLongIndexField

public long pieGetLongIndexField(java.lang.String fn)
                          throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieGetLongIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieGetLongIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieGetIntIndexField

public int pieGetIntIndexField(java.lang.String fn)
                        throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieGetIntIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieGetIntIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieGetStringIndexField

public java.lang.String pieGetStringIndexField(java.lang.String fn)
                                        throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieGetStringIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieGetStringIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieGetByteIndexField

public byte pieGetByteIndexField(java.lang.String fn)
                          throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieGetByteIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieGetByteIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping

pieGetCharIndexField

public char pieGetCharIndexField(java.lang.String fn)
                          throws org.objectweb.jorm.type.api.PExceptionTyping
Specified by:
pieGetCharIndexField in interface org.objectweb.jorm.api.PIndexedElem
Overrides:
pieGetCharIndexField in class CollectionElem
Throws:
org.objectweb.jorm.type.api.PExceptionTyping