blackboard.platform.plugin
Interface ContentHandlerDbLoader

All Superinterfaces:
Loader

public interface ContentHandlerDbLoader
extends Loader

Interface for loading Content Handler objects from the database.

Since:
Blackboard 6.0
Version:
$Revision: #1 $ $Date: 2005/06/27 $

Nested Class Summary
static class ContentHandlerDbLoader.Default
          A utility class that provides quick access to the ContentHandlerLoader instance associated with the default instance of the database BbPersistenceManager.
 
Field Summary
static java.lang.String TYPE
           
 
Method Summary
 BbList loadAll(VirtualInstallation vi)
          Loads all the ContentHandlers for the specified virtual installation.
 java.util.List loadAvailableByCourse(Course crs)
          loadAvailableByCourse
 java.util.List loadAvailableByCourse(Course crs, java.sql.Connection con)
          loadAvailableByCourse
 java.util.List loadByCourse(Course crs)
          loadByCourse
 java.util.List loadByCourse(Course crs, java.sql.Connection con)
          loadByCourse
 ContentHandler loadByHandle(java.lang.String handle)
          Load the ContentHandler with the given handle from the database using a connection obtained through this object's database context.
 ContentHandler loadByHandle(java.lang.String handle, java.sql.Connection con)
          Load the ContentHandler with the given handle from the database using the supplied connection.
 
Methods inherited from interface blackboard.persist.Loader
getAppVersion, init
 

Field Detail

TYPE

static final java.lang.String TYPE
See Also:
Constant Field Values
Method Detail

loadAll

BbList loadAll(VirtualInstallation vi)
               throws PersistenceException,
                      ValidationException
Loads all the ContentHandlers for the specified virtual installation.

Parameters:
vi - Target virtual installation.
Returns:
List of content handlers installed in this virtual installation.
Throws:
PersistenceException
ValidationException

loadByHandle

ContentHandler loadByHandle(java.lang.String handle)
                            throws KeyNotFoundException,
                                   PersistenceException
Load the ContentHandler with the given handle from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - if there is no ContentHandler in the database with the given handle
PersistenceException - if some other error occurs while loading the object

loadByHandle

ContentHandler loadByHandle(java.lang.String handle,
                            java.sql.Connection con)
                            throws KeyNotFoundException,
                                   PersistenceException
Load the ContentHandler with the given handle from the database using the supplied connection.

Throws:
KeyNotFoundException - if there is no ContentHandler in the database with the given handle
PersistenceException - if some other error occurs while loading the object

loadAvailableByCourse

java.util.List loadAvailableByCourse(Course crs)
                                     throws PersistenceException
loadAvailableByCourse

Throws:
PersistenceException

loadAvailableByCourse

java.util.List loadAvailableByCourse(Course crs,
                                     java.sql.Connection con)
                                     throws PersistenceException
loadAvailableByCourse

Throws:
PersistenceException

loadByCourse

java.util.List loadByCourse(Course crs)
                            throws PersistenceException
loadByCourse

Throws:
PersistenceException

loadByCourse

java.util.List loadByCourse(Course crs,
                            java.sql.Connection con)
                            throws PersistenceException
loadByCourse

Throws:
PersistenceException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.