Synergy Home Page

au.edu.swin.synergy.plugin.syndicate
Class BMySQLPlugin

java.lang.Object
  |
  +--au.edu.swin.synergy.kernel.BPlugin
        |
        +--au.edu.swin.synergy.plugin.syndicate.BMySQLPlugin

public class BMySQLPlugin
extends BPlugin

This class provides connections to MySQL databases for other plugins. To load type: load au.edu.swin.synergy.plugin.syndicate.BMySQLPlugin To use, send a BSQLGetConnectionCE event with the database URL. Since these connections are stored in a hashtable with the URL used as the key, it is important to use the same URL to access a given database. URLs shouldn't contain the JDBC protocol (jdbc:mysql://) as this is appended automatically.


Fields inherited from class au.edu.swin.synergy.kernel.BPlugin
kernel
 
Constructor Summary
BMySQLPlugin()
          Creates a new BMySQLPlugin object.
 
Method Summary
 void onBCommandEvent(Object sender, BCommandEvent event)
          This method receives events from the kernel.
 void setup(BStringList params)
          This method is called when the kernel is loading the plugins
 
Methods inherited from class au.edu.swin.synergy.kernel.BPlugin
dispatchEvent, dispatchEventAndWait, dispatchEventServer, dispatchEventServerAndWait, dispatchEventTo, dispatchEventToAndWait, getDependancies, getKernel, setKernel, setup, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BMySQLPlugin

public BMySQLPlugin()
Creates a new BMySQLPlugin object.
Method Detail

setup

public void setup(BStringList params)
This method is called when the kernel is loading the plugins
Overrides:
setup in class BPlugin

onBCommandEvent

public void onBCommandEvent(Object sender,
                            BCommandEvent event)
This method receives events from the kernel.
Parameters:
sender - The object that generated the event.
event - The event itself.
Overrides:
onBCommandEvent in class BPlugin

Synergy Home Page