blackboard.cms.portfolio
Class PortfolioCommentManager

java.lang.Object
  extended by blackboard.cms.portfolio.PortfolioCommentManager

public class PortfolioCommentManager
extends java.lang.Object

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

Since:
Bb CS 1.0

Constructor Summary
PortfolioCommentManager()
           
 
Method Summary
static void deleteById(Id id)
          Deletes the PortfolioComment identified by the Id using default connection.
static void deleteById(Id id, java.sql.Connection con)
          Deletes the PortfolioComment identified by the Id using the supplied connection.
static void deleteByPortfolioId(Id id)
          Deletes the PortfolioComment identified by the portfolio Id using default connection.
static void deleteByPortfolioId(Id id, java.sql.Connection con)
          Deletes the PortfolioComment identified by the portfolio Id using supplied connection.
static PortfolioComment loadById(Id id)
          Loads a PortfolioComment identified by the given Id using the default connection.
static PortfolioComment loadById(Id id, java.sql.Connection con)
          Loads a PortfolioComment identified by the given Id using the supplied connection.
static java.util.List<PortfolioComment> loadByPortfolioId(Id id)
          Loads a PortfolioComment identified by the given the key using the default connection.
static java.util.List<PortfolioComment> loadByPortfolioId(Id id, java.sql.Connection con)
          Loads a PortfolioComment identified by the given the key using the supplied connection.
static void save(PortfolioComment pc)
          Inserts or updates the PortfolioComment using the default connection.
static void save(PortfolioComment pc, java.sql.Connection con)
          Inserts or updates the PortfolioComment using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortfolioCommentManager

public PortfolioCommentManager()
Method Detail

save

public static void save(PortfolioComment pc,
                        java.sql.Connection con)
                 throws PersistenceException
Inserts or updates the PortfolioComment using the supplied connection.

Parameters:
pc - a PortfolioComment to be saved.
con - a Connection to be used to save this PortfolioComment.
Throws:
PersistenceException

save

public static void save(PortfolioComment pc)
                 throws PersistenceException
Inserts or updates the PortfolioComment using the default connection.

Parameters:
pc - a PortfolioComment to be saved.
Throws:
PersistenceException

deleteById

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

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

deleteById

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

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

deleteByPortfolioId

public static void deleteByPortfolioId(Id id)
                                throws PersistenceException
Deletes the PortfolioComment identified by the portfolio Id using default connection.

Parameters:
id - the portfolio Id of the PortfolioComment to be deleted using default connection.
Throws:
PersistenceException

deleteByPortfolioId

public static void deleteByPortfolioId(Id id,
                                       java.sql.Connection con)
                                throws PersistenceException
Deletes the PortfolioComment identified by the portfolio Id using supplied connection.

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

loadById

public static PortfolioComment loadById(Id id,
                                        java.sql.Connection con)
                                 throws PersistenceException
Loads a PortfolioComment identified by the given Id using the supplied connection.

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

loadById

public static PortfolioComment loadById(Id id)
                                 throws PersistenceException
Loads a PortfolioComment identified by the given Id using the default connection.

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

loadByPortfolioId

public static java.util.List<PortfolioComment> loadByPortfolioId(Id id,
                                                                 java.sql.Connection con)
                                                          throws PersistenceException
Loads a PortfolioComment identified by the given the key using the supplied connection.

Parameters:
id - the portfolio Id of the PortfolioComment to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a List of PortfolioComment items that is identified by the given Id.
Throws:
PersistenceException

loadByPortfolioId

public static java.util.List<PortfolioComment> loadByPortfolioId(Id id)
                                                          throws PersistenceException
Loads a PortfolioComment identified by the given the key using the default connection.

Parameters:
id - the portfolio Id of the PortfolioComment to be loaded using the default connection.
Returns:
a List of PortfolioComment items that is identified by the given Id.
Throws:
PersistenceException


Copyright © 2012 Blackboard, Inc. All Rights Reserved.