SRJRCFrames
v0.1.296

de.schwarzrot.app.config
Interface DBConfig

All Known Implementing Classes:
AbstractSysConfig, DesktopConfig, DSConfig, ServiceConfig

public interface DBConfig

interface to hold all properties necessary to configure a database connection

Author:
Reinhard Mantey

Method Summary
 String getDbType()
          returns the type of a data storage.
 String getDrvClassName()
          returns the classname of the JDBC driver
 File getDrvLibPath()
          returns the path of the jar-file that contains a jdbc-driver
 String getDrvUrl()
          returns the url used by the JDBC driver to access a data storage
 String getDsDB()
          returns the name of a data storage
 String getDsHost()
          returns the hostname of the data storage server
 String getDsPassword()
          returns the password used to access a data storage
 String getDsSchema()
          SRJRCFrames supports database schema usage even on databases, that don't support schemata.
 String getDsUser()
          returns the username used to access a data storage
 Map<String,Boolean> getSupportedDBDrivers()
           
 void setDbType(String dbType)
          sets the type of the database (currently only mysql supported)
 void setDrvClassName(String drvClassName)
          sets the classname of the JDBC-driver
 void setDrvUrl(String url)
          sets the url to access the data storage
 void setDsDB(String dsDB)
          sets the name of the data storage, i.e. the name of a database
 void setDsHost(String dsHost)
          sets the hostname of the server, that hosts the data storage
 void setDsPassword(String dsPassword)
          sets the password used to access the data storage
 void setDsSchema(String dsSchema)
          sets the default schema used by applications.
 void setDsUser(String dsUser)
          sets the user used to access the data storage
 

Method Detail

getDbType

String getDbType()
returns the type of a data storage. Currently only mysql databases supported

Returns:
- the type of the data storage

getDrvClassName

String getDrvClassName()
returns the classname of the JDBC driver

Returns:
- the classname of the JDBC driver

getDrvLibPath

File getDrvLibPath()
returns the path of the jar-file that contains a jdbc-driver

Returns:
- the path of the jar-file that contains a jdbc-driver

getDrvUrl

String getDrvUrl()
returns the url used by the JDBC driver to access a data storage

Returns:
- the url used by the JDBC driver to access a database

getDsDB

String getDsDB()
returns the name of a data storage

Returns:
- the name of a data storage, i.e. name of a database

getDsHost

String getDsHost()
returns the hostname of the data storage server

Returns:
- the hostname of the data storage server

getDsPassword

String getDsPassword()
returns the password used to access a data storage

Returns:
- the password used to access the data storage

getDsSchema

String getDsSchema()
SRJRCFrames supports database schema usage even on databases, that don't support schemata. This support is seamless, so there is no difference for the user/developer in using a database that supports schemata or a database whithout that support.

Returns:
- the default schema to use

getDsUser

String getDsUser()
returns the username used to access a data storage

Returns:
- the user name used to access the data storage

getSupportedDBDrivers

Map<String,Boolean> getSupportedDBDrivers()

setDbType

void setDbType(String dbType)
sets the type of the database (currently only mysql supported)

Parameters:
dbType - - the type of the data storage

setDrvClassName

void setDrvClassName(String drvClassName)
sets the classname of the JDBC-driver

Parameters:
drvClassName - - the classname of the driver

setDrvUrl

void setDrvUrl(String url)
sets the url to access the data storage

Parameters:
url - - url used to access the data storage

setDsDB

void setDsDB(String dsDB)
sets the name of the data storage, i.e. the name of a database

Parameters:
dsDB - - name of the data storage

setDsHost

void setDsHost(String dsHost)
sets the hostname of the server, that hosts the data storage

Parameters:
dsHost - - hostname of data storage server

setDsPassword

void setDsPassword(String dsPassword)
sets the password used to access the data storage

Parameters:
dsPassword - - password for data storage

setDsSchema

void setDsSchema(String dsSchema)
sets the default schema used by applications. SRJRCFrames supports database schema usage even on databases, that don't support schemata. This support is seamless, so there is no difference for the user/developer in using a database that supports schemata or a database whithout that support.

Parameters:
dsSchema - - the default schema name

setDsUser

void setDsUser(String dsUser)
sets the user used to access the data storage

Parameters:
dsUser - - user for data storage

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.