|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.claudio.jars.ModelDerbyDB
public class ModelDerbyDB
Universal jar finder application
Copyright (C) 2006-2008 Claudio Nieder <private@claudio.ch>, CH-8610 Uster
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Constructor Summary | |
---|---|
ModelDerbyDB()
Create DB if necessary. |
Method Summary | |
---|---|
void |
addFromDirs(Status status,
java.io.File... startDirs)
Search a list of directories recursively to find jar files and store the information found in the database. |
void |
close()
Give the model a chance to close the database if this is needed. |
int |
getClassCount()
Return the number of stored classes. |
int |
getJarCount()
Return the number of stored jars. |
static void |
main(java.lang.String[] args)
|
ClassInfo[] |
search(java.lang.String name)
Search database for a jar containing the searched class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelDerbyDB()
Method Detail |
---|
public void addFromDirs(Status status, java.io.File... startDirs)
Model
addFromDirs
in interface Model
status
- status object into which the current state is reported.startDirs
- List of directories to searchModel.addFromDirs(Status, java.io.File...)
public int getClassCount()
Model
getClassCount
in interface Model
Model.getClassCount()
public int getJarCount()
Model
getJarCount
in interface Model
Model.getJarCount()
public ClassInfo[] search(java.lang.String name)
Model
search
in interface Model
name
- Either a plain class name or a qualified name. If the class is
not qualified by a package name several classes might be returned.
Model.search(java.lang.String)
public void close()
Model
close
in interface Model
Model.close()
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |