net.sf.fikin.sql.core
Class Echo

java.lang.Object
  extended by net.sf.fikin.sql.SQLPipeElement
      extended by net.sf.fikin.sql.core.AbstractOutput
          extended by net.sf.fikin.sql.core.AbstractEnabledOutput
              extended by net.sf.fikin.sql.core.Echo

public class Echo
extends AbstractEnabledOutput

Echo the current sql command to the given print stream prior to execution.

created on Dec 16, 2006

Since:
Version:
$Revision: 1.4 $
Author:
fiykov

Constructor Summary
Echo(java.io.PrintStream out)
          create an element by default echoing all sql commands
Echo(java.io.PrintStream out, boolean echoOn)
          create an echoing sql commands pipe element
Echo(java.io.PrintWriter out)
          create an element by default echoing all sql commands
Echo(java.io.PrintWriter out, boolean echoOn)
          create an echoing sql commands pipe element
 
Method Summary
 void execute(java.lang.String cmd)
          echo the sql command prior to execution
 
Methods inherited from class net.sf.fikin.sql.core.AbstractEnabledOutput
getBaseClassName, getOutOn, setOutOn
 
Methods inherited from class net.sf.fikin.sql.core.AbstractOutput
getOut, setOut, setOut, setOut, setOut, setOutFileName
 
Methods inherited from class net.sf.fikin.sql.SQLPipeElement
getId, getNext, getPipe, setNext, setPipe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Echo

public Echo(java.io.PrintWriter out)
create an element by default echoing all sql commands


Echo

public Echo(java.io.PrintStream out)
create an element by default echoing all sql commands


Echo

public Echo(java.io.PrintStream out,
            boolean echoOn)
create an echoing sql commands pipe element


Echo

public Echo(java.io.PrintWriter out,
            boolean echoOn)
create an echoing sql commands pipe element

Method Detail

execute

public void execute(java.lang.String cmd)
             throws java.sql.SQLException
echo the sql command prior to execution

Specified by:
execute in class SQLPipeElement
Parameters:
cmd - to execute
Throws:
java.sql.SQLException - in case of error


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.