victims/victims-lib-java — pull request #26 by gcmurphy (2014-02-05 01:21:25+00:00)
Title: Adds getRecordCount() to the Victims Database Interface. This allows any...

... calling clients

to be able to check if the database is empty and been initialized correctly.
Presently the only way to do this is by relying on the lastUpdate and comparing the
date returned to time(0) which is disconnected from the actual database state.

Whilst this approach works I'm not sure it is 'the best' way to achieve this.
For example you could do something similar to this that doesn't require
the client to call this method explicitly. Maybe you could throw
an exception if the client attempts to perform a scan when the database
has no entries ?