| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.syrup.sql.Functions
org.syrup.sql.GenericFunctions
Utility to implement generic WorkSpace functions using JDBC.
| Constructor Summary | |
GenericFunctions(SQLImpl sqlImpl)
Constructor for the GenericFunctions object  | 
|
| Method Summary | |
 void | 
close(java.sql.ResultSet result)
Utility method that resets the ResultSet.  | 
 void | 
close(SyrupConnection con)
Utility method that closes the Connection.  | 
 Data | 
get_out_1(SyrupConnection con)
Returns the first output by executing SQL statements over a Connection..  | 
 Data | 
get_out_2(SyrupConnection con)
Returns the second output by executing SQL statements over a Connection..  | 
 Context[] | 
get(PTaskTemplate t,
    SyrupConnection con)
Get the Contexts of PTasks that match the PTaskTemplate.  | 
 LogEntry[] | 
match(LogEntryTemplate template,
      SyrupConnection con)
Get LogEntries matching the LogEntryTemplate.  | 
 PTask[] | 
match(PTaskTemplate template,
      SyrupConnection con)
Get PTasks matching the PTaskTemplate.  | 
 void | 
reset(SyrupConnection con)
Resets the WorkSpace to the initial state.  | 
 void | 
set_in_1(Data data,
         SyrupConnection con)
Sets the first input by executing SQL statements over a Connection..  | 
 void | 
set_in_2(Data data,
         SyrupConnection con)
Sets the second input by executing SQL statements over a Connection..  | 
 PTask | 
stop(PTask task,
     SyrupConnection con)
Stop non-progressing executions of a PTask.  | 
| Methods inherited from class org.syrup.sql.Functions | 
sqlImpl | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public GenericFunctions(SQLImpl sqlImpl)
sqlImpl - The SQLImpl that is held by the Function instance.| Method Detail | 
public void set_in_1(Data data,
                     SyrupConnection con)
              throws java.lang.Exception
data - The Data that is set on the first input.con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public void set_in_2(Data data,
                     SyrupConnection con)
              throws java.lang.Exception
data - The Data that is set on the second input.con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public Data get_out_1(SyrupConnection con)
               throws java.lang.Exception
con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public Data get_out_2(SyrupConnection con)
               throws java.lang.Exception
con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public PTask[] match(PTaskTemplate template,
                     SyrupConnection con)
              throws java.lang.Exception
template - The PTaskTemplate to be matched.con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public LogEntry[] match(LogEntryTemplate template,
                        SyrupConnection con)
                 throws java.lang.Exception
template - The LogEntryTemplate to be matched.con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public Context[] get(PTaskTemplate t,
                     SyrupConnection con)
              throws java.lang.Exception
t - The PTaskTemplate to be matched.con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public void reset(SyrupConnection con)
           throws java.lang.Exception
con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public PTask stop(PTask task,
                  SyrupConnection con)
           throws java.lang.Exception
task - The PTask to be stopped.con - The SyrupConnection over which SQL statements are executed
java.lang.Exception
public final void close(SyrupConnection con)
                 throws java.lang.Exception
con - The SyrupConnection to be closed.
java.lang.Exception
public final void close(java.sql.ResultSet result)
                 throws java.lang.Exception
result - The ResultSet to be resetted.
java.lang.Exception
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||