|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.aracyc.ConsoleApplication
public abstract class ConsoleApplication
common task for console application the subclass should implement like MapPubchemName.java
| Field Summary | |
|---|---|
protected java.lang.String |
configureFile
configure file name |
protected java.lang.String |
DATABASE_NODE
data node in the configure file |
protected java.lang.String |
DBNAME_KEY
database name node in the configure file |
(package private) static org.apache.log4j.Logger |
logger
log4j facility |
protected java.lang.String |
PASSWORD_KEY
password node in the configure file |
protected java.util.prefs.Preferences |
preferences
preference setting |
protected java.lang.String |
SERVER_KEY
server node in the configure file |
protected static java.sql.Statement |
statement
sql statement |
protected java.lang.String |
USER_KEY
user name node in the configure file |
| Constructor Summary | |
|---|---|
protected |
ConsoleApplication()
|
| Method Summary | |
|---|---|
protected java.lang.String |
getDB()
get the database name setting |
protected java.util.prefs.Preferences |
getPreferences()
|
protected java.lang.String |
getServer()
get the server setting |
protected java.sql.Statement |
getStatementInstance()
|
protected abstract void |
run(java.lang.String[] args)
require the subclass implement the run() function |
protected void |
setup()
set up the system wide property setting |
protected java.sql.Statement |
setupStatement()
set up the SQL statement from the server and db configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger logger
protected static java.sql.Statement statement
protected java.util.prefs.Preferences preferences
protected final java.lang.String configureFile
protected final java.lang.String DATABASE_NODE
protected final java.lang.String SERVER_KEY
protected final java.lang.String DBNAME_KEY
protected final java.lang.String USER_KEY
protected final java.lang.String PASSWORD_KEY
| Constructor Detail |
|---|
protected ConsoleApplication()
| Method Detail |
|---|
protected java.util.prefs.Preferences getPreferences()
protected java.sql.Statement setupStatement()
protected java.lang.String getServer()
protected java.lang.String getDB()
protected abstract void run(java.lang.String[] args)
protected void setup()
protected java.sql.Statement getStatementInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||