|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.sql.SQLPipe
public class SQLPipe
This object represents a pipe of sql elements.
When constructed, such a pipe could become equivalent to applications like Oracle's SqlPlus or any other sql-processing application.
The pipe was employed as as an abstraction in order to allow a greater reusability of building elements (aka. SQLPipeElement).
By aiming at this modularity, one can construct different in its purpose applications with minimum effort.
Usage:
SQLPipe pipe = new SQLPipe();
pipe.add( new SQLElement(...) );
...
pipe.execute( sqlCmd );
created on Dec 15, 2006
Constructor Summary | |
---|---|
SQLPipe()
|
Method Summary | |
---|---|
void |
add(SQLPipeElement elem)
add given sql pipe element to the end of the pipe |
void |
execute(java.lang.String cmd)
execute given sql command by deligating it to the first pipe element |
SQLPipeElement |
get(java.lang.Class provider)
lookup a pipe element represented by given class name look at SQLPipeElement.getId() for explanations on ids |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLPipe()
Method Detail |
---|
public SQLPipeElement get(java.lang.Class provider)
SQLPipeElement.getId()
for explanations on ids
provider
-
public void add(SQLPipeElement elem)
elem
- to add as lastpublic void execute(java.lang.String cmd) throws java.sql.SQLException
cmd
- to execute
java.sql.SQLException
- in case of error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |