|
||||||||||
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.ExecutionTiming
public class ExecutionTiming
Meassure the time in ms to execute given sql command
Typically this element must be positioned right before ExecuteSql
element in order to represent most objective timing.
created on Dec 15, 2006
Constructor Summary | |
---|---|
ExecutionTiming()
|
Method Summary | |
---|---|
void |
execute(java.lang.String cmd)
take a measurement how long it will take to next pipe element to execute the sql command |
long |
getDurationMs()
return meassured time in ms it is not valid in case there was SQLException throws it is not valid in case it is read from pipe elements, placed "next" to this one i.e. |
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 ExecutionTiming()
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 long getDurationMs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |