This example application is designed for programers are new to the JDBC. The functionality is kept low, so it should be easy to understand what is going on. It connects, execute queries and inserts against the database.
First, the database must be initialized with a path. All files of this directory and all its subdirectories will be stored in the database. After this is done, the database can be searched for files that match a specific pattern.
Re-create database from directory '.':
java -classpath %CLASSPATH%;hsqldb.jar org.hsqldb.util.FindFile -init
.
for convenience there is also a batch file that does the same:
run FindFile -init .
Find files like 'name':
java -classpath %CLASSPATH%;hsqldb.jar org.hsqldb.util.FindFile name
or:
run FindFile name