blackboard.cms.workflow
Class WorkflowAssignmentManager

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

public class WorkflowAssignmentManager
extends java.lang.Object

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

Since:
Bb CS 1.0
Version:
$Revision: $

Constructor Summary
WorkflowAssignmentManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the WorkflowAssignment identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the WorkflowAssignment identified by the Id using supplied connection.
static void deleteByWorkflowId(blackboard.persist.Id id)
          Deletes the WorkflowAssignment identified by the worflow Id using default connection.
static void deleteByWorkflowId(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the WorkflowAssignment identified by the workflow Id using supplied connection.
static WorkflowAssignment loadById(blackboard.persist.Id id)
          Returns a WorkflowAssignment identified by the given Id using the default connection.
static WorkflowAssignment loadById(blackboard.persist.Id id, java.sql.Connection con)
          Returns a WorkflowAssignment identified by the given Id using the supplied connection.
static java.util.List loadByUserId(blackboard.persist.Id id)
          Returns a List of WorkflowAssignment objects identified by the given user Id using the default connection.
static java.util.List loadByUserId(blackboard.persist.Id id, boolean includeDeleted)
          Returns a List of WorkflowAssignment objects identified by the given user Id using the default connection.
static java.util.List loadByUserId(blackboard.persist.Id id, boolean includeDeleted, java.sql.Connection con)
          Returns a List of WorkflowAssignment objects identified by the given user Id using the supplied connection.
static java.util.List loadByWorkflowId(blackboard.persist.Id id)
          Returns a List of WorkflowAssignment objects identified by the given workflow Id using the default connection.
static java.util.List loadByWorkflowId(blackboard.persist.Id id, java.sql.Connection con)
          Returns a List of WorkflowAssignment objects identified by the given workflow Id using the supplied connection.
static WorkflowAssignment loadByWorkflowIdAndUserId(blackboard.persist.Id workflowId, blackboard.persist.Id userId)
          Returns a WorkflowAssignment identified by the given workflow Id and user Id using the default connection.
static WorkflowAssignment loadByWorkflowIdAndUserId(blackboard.persist.Id workflowId, blackboard.persist.Id userId, java.sql.Connection con)
          Returns a WorkflowAssignment identified by the given workflow Id and user Id using the supplied connection.
static void save(WorkflowAssignment workflowFile)
          Inserts or updates the WorkflowAssignment using the default connection.
static void save(WorkflowAssignment workflowFile, java.sql.Connection con)
          Inserts or updates the WorkflowAssignment using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowAssignmentManager

public WorkflowAssignmentManager()
Method Detail

save

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

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

save

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

Parameters:
workflowFile - a WorkflowAssignment to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

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

Parameters:
id - the Id of the WorkflowAssignment 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 WorkflowAssignment identified by the Id using supplied connection.

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

deleteByWorkflowId

public static void deleteByWorkflowId(blackboard.persist.Id id)
                               throws blackboard.persist.PersistenceException
Deletes the WorkflowAssignment identified by the worflow Id using default connection.

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

deleteByWorkflowId

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

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

loadById

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

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

loadById

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

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

loadByWorkflowIdAndUserId

public static WorkflowAssignment loadByWorkflowIdAndUserId(blackboard.persist.Id workflowId,
                                                           blackboard.persist.Id userId,
                                                           java.sql.Connection con)
                                                    throws blackboard.persist.PersistenceException
Returns a WorkflowAssignment identified by the given workflow Id and user Id using the supplied connection.

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

loadByWorkflowIdAndUserId

public static WorkflowAssignment loadByWorkflowIdAndUserId(blackboard.persist.Id workflowId,
                                                           blackboard.persist.Id userId)
                                                    throws blackboard.persist.PersistenceException
Returns a WorkflowAssignment identified by the given workflow Id and user Id using the default connection.

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

loadByWorkflowId

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

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

loadByWorkflowId

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

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

loadByUserId

public static java.util.List loadByUserId(blackboard.persist.Id id,
                                          boolean includeDeleted,
                                          java.sql.Connection con)
                                   throws blackboard.persist.PersistenceException
Returns a List of WorkflowAssignment objects identified by the given user Id using the supplied connection.

Parameters:
id - the user Id of the WorkflowAssignment to be loaded using the supplied connection.
includeDeleted - true if the load should include WorkflowAssignment that have been deleted, false otherwise.
con - a Connection to be used.
Returns:
a List of WorkflowAssignment objects that is identified by the given user Id.
Throws:
blackboard.persist.PersistenceException

loadByUserId

public static java.util.List loadByUserId(blackboard.persist.Id id,
                                          boolean includeDeleted)
                                   throws blackboard.persist.PersistenceException
Returns a List of WorkflowAssignment objects identified by the given user Id using the default connection.

Parameters:
id - the user Id of the WorkflowAssignment to be loaded using the default connection.
includeDeleted - true if the load should include WorkflowAssignment that have been deleted, false otherwise.
Returns:
a List of WorkflowAssignment objects that is identified by the given user Id.
Throws:
blackboard.persist.PersistenceException

loadByUserId

public static java.util.List loadByUserId(blackboard.persist.Id id)
                                   throws blackboard.persist.PersistenceException
Returns a List of WorkflowAssignment objects identified by the given user Id using the default connection. Deleted records are excluded.

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


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