|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.eval.lib.TuplePNameGetter
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.
Constructor Summary | |
TuplePNameGetter(java.util.Map fieldName2index,
Operand nc,
Logger logger)
Constructs a TuplePNameGetter from a set of associations (field name, index in tuple). |
|
TuplePNameGetter(TuplePNameGetter tpng)
|
Method Summary | |
java.math.BigDecimal |
pngetBigDecimalField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of an int field. |
java.math.BigInteger |
pngetBigIntegerField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of an int field. |
byte[] |
pngetByteArrayField(java.lang.String fn,
java.lang.Object context)
Retrieves the value of a byte[] field. |
byte |
pngetByteField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a byte field. |
char[] |
pngetCharArrayField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a char[] field. |
char |
pngetCharField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a char field. |
java.util.Date |
pngetDateField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a date field. |
int |
pngetIntField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of an int field. |
long |
pngetLongField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a long field. |
java.lang.Byte |
pngetObyteField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a Byte field. |
java.lang.Character |
pngetOcharField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a Character field. |
java.lang.Integer |
pngetOintField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of an Integer field. |
java.lang.Long |
pngetOlongField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a Long field. |
java.lang.Short |
pngetOshortField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a Short field. |
short |
pngetShortField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a short field. |
java.lang.String |
pngetStringField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a string field. |
void |
setMap(java.util.Map fieldName2index)
Sets the field name to index association map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TuplePNameGetter(TuplePNameGetter tpng)
public TuplePNameGetter(java.util.Map fieldName2index, Operand nc, Logger logger)
fieldName2index
- is the Map which contains the association field
name -> index in tuple.Method Detail |
public void setMap(java.util.Map fieldName2index)
fieldName2index
- is the Map which contains the association field
name -> index in tuple.public byte[] pngetByteArrayField(java.lang.String fn, java.lang.Object context) throws PException
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.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public byte pngetByteField(java.lang.String fn, java.lang.Object context) throws PException
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.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public char pngetCharField(java.lang.String fn, java.lang.Object context) throws PException
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.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public char[] pngetCharArrayField(java.lang.String fn, java.lang.Object context) throws PException
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.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public short pngetShortField(java.lang.String fn, java.lang.Object context) throws PException
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.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.lang.Byte pngetObyteField(java.lang.String fn, java.lang.Object ctxt) throws PException
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.lang.Character pngetOcharField(java.lang.String fn, java.lang.Object ctxt) throws PException
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.lang.Short pngetOshortField(java.lang.String fn, java.lang.Object ctxt) throws PException
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.lang.Integer pngetOintField(java.lang.String fn, java.lang.Object ctxt) throws PException
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.lang.Long pngetOlongField(java.lang.String fn, java.lang.Object ctxt) throws PExceptionTyping, PExceptionIO
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.public java.util.Date pngetDateField(java.lang.String fn, java.lang.Object ctxt) throws PExceptionTyping, PExceptionIO
fn
- A String containing the name of the field.ctxt
- A context used by PNameGetter to extract the related data.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.public int pngetIntField(java.lang.String fn, java.lang.Object context) throws PException
context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.fn
- A String containing the name of the field.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.math.BigDecimal pngetBigDecimalField(java.lang.String fn, java.lang.Object context) throws PException
context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.fn
- A String containing the name of the field.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.math.BigInteger pngetBigIntegerField(java.lang.String fn, java.lang.Object context) throws PException
context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.fn
- A String containing the name of the field.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public long pngetLongField(java.lang.String fn, java.lang.Object context) throws PException
context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.fn
- A String containing the name of the field.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
PException
public java.lang.String pngetStringField(java.lang.String fn, java.lang.Object context) throws PExceptionTyping, PExceptionIO
context
- A context used by PNameGetter to extract the related data.
In in the case of RDB, it can be the result set.fn
- A String containing the name of the field.
PExceptionTyping
- There is no field with this name and
this type within this composite name.
PExceptionIO
- It is raised when a problem occurs while
potentially accessing the DSI.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |