h2/src/main/org/h2/bnf/context/DbSchema.java
/**
     * Read all procedures in the dataBase.
     * @param meta the database meta data
     * @throws SQLException Error while fetching procedures
     */
Read all procedures in the dataBase.
@param meta the database meta data
@throws SQLException Error while fetching procedures
Read all procedures in the dataBase . @param meta the database meta data @throws SQLException Error while fetching procedures
public void readProcedures(DatabaseMetaData meta) throws SQLException {
        ResultSet rs = meta.getProcedures(null, name, null);
        ArrayList<DbProcedure> list = New.arrayList();
        while (rs.next()) {
            list.add(new DbProcedure(this, rs));
        }
        rs.close();
        procedures = new DbProcedure[list.size()];
        list.toArray(procedures);
        if (procedures.length < MAX_PROCEDURES_LIST_COLUMNS) {
            for (DbProcedure procedure : procedures) {
                procedure.readParameters(meta);
            }
        }
    }
public void readProcedures ( DatabaseMetaData meta ) throws SQLException { ResultSet rs = meta . getProcedures ( null , name , null ) ; ArrayList < DbProcedure > list = New . arrayList ( ) ; while ( rs . next ( ) ) { list . add ( new DbProcedure ( this , rs ) ) ; } rs . close ( ) ; procedures = new DbProcedure [ list . size ( ) ] ; list . toArray ( procedures ) ; if ( procedures . length < MAX_PROCEDURES_LIST_COLUMNS ) { for ( DbProcedure procedure : procedures ) { procedure . readParameters ( meta ) ; } } }
Read all procedures in the dataBase.
Read all procedures in the dataBase .