| java.lang.Object org.griphyn.vdl.dbschema.DatabaseSchema org.griphyn.vdl.dbschema.WorkflowSchema
WorkflowSchema | public class WorkflowSchema extends DatabaseSchema implements WF(Code) | | This class provides basic functionalities to interact with the
backend database for workflow records. Currently, only searches
that fill the workflow class are implemented.
author: Jens-S. Vöckler author: Mike Wilde version: $Revision: 50 $ |
Constructor Summary | |
public | WorkflowSchema(String dbDriverName) Default constructor for access to the WF set of tables. |
convertResultSet | protected WorkEntry convertResultSet(ResultSet rs, boolean withJobs) throws SQLException(Code) | | Converts the output of a result set into a workflow
Parameters: rs - is the result set of a query, which is better valid. Parameters: withJobs - if true, also add the jobs, if false, no jobs. a workflow instance created from the result set. |
fromStamp | protected java.util.Date fromStamp(java.sql.Timestamp date)(Code) | | Converts a SQL timestamp into a regular datum.
Parameters: date - is SQL timestamp from the database a regular Java date |
getWorkflow | public WorkEntry getWorkflow(String basedir, String vogroup, String label, String run) throws SQLException(Code) | | Load a single workflow from the backend database into a Java
object. The identification is based on the secondary key quadruple.
Parameters: basedir - is the base directory Parameters: vogroup - is the VO group identifier Parameters: label - is the workflow label Parameters: run - is the workflow run directory the Workflow that was matched by the id, which may be null |
getWorkflows | public java.util.Map getWorkflows(java.util.Date mtime) throws SQLException(Code) | | Loads all workflows that are fresh enough and returns a map of
workflows matching. The list is indexed by the primary key of
the WF table, which is the unique workflow id.
Parameters: mtime - is the oldest last modification time. Usenull for all. a map of workflows, indexed by their workflow id. |
toStamp | protected java.sql.Timestamp toStamp(java.util.Date date)(Code) | | Converts a regular datum into an SQL timestamp.
Parameters: date - is a regular Java date a SQL timestamp obtained from the Date. |
Methods inherited from org.griphyn.vdl.dbschema.DatabaseSchema | public boolean cachingMakesSense()(Code)(Java Doc) public void close() throws SQLException(Code)(Java Doc) protected void finalize() throws Throwable(Code)(Java Doc) public static DatabaseSchema loadSchema(String dbSchemaName, String propertyPrefix, Object[] arguments) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) public static DatabaseSchema loadSchema(String propertyPrefix) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)(Java Doc) protected void longOrNull(PreparedStatement ps, int pos, long l) throws SQLException(Code)(Java Doc) protected String makeNotNull(String s)(Code)(Java Doc) protected void stringOrNull(PreparedStatement ps, int pos, String s) throws SQLException(Code)(Java Doc)
|
|
|