This application searches files in a database.
This example application is designed for programers that are new to JDBC. The functionality is kept low, so it should be possible to understand what is going on. It connects, execute queries and inserts against the database.
First, the database must be initialized with a path. The file names of this directory and all its subdirectories will be stored in the database:
java FindFile -init .
Re-creating the database...
Finished
After this is made, the database can be searched for files that matches a specific pattern, for example all files containing 'stat' in the path or filename:
java FindFile stat
Files like 'stat'
.\org\hsql\jdbcPreparedStatement.class
.\org\hsql\jdbcStatement.class