|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.mapper.rdb.genclass.RdbGenClassNameGetter
org.objectweb.jorm.mapper.rdb.genclass.RdbGenClassPNGIterator
It is an iterator over a resultset. The next() method returns the PName.
Field Summary | |
protected RdbAdapter |
adapter
|
protected FieldDesc[] |
elemFields
The description of the fields of a composite name. |
protected java.sql.PreparedStatement |
ps
|
protected java.sql.ResultSet |
resultSet
The ResultSet pointing to the row from which to fetch the value of the fields of a composite name. |
protected int |
startIndex
|
Constructor Summary | |
RdbGenClassPNGIterator(java.sql.PreparedStatement ps,
java.sql.ResultSet rs,
FieldDesc[] rfds,
RdbGenClassMapping gcm,
boolean prefetching,
RdbAdapter adapter)
|
Method Summary | |
void |
close()
|
protected void |
finalize()
|
boolean |
hasNext()
|
java.lang.Object |
next()
|
java.math.BigDecimal |
pngetBigDecimalField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a BigDecimal field. |
java.math.BigInteger |
pngetBigIntegerField(java.lang.String fn,
java.lang.Object ctxt)
It retrieves the value of a BigInteger field. |
byte[] |
pngetByteArrayField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a string field. |
byte |
pngetByteField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a byte field. |
char[] |
pngetCharArrayField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a string field. |
char |
pngetCharField(java.lang.String fn,
java.lang.Object ctx)
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 ctx)
It retrieves the value of an int field. |
long |
pngetLongField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a long field. |
java.lang.Byte |
pngetObyteField(java.lang.String fn,
java.lang.Object context)
It retrieves the value of a Byte field. |
java.lang.Character |
pngetOcharField(java.lang.String fn,
java.lang.Object context)
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 context)
It retrieves the value of a Short field. |
short |
pngetShortField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a short field. |
java.lang.String |
pngetStringField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a string field. |
void |
remove()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.sql.ResultSet resultSet
protected FieldDesc[] elemFields
protected java.sql.PreparedStatement ps
protected RdbAdapter adapter
protected int startIndex
Constructor Detail |
public RdbGenClassPNGIterator(java.sql.PreparedStatement ps, java.sql.ResultSet rs, FieldDesc[] rfds, RdbGenClassMapping gcm, boolean prefetching, RdbAdapter adapter) throws java.sql.SQLException
Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
public void close() throws PException
close
in interface PNameIterator
PException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public byte pngetByteField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetByteField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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.lang.Byte pngetObyteField(java.lang.String fn, java.lang.Object context) throws PExceptionTyping, PExceptionIO
pngetObyteField
in interface PNameGetter
fn
- A String containing the name of the field.context
- 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 char pngetCharField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetCharField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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.lang.Character pngetOcharField(java.lang.String fn, java.lang.Object context) throws PExceptionTyping, PExceptionIO
pngetOcharField
in interface PNameGetter
fn
- A String containing the name of the field.context
- 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 short pngetShortField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetShortField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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.lang.Short pngetOshortField(java.lang.String fn, java.lang.Object context) throws PExceptionTyping, PExceptionIO
pngetOshortField
in interface PNameGetter
fn
- A String containing the name of the field.context
- 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 ctx) throws PExceptionTyping, PExceptionIO
pngetIntField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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.lang.Integer pngetOintField(java.lang.String fn, java.lang.Object ctxt) throws PExceptionTyping, PExceptionIO
pngetOintField
in interface PNameGetter
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 long pngetLongField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetLongField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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.lang.Long pngetOlongField(java.lang.String fn, java.lang.Object ctxt) throws PExceptionTyping, PExceptionIO
pngetOlongField
in interface PNameGetter
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.lang.String pngetStringField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetStringField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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 byte[] pngetByteArrayField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetByteArrayField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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 char[] pngetCharArrayField(java.lang.String fn, java.lang.Object ctx) throws PExceptionTyping, PExceptionIO
pngetCharArrayField
in interface PNameGetter
fn
- A String containing the name of the field.ctx
- 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
pngetDateField
in interface PNameGetter
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.math.BigInteger pngetBigIntegerField(java.lang.String fn, java.lang.Object ctxt) throws PException
pngetBigIntegerField
in interface PNameGetter
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.math.BigDecimal pngetBigDecimalField(java.lang.String fn, java.lang.Object ctxt) throws PException
pngetBigDecimalField
in interface PNameGetter
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |