|
||||||||||
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.JdbcConnection
public class JdbcConnection
Represent a JDBC Connection object as a pipe element
Typically it is placed in pipe immediately after an sql command has been formed so all consequent pipe elements can use it for performing actual operations with the database
created on Dec 15, 2006
Constructor Summary | |
---|---|
JdbcConnection(java.sql.Connection con)
Instantiate the pipe element with the given connection |
Method Summary | |
---|---|
void |
execute(java.lang.String cmd)
pass the commnad to the next pipe element |
java.sql.Connection |
getConnection()
get the jdbc connection |
void |
setConnection(java.sql.Connection con)
set the jdbc connection |
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 JdbcConnection(java.sql.Connection con)
con
- Method Detail |
---|
public void execute(java.lang.String cmd) throws java.sql.SQLException
execute
in class SQLPipeElement
cmd
- to execute
java.sql.SQLException
- in case of errorpublic void setConnection(java.sql.Connection con)
con
- to setpublic java.sql.Connection getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |