Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb.sample
Class FindFile  view FindFile download FindFile.java

java.lang.Object
  extended byorg.hsqldb.sample.FindFile

class FindFile
extends java.lang.Object

Extract a directory tree and store in an HSQLDB database.

Version:
1.7.0

Constructor Summary
(package private) FindFile()
           
 
Method Summary
(package private) static void fillFileNames(java.sql.Connection conn, java.lang.String root)
          Method declaration
(package private) static void fillPath(java.lang.String path, java.lang.String name, java.sql.PreparedStatement prep)
          Method declaration
(package private) static void listFiles(java.sql.Connection conn, java.lang.String name)
          Method declaration
static void main(java.lang.String[] arg)
          Extracts a directory tree and stores it ina HSQLDB database.
Usage:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindFile

FindFile()
Method Detail

main

public static void main(java.lang.String[] arg)
Extracts a directory tree and stores it ina HSQLDB database.
Usage:

 java org.hsqldb.sample.FindFile -init .
 Re-create database from directory '.'
 java org.hsqldb.sample.FindFile name
 Find files like 'name'
 


listFiles

static void listFiles(java.sql.Connection conn,
                      java.lang.String name)
               throws java.sql.SQLException
Method declaration


fillFileNames

static void fillFileNames(java.sql.Connection conn,
                          java.lang.String root)
                   throws java.sql.SQLException
Method declaration


fillPath

static void fillPath(java.lang.String path,
                     java.lang.String name,
                     java.sql.PreparedStatement prep)
              throws java.sql.SQLException
Method declaration