blackboard.cms.lrngobj
Class LOCategoryManager

java.lang.Object
  extended byblackboard.cms.lrngobj.LOCategoryManager

public class LOCategoryManager
extends java.lang.Object

The LOCategoryManager provides methods for managing LOCategory items. This class provides methods for loading, saving, deleting and some other convenience methods for managing LOCategory items.

Since:
CS1.2
Version:
1.0
See Also:
LOCategory, LOCategoryTree

Constructor Summary
LOCategoryManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Delete a LOCategory identified by the Id
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Delete a LOCategory identified by the Id using the supplied connection
static java.util.List loadByAll()
          Loads all LOCategory items
static java.util.List loadByAll(java.sql.Connection con)
          Loads all LOCategory items using the supplied Connection
static LOCategory loadById(blackboard.persist.Id id)
          Load a LOCategory item by Id
static LOCategory loadById(blackboard.persist.Id id, java.sql.Connection con)
          Load a LOCategory item by Id using a supplied Connection
static java.util.List loadByParentId(blackboard.persist.Id id)
          Load a LOCategory item by Parent Id
static java.util.List loadByParentId(blackboard.persist.Id id, java.sql.Connection con)
          Load a LOCategory item by Parent Id using a supplied Connection
static java.util.List loadTopLevel()
          Loads all LOCategory items in the Top Level
static java.util.List loadTopLevel(java.sql.Connection con)
          Loads all LOCategory items in the Top Level using the supplied Connection
static void save(LOCategory category)
          Inserts or updates the LOCategory.
static void save(LOCategory category, java.sql.Connection con)
          Inserts or updates the LOCategory used the supplied Connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LOCategoryManager

public LOCategoryManager()
Method Detail

save

public static void save(LOCategory category,
                        java.sql.Connection con)
                 throws blackboard.persist.PersistenceException
Inserts or updates the LOCategory used the supplied Connection. After using any of the set methods on the LOCategory object (e.g. setTitle(), setParentId()), call this save() method to persist the changes.

Parameters:
category - The LOCategory to be saved
con - a Connection to be used.
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

save

public static void save(LOCategory category)
                 throws blackboard.persist.PersistenceException
Inserts or updates the LOCategory. After using any of the set methods on the LOCategory object (e.g. setTitle(), setParentId()), call this save() method to persist the changes.

Parameters:
category - The LOCategory to be saved
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

deleteById

public static void deleteById(blackboard.persist.Id id)
                       throws blackboard.persist.PersistenceException
Delete a LOCategory identified by the Id

Parameters:
id - The Id of the LOCategory to be deleted
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

deleteById

public static void deleteById(blackboard.persist.Id id,
                              java.sql.Connection con)
                       throws blackboard.persist.PersistenceException
Delete a LOCategory identified by the Id using the supplied connection

Parameters:
id - The Id of the LOCategory to be deleted
con - the Connection to be used
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadById

public static LOCategory loadById(blackboard.persist.Id id,
                                  java.sql.Connection con)
                           throws blackboard.persist.PersistenceException
Load a LOCategory item by Id using a supplied Connection

Parameters:
id - The Id of the LOCategory to be deleted
con - the Connection to be used
Returns:
a LOCategory Item. Returns null (instead of KeyNotFoundException) if the LOCategory is not found.
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadById

public static LOCategory loadById(blackboard.persist.Id id)
                           throws blackboard.persist.PersistenceException
Load a LOCategory item by Id

Parameters:
id - The Id of the LOCategory to be loaded
Returns:
a LOCategory item. Returns null (instead of KeyNotFoundException) if the LOCategory is not found.
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadByParentId

public static java.util.List loadByParentId(blackboard.persist.Id id,
                                            java.sql.Connection con)
                                     throws blackboard.persist.PersistenceException
Load a LOCategory item by Parent Id using a supplied Connection

Parameters:
id - The Parent Id of the LOCategory to be loaded
con - the Connection to be used
Returns:
a list of LOCategory Items
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadByParentId

public static java.util.List loadByParentId(blackboard.persist.Id id)
                                     throws blackboard.persist.PersistenceException
Load a LOCategory item by Parent Id

Parameters:
id - The Parent Id of the LOCategory to be loaded
Returns:
a List of LOCategory items
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadByAll

public static java.util.List loadByAll(java.sql.Connection con)
                                throws blackboard.persist.PersistenceException
Loads all LOCategory items using the supplied Connection

Parameters:
con - a Connection to be used
Returns:
a List of LOCategory items
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadByAll

public static java.util.List loadByAll()
                                throws blackboard.persist.PersistenceException
Loads all LOCategory items

Returns:
a List of LOCategory items
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadTopLevel

public static java.util.List loadTopLevel(java.sql.Connection con)
                                   throws blackboard.persist.PersistenceException
Loads all LOCategory items in the Top Level using the supplied Connection

Parameters:
con - the Connection to be used
Returns:
a List of LOCategory items
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2

loadTopLevel

public static java.util.List loadTopLevel()
                                   throws blackboard.persist.PersistenceException
Loads all LOCategory items in the Top Level

Returns:
a List of LOCategory items
Throws:
blackboard.persist.PersistenceException
Since:
CS1.2


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