org.syrup.sql
Class LoggingFunctions

java.lang.Object
  extended byorg.syrup.sql.Functions
      extended byorg.syrup.sql.LoggingFunctions

public class LoggingFunctions
extends Functions

Utility functions to log Syrup Events using JDBC.

Author:
Robbert van Dalen

Constructor Summary
LoggingFunctions(SQLImpl sqlImpl)
          Constructor for the LoggingFunctions object
 
Method Summary
protected  void log(java.lang.String key, int event, SyrupConnection con)
          Logs important Syrup Events by executing SQL statements over a Connection.
 
Methods inherited from class org.syrup.sql.Functions
sqlImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingFunctions

public LoggingFunctions(SQLImpl sqlImpl)
Constructor for the LoggingFunctions object

Parameters:
sqlImpl - The SQLImpl that is held by the Function instance.
Method Detail

log

protected void log(java.lang.String key,
                   int event,
                   SyrupConnection con)
            throws java.lang.Exception
Logs important Syrup Events by executing SQL statements over a Connection.

Parameters:
key - The PTask the Event relates to.
event - The Syrup Event to be logged.
con - The SyrupConnection over which SQL statements are executed.
Throws:
java.lang.Exception