Skip navigation links

Oracle© Data Integrator Data Services Java API Reference
11g Release 1 (11.1.1.7.0)

E17062-04


oracle.odi.dataservices.fwk
Class ManagedEntityList

java.lang.Object
  extended by oracle.odi.dataservices.fwk.ManagedEntityList


public class ManagedEntityList
extends java.lang.Object

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.
This method calls the createFromResultSet method of ManagedEntity with the pResultSet parameter and appends the resulting ManagedEntity to the list, until pMaxRowCount is reached or pResultSet if empty.
 ManagedEntity getManagedEntity(int pIdx)
          Retrieves the ManagedEntity element located at position.
 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

ManagedEntityList

public ManagedEntityList()
Constructs a new, empty ManagedEntityList.

Method Detail

addManagedEntity

public void addManagedEntity(ManagedEntity pManagedEntity)
Appends a ManagedEntity to the end of the list.
Parameters:
pManagedEntity - the ManagedEntity object to append to the list

size

public int size()
Returns the number of elements in the list.
Returns:
Number of elements

getManagedEntity

public ManagedEntity getManagedEntity(int pIdx)
Retrieves the ManagedEntity element located at position. pIdx in the list
Parameters:
pIdx - position of the object to retrieve.
Returns:
A ManagedEntity object.

assertColsDefined

public void assertColsDefined(java.util.List pColumnsName)
                       throws InvalidInputMessageException
Asserts that all columns in the list of column names pColumnsName have been defined for all ManagedEntity items of the list.
Parameters:
pColumnsName - list of column names.
Throws:
InvalidInputMessageException - thrown if not all columns for all ManagedEntity items of the list have been defined

createFromResultSet

public static ManagedEntityList createFromResultSet(java.sql.ResultSet pResultSet,
                                                    java.util.List pColumnsList,
                                                    java.lang.Integer pMaxRowCount)
                                             throws java.sql.SQLException
Helper method used to create a ManagedEntityList from a JDBC ResultSet object.
This method calls the createFromResultSet method of ManagedEntity with the pResultSet parameter and appends the resulting ManagedEntity to the list, until pMaxRowCount is reached or pResultSet if empty.
Parameters:
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
Returns:
A ManagedEntityList generated from the ResultSet object.
Throws:
java.sql.SQLException

Skip navigation links

Oracle© Data Integrator Data Services Java API Reference
11g Release 1 (11.1.1.7.0)

E17062-04


Copyright © 2010, 2013, Oracle and/or its affiliates. All rights reserved.