org.objectweb.jorm.api
Interface PAccessorGen

All Superinterfaces:
PAccessor

public interface PAccessorGen
extends PAccessor

The PAccessorGen interface defines a generic accessor to be used by persistent bindings to access persistent variable within memory instances. This interface is implemented for each JORM class in order to define specific accessors associated to such a memory instance.

Author:
R. Basset, P. Dechamboux

Method Summary
 java.math.BigDecimal paGetBigDecimalField(java.lang.String fn)
          It retrieves the value of a BigDecimal field.
 java.math.BigInteger paGetBigIntegerField(java.lang.String fn)
          It retrieves the value of a BigInteger field.
 boolean paGetBooleanField(java.lang.String fn)
          It retrieves the value of a boolean field.
 byte[] paGetByteArrayField(java.lang.String fn)
          It retrieves the value of a byte[] field.
 byte paGetByteField(java.lang.String fn)
          It retrieves the value of a byte field.
 char[] paGetCharArrayField(java.lang.String fn)
          It retrieves the value of a char[] field.
 char paGetCharField(java.lang.String fn)
          It retrieves the value of a char field.
 java.util.Date paGetDateField(java.lang.String fn)
          It retrieves the value of a date field.
 double paGetDoubleField(java.lang.String fn)
          It retrieves the value of a double field.
 float paGetFloatField(java.lang.String fn)
          It retrieves the value of a float field.
 int paGetIntField(java.lang.String fn)
          It retrieves the value of an int field.
 long paGetLongField(java.lang.String fn)
          It retrieves the value of a long field.
 java.lang.Boolean paGetObooleanField(java.lang.String fn)
          It retrieves the value of a Boolean field.
 java.lang.Byte paGetObyteField(java.lang.String fn)
          It retrieves the value of a Byte field.
 java.lang.Character paGetOcharField(java.lang.String fn)
          It retrieves the value of a Character field.
 java.lang.Double paGetOdoubleField(java.lang.String fn)
          It retrieves the value of a Double field.
 java.lang.Float paGetOfloatField(java.lang.String fn)
          It retrieves the value of a Float field.
 java.lang.Integer paGetOintField(java.lang.String fn)
          It retrieves the value of an Integer field.
 java.lang.Long paGetOlongField(java.lang.String fn)
          It retrieves the value of a Long field.
 java.lang.Short paGetOshortField(java.lang.String fn)
          It retrieves the value of a Short field.
 PName paGetRefField(java.lang.String fn, java.lang.Object connection)
          It retrieves the value of a reference field.
 java.io.Serializable paGetSerializedField(java.lang.String fn)
          It retrieves the value of a serialized field.
 short paGetShortField(java.lang.String fn)
          It retrieves the value of a short field.
 java.lang.String paGetStringField(java.lang.String fn)
          It retrieves the value of a string field.
 void paSetBigDecimalField(java.lang.String fn, java.math.BigDecimal value)
          It assigns the value to a BigDecimal field.
 void paSetBigIntegerField(java.lang.String fn, java.math.BigInteger value)
          It assigns the value to a BigInteger field.
 void paSetBooleanField(java.lang.String fn, boolean value)
          It assigns the value to a boolean field.
 void paSetByteArrayField(java.lang.String fn, byte[] value)
          It assigns the value to a byte[] field.
 void paSetByteField(java.lang.String fn, byte value)
          It assigns the value to a byte field.
 void paSetCharArrayField(java.lang.String fn, char[] value)
          It assigns the value to a char[] field.
 void paSetCharField(java.lang.String fn, char value)
          It assigns the value to a char field.
 void paSetDateField(java.lang.String fn, java.util.Date value)
          It assigns the value to a date field.
 void paSetDoubleField(java.lang.String fn, double value)
          It assigns the value to a double field.
 void paSetFloatField(java.lang.String fn, float value)
          It assigns the value to a float field.
 void paSetIntField(java.lang.String fn, int value)
          It assigns the value to an int field.
 void paSetLongField(java.lang.String fn, long value)
          It assigns the value to a long field.
 void paSetObooleanField(java.lang.String fn, java.lang.Boolean value)
          It assigns the value to a Boolean field.
 void paSetObyteField(java.lang.String fn, java.lang.Byte value)
          It assigns the value to a Byte field.
 void paSetOcharField(java.lang.String fn, java.lang.Character value)
          It assigns the value to a Character field.
 void paSetOdoubleField(java.lang.String fn, java.lang.Double value)
          It assigns the value to a Double field.
 void paSetOfloatField(java.lang.String fn, java.lang.Float value)
          It assigns the value to a Float field.
 void paSetOintField(java.lang.String fn, java.lang.Integer value)
          It assigns the value to an Integer field.
 void paSetOlongField(java.lang.String fn, java.lang.Long value)
          It assigns the value to a Long field.
 void paSetOshortField(java.lang.String fn, java.lang.Short value)
          It assigns the value to a Short field.
 void paSetRefField(java.lang.String fn, PName value, java.lang.Object connection)
          It assigns the value to a reference field.
 void paSetSerializedField(java.lang.String fn, java.io.Serializable value)
          It assigns the value to a serialized field.
 void paSetShortField(java.lang.String fn, short value)
          It assigns the value to a short field.
 void paSetStringField(java.lang.String fn, java.lang.String value)
          It assigns the value to a string field.
 
