public void registerOutParam(int index,int type) throws SQLException {
  FBProcedureParam param=getInputParam(index);
  if (param == null || param == NullParam.NULL_PARAM) {
    param=getOutputParam(index);
  }
 else {
    addOutputParam(param);
    if (!param.isValueSet()) {
      inputParams.set(param.getPosition(),null);
    }
  }
  if (param == null || param == NullParam.NULL_PARAM) {
    throw new SQLException("Cannot find parameter with the specified position.",SQLStateConstants.SQL_STATE_INVALID_COLUMN);
  }
  param.setType(type);
}

public void registerOutParam ( int index , int type ) throws SQLException { FBProcedureParam param = getInputParam ( index ) ; if ( param == null || param == NullParam . NULL_PARAM ) { param = getOutputParam ( index ) ; } else { addOutputParam ( param ) ; if ( ! param . isValueSet ( ) ) { inputParams . set ( param . getPosition ( ) , null ) ; } } if ( param == null || param == NullParam . NULL_PARAM ) { throw new SQLException ( "Cannot find parameter with the specified position." , SQLStateConstants . SQL_STATE_INVALID_COLUMN ) ; } param . setType ( type ) ; }
register output parameter . this method marks parameter with the specified index as output . parameters marked as output cannot be used as input parameters .
