net.sourceforge.addam.ddlrun.custom
Class IDSRunLogger

java.lang.Object
  extended by net.sourceforge.addam.ddlrun.custom.IDSRunLogger
All Implemented Interfaces:
RunLogger

public class IDSRunLogger
extends Object
implements RunLogger

Logs events into a script table and updates the start point based on the group resource in another table. The statements must include

Since:
Mar 6, 2005
Author:
TIM3

Field Summary
private  Connection connection
           
private  String dbversion
           
static String INSERT_SCRIPT_LOG
           
private  PreparedStatement insertScriptLogStatement
           
static String UNDEFINE_VERSION
           
private  PreparedStatement undefineVersionStatement
           
static String UPDATE_VERSION
           
private  PreparedStatement updateVersionStatement
           
 
Constructor Summary
IDSRunLogger(Connection connection, String version)
          constructs a IDSRunLogger
 
Method Summary
 void logRunComplete(String group, long time)
           
 void logRunFailure(String group, String script, Exception e)
           
 void logRunScript(String script, long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSERT_SCRIPT_LOG

public static final String INSERT_SCRIPT_LOG
See Also:
Constant Field Values

UPDATE_VERSION

public static final String UPDATE_VERSION
See Also:
Constant Field Values

UNDEFINE_VERSION

public static final String UNDEFINE_VERSION
See Also:
Constant Field Values

undefineVersionStatement

private PreparedStatement undefineVersionStatement

insertScriptLogStatement

private PreparedStatement insertScriptLogStatement

updateVersionStatement

private PreparedStatement updateVersionStatement

connection

private final Connection connection

dbversion

private final String dbversion
Constructor Detail

IDSRunLogger

public IDSRunLogger(Connection connection,
                    String version)
constructs a IDSRunLogger

Method Detail

logRunScript

public void logRunScript(String script,
                         long time)
                  throws SQLException
Specified by:
logRunScript in interface RunLogger
Throws:
SQLException

logRunComplete

public void logRunComplete(String group,
                           long time)
                    throws Exception
Specified by:
logRunComplete in interface RunLogger
Throws:
Exception

logRunFailure

public void logRunFailure(String group,
                          String script,
                          Exception e)
Specified by:
logRunFailure in interface RunLogger


Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.