Logo Search packages:      
Sourcecode: qdbm version File versions  Download package

int Villa::rnum (  )  throws VillaException [inline]

Get the number of the records stored in a database.

Returns:
the number of the records stored in the database.
Exceptions:
VillaException if an error occurs.

Definition at line 573 of file Villa.java.

References index.

                                          {
    if(index < 0) throw new VillaException();
    synchronized(ADBM.class){
      int rv = vlrnum(index);
      if(rv == -1) throw new VillaException(vlecode());
      return rv;
    }
  }


Generated by  Doxygen 1.6.0   Back to index