blackboard.persist.content
Interface ContentStatusDbLoader

All Superinterfaces:
Loader

public interface ContentStatusDbLoader
extends Loader

Loader interface for ContentStatusobjects, which encapsulate a learner's adaptive release status, and review status for associated Contentobjects.


Nested Class Summary
static class ContentStatusDbLoader.Default
          Standard convenience accessor to get an instance of this loader.
 
Field Summary
static java.lang.String TYPE
          Type used to obtain an instance of the class configured to provide the implementation for this interface.
 
Method Summary
 java.util.List loadByContentId(Id contentId)
          Loads a list of ContentStatus objects for a specific Content object.
 java.util.List loadByContentId(Id contentId, java.sql.Connection con)
          Loads a list of ContentStatus objects for a specific Content object.
 java.util.List loadByCourseId(Id courseId)
          Loads a list of ContentStatus objects for a specific Course object.
 java.util.List loadByCourseId(Id courseId, java.sql.Connection con)
          Loads a list of ContentStatus objects for a specific Course object.
 
Methods inherited from interface blackboard.persist.Loader
getAppVersion, init
 

Field Detail

TYPE

static final java.lang.String TYPE
Type used to obtain an instance of the class configured to provide the implementation for this interface. Used when making a call to BbPersistenceManager.getLoader(String).

See Also:
Constant Field Values
Method Detail

loadByContentId

java.util.List loadByContentId(Id contentId)
                               throws PersistenceException
Loads a list of ContentStatus objects for a specific Content object. This automatically loads "semi-heavy", including CourseMembership and User records in the ContentStatus object. However, only the following fields are populated on the dependent objects:

Note that the load also discriminates rowStatus for both the user and membership records. I.e., disabled users (rowStatus == 0) will not be returned. However, unavailable users will be returned.

Parameters:
contentId - Id of the content object to retrieve the list.
Returns:
@throws PersistenceException
Throws:
PersistenceException

loadByContentId

java.util.List loadByContentId(Id contentId,
                               java.sql.Connection con)
                               throws PersistenceException
Loads a list of ContentStatus objects for a specific Content object. This automatically loads "semi-heavy", including CourseMembership and User records in the ContentStatus object. However, only the following fields are populated on the dependent objects:

Note that the load also discriminates rowStatus for both the user and membership records. I.e., disabled users (rowStatus == 0) will not be returned. However, unavailable users will be returned.

Parameters:
contentId - Id of the content object to retrieve the list.
con - Connection to use for the query.
Returns:
@throws PersistenceException
Throws:
PersistenceException

loadByCourseId

java.util.List loadByCourseId(Id courseId)
                              throws PersistenceException
Loads a list of ContentStatus objects for a specific Course object.

Parameters:
courseId - Id of the course object to retrieve the list.
Returns:
@throws PersistenceException
Throws:
PersistenceException

loadByCourseId

java.util.List loadByCourseId(Id courseId,
                              java.sql.Connection con)
                              throws PersistenceException
Loads a list of ContentStatus objects for a specific Course object.

Parameters:
courseId - Id of the course object to retrieve the list.
con - Connection to use for the query.
Returns:
@throws PersistenceException
Throws:
PersistenceException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.