| java.lang.Object org.mmbase.storage.implementation.database.GenericDataSource
GenericDataSource | final public class GenericDataSource implements DataSource(Code) | | This class functions as a Datasource wrapper around the JDBC Module.
It is intended for use when MMBase runs outside an applicationserver, or when the server does not (or poorly)
support pooled datasources.
I can also be used by older systems that use the JDBC Module and do not want to change their configuration.
Note that the JDBC Module will likely be fased out as a module at some point in the future,
with code and supporting classes to be moved to this class instead.
author: Pierre van Rooden author: Michiel Meeuwissen since: MMBase-1.7 version: $Id: GenericDataSource.java,v 1.16 2008/02/22 12:27:48 michiel Exp $ |
Constructor Summary | |
| GenericDataSource(MMBase mmbase, String dataDir) Constructs a datasource for accessing the database belonging to the given MMBase module.
The MMBase parameter is not currently used, but is included for future expansion
Parameters: mmbase - the MMBase instance Parameters: A - Datadir (as a string ending in a /) which may be used in some URL's (most noticably those of HSQLDB). | | GenericDataSource(MMBase mmbase) |
GenericDataSource | GenericDataSource(MMBase mmbase, String dataDir) throws StorageInaccessibleException(Code) | | Constructs a datasource for accessing the database belonging to the given MMBase module.
The MMBase parameter is not currently used, but is included for future expansion
Parameters: mmbase - the MMBase instance Parameters: A - Datadir (as a string ending in a /) which may be used in some URL's (most noticably those of HSQLDB). Can be null if not used. throws: StorageInaccessibleException - if the JDBC module used in creating the datasource is inaccessible |
getLoginTimeout | public int getLoginTimeout()(Code) | | |
isWrapperFor | public boolean isWrapperFor(Class> iface)(Code) | | |
makeUrl | protected String makeUrl()(Code) | | Makes URL which can be used to produce a Conncetion. If this is a 'meta' datasource, then
'lookup.xml' will be tried, for a 'meta url'.
since: MMBase-1.8 |
setLoginTimeout | public void setLoginTimeout(int seconds)(Code) | | Note: currently this code does not actually change the timeout. Login timeout is not implemented by JDBC module
|
|
|