|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cysols.iodef.DBConfigParser
public class DBConfigParser
Class which parses the configuration and loads the the values as properties.
| Method Summary | |
|---|---|
String |
getCollection()
Returns the collection name. |
String |
getDBName()
Returns the table name of database |
String |
getDBPort()
the port number of database. |
String |
getDriver()
Returns the driver name from proprities. |
String |
getHostIP()
Returns the host ipAddress of database. |
String |
getURL()
Returns the url. |
boolean |
load()
Loads the configuration for database by default file as "config/db.proprities". |
boolean |
load(String fileName)
Loads the configuration for database by specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean load(String fileName)
fileName - - file path of configuration
public boolean load()
public String getDriver()
public String getURL()
public String getHostIP()
public String getDBPort()
public String getDBName()
public String getCollection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||