public class JDBC extends ProcessorModule
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunctionPARAM_PAGEINFO, PARAMS_PAGEINFOconfigurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIMEdescription, guiName, namefunctions, getFunctions| Modifier and Type | Method and Description |
|---|---|
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() |
DatabaseSupport |
getSupport() |
String |
getUser() |
void |
init()
Initializes the module.
|
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.
|
void |
reload()
What should this do, when is this called?
|
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?
|
getListBuilder, getNodeList, process, replace, replaceaddInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdownModules, startModule, startModulesgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setNameaddFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstancepublic JDBC(String name)
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()
ProcessorModuleunload in class ProcessorModuleprotected void shutdown()
Modulepublic DatabaseSupport getSupport()
public String makeUrl()
public String makeUrl(String dbm)
public String makeUrl(String host, String dbm)
public String makeUrl(String host, int port, String dbm)
public MultiConnection getConnection(String url, String name, String password) throws SQLException
SQLExceptionpublic MultiConnection getConnection(String url) throws SQLException
SQLExceptionpublic Connection getDirectConnection(String url, String name, String password) throws SQLException
SQLExceptionpublic Connection getDirectConnection(String url) throws SQLException
SQLExceptionpublic void checkTime()
public Vector getList(PageInfo sp, StringTagger tagger, String value)
getList in class ProcessorModulepublic Vector listPools(StringTagger tagger)
public Vector listConnections(StringTagger tagger)
public String getUser()
public String getPassword()
public String getDatabaseName()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}