Iterator list = getInputParamValues().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() ); }
this.setInputParameterBinding();
    public IResultIterator execute( ) throws DataException    {    	assert odaStatement != null;    	// set input parameter bindings		Iterator list = getInputParamValues().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 );    }