|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.toften.jlips.persist.db.DBAbstractProperties
public abstract class DBAbstractProperties
Abstract helper class implementing the methods defined in the
DBProperties
class.
Field Summary | |
---|---|
protected static String |
DB_DRIVER
String used to identify the driver class |
protected static String |
DB_PASSWORD
String used to identify the password |
protected static String |
DB_SCHEMA
String used to identify the schema |
protected static String |
DB_URL
String used to identify the url |
protected static String |
DB_USERNAME
String used to identify the username |
protected Properties |
dbInitProb
This is initialised to the database properties provided by the application when jLips were initialised |
protected Properties |
dbProp
These properties are used by this class to hold the database properties. |
Constructor Summary | |
---|---|
DBAbstractProperties()
Default constructor for DBAbstractProperties Is provided because of the other constructors for this class. |
|
DBAbstractProperties(String driver,
String url,
String username,
String password,
String schema)
Constructor for DBAbstractProperties This constructor will take all the database connection parameters as arguments and initialise the internal properties
class |
Method Summary | |
---|---|
String |
getDriver()
|
String |
getPassword()
|
String |
getSchema()
|
String |
getURL()
|
String |
getUserName()
|
void |
setDBInitProperties(Map dbInitProbs)
This method stores a reference to the
initialisation properties given to jLips when it was initialised by the application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Properties dbProp
DB_DRIVER
,
DB_PASSWORD
,
DB_SCHEMA
,
DB_URL
,
DB_USERNAME
,
DBAbstractProperties(String, String, String, String, String)
protected Properties dbInitProb
DBProperties.setDBInitProperties(Map)
protected static final String DB_DRIVER
protected static final String DB_URL
protected static final String DB_SCHEMA
protected static final String DB_USERNAME
protected static final String DB_PASSWORD
Constructor Detail |
---|
public DBAbstractProperties()
public DBAbstractProperties(String driver, String url, String username, String password, String schema)
internal properties
class
driver
- url
- username
- password
- schema
- Method Detail |
---|
public String getDriver()
DBProperties.getDriver()
public String getPassword()
DBProperties.getPassword()
public String getSchema()
DBProperties.getSchema()
public String getURL()
DBProperties.getURL()
public String getUserName()
DBProperties.getUserName()
public void setDBInitProperties(Map dbInitProbs)
reference
to the
initialisation properties given to jLips when it was initialised by the application.
This method will be invoked by the DBConnectionFactory.init(Map)
method
dbInitProbs
- The database properties provided by the applicationEntityFactory.init(Properties, Map)
,
DBProperties.setDBInitProperties(Map)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |