public class BMPoolActivator
extends org.eclipse.core.runtime.Plugin
/etc/bm/bm.ini
file.Constructor and Description |
---|
BMPoolActivator()
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IPoolListener hl) |
static void |
cleanup(java.sql.Connection con,
java.sql.Statement st,
java.sql.ResultSet rs) |
Pool |
defaultPool() |
void |
destroy() |
void |
dumpUsed() |
java.lang.String |
dumpUsedAsString() |
int |
getAvailableConnections() |
java.sql.Connection |
getConnection() |
static BMPoolActivator |
getDefault()
Returns the shared instance
|
javax.transaction.UserTransaction |
getUserTransaction() |
int |
lastInsertId(java.sql.Connection con) |
Pool |
newPool(java.lang.String dbType,
java.lang.String login,
java.lang.String password,
java.lang.String dbName,
java.lang.String dbHost,
int poolSize,
java.lang.String schema,
java.lang.String consumer) |
void |
restartDefaultPool() |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
public void restartDefaultPool() throws java.lang.Exception
java.lang.Exception
public Pool newPool(java.lang.String dbType, java.lang.String login, java.lang.String password, java.lang.String dbName, java.lang.String dbHost, int poolSize, java.lang.String schema, java.lang.String consumer) throws java.lang.Exception
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
public static BMPoolActivator getDefault()
public java.sql.Connection getConnection()
public int lastInsertId(java.sql.Connection con) throws java.sql.SQLException
java.sql.SQLException
public javax.transaction.UserTransaction getUserTransaction()
public int getAvailableConnections()
public java.lang.String dumpUsedAsString()
public void dumpUsed()
public static void cleanup(java.sql.Connection con, java.sql.Statement st, java.sql.ResultSet rs)
public Pool defaultPool()
public void addListener(IPoolListener hl)
public void destroy()
Copyright © 2021. All Rights Reserved.