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, toStringpublic void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.core.runtime.Pluginjava.lang.Exceptionpublic void restartDefaultPool()
                        throws java.lang.Exception
java.lang.Exceptionpublic 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.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.core.runtime.Pluginjava.lang.Exceptionpublic static BMPoolActivator getDefault()
public java.sql.Connection getConnection()
public int lastInsertId(java.sql.Connection con)
                 throws java.sql.SQLException
java.sql.SQLExceptionpublic 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.