Methods inherited from interface org.objectweb.jorm.api.PAccessor
getMemoryInstance
 

Method Detail

paGetBooleanField

public boolean paGetBooleanField(java.lang.String fn)
                          throws PException
It retrieves the value of a boolean field.

Parameters:
fn - A String containing the name of the field.
Returns:
The boolean value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetObooleanField

public java.lang.Boolean paGetObooleanField(java.lang.String fn)
                                     throws PException
It retrieves the value of a Boolean field.

Parameters:
fn - A String containing the name of the field.
Returns:
The Boolean value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetByteField

public byte paGetByteField(java.lang.String fn)
                    throws PException
It retrieves the value of a byte field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetObyteField

public java.lang.Byte paGetObyteField(java.lang.String fn)
                               throws PException
It retrieves the value of a Byte field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetCharField

public char paGetCharField(java.lang.String fn)
                    throws PException
It retrieves the value of a char field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetOcharField

public java.lang.Character paGetOcharField(java.lang.String fn)
                                    throws PException
It retrieves the value of a Character field.

Parameters:
fn - A String containing the name of the field.
Returns:
The Character value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetShortField

public short paGetShortField(java.lang.String fn)
                      throws PException
It retrieves the value of a short field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetOshortField

public java.lang.Short paGetOshortField(java.lang.String fn)
                                 throws PException
It retrieves the value of a Short field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetIntField

public int paGetIntField(java.lang.String fn)
                  throws PException
It retrieves the value of an int field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetOintField

public java.lang.Integer paGetOintField(java.lang.String fn)
                                 throws PException
It retrieves the value of an Integer field.

Parameters:
fn - A String containing the name of the field.
Returns:
The Integer value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetLongField

public long paGetLongField(java.lang.String fn)
                    throws PException
It retrieves the value of a long field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetOlongField

public java.lang.Long paGetOlongField(java.lang.String fn)
                               throws PException
It retrieves the value of a Long field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetFloatField

public float paGetFloatField(java.lang.String fn)
                      throws PException
It retrieves the value of a float field.

Parameters:
fn - A String containing the name of the field.
Returns:
The float value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetOfloatField

public java.lang.Float paGetOfloatField(java.lang.String fn)
                                 throws PException
It retrieves the value of a Float field.

Parameters:
fn - A String containing the name of the field.
Returns:
The Float value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetDoubleField

public double paGetDoubleField(java.lang.String fn)
                        throws PException
It retrieves the value of a double field.

Parameters:
fn - A String containing the name of the field.
Returns:
The double value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetOdoubleField

public java.lang.Double paGetOdoubleField(java.lang.String fn)
                                   throws PException
It retrieves the value of a Double field.

Parameters:
fn - A String containing the name of the field.
Returns:
The Double value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetStringField

public java.lang.String paGetStringField(java.lang.String fn)
                                  throws PException
It retrieves the value of a string field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetDateField

public java.util.Date paGetDateField(java.lang.String fn)
                              throws PException
It retrieves the value of a date field.

Parameters:
fn - A String containing the name of the field.
Returns:
The java.sql.Date value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetSerializedField

public java.io.Serializable paGetSerializedField(java.lang.String fn)
                                          throws PException
It retrieves the value of a serialized field.

Parameters:
fn - A String containing the name of the field.
Returns:
The java.io.Serializable value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetByteArrayField

public byte[] paGetByteArrayField(java.lang.String fn)
                           throws PException
It retrieves the value of a byte[] field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetCharArrayField

public char[] paGetCharArrayField(java.lang.String fn)
                           throws PException
It retrieves the value of a char[] field.

Parameters:
fn - A String containing the name of the 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 JORM class.
PException

paGetBigIntegerField

public java.math.BigInteger paGetBigIntegerField(java.lang.String fn)
                                          throws PException
It retrieves the value of a BigInteger field.

Parameters:
fn - A String containing the name of the field.
Returns:
The java.math.BigDInteger value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetBigDecimalField

public java.math.BigDecimal paGetBigDecimalField(java.lang.String fn)
                                          throws PException
It retrieves the value of a BigDecimal field.

Parameters:
fn - A String containing the name of the field.
Returns:
The java.math.BigDecimal value of the field as stored within the memory instance.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paGetRefField

public PName paGetRefField(java.lang.String fn,
                           java.lang.Object connection)
                    throws PException
It retrieves the value of a reference field.

Parameters:
fn - A String containing the name of the field.
connection - The connection to access to support. This connection can be used to resolve a pname for example.
Returns:
The name associated with the reference value of the field.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetBooleanField

public void paSetBooleanField(java.lang.String fn,
                              boolean value)
                       throws PException
It assigns the value to a boolean field.

Parameters:
fn - A String containing the name of the field to be set.
value - The boolean value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetObooleanField

public void paSetObooleanField(java.lang.String fn,
                               java.lang.Boolean value)
                        throws PException
It assigns the value to a Boolean field.

Parameters:
fn - A String containing the name of the field to be set.
value - The Boolean value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetByteField

public void paSetByteField(java.lang.String fn,
                           byte value)
                    throws PException
It assigns the value to a byte field.

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 JORM class.
PException

paSetObyteField

public void paSetObyteField(java.lang.String fn,
                            java.lang.Byte value)
                     throws PException
It assigns the value to a Byte field.

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 JORM class.
PException

paSetCharField

public void paSetCharField(java.lang.String fn,
                           char value)
                    throws PException
It assigns the value to a char field.

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 JORM class.
PException

paSetOcharField

public void paSetOcharField(java.lang.String fn,
                            java.lang.Character value)
                     throws PException
It assigns the value to a Character field.

Parameters:
fn - A String containing the name of the field to be set.
value - The Character value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetShortField

public void paSetShortField(java.lang.String fn,
                            short value)
                     throws PException
It assigns the value to a short field.

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 JORM class.
PException

paSetOshortField

public void paSetOshortField(java.lang.String fn,
                             java.lang.Short value)
                      throws PException
It assigns the value to a Short field.

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 JORM class.
PException

paSetIntField

public void paSetIntField(java.lang.String fn,
                          int value)
                   throws PException
It assigns the value to an int field.

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 JORM class.
PException

paSetOintField

public void paSetOintField(java.lang.String fn,
                           java.lang.Integer value)
                    throws PException
It assigns the value to an Integer field.

Parameters:
fn - A String containing the name of the field to be set.
value - The Integer value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetLongField

public void paSetLongField(java.lang.String fn,
                           long value)
                    throws PException
It assigns the value to a long field.

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 JORM class.
PException

paSetOlongField

public void paSetOlongField(java.lang.String fn,
                            java.lang.Long value)
                     throws PException
It assigns the value to a Long field.

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 JORM class.
PException

paSetFloatField

public void paSetFloatField(java.lang.String fn,
                            float value)
                     throws PException
It assigns the value to a float field.

Parameters:
fn - A String containing the name of the field to be set.
value - The float value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetOfloatField

public void paSetOfloatField(java.lang.String fn,
                             java.lang.Float value)
                      throws PException
It assigns the value to a Float field.

Parameters:
fn - A String containing the name of the field to be set.
value - The Float value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetDoubleField

public void paSetDoubleField(java.lang.String fn,
                             double value)
                      throws PException
It assigns the value to a double field.

Parameters:
fn - A String containing the name of the field to be set.
value - The double value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetOdoubleField

public void paSetOdoubleField(java.lang.String fn,
                              java.lang.Double value)
                       throws PException
It assigns the value to a Double field.

Parameters:
fn - A String containing the name of the field to be set.
value - The Double value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetStringField

public void paSetStringField(java.lang.String fn,
                             java.lang.String value)
                      throws PException
It assigns the value to a string field.

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 JORM class.
PException

paSetDateField

public void paSetDateField(java.lang.String fn,
                           java.util.Date value)
                    throws PException
It assigns the value to a date field.

Parameters:
fn - A String containing the name of the field to be set.
value - The java.sql.Date value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetSerializedField

public void paSetSerializedField(java.lang.String fn,
                                 java.io.Serializable value)
                          throws PException
It assigns the value to a serialized field.

Parameters:
fn - A String containing the name of the field to be set.
value - The java.io.Serializable value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetByteArrayField

public void paSetByteArrayField(java.lang.String fn,
                                byte[] value)
                         throws PException
It assigns the value to a byte[] field.

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 JORM class.
PException

paSetCharArrayField

public void paSetCharArrayField(java.lang.String fn,
                                char[] value)
                         throws PException
It assigns the value to a char[] field.

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 JORM class.
PException

paSetBigIntegerField

public void paSetBigIntegerField(java.lang.String fn,
                                 java.math.BigInteger value)
                          throws PException
It assigns the value to a BigInteger field.

Parameters:
fn - A String containing the name of the field to be set.
value - The java.math.BigInteger value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetBigDecimalField

public void paSetBigDecimalField(java.lang.String fn,
                                 java.math.BigDecimal value)
                          throws PException
It assigns the value to a BigDecimal field.

Parameters:
fn - A String containing the name of the field to be set.
value - The java.math.BigDecimal value to assign.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException

paSetRefField

public void paSetRefField(java.lang.String fn,
                          PName value,
                          java.lang.Object connection)
                   throws PException
It assigns the value to a reference field.

Parameters:
fn - A String containing the name of the field to be set.
value - The name associated with the reference value to assign.
connection - The connection to access to support. This connection can be used to resolve a pname for example.
Throws:
PExceptionTyping - There is no field with this name and this type within this JORM class.
PException