|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--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.
| 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. |
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()
|
void |
reload()
Reload the properties and driver |
void |
shutdown()
Shuts down the module. |
java.lang.String |
toString()
Give some info about the jdbc connection |
void |
unload()
|
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getListBuilder, getNodeList, process, replace, replace |
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, 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()
onload in class ProcessorModulepublic void init()
ModuleModule.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()
unload in class ProcessorModulepublic void shutdown()
Moduleshutdown in class ProcessorModulepublic 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 JDBCInterface
public MultiConnection getConnection(java.lang.String url)
throws java.sql.SQLException
getConnection in interface JDBCInterface
public java.sql.Connection getDirectConnection(java.lang.String url,
java.lang.String name,
java.lang.String password)
throws java.sql.SQLException
getDirectConnection in interface JDBCInterface
public java.sql.Connection getDirectConnection(java.lang.String url)
throws java.sql.SQLException
getDirectConnection in interface JDBCInterfacepublic void checkTime()
checkTime in interface JDBCInterface
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
throws ParseException
getList in class ProcessorModuleorg.mmbase.module.ProcessorModulesp - the page contextparams - contains the attributes for the listcommand - the list command to execute.public 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()
toString in class java.lang.ObjectString whith some information about the connection
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||