blackboard.cms.workflow
Class WorkflowCommentManager

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

public class WorkflowCommentManager
extends java.lang.Object

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

Since:
Bb CS 1.0
Version:
$Revision: $

Constructor Summary
WorkflowCommentManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the WorkflowComment identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the WorkflowComment identified by the Id using supplied connection.
static void deleteByWorkflowId(blackboard.persist.Id id)
          Deletes the WorkflowComment identified by the worflow Id using default connection.
static void deleteByWorkflowId(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the WorkflowComment identified by the workflow Id using supplied connection.
static WorkflowComment loadById(blackboard.persist.Id id)
          Returns a WorkflowComment identified by the given Id using the default connection.
static WorkflowComment loadById(blackboard.persist.Id id, java.sql.Connection con)
          Returns a WorkflowComment identified by the given Id using the supplied connection.
static java.util.List loadByWorkflowId(blackboard.persist.Id id)
          Returns a List of WorkflowComment 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 WorkflowComment objects identified by the given workflow Id using the supplied connection.
static void save(WorkflowComment wfComment)
          Inserts or updates the WorkflowComment using the default connection.
static void save(WorkflowComment wfComment, java.sql.Connection con)
          Inserts or updates the WorkflowComment using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowCommentManager

public WorkflowCommentManager()
Method Detail

save

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

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

save

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

Parameters:
wfComment - a WorkflowComment to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

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

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

Parameters:
id - the Id of the WorkflowComment 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 WorkflowComment identified by the worflow Id using default connection.

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

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

loadById

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

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

loadById

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

Parameters:
id - the Id of the WorkflowComment to be loaded using the default connection.
Returns:
a WorkflowComment that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the WorkflowComment 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 WorkflowComment objects identified by the given workflow Id using the supplied connection.

Parameters:
id - the workflow Id of the WorkflowComment to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a List of WorkflowComment 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 WorkflowComment objects identified by the given workflow Id using the default connection.

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


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