|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.
| Constructor Summary | |
JDBC()
|
|
| Method Summary | |
void |
checkTime()
|
MultiConnection |
getConnection(java.lang.String url)
|
MultiConnection |
getConnection(java.lang.String url,
java.lang.String name,
java.lang.String password)
|
java.lang.String |
getDatabaseName()
|
java.sql.Connection |
getDirectConnection(java.lang.String url)
|
java.sql.Connection |
getDirectConnection(java.lang.String url,
java.lang.String name,
java.lang.String password)
|
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
User interface stuff |
java.lang.String |
getPassword()
|
java.lang.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. |
java.util.Vector |
listConnections(StringTagger tagger)
|
java.util.Vector |
listPools(StringTagger tagger)
|
java.lang.String |
makeUrl()
Routine build the url to give to the DriverManager to open the connection. |
java.lang.String |
makeUrl(java.lang.String dbm)
Routine build the url to give to the DriverManager to open the connection. |
java.lang.String |
makeUrl(java.lang.String host,
int port,
java.lang.String dbm)
Routine build the url to give to the DriverManager to open the connection. |
java.lang.String |
makeUrl(java.lang.String host,
java.lang.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()
Reload the properties and driver |
protected void |
shutdown()
Shuts down the module. |
java.lang.String |
toString()
Give some info about the jdbc connection |
void |
unload()
What should this do, when is this called? (MM) |
| 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, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdownModules, startModule, startModules, state |
| 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 java.lang.String makeUrl()
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)public java.lang.String makeUrl(java.lang.String dbm)
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)
public java.lang.String makeUrl(java.lang.String host,
java.lang.String dbm)
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)
public java.lang.String makeUrl(java.lang.String host,
int port,
java.lang.String dbm)
makeUrl in interface JDBCInterfaceDriverManager.getConnection(java.lang.String)
public MultiConnection getConnection(java.lang.String url,
java.lang.String name,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface JDBCInterfacejava.sql.SQLException
public MultiConnection getConnection(java.lang.String url)
throws java.sql.SQLException
getConnection in interface JDBCInterfacejava.sql.SQLException
public java.sql.Connection getDirectConnection(java.lang.String url,
java.lang.String name,
java.lang.String password)
throws java.sql.SQLException
getDirectConnection in interface JDBCInterfacejava.sql.SQLException
public java.sql.Connection getDirectConnection(java.lang.String url)
throws java.sql.SQLException
getDirectConnection in interface JDBCInterfacejava.sql.SQLExceptionpublic void checkTime()
checkTime in interface JDBCInterface
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
throws ParseException
getList in interface ProcessorInterfacegetList in class ProcessorModuleParseExceptionpublic java.util.Vector listPools(StringTagger tagger)
public java.util.Vector listConnections(StringTagger tagger)
public java.lang.String getUser()
getUser in interface JDBCInterfacepublic java.lang.String getPassword()
getPassword in interface JDBCInterfacepublic java.lang.String getDatabaseName()
getDatabaseName in interface JDBCInterfacepublic java.lang.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 | ||||||||