blackboard.cms.workflow
Class WorkflowManager

java.lang.Object
  extended byblackboard.cms.workflow.WorkflowManager

public class WorkflowManager
extends java.lang.Object

The WorkflowManager class provides a representation of a WorkflowManager within the Blackboard application. This object provides load, save and delete methods for managing a single or multiple Workflow objects.

Since:
Bb CS 1.0
Version:
$Revision: $

Constructor Summary
WorkflowManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the Workflow identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the Workflow identified by the Id using supplied connection.
static Workflow loadById(blackboard.persist.Id id)
          Returns a Workflow identified by the given Id using the default connection.
static Workflow loadById(blackboard.persist.Id id, java.sql.Connection con)
          Returns a Workflow identified by the given Id using the supplied connection.
static java.util.List loadByOwnerId(blackboard.persist.Id id)
          Returns a List of Workflow objects identified by the given owner Id using the default connection.
static java.util.List loadByOwnerId(blackboard.persist.Id id, java.sql.Connection con)
          Returns a List of Workflow objects identified by the given owner Id using the supplied connection.
static void save(Workflow workflow)
          Inserts or updates the Workflow using the default connection.
static void save(Workflow workflow, java.sql.Connection con)
          Inserts or updates the Workflow using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowManager

public WorkflowManager()
Method Detail

save

public static void save(Workflow workflow,
                        java.sql.Connection con)
                 throws blackboard.persist.PersistenceException
Inserts or updates the Workflow using the supplied connection.

Parameters:
workflow - a Workflow to be saved.
con - a Connection used to save this Workflow.
Throws:
blackboard.persist.PersistenceException

save

public static void save(Workflow workflow)
                 throws blackboard.persist.PersistenceException
Inserts or updates the Workflow using the default connection.

Parameters:
workflow - a Workflow to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

public static void deleteById(blackboard.persist.Id id)
                       throws blackboard.persist.PersistenceException
Deletes the Workflow identified by the Id using default connection.

Parameters:
id - the Id of the Workflow to be deleted using default connection.
Throws:
blackboard.persist.PersistenceException

deleteById

public static void deleteById(blackboard.persist.Id id,
                              java.sql.Connection con)
                       throws blackboard.persist.PersistenceException
Deletes the Workflow identified by the Id using supplied connection.

Parameters:
id - the Id of the Workflow to be deleted using supplied connection.
con - a Connection to be used.
Throws:
blackboard.persist.PersistenceException

loadById

public static Workflow loadById(blackboard.persist.Id id,
                                java.sql.Connection con)
                         throws blackboard.persist.PersistenceException
Returns a Workflow identified by the given Id using the supplied connection.

Parameters:
id - the Id of the Workflow to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a Workflow that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the Workflow is not found.
Throws:
blackboard.persist.PersistenceException

loadById

public static Workflow loadById(blackboard.persist.Id id)
                         throws blackboard.persist.PersistenceException
Returns a Workflow identified by the given Id using the default connection.

Parameters:
id - the Id of the Workflow to be loaded using the default connection.
Returns:
a Workflow that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the Workflow is not found.
Throws:
blackboard.persist.PersistenceException

loadByOwnerId

public static java.util.List loadByOwnerId(blackboard.persist.Id id,
                                           java.sql.Connection con)
                                    throws blackboard.persist.PersistenceException
Returns a List of Workflow objects identified by the given owner Id using the supplied connection.

Parameters:
id - the owner Id of the Workflow to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a List of Workflow objects that is identified by the given Id.
Throws:
blackboard.persist.PersistenceException

loadByOwnerId

public static java.util.List loadByOwnerId(blackboard.persist.Id id)
                                    throws blackboard.persist.PersistenceException
Returns a List of Workflow objects identified by the given owner Id using the default connection.

Parameters:
id - the owner Id of the Workflow to be loaded using the default connection.
Returns:
a List of Workflow objects that is identified by the given Id.
Throws:
blackboard.persist.PersistenceException


Copyright © 2003-2004 Blackboard, Inc. All Rights Reserved.