org.objectweb.jorm.facility.meminst.genclass.java.util
Class SetElem

java.lang.Object
  |
  +--org.objectweb.jorm.facility.meminst.genclass.java.util.CollectionElem
        |
        +--org.objectweb.jorm.facility.meminst.genclass.java.util.SetElem
All Implemented Interfaces:
Loggable, PIndexedElem, UserIEValue
Direct Known Subclasses:
SetElem

public class SetElem
extends CollectionElem
implements Loggable

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.
protected  org.objectweb.util.monolog.api.Logger logger
           
 
Fields inherited from class org.objectweb.jorm.facility.meminst.genclass.java.util.CollectionElem
charIndex, doubleIndex, element, ERROR_MESSAGE_BAD_FIELD_NAME, ERROR_MESSAGE_NO_NULL_INDEX, ERROR_MESSAGE_ONLY_OBJECTS, INDEX_FIELD_NAME, longIndex, objectIndex, status
 
Fields inherited from interface org.objectweb.jorm.api.PIndexedElem
ELEM_CREATED, ELEM_DELETED, ELEM_MODIFIED, ELEM_UNMODIFIED
 
Constructor Summary
SetElem()
           
 
Method Summary
 org.objectweb.util.monolog.api.Logger getLogger()
          Returns a logger to an component that wants to log things.
 org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
          Returns a logger factory that allows the creation of new loggers.
 byte pieGetByteIndexField(java.lang.String fn)
          It retrieves the value of a byte index field.
 char pieGetCharIndexField(java.lang.String fn)
          It retrieves the value of a char index field.
 int pieGetIntIndexField(java.lang.String fn)
          It retrieves the value of an int index field.
 long pieGetLongIndexField(java.lang.String fn)
          It retrieves the value of a long index field.
 short pieGetShortIndexField(java.lang.String fn)
          It retrieves the value of a short index field.
 java.lang.String pieGetStringIndexField(java.lang.String fn)
          It retrieves the value of a string index field.
 void pieSetByteIndexField(java.lang.String fn, byte value)
          It assigns the value to a byte index field.
 void pieSetCharIndexField(java.lang.String fn, char value)
          It assigns the value to a char index field.
 void pieSetIntIndexField(java.lang.String fn, int value)
          It assigns the value to an int index field.
 void pieSetLongIndexField(java.lang.String fn, long value)
          It assigns the value to a long index field.
 void pieSetShortIndexField(java.lang.String fn, short value)
          It assigns the value to a short index field.
 void pieSetStringIndexField(java.lang.String fn, java.lang.String value)
          It assigns the value to a string index field.
 void setLogger(org.objectweb.util.monolog.api.Logger l)
          Assigns a logger to an component that wants to log things.
 void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)
          Assigns a logger factory that allows the creation of new loggers.
 
Methods inherited from class org.objectweb.jorm.facility.meminst.genclass.java.util.CollectionElem
equals, getBooleanValue, getByteValue, getCharValue, getDateValue, getDoubleValue, getElemStatus, getFloatValue, getIntValue, getLongValue, getRefValue, getSerializedValue, getShortValue, getStringValue, 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, 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, setStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jorm.api.PIndexedElem
pieGetBigDecimalElem, pieSetBigDecimalElem
 

Field Detail

logger

protected org.objectweb.util.monolog.api.Logger logger

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.
Constructor Detail

SetElem

public SetElem()
Method Detail

pieSetByteIndexField

public void pieSetByteIndexField(java.lang.String fn,
                                 byte value)
                          throws PExceptionTyping
Description copied from interface: PIndexedElem
It assigns the value to a byte index field.
Overrides:
pieSetByteIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the field to be set.
value - The byte value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieSetCharIndexField

public void pieSetCharIndexField(java.lang.String fn,
                                 char value)
                          throws PExceptionTyping
Description copied from interface: PIndexedElem
It assigns the value to a char index field.
Overrides:
pieSetCharIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the field to be set.
value - The char value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieSetShortIndexField

public void pieSetShortIndexField(java.lang.String fn,
                                  short value)
                           throws PExceptionTyping
Description copied from interface: PIndexedElem
It assigns the value to a short index field.
Overrides:
pieSetShortIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the field to be set.
value - The short value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieSetIntIndexField

public void pieSetIntIndexField(java.lang.String fn,
                                int value)
                         throws PExceptionTyping
Description copied from interface: PIndexedElem
It assigns the value to an int index field.
Overrides:
pieSetIntIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the field to be set.
value - The int value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieSetLongIndexField

public void pieSetLongIndexField(java.lang.String fn,
                                 long value)
                          throws PExceptionTyping
Description copied from interface: PIndexedElem
It assigns the value to a long index field.
Overrides:
pieSetLongIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the field to be set.
value - The long value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieSetStringIndexField

public void pieSetStringIndexField(java.lang.String fn,
                                   java.lang.String value)
                            throws PExceptionTyping
Description copied from interface: PIndexedElem
It assigns the value to a string index field.
Overrides:
pieSetStringIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the field to be set.
value - The java.lang.String value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieGetShortIndexField

public short pieGetShortIndexField(java.lang.String fn)
                            throws PExceptionTyping
Description copied from interface: PIndexedElem
It retrieves the value of a short index field.
Overrides:
pieGetShortIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the index field.
Returns:
The short value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieGetLongIndexField

public long pieGetLongIndexField(java.lang.String fn)
                          throws PExceptionTyping
Description copied from interface: PIndexedElem
It retrieves the value of a long index field.
Overrides:
pieGetLongIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the index field.
Returns:
The long value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieGetIntIndexField

public int pieGetIntIndexField(java.lang.String fn)
                        throws PExceptionTyping
Description copied from interface: PIndexedElem
It retrieves the value of an int index field.
Overrides:
pieGetIntIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the index field.
Returns:
The int value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieGetStringIndexField

public java.lang.String pieGetStringIndexField(java.lang.String fn)
                                        throws PExceptionTyping
Description copied from interface: PIndexedElem
It retrieves the value of a string index field.
Overrides:
pieGetStringIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the index field.
Returns:
The java.lang.String value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieGetByteIndexField

public byte pieGetByteIndexField(java.lang.String fn)
                          throws PExceptionTyping
Description copied from interface: PIndexedElem
It retrieves the value of a byte index field.
Overrides:
pieGetByteIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the index field.
Returns:
The byte value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

pieGetCharIndexField

public char pieGetCharIndexField(java.lang.String fn)
                          throws PExceptionTyping
Description copied from interface: PIndexedElem
It retrieves the value of a char index field.
Overrides:
pieGetCharIndexField in class CollectionElem
Following copied from interface: org.objectweb.jorm.api.PIndexedElem
Parameters:
fn - A String containing the name of the index field.
Returns:
The char value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this index.

getLogger

public org.objectweb.util.monolog.api.Logger getLogger()
Returns a logger to an component that wants to log things.
Specified by:
getLogger in interface Loggable
Parameters:
logger - the logger object

getLoggerFactory

public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
Returns a logger factory that allows the creation of new loggers.
Specified by:
getLoggerFactory in interface Loggable
Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers

setLogger

public void setLogger(org.objectweb.util.monolog.api.Logger l)
Assigns a logger to an component that wants to log things.
Specified by:
setLogger in interface Loggable
Parameters:
logger - the logger object

setLoggerFactory

public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)
Assigns a logger factory that allows the creation of new loggers.
Specified by:
setLoggerFactory in interface Loggable
Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers