|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.sql.SQLPipeElement net.sf.fikin.sql.core.JdbcStatement
public class JdbcStatement
Represetn a JDBC Statement as a pipe element
Typicaly it is placed after JdbcConnection
(as it requires it)
so that all consequent pipe elements can use it to sumit the sql command
to the database
created on Dec 15, 2006
Constructor Summary | |
---|---|
JdbcStatement()
|
Method Summary | |
---|---|
void |
execute(java.lang.String cmd)
instantiate a new jdbc statment if getStatement() is null
and then pass the sql command to the next pipe element |
java.sql.Statement |
getStatement()
get the jdbc statement |
void |
setStatement(java.sql.Statement stmt)
assign the jdbc statement to be used |
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 |
---|
public JdbcStatement()
Method Detail |
---|
public void execute(java.lang.String cmd) throws java.sql.SQLException
getStatement()
is null
and then pass the sql command to the next pipe element
execute
in class SQLPipeElement
cmd
- to execute
java.sql.SQLException
- in case of errorpublic java.sql.Statement getStatement()
public void setStatement(java.sql.Statement stmt)
stmt
- to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |