anl.aida.ae.lucene
Class TermCountDAO
java.lang.Object
anl.aida.ae.lucene.TermCountDAO
public class TermCountDAO
- extends java.lang.Object
Term count db data access object.
Field Summary |
(package private) java.util.Properties |
dbProps
|
private static java.lang.String |
PROPS_FILE
|
Method Summary |
java.sql.Connection |
createConnection()
Creates a db connection based on the info in the
term_count_db.properties file. |
private void |
loadDBProps()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPS_FILE
private static final java.lang.String PROPS_FILE
- See Also:
- Constant Field Values
dbProps
java.util.Properties dbProps
TermCountDAO
public TermCountDAO()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
loadDBProps
private void loadDBProps()
throws java.io.IOException
- Throws:
java.io.IOException
createConnection
public java.sql.Connection createConnection()
throws java.sql.SQLException
- Creates a db connection based on the info in the
term_count_db.properties file.
- Returns:
- the created connection
- Throws:
java.sql.SQLException
- if there was an error creating the DB connection.