|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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)
Constructs a TuplePNameGetter from a set of associations (field name, index in tuple). |
Method Summary | |
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. |
void |
setTuple(Tuple t)
Sets the current tuple to a tuple passed as a parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TuplePNameGetter(java.util.Map fieldName2index, Operand nc) throws MedorException
fieldName2index
- is the Map which contains the association field
name -> index in tuple.Method Detail |
public void setTuple(Tuple t)
t
- is the tuple which becomes the current tuple.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 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 |