net.sf.fikin.sql.core
Class ExecuteSql

java.lang.Object
  extended by net.sf.fikin.sql.SQLPipeElement
      extended by net.sf.fikin.sql.core.ExecuteSql

public class ExecuteSql
extends SQLPipeElement

Execute the given sql command

Uses JdbcStatement to obtain a valid JDBC Statement object and calls it execute(sql) method.

Typically this is the last pipe element in the pipe as it acutally executes the sql command and there is usualy nothing more to be done after it.

created on Dec 15, 2006

Since:
Version:
$Revision: 1.5 $
Author:
fiykov

Constructor Summary
ExecuteSql()
           
 
Method Summary
 void execute(java.lang.String cmd)
          execute the sql command via JdbcStatement.getStatement()
 
Methods inherited from class net.sf.fikin.sql.SQLPipeElement
getBaseClassName, 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

ExecuteSql

public ExecuteSql()
Method Detail

execute

public void execute(java.lang.String cmd)
             throws java.sql.SQLException
execute the sql command via JdbcStatement.getStatement()

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.