|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbass.db.DBObject
public class DBObject
DB Connection class
| Field Summary | |
|---|---|
private int |
currentMode
|
static int |
EMBEDDED_DB
the embedded derby DB |
static int |
LOCAL_DB
a maxdb running at localhost |
private static java.lang.String |
propfile
|
static int |
SERVER_DB
the DB server at search engine lab |
| Constructor Summary | |
|---|---|
DBObject()
Deprecated. plz don't use this for safety reasons ... use the DBObject(int) constructor |
|
DBObject(int db)
generates a db object for the specified DB |
|
| Method Summary | |
|---|---|
java.sql.Connection |
get_connection()
Generates a DB Connection from information @ properties/db.properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.String propfile
public static final int EMBEDDED_DB
public static final int SERVER_DB
public static final int LOCAL_DB
private int currentMode
| Constructor Detail |
|---|
public DBObject()
public DBObject(int db)
db - can be EMBEDDED_DB, SERVER_DB or LOCAL_DB (constants from this class)| Method Detail |
|---|
public java.sql.Connection get_connection()
throws java.sql.SQLException
java.sql.SQLException - if method can't connect to db or db doesn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||