|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DBProperties
Interface for the class that jLips uses to get information about how to connect
to the database.
jLips has it's own Factory
that is used to create connections to the database whenever jLips needs them.
This Factory must know how to connect to the database and the application must
provide a class that will return this information.
The actual connections are handled by a class implementing the
DBConnectionHandler
interface. jLips provides
a number of these classes.
DBAbstractConnection
Method Summary | |
---|---|
String |
getDriver()
The driver the Factory must load to connect to the database |
String |
getPassword()
The password used to connect to the database |
String |
getSchema()
This method must return the schema that is used by the application A schema is a text string that indicates which 'part' of the database is used by the application using jLips |
String |
getURL()
This method must return the URL that jLips uses to connect to the database The URL to a database takes the general form jdbc:subprotocol:subname |
String |
getUserName()
Must return the username used to connect to the database with |
void |
setDBInitProperties(Map dbInitProbs)
When the Factory is initialised this method is invoked passing in the database properties supplied by the application When the application initialises jLips it must provide a set of properties specifying how jLips connects to the database. |
Method Detail |
---|
String getSchema()
String getURL()
String getUserName()
String getDriver()
String getPassword()
void setDBInitProperties(Map dbInitProbs)
dbInitProbs
- Database properties passed in by the application
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |