blackboard.cms.portfolio
Class PortfolioItemManager

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

public class PortfolioItemManager
extends java.lang.Object

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

Since:
Bb CS 1.0
Version:
$Revision: #1 $

Constructor Summary
PortfolioItemManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the PortfolioItem identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the PortfolioItem identified by the Id using supplied connection.
static void deleteByPortfolioId(blackboard.persist.Id id)
          Deletes the PortfolioItem identified by the portfolio Id using default connection.
static void deleteByPortfolioId(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the PortfolioItem identified by the portfolioId using supplied connection.
static PortfolioItem loadById(blackboard.persist.Id id)
          Loads a PortfolioItem identified by the given Id using the default connection.
static PortfolioItem loadById(blackboard.persist.Id id, java.sql.Connection con)
          Loads a PortfolioItem identified by the given Id using the supplied connection.
static java.util.List loadByPortfolioId(blackboard.persist.Id id)
          Loads a List of PortfolioItem items identified by the given portfolio Id using the default connection.
static java.util.List loadByPortfolioId(blackboard.persist.Id id, java.sql.Connection con)
          Loads a List of PortfolioItem items identified by the given portfolio Id using the supplied connection.
static void reposition(blackboard.persist.Id piId, int newPos)
          Changes the position of a PortfolioItem identified by the given Id using the default connection.
static void reposition(blackboard.persist.Id piId, int newPos, java.sql.Connection con)
          Changes the position of a PortfolioItem identified by the given Id using the supplied connection.
static void save(PortfolioItem pi)
          Inserts or updates the PortfolioItem using the default connection.
static void save(PortfolioItem pi, java.sql.Connection con)
          Inserts or updates the PortfolioItem using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortfolioItemManager

public PortfolioItemManager()
Method Detail

save

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

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

save

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

Parameters:
pi - a PortfolioItem to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

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

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

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

deleteByPortfolioId

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

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

deleteByPortfolioId

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

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

loadById

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

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

loadById

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

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

loadByPortfolioId

public static java.util.List loadByPortfolioId(blackboard.persist.Id id,
                                               java.sql.Connection con)
                                        throws blackboard.persist.PersistenceException
Loads a List of PortfolioItem items identified by the given portfolio Id using the supplied connection.

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

loadByPortfolioId

public static java.util.List loadByPortfolioId(blackboard.persist.Id id)
                                        throws blackboard.persist.PersistenceException
Loads a List of PortfolioItem items identified by the given portfolio Id using the default connection.

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

reposition

public static void reposition(blackboard.persist.Id piId,
                              int newPos)
                       throws blackboard.persist.PersistenceException
Changes the position of a PortfolioItem identified by the given Id using the default connection.

Parameters:
piId - the Id of the PortfolioItem to be loaded using the default connection.
newPos - an integer that represents the new position of the PortfolioItem using the default connection.
Throws:
blackboard.persist.PersistenceException

reposition

public static void reposition(blackboard.persist.Id piId,
                              int newPos,
                              java.sql.Connection con)
                       throws blackboard.persist.PersistenceException
Changes the position of a PortfolioItem identified by the given Id using the supplied connection.

Parameters:
piId - the Id of the PortfolioItem to be loaded using the supplied connection.
newPos - an integer that represents the new position of the PortfolioItem using the supplied connection.
con - a Connection to be used.
Throws:
blackboard.persist.PersistenceException


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