Iterator list; if ( inputParamHints != null ) { list = inputParamHints.iterator( ); while ( list.hasNext( ) ) { InputParameterDefinition paramDef = (InputParameterDefinition) list.next( ); InputParameterHint parameterHint = new InputParameterHint( paramDef.getName( ) ); parameterHint.setPosition( paramDef.getPosition( ) ); parameterHint.setIsOptional( paramDef.isOptional( ) ); odaStatement.addInputParameterHint( parameterHint ); } } list = inputParams.iterator( );
Iterator list = inputParams.iterator( );
    public IResultIterator execute( ) throws DataException    {    	assert odaStatement != null;		Iterator list;		if ( inputParamHints != null )		{			list = inputParamHints.iterator( );			while ( list.hasNext( ) )			{				InputParameterDefinition paramDef = (InputParameterDefinition) list.next( );				InputParameterHint parameterHint = new InputParameterHint(						paramDef.getName( ) );				parameterHint.setPosition( paramDef.getPosition( ) );				parameterHint.setIsOptional( paramDef.isOptional( ) );				odaStatement.addInputParameterHint( parameterHint );			}		}		list = inputParams.iterator( );		while ( list.hasNext( ) )		{			ParameterBinding paramBind = (ParameterBinding) list.next( );			if ( paramBind.getPosition( ) != -1 )				odaStatement.setParameterValue( paramBind.getPosition( ),						paramBind.getValue() );			else				odaStatement.setParameterValue( paramBind.getName( ),						paramBind.getValue() );		}				// Execute the prepared statement		if ( ! odaStatement.execute() )			throw new DataException(ResourceConstants.NO_RESULT_SET);		ResultSet rs = odaStatement.getResultSet();				// If we did not get a result set metadata at prepare() time, get it now		if ( resultMetadata == null )		{			resultMetadata = rs.getMetaData();            if ( resultMetadata == null )    			throw new DataException(ResourceConstants.METADATA_NOT_AVAILABLE);		}				// Initialize CachedResultSet using the ODA result set		return new CachedResultSet( this, resultMetadata, rs );    }