|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.Module
org.mmbase.module.ProcessorModule
org.mmbase.module.database.JDBC
JDBC Module. The module that provides you access to the loaded JDBC interfaces. We use this as the base to get multiplexes/pooled JDBC connects.
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.module.ProcessorModule |
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction |
| Field Summary |
| Fields inherited from class org.mmbase.module.ProcessorModule |
PARAM_PAGEINFO, PARAMS_PAGEINFO |
| Fields inherited from class org.mmbase.module.Module |
getMaintainerFunction, getVersionFunction |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
functions, getFunctions |
| Constructor Summary | |
JDBC()
|
|
| Method Summary | |
void |
checkTime()
|
MultiConnection |
getConnection(String url)
|
MultiConnection |
getConnection(String url,
String name,
String password)
|
String |
getDatabaseName()
|
Connection |
getDirectConnection(String url)
|
Connection |
getDirectConnection(String url,
String name,
String password)
|
Vector |
getList(PageInfo sp,
StringTagger tagger,
String value)
User interface stuff |
String |
getPassword()
|
String |
getUser()
|
void |
init()
Initializes the module. Init must be overridden to read the environment variables it needs. This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead. |
Vector |
listConnections(StringTagger tagger)
|
Vector |
listPools(StringTagger tagger)
|
String |
makeUrl()
Routine build the url to give to the DriverManager to open the connection. |
String |
makeUrl(String dbm)
Routine build the url to give to the DriverManager to open the connection. |
String |
makeUrl(String host,
int port,
String dbm)
Routine build the url to give to the DriverManager to open the connection. |
String |
makeUrl(String host,
String dbm)
Routine build the url to give to the DriverManager to open the connection. |
void |
onload()
prepares the module when loaded. Onload must be overridden to execute methods that need to be performed when the module is loaded but before any other modules are initailized. This method is called by Module.startModules(). You should not call onload() directly. |
void |
reload()
What should this do, when is this called? Reload the properties and driver |
protected void |
shutdown()
Shuts down the module. |
String |
toString()
Give some info about the jdbc connection |
void |
unload()
What should this do, when is this called? |
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getListBuilder, getNodeList, process, replace, replace |
| Methods inherited from class org.mmbase.module.Module |
getInitParameter, getInitParameters, getMaintainer, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModules, getName, getProperties, getProperty, getVersion, hasStarted, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdownModules, startModule, startModules, state |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JDBC()
| Method Detail |
public void onload()
ProcessorModuleModule.startModules(). You should not call onload() directly.
onload in class ProcessorModulepublic void init()
ProcessorModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class ProcessorModulepublic void reload()
reload in class ProcessorModulepublic void unload()
ProcessorModule
unload in class ProcessorModuleprotected void shutdown()
Module
shutdown in class Modulepublic String makeUrl()
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)public String makeUrl(String dbm)
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)
public String makeUrl(String host,
String dbm)
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)
public String makeUrl(String host,
int port,
String dbm)
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)
public MultiConnection getConnection(String url,
String name,
String password)
throws SQLException
getConnection in interface JDBCInterfaceSQLException
public MultiConnection getConnection(String url)
throws SQLException
getConnection in interface JDBCInterfaceSQLException
public Connection getDirectConnection(String url,
String name,
String password)
throws SQLException
getDirectConnection in interface JDBCInterfaceSQLException
public Connection getDirectConnection(String url)
throws SQLException
getDirectConnection in interface JDBCInterfaceSQLExceptionpublic void checkTime()
checkTime in interface JDBCInterface
public Vector getList(PageInfo sp,
StringTagger tagger,
String value)
getList in interface ProcessorInterfacegetList in class ProcessorModulepublic Vector listPools(StringTagger tagger)
public Vector listConnections(StringTagger tagger)
public String getUser()
getUser in interface JDBCInterfacepublic String getPassword()
getPassword in interface JDBCInterfacepublic String getDatabaseName()
getDatabaseName in interface JDBCInterfacepublic String toString()
String whith some information about the connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||