SRJRCFrames
v0.1.296

de.schwarzrot.app.config
Class DSConfig

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by de.schwarzrot.data.support.AbstractEntity
          extended by de.schwarzrot.app.config.support.AbstractConfigBase
              extended by de.schwarzrot.app.config.DSConfig
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, DBConfig, Entity, Serializable, Comparable<Entity>

public class DSConfig
extends AbstractConfigBase
implements DBConfig

holds information about a data source used by DataSourceManager

Author:
Reinhard Mantey
See Also:
Serialized Form

Constructor Summary
DSConfig()
           
 
Method Summary
 String getDbType()
          returns the type of a data storage.
 Boolean getDefaultAutoCommit()
           
 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 setDefaultAutoCommit(Boolean defaultAutoCommit)
           
 void setDrvClassName(String drvClassName)
          sets the classname of the JDBC-driver
 void setDrvLibPath(File drvPath)
           
 void setDrvUrl(String drvUrl)
          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
 
Methods inherited from class de.schwarzrot.app.config.support.AbstractConfigBase
getPersistenceName, getSystemClass, isUserType
 
Methods inherited from class de.schwarzrot.data.support.AbstractEntity
adoptChildren, adoptChildren, adoptGroupedChildren, compareTo, equals, getCModified, getCode, getDefaultOrder, getDtCreated, getDtModified, getId, getLogger, getMappings, getSchemaName, getSkipList, getUCreated, getUModified, getUniqColumnNames, getUserAttributes, getVariantColumnName, getVariantTypeMap, hashCode, isDirty, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setSchemaName, setUCreated, setUModified, toString, validate
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jgoodies.binding.beans.Observable
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

DSConfig

public DSConfig()
Method Detail

getDbType

public final String getDbType()
Description copied from interface: DBConfig
returns the type of a data storage. Currently only mysql databases supported

Specified by:
getDbType in interface DBConfig
Returns:
- the type of the data storage

getDefaultAutoCommit

public final Boolean getDefaultAutoCommit()

getDrvClassName

public final String getDrvClassName()
Description copied from interface: DBConfig
returns the classname of the JDBC driver

Specified by:
getDrvClassName in interface DBConfig
Returns:
- the classname of the JDBC driver

getDrvLibPath

public final File getDrvLibPath()
Description copied from interface: DBConfig
returns the path of the jar-file that contains a jdbc-driver

Specified by:
getDrvLibPath in interface DBConfig
Returns:
- the path of the jar-file that contains a jdbc-driver

getDrvUrl

public final String getDrvUrl()
Description copied from interface: DBConfig
returns the url used by the JDBC driver to access a data storage

Specified by:
getDrvUrl in interface DBConfig
Returns:
- the url used by the JDBC driver to access a database

getDsDB

public final String getDsDB()
Description copied from interface: DBConfig
returns the name of a data storage

Specified by:
getDsDB in interface DBConfig
Returns:
- the name of a data storage, i.e. name of a database

getDsHost

public final String getDsHost()
Description copied from interface: DBConfig
returns the hostname of the data storage server

Specified by:
getDsHost in interface DBConfig
Returns:
- the hostname of the data storage server

getDsPassword

public final String getDsPassword()
Description copied from interface: DBConfig
returns the password used to access a data storage

Specified by:
getDsPassword in interface DBConfig
Returns:
- the password used to access the data storage

getDsSchema

public final String getDsSchema()
Description copied from interface: DBConfig
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.

Specified by:
getDsSchema in interface DBConfig
Returns:
- the default schema to use

getDsUser

public final String getDsUser()
Description copied from interface: DBConfig
returns the username used to access a data storage

Specified by:
getDsUser in interface DBConfig
Returns:
- the user name used to access the data storage

getSupportedDBDrivers

public Map<String,Boolean> getSupportedDBDrivers()
Specified by:
getSupportedDBDrivers in interface DBConfig
Overrides:
getSupportedDBDrivers in class AbstractConfigBase

setDbType

public final void setDbType(String dbType)
Description copied from interface: DBConfig
sets the type of the database (currently only mysql supported)

Specified by:
setDbType in interface DBConfig
Parameters:
dbType - - the type of the data storage

setDefaultAutoCommit

public final void setDefaultAutoCommit(Boolean defaultAutoCommit)

setDrvClassName

public final void setDrvClassName(String drvClassName)
Description copied from interface: DBConfig
sets the classname of the JDBC-driver

Specified by:
setDrvClassName in interface DBConfig
Parameters:
drvClassName - - the classname of the driver

setDrvLibPath

public final void setDrvLibPath(File drvPath)

setDrvUrl

public final void setDrvUrl(String drvUrl)
Description copied from interface: DBConfig
sets the url to access the data storage

Specified by:
setDrvUrl in interface DBConfig
Parameters:
drvUrl - - url used to access the data storage

setDsDB

public final void setDsDB(String dsDB)
Description copied from interface: DBConfig
sets the name of the data storage, i.e. the name of a database

Specified by:
setDsDB in interface DBConfig
Parameters:
dsDB - - name of the data storage

setDsHost

public final void setDsHost(String dsHost)
Description copied from interface: DBConfig
sets the hostname of the server, that hosts the data storage

Specified by:
setDsHost in interface DBConfig
Parameters:
dsHost - - hostname of data storage server

setDsPassword

public final void setDsPassword(String dsPassword)
Description copied from interface: DBConfig
sets the password used to access the data storage

Specified by:
setDsPassword in interface DBConfig
Parameters:
dsPassword - - password for data storage

setDsSchema

public final void setDsSchema(String dsSchema)
Description copied from interface: DBConfig
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.

Specified by:
setDsSchema in interface DBConfig
Parameters:
dsSchema - - the default schema name

setDsUser

public final void setDsUser(String dsUser)
Description copied from interface: DBConfig
sets the user used to access the data storage

Specified by:
setDsUser in interface DBConfig
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.