| 
|||||||||||
| 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.CreationFunctions
Utility functions to create Syrup Objects using JDBC.
| Constructor Summary | |
CreationFunctions(SQLImpl sqlImpl)
Constructor for the CreationFunctions object  | 
|
| Method Summary | |
 void | 
createTables(SyrupConnection con)
Creates an initial Workspace by executing SQL statements over a Connection.  | 
protected  void | 
newLink(Link l,
        java.util.Hashtable map,
        SyrupConnection con)
Creates a new Link by executing SQL statements over a Connection.  | 
protected  java.lang.String | 
newTask(Task t,
        PTask parent,
        SyrupConnection con)
Creates a new Task by executing SQL statements over a Connection.  | 
 void | 
reset(SyrupConnection con)
Empties the Workspace by executing SQL statements over a Connection.  | 
| 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 CreationFunctions(SQLImpl sqlImpl)
sqlImpl - The SQLImpl that is held by the Function instance.| Method Detail | 
protected java.lang.String newTask(Task t,
                                   PTask parent,
                                   SyrupConnection con)
                            throws java.lang.Exception
t - The new Task to be created.parent - The PTask that is the parent of the Task to be createdcon - The SyrupConnection over which SQL statements are executed.
java.lang.Exception
protected void newLink(Link l,
                       java.util.Hashtable map,
                       SyrupConnection con)
                throws java.lang.Exception
l - The new Link to be created.map - The Map that holds [Task -> Task-key].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 void createTables(SyrupConnection con)
                  throws java.lang.Exception
con - The SyrupConnection over which SQL statements are executed.
java.lang.Exception
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||