Hypersonic SQL Find File demo application

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 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 made, the database can be searched for files that matches a specific pattern.

Usage

Re-create database from directory '.':

java -classpath %CLASSPATH%;hsql.jar FindFile -init .

for convinience there is also a batch file that does the same:

run FindFile -init .

Find files like 'name':

java -classpath %CLASSPATH%;hsql.jar FindFile name

or:

run FindFile name

View Source code


FindFile.java