net.sf.fikin.sql.core
Class AbstractEnabledOutput

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
Direct Known Subclasses:
Echo, ShowWarnings

public abstract class AbstractEnabledOutput
extends AbstractOutput

A pipe element with is having output but one can set it on/off.

It provides with setter and getter methods for the boolean switning on-off.

created on Dec 16, 2006

Since:
Version:
$Revision: 1.3 $
Author:
fiykov

Constructor Summary
AbstractEnabledOutput(java.io.PrintStream out)
          create an element with default outputing set ot on
AbstractEnabledOutput(java.io.PrintStream out, boolean setOutOn)
          create an outputing pipe element
AbstractEnabledOutput(java.io.PrintWriter out)
          create an element with default outputing set ot on
AbstractEnabledOutput(java.io.PrintWriter out, boolean setOutOn)
          create an outputing pipe element
 
Method Summary
protected  java.lang.String getBaseClassName()
          set the base classname to this class
 boolean getOutOn()
          is outputing on
 void setOutOn(boolean setOn)
          set outputing on/off
 
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
execute, 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

AbstractEnabledOutput

public AbstractEnabledOutput(java.io.PrintWriter out)
create an element with default outputing set ot on


AbstractEnabledOutput

public AbstractEnabledOutput(java.io.PrintStream out)
create an element with default outputing set ot on


AbstractEnabledOutput

public AbstractEnabledOutput(java.io.PrintStream out,
                             boolean setOutOn)
create an outputing pipe element


AbstractEnabledOutput

public AbstractEnabledOutput(java.io.PrintWriter out,
                             boolean setOutOn)
create an outputing pipe element

Method Detail

getOutOn

public boolean getOutOn()
is outputing on

Returns:
true if echo is on

setOutOn

public void setOutOn(boolean setOn)
set outputing on/off

Parameters:
setOn -

getBaseClassName

protected java.lang.String getBaseClassName()
set the base classname to this class

Overrides:
getBaseClassName in class AbstractOutput
Returns:
this class name


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