blackboard.persist.discussionboard
Interface ConferenceDbLoader

All Superinterfaces:
Loader

public interface ConferenceDbLoader
extends Loader

ConferenceDbLoader

Since:
Bb 5.5

Nested Class Summary
static class ConferenceDbLoader.Default
          A utility class that provides quick access to the ConferenceDbLoader instance associated with the default instance of the database BbPersistenceManager.
 
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
 BbList<Conference> loadAllByCourseId(Id courseId)
          Loads all of the Conferences for the given course (identified by id) from the database using a connection obtained through this object's database context.
 BbList<Conference> loadAllByCourseId(Id courseId, java.sql.Connection con)
          Load the Conferences for the given course (identified by id) from the database using the supplied connection.
 Conference loadByCourseId(Id courseId)
          Load the Conference for the given course (identified by id) from the database using a connection obtained through this object's database context.
 Conference loadByCourseId(Id courseId, java.sql.Connection con)
          Load the Conference for the given course (identified by id) from the database using the supplied connection.
 Conference loadByGroupId(Id groupId)
          Load the Conference for the given group (identified by id) from the database using a connection obtained through this object's database context.
 Conference loadByGroupId(Id groupId, java.sql.Connection con)
          Load the Conference for the given group (identified by id) from the database using the supplied connection.
 Conference loadById(Id id)
          Load the Conference with the given Id from the database using a connection obtained through this object's database context.
 Conference loadById(Id id, java.sql.Connection con)
          Load the Conference with the given Id from the database using the supplied connection.
 java.util.List<Conference> loadConferenceWithStatusByCourseId(Id courseId)
          Load the Conference for the given course (identified by id) from the database using a connection obtained through this object's database context.
 java.util.List<Conference> loadConferenceWithStatusByCourseId(Id courseId, java.sql.Connection con)
          Load the Conference for the given course (identified by id) from the database using the supplied connection.
 java.util.List<Forum> loadDashboardDetails(Id courseId, Id userId)
          Load the Conference for the given course (identified by id) and user (identified by id) from the database using a connection obtained through this object's database context.
 java.util.List<Forum> loadDashboardDetails(Id courseId, Id userId, java.sql.Connection con)
          Load the Conference for the given course (identified by id) and user (identified by id) from the database using a connection obtained through this object's database context.
 ForumStatus loadForumDashboardDetails(Id forumId, Id userId)
           
 java.util.List<Forum> loadForumNumberByCourseIdDash(Id courseId)
          Load all the course membership with Course attribute
 java.util.List<Forum> loadForumNumberByCourseIdDash(Id courseId, java.sql.Connection con)
          Load all the course membership with Course attribute from the database using the supplied connection.
 ForumStatus loadMessageDashboardDetails(Id messageId, Id userId)
           
 java.util.List<Conference> loadSystemConferences()
          Load all the system discussion boards
 java.util.List<Conference> loadSystemConferences(boolean onlyAvailable, blackboard.persist.impl.mapping.DbObjectMap map, java.sql.Connection con)
          Load all the system discussion boards, with available flag
 java.util.List<Conference> loadSystemConferences(java.sql.Connection conn)
          Load all the system discussion boards
 java.util.List<Conference> loadSystemConferencesByIds(java.util.List<Id> confIds, blackboard.persist.impl.mapping.DbObjectMap map)
          Loads available system discussion boards by Conference Id, ordered by position.
 java.util.List<Conference> loadSystemConferencesByIds(java.util.List<Id> confIds, blackboard.persist.impl.mapping.DbObjectMap map, java.sql.Connection con)
          Loads available system discussion boards by Conference Id, ordered by position.
 java.util.List<CourseMembership> loadUserMembershipsByGroupId(Id groupId)
          Load all the course membership for the given group (identified by id)
 java.util.List<CourseMembership> loadUserMembershipsByGroupId(Id groupId, java.sql.Connection con)
          Load all the course membership for the given group (identified by id) from the database using a connection obtained through this object's database context.
 
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

loadById

Conference loadById(Id id)
                    throws KeyNotFoundException,
                           PersistenceException
Load the Conference with the given Id from the database using a connection obtained through this object's database context.

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

loadById

Conference loadById(Id id,
                    java.sql.Connection con)
                    throws KeyNotFoundException,
                           PersistenceException
Load the Conference with the given Id from the database using the supplied connection.

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

loadByCourseId

Conference loadByCourseId(Id courseId)
                          throws KeyNotFoundException,
                                 PersistenceException
Load the Conference for the given course (identified by id) from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadByCourseId

Conference loadByCourseId(Id courseId,
                          java.sql.Connection con)
                          throws KeyNotFoundException,
                                 PersistenceException
Load the Conference for the given course (identified by id) from the database using the supplied connection.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadAllByCourseId

BbList<Conference> loadAllByCourseId(Id courseId)
                                     throws KeyNotFoundException,
                                            PersistenceException
Loads all of the Conferences for the given course (identified by id) from the database using a connection obtained through this object's database context.

This method differs from loadByCourseId(Id) in that it loads all conferences defined for a course, including those defined for groups within the course.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadAllByCourseId

BbList<Conference> loadAllByCourseId(Id courseId,
                                     java.sql.Connection con)
                                     throws KeyNotFoundException,
                                            PersistenceException
Load the Conferences for the given course (identified by id) from the database using the supplied connection.

This method differs from loadByCourseId(Id,Connection) in that it loads all conferences defined for a course, including those defined for groups within the course.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadByGroupId

Conference loadByGroupId(Id groupId)
                         throws KeyNotFoundException,
                                PersistenceException
Load the Conference for the given group (identified by id) from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadByGroupId

Conference loadByGroupId(Id groupId,
                         java.sql.Connection con)
                         throws KeyNotFoundException,
                                PersistenceException
Load the Conference for the given group (identified by id) from the database using the supplied connection.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadSystemConferences

java.util.List<Conference> loadSystemConferences()
                                                 throws PersistenceException
Load all the system discussion boards

Throws:
PersistenceException

loadSystemConferences

java.util.List<Conference> loadSystemConferences(java.sql.Connection conn)
                                                 throws PersistenceException
Load all the system discussion boards

Throws:
PersistenceException

loadSystemConferences

java.util.List<Conference> loadSystemConferences(boolean onlyAvailable,
                                                 blackboard.persist.impl.mapping.DbObjectMap map,
                                                 java.sql.Connection con)
                                                 throws PersistenceException
Load all the system discussion boards, with available flag

Throws:
PersistenceException

loadSystemConferencesByIds

java.util.List<Conference> loadSystemConferencesByIds(java.util.List<Id> confIds,
                                                      blackboard.persist.impl.mapping.DbObjectMap map)
                                                      throws KeyNotFoundException,
                                                             PersistenceException
Loads available system discussion boards by Conference Id, ordered by position. If no conference Ids are provided, an empty List is returned.

Parameters:
map - a filtered map for this loader
Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the objects
Since:
Bb 7.3

loadSystemConferencesByIds

java.util.List<Conference> loadSystemConferencesByIds(java.util.List<Id> confIds,
                                                      blackboard.persist.impl.mapping.DbObjectMap map,
                                                      java.sql.Connection con)
                                                      throws KeyNotFoundException,
                                                             PersistenceException
Loads available system discussion boards by Conference Id, ordered by position. If no conference Ids are provided, an empty List is returned. Loaded from the database using the supplied connection.

Parameters:
map - a filtered map for this loader
con - Connection to the database
Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the objects
Since:
Bb 7.3

loadForumNumberByCourseIdDash

java.util.List<Forum> loadForumNumberByCourseIdDash(Id courseId)
                                                    throws KeyNotFoundException,
                                                           PersistenceException
Load all the course membership with Course attribute

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the objects

loadForumNumberByCourseIdDash

java.util.List<Forum> loadForumNumberByCourseIdDash(Id courseId,
                                                    java.sql.Connection con)
                                                    throws KeyNotFoundException,
                                                           PersistenceException
Load all the course membership with Course attribute from the database using the supplied connection.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the objects

loadUserMembershipsByGroupId

java.util.List<CourseMembership> loadUserMembershipsByGroupId(Id groupId)
                                                              throws KeyNotFoundException,
                                                                     PersistenceException
Load all the course membership for the given group (identified by id)

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadUserMembershipsByGroupId

java.util.List<CourseMembership> loadUserMembershipsByGroupId(Id groupId,
                                                              java.sql.Connection con)
                                                              throws KeyNotFoundException,
                                                                     PersistenceException
Load all the course membership for the given group (identified by id) from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadConferenceWithStatusByCourseId

java.util.List<Conference> loadConferenceWithStatusByCourseId(Id courseId)
                                                              throws KeyNotFoundException,
                                                                     PersistenceException
Load the Conference for the given course (identified by id) from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadConferenceWithStatusByCourseId

java.util.List<Conference> loadConferenceWithStatusByCourseId(Id courseId,
                                                              java.sql.Connection con)
                                                              throws KeyNotFoundException,
                                                                     PersistenceException
Load the Conference for the given course (identified by id) from the database using the supplied connection.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadDashboardDetails

java.util.List<Forum> loadDashboardDetails(Id courseId,
                                           Id userId)
                                           throws KeyNotFoundException,
                                                  PersistenceException
Load the Conference for the given course (identified by id) and user (identified by id) from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadDashboardDetails

java.util.List<Forum> loadDashboardDetails(Id courseId,
                                           Id userId,
                                           java.sql.Connection con)
                                           throws KeyNotFoundException,
                                                  PersistenceException
Load the Conference for the given course (identified by id) and user (identified by id) from the database using a connection obtained through this object's database context.

Throws:
KeyNotFoundException - not thrown
PersistenceException - if some other error occurs while loading the object

loadForumDashboardDetails

ForumStatus loadForumDashboardDetails(Id forumId,
                                      Id userId)
                                      throws PersistenceException
Throws:
PersistenceException

loadMessageDashboardDetails

ForumStatus loadMessageDashboardDetails(Id messageId,
                                        Id userId)
                                        throws PersistenceException
Throws:
PersistenceException


Copyright © 2012 Blackboard, Inc. All Rights Reserved.