|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.odi.dataservices.fwk.ManagedEntityList
A data service parameter that represents a list of ManagedEntity
objects. This class can be used as a valid input or output parameter for a
data service method.
Constructor Summary | |
ManagedEntityList()
Constructs a new, empty ManagedEntityList . |
Method Summary | |
void |
addManagedEntity(ManagedEntity pManagedEntity)
Appends a ManagedEntity to the end of the list. |
void |
assertColsDefined(java.util.List pColumnsName)
Asserts that all columns in the list of column names pColumnsName have been defined for all
ManagedEntity items of the list. |
static ManagedEntityList |
createFromResultSet(java.sql.ResultSet pResultSet,
java.util.List pColumnsList,
java.lang.Integer pMaxRowCount)
Helper method used to create a ManagedEntityList from a JDBC
ResultSet object. |
ManagedEntity |
getManagedEntity(int pIdx)
Retrieves the ManagedEntity element located at position
pIdx in the list |
int |
size()
Returns the number of elements in the list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManagedEntityList()
ManagedEntityList
.
Method Detail |
public void addManagedEntity(ManagedEntity pManagedEntity)
ManagedEntity
to the end of the list.
pManagedEntity
- the ManagedEntity
object to append to
the listpublic int size()
public ManagedEntity getManagedEntity(int pIdx)
ManagedEntity
element located at position
pIdx
in the list
pIdx
- position of the object to retrieve.
ManagedEntity
object.public void assertColsDefined(java.util.List pColumnsName) throws InvalidInputMessageException
pColumnsName
have been defined for all
ManagedEntity
items of the list.
pColumnsName
- list of column names.
InvalidInputMessageException
- thrown if not all columns for all
ManagedEntity
items of the list have been definedpublic static ManagedEntityList createFromResultSet(java.sql.ResultSet pResultSet, java.util.List pColumnsList, java.lang.Integer pMaxRowCount) throws java.sql.SQLException
ManagedEntityList
from a JDBC
ResultSet
object.createFromResultSet
method of
ManagedEntity
with the pResultSet
parameter
and appends the resulting ManagedEntity
to the list, until
pMaxRowCount
is reached or pResultSet
if
empty.
pResultSet
- ResultSet
object from which the data is
retrieved.pColumnsList
- list of columns to set in the
ManagedEntity
objects added to the list.pMaxRowCount
- The maximum number of record to retrieve. If this
parameter is set to null, there are no limits
ManagedEntityList
generated from the
ResultSet
object.
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |