henplus
Class EchoCommandProperty

java.lang.Object
  extended by henplus.property.PropertyHolder
      extended by henplus.property.EnumeratedPropertyHolder
          extended by henplus.property.BooleanPropertyHolder
              extended by henplus.EchoCommandProperty
All Implemented Interfaces:
ExecutionListener, EventListener

public final class EchoCommandProperty
extends BooleanPropertyHolder
implements ExecutionListener

The Property echo-commands that simply registers itself at the command dispatcher to echo the commands it is executing.


Field Summary
 
Fields inherited from class henplus.property.PropertyHolder
_propertyValue
 
Constructor Summary
EchoCommandProperty(CommandDispatcher disp)
           
 
Method Summary
 void afterExecution(SQLSession session, String command, int result)
          called after a command is executed.
 void beforeExecution(SQLSession session, String command)
          called before an command is to be executed.
 void booleanPropertyChanged(boolean echoCommands)
          to be overridden to get informed of the boolean change.
 String getDefaultValue()
           
 String getShortDescription()
          return a short string describing the purpose of this property Should contain no newline, no leading spaces and should not be longer than 40 characters.
 
Methods inherited from class henplus.property.BooleanPropertyHolder
enumeratedPropertyChanged
 
Methods inherited from class henplus.property.EnumeratedPropertyHolder
completeValue, propertyChanged
 
Methods inherited from class henplus.property.PropertyHolder
getLongDescription, getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoCommandProperty

public EchoCommandProperty(CommandDispatcher disp)
Method Detail

getDefaultValue

public String getDefaultValue()
Specified by:
getDefaultValue in class PropertyHolder

booleanPropertyChanged

public void booleanPropertyChanged(boolean echoCommands)
Description copied from class: BooleanPropertyHolder
to be overridden to get informed of the boolean change. Throw an Exception if this change is not possible.

Specified by:
booleanPropertyChanged in class BooleanPropertyHolder

getShortDescription

public String getShortDescription()
Description copied from class: PropertyHolder
return a short string describing the purpose of this property Should contain no newline, no leading spaces and should not be longer than 40 characters.

Overrides:
getShortDescription in class PropertyHolder

beforeExecution

public void beforeExecution(SQLSession session,
                            String command)
Description copied from interface: ExecutionListener
called before an command is to be executed.

Specified by:
beforeExecution in interface ExecutionListener

afterExecution

public void afterExecution(SQLSession session,
                           String command,
                           int result)
Description copied from interface: ExecutionListener
called after a command is executed.

Specified by:
afterExecution in interface ExecutionListener


? 1997..2006 Henner Zeller