|
|||||||||
| 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.Naming
This class is used to retrieve a connection, which is provided by naming resources. With the usage of naming resource, it is possible to configure the database resource inside the application server and let the application server do the pooling. Since this is a J2EE concept, this class provides support for usage of this.
| Constructor Summary | |
Naming()
|
|
| 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.lang.String |
getPassword()
|
java.lang.String |
getUser()
|
void |
init()
Init this module. |
java.lang.String |
makeUrl()
|
java.lang.String |
makeUrl(java.lang.String dbm)
|
java.lang.String |
makeUrl(java.lang.String host,
int port,
java.lang.String dbm)
|
java.lang.String |
makeUrl(java.lang.String host,
java.lang.String dbm)
|
void |
reload()
is a reload the same as an init? |
void |
shutdown()
Shuts down the module. |
void |
unload()
What should this do, when is this called? (MM) |
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getList, getListBuilder, getNodeList, onload, 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, toString, wait, wait, wait |
| Constructor Detail |
public Naming()
| Method Detail |
public void init()
init in class ProcessorModulepublic void reload()
reload in class ProcessorModule
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)
throws java.sql.SQLException
getDirectConnection 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.SQLExceptionpublic void unload()
ProcessorModule
unload in class ProcessorModulepublic void shutdown()
Module
shutdown in class Modulepublic java.lang.String makeUrl()
makeUrl in interface JDBCInterfacepublic java.lang.String makeUrl(java.lang.String dbm)
makeUrl in interface JDBCInterface
public java.lang.String makeUrl(java.lang.String host,
java.lang.String dbm)
makeUrl in interface JDBCInterface
public java.lang.String makeUrl(java.lang.String host,
int port,
java.lang.String dbm)
makeUrl in interface JDBCInterfacepublic java.lang.String getUser()
getUser in interface JDBCInterfacepublic java.lang.String getPassword()
getPassword in interface JDBCInterfacepublic java.lang.String getDatabaseName()
getDatabaseName in interface JDBCInterfacepublic void checkTime()
checkTime in interface JDBCInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||