This class implements a JORM PnameGetter. It relies on a Tuple, which
contains values, and a Map which gives the index in the Tuple for a given
field name.
pngetBigDecimalField
public BigDecimal pngetBigDecimalField(String fn,
Object context)
throws PException
It retrieves the value of an int field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The BigDecimal value of the field as stored within the composite
name.
pngetBigIntegerField
public BigInteger pngetBigIntegerField(String fn,
Object context)
throws PException
It retrieves the value of an int field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The BigInteger value of the field as stored within the composite
name.
pngetByteArrayField
public byte[] pngetByteArrayField(String fn,
Object context)
throws PException
Retrieves the value of a byte[] field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The byte[] value of the field as stored within the composite
name.
pngetByteField
public byte pngetByteField(String fn,
Object context)
throws PException
It retrieves the value of a byte field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The byte value of the field as stored within the composite
name.
pngetCharArrayField
public char[] pngetCharArrayField(String fn,
Object context)
throws PException
It retrieves the value of a char[] field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The char[] value of the field as stored within the composite
name.
pngetCharField
public char pngetCharField(String fn,
Object context)
throws PException
It retrieves the value of a char field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The char value of the field as stored within the composite
name.
pngetDateField
public Date pngetDateField(String fn,
Object ctxt)
throws PExceptionTyping,
PExceptionIO
It retrieves the value of a date field.
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
- The java.util.Date value of the field as stored within the
composite name.
pngetIntField
public int pngetIntField(String fn,
Object context)
throws PException
It retrieves the value of an int field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The int value of the field as stored within the composite
name.
pngetLongField
public long pngetLongField(String fn,
Object context)
throws PException
It retrieves the value of a long field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The long value of the field as stored within the composite
name.
pngetObyteField
public Byte pngetObyteField(String fn,
Object ctxt)
throws PException
It retrieves the value of a Byte field.
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
- The Byte value of the field as stored within the composite
name.
pngetOcharField
public Character pngetOcharField(String fn,
Object ctxt)
throws PException
It retrieves the value of a Character field.
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
- The Character value of the field as stored within the composite
name.
pngetOintField
public Integer pngetOintField(String fn,
Object ctxt)
throws PException
It retrieves the value of an Integer field.
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
- The Integer value of the field as stored within the composite
name.
pngetOlongField
public Long pngetOlongField(String fn,
Object ctxt)
throws PExceptionTyping,
PExceptionIO
It retrieves the value of a Long field.
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
- The Long value of the field as stored within the composite
name.
pngetOshortField
public Short pngetOshortField(String fn,
Object ctxt)
throws PException
It retrieves the value of a Short field.
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
- The Short value of the field as stored within the composite
name.
pngetShortField
public short pngetShortField(String fn,
Object context)
throws PException
It retrieves the value of a short field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The short value of the field as stored within the composite
name.
pngetStringField
public String pngetStringField(String fn,
Object context)
throws PExceptionTyping,
PExceptionIO
It retrieves the value of a string field.
fn
- A String containing the name of the field.context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.
- The java.lang.String value of the field as stored within the
composite name.
setMap
public void setMap(Map fieldName2index)
Sets the field name to index association map.
fieldName2index
- is the Map which contains the association field
name -> index in tuple.