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

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

Methods inherited from interface org.objectweb.jorm.api.PAccessor

getMemoryInstance

Method Details

paGetBigDecimalField

public BigDecimal paGetBigDecimalField(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.


paGetBigIntegerField

public BigInteger paGetBigIntegerField(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.


paGetBooleanField

public boolean paGetBooleanField(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.


paGetByteArrayField

public byte[] paGetByteArrayField(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.


paGetByteField

public byte paGetByteField(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.


paGetCharArrayField

public char[] paGetCharArrayField(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.


paGetCharField

public char paGetCharField(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.


paGetDateField

public Date paGetDateField(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.


paGetDoubleField

public double paGetDoubleField(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.


paGetFloatField

public float paGetFloatField(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.


paGetIntField

public int paGetIntField(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.


paGetLongField

public long paGetLongField(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.


paGetObooleanField

public Boolean paGetObooleanField(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.


paGetObyteField

public Byte paGetObyteField(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.


paGetOcharField

public Character paGetOcharField(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.


paGetOdoubleField

public Double paGetOdoubleField(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.


paGetOfloatField

public Float paGetOfloatField(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.


paGetOintField

public Integer paGetOintField(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.


paGetOlongField

public Long paGetOlongField(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.


paGetOshortField

public Short paGetOshortField(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.


paGetRefField

public PName paGetRefField(String fn,
                           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.


paGetSerializedField

public Serializable paGetSerializedField(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.


paGetShortField

public short paGetShortField(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.


paGetStringField

public String paGetStringField(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.


paSetBigDecimalField

public void paSetBigDecimalField(String fn,
                                 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.


paSetBigIntegerField

public void paSetBigIntegerField(String fn,
                                 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.


paSetBooleanField

public void paSetBooleanField(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.


paSetByteArrayField

public void paSetByteArrayField(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.


paSetByteField

public void paSetByteField(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.


paSetCharArrayField

public void paSetCharArrayField(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.


paSetCharField

public void paSetCharField(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.


paSetDateField

public void paSetDateField(String fn,
                           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.


paSetDoubleField

public void paSetDoubleField(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.


paSetFloatField

public void paSetFloatField(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.


paSetIntField

public void paSetIntField(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.


paSetLongField

public void paSetLongField(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.


paSetObooleanField

public void paSetObooleanField(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.


paSetObyteField

public void paSetObyteField(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.


paSetOcharField

public void paSetOcharField(String fn,
                            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.


paSetOdoubleField

public void paSetOdoubleField(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.


paSetOfloatField

public void paSetOfloatField(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.


paSetOintField

public void paSetOintField(String fn,
                           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.


paSetOlongField

public void paSetOlongField(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.


paSetOshortField

public void paSetOshortField(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.


paSetRefField

public void paSetRefField(String fn,
                          PName value,
                          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.


paSetSerializedField

public void paSetSerializedField(String fn,
                                 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.


paSetShortField

public void paSetShortField(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.


paSetStringField

public void paSetStringField(String fn,
                             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.