blackboard.cms.workflow
Class WorkflowTypeManager

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

public class WorkflowTypeManager
extends java.lang.Object

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

Since:
Bb CS 1.0
Version:
$Revision: $

Constructor Summary
WorkflowTypeManager()
           
 
Method Summary
static WorkflowType loadById(blackboard.persist.Id id)
          Returns a WorkflowType identified by the given Id using the default connection.
static WorkflowType loadById(blackboard.persist.Id id, java.sql.Connection con)
          Returns a WorkflowType identified by the given Id using the supplied connection.
static WorkflowType loadByWorkflowType(java.lang.String type)
          Returns a WorkflowType identified by the given type using the default connection.
static WorkflowType loadByWorkflowType(java.lang.String type, java.sql.Connection con)
          Returns a WorkflowType identified by the given type using the supplied connection.
static WorkflowStatus loadStatusById(blackboard.persist.Id id)
          Returns a WorkflowStatus identified by the given id.
static WorkflowStatus loadStatusById(blackboard.persist.Id id, java.sql.Connection con)
          Returns a WorkflowStatus identified by the given id using the supplied connection.
static java.util.List loadStatusByWorkflowType(java.lang.String type)
          Returns a List of WorkflowStatus objects.
static java.util.List loadStatusByWorkflowType(java.lang.String type, java.sql.Connection con)
          Returns a List of WorkflowStatus objects using the supplied connection.
static java.util.List loadWorkflowStatus()
          Returns a List of WorkflowStatus objects using the default connection.
static java.util.List loadWorkflowStatus(java.sql.Connection con)
          Returns a List of WorkflowStatus objects using the supplied connection.
static java.util.List loadWorkflowTypes()
          Returns a List of WorkflowFileType objects using the default connection.
static java.util.List loadWorkflowTypes(java.sql.Connection con)
          Returns a List of WorkflowFileType objects using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowTypeManager

public WorkflowTypeManager()
Method Detail

loadById

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

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

loadById

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

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

loadByWorkflowType

public static WorkflowType loadByWorkflowType(java.lang.String type,
                                              java.sql.Connection con)
                                       throws blackboard.persist.PersistenceException
Returns a WorkflowType identified by the given type using the supplied connection.

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

loadByWorkflowType

public static WorkflowType loadByWorkflowType(java.lang.String type)
                                       throws blackboard.persist.PersistenceException
Returns a WorkflowType identified by the given type using the default connection.

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

loadWorkflowTypes

public static java.util.List loadWorkflowTypes(java.sql.Connection con)
                                        throws blackboard.persist.PersistenceException
Returns a List of WorkflowFileType objects using the supplied connection.

Parameters:
con - a Connection to be used.
Returns:
a List of WorkflowFileType objects.
Throws:
blackboard.persist.PersistenceException

loadWorkflowTypes

public static java.util.List loadWorkflowTypes()
                                        throws blackboard.persist.PersistenceException
Returns a List of WorkflowFileType objects using the default connection.

Returns:
a List of WorkflowFileType objects.
Throws:
blackboard.persist.PersistenceException

loadStatusById

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

Parameters:
con - a Connection to be used.
Returns:
a WorkflowStatus object that is identified by the given id. Returns null (instead of KeyNotFoundException) if the WorkflowStatus is not found.
Throws:
blackboard.persist.PersistenceException

loadStatusById

public static WorkflowStatus loadStatusById(blackboard.persist.Id id)
                                     throws blackboard.persist.PersistenceException
Returns a WorkflowStatus identified by the given id.

Returns:
a WorkflowStatus object that is identified by the given id. Returns null (instead of KeyNotFoundException) if the WorkflowStatus is not found.
Throws:
blackboard.persist.PersistenceException

loadStatusByWorkflowType

public static java.util.List loadStatusByWorkflowType(java.lang.String type,
                                                      java.sql.Connection con)
                                               throws blackboard.persist.PersistenceException
Returns a List of WorkflowStatus objects using the supplied connection.

Parameters:
type - the id of the WorkflowStatus to be loaded .
con - a Connection to be used.
Returns:
a List of WorkflowStatus objects.
Throws:
blackboard.persist.PersistenceException

loadStatusByWorkflowType

public static java.util.List loadStatusByWorkflowType(java.lang.String type)
                                               throws blackboard.persist.PersistenceException
Returns a List of WorkflowStatus objects.

Parameters:
type - the id of the WorkflowStatus to be loaded .
Returns:
a List of WorkflowStatus objects.
Throws:
blackboard.persist.PersistenceException

loadWorkflowStatus

public static java.util.List loadWorkflowStatus(java.sql.Connection con)
                                         throws blackboard.persist.PersistenceException
Returns a List of WorkflowStatus objects using the supplied connection.

Parameters:
con - a Connection to be used.
Returns:
a List of WorkflowStatus objects.
Throws:
blackboard.persist.PersistenceException

loadWorkflowStatus

public static java.util.List loadWorkflowStatus()
                                         throws blackboard.persist.PersistenceException
Returns a List of WorkflowStatus objects using the default connection.

Returns:
a List of WorkflowStatus objects.
Throws:
blackboard.persist.PersistenceException


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