|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CourseMembershipDbLoader
This interface describes the set of methods that all database loaders for
CourseMembership
objects must implement.
Loading methods are named according to the criteria used for loading and the
type of load that is performed.
Nested Class Summary | |
---|---|
static class |
CourseMembershipDbLoader.Default
A utility class that provides quick access to the CourseMembershipDbLoader
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 | |
---|---|
CourseMembership |
loadByCourseAndUserId(Id courseId,
Id userId)
Load the CourseMembership with the given user and course id from the database using a connection obtained through this object's database context. |
CourseMembership |
loadByCourseAndUserId(Id courseId,
Id userId,
java.sql.Connection con)
Load the CourseMembership with the given user and course id from the database using the supplied connection. |
CourseMembership |
loadByCourseAndUserId(Id courseId,
Id userId,
java.sql.Connection con,
boolean withUser)
Load the CourseMembership with the given user and course id from the database using the supplied connection. |
BbList |
loadByCourseId(Id courseId)
Load the list of CourseMembership objects belonging to the given course (identified by id) using a connection obtained through this object's database context. |
BbList |
loadByCourseId(Id courseId,
java.sql.Connection con)
Load the list of CourseMembership objects belonging to the given course (identified by id) using the supplied connection. |
BbList |
loadByCourseId(Id courseId,
java.sql.Connection con,
boolean withUser)
Load the list of CourseMembership objects belonging to the given course (identified by id) using the supplied connection. |
BbList |
loadByCourseIdAndRole(Id courseId,
CourseMembership.Role role)
Load the list of CourseMembership objects which have the given role within the specified course (identified by id) using a connection obtained through this object's database context. |
BbList |
loadByCourseIdAndRole(Id courseId,
CourseMembership.Role role,
java.sql.Connection con)
Load the list of CourseMembership objects which have the given role within the specified course (identified by id) using the supplied connection. |
BbList |
loadByCourseIdAndRole(Id courseId,
CourseMembership.Role role,
java.sql.Connection con,
boolean withUser)
Load the list of CourseMembership objects which have the given role within the specified course (identified by id) using the supplied connection. |
CourseMembership |
loadById(Id id)
Load the CourseMembership with the given Id from the database using a connection obtained through this object's database context. |
CourseMembership |
loadById(Id id,
java.sql.Connection con)
Load the CourseMembership with the given Id from the database using the supplied connection. |
CourseMembership |
loadById(Id id,
java.sql.Connection con,
boolean withUser)
Load the CourseMembership with the given Id from the database using the supplied connection. |
BbList |
loadByUserId(Id userId)
Load the list of CourseMembership objects belonging to the given user (identified by id) using a connection obtained through this object's database context. |
BbList |
loadByUserId(Id userId,
java.sql.Connection con)
Load the list of CourseMembership objects belonging to the given user (identified by id) using the supplied connection. |
BbList |
loadByUserId(Id userId,
java.sql.Connection con,
boolean withUser)
Load the list of CourseMembership objects belonging to the given user (identified by id) using the supplied connection. |
java.util.Map |
loadInstructorsByUser(Id userId)
Load a Map of courseId to List of full Instructor names as a String for all courses in which the specified user is a member from the database using a connection obtained through this object's database context. |
java.util.Map |
loadInstructorsByUser(Id userId,
java.sql.Connection con)
Load a Map of courseId to List of full Instructor names as a String for all courses in which the specified user is a member from the database using the supplied connection. |
Methods inherited from interface blackboard.persist.Loader |
---|
getAppVersion, init |
Field Detail |
---|
static final java.lang.String TYPE
BbPersistenceManager.getLoader(String)
Method Detail |
---|
CourseMembership loadById(Id id) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if there is no CourseMembership in the
database with the given id
PersistenceException
- if some other error occurs while loading
the objectCourseMembership loadById(Id id, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if there is no CourseMembership in the
database with the given id
PersistenceException
- if some other error occurs while loading
the objectCourseMembership loadById(Id id, java.sql.Connection con, boolean withUser) throws KeyNotFoundException, PersistenceException
User
object, without
any of the user's heavyweight attributes.
KeyNotFoundException
- if there is no CourseMembership in the
database with the given id
PersistenceException
- if some other error occurs while loading
the objectBbList loadByUserId(Id userId) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if the provided user id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByUserId(Id userId, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if the provided user id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByUserId(Id userId, java.sql.Connection con, boolean withUser) throws KeyNotFoundException, PersistenceException
User
object, without any of the user's heavyweight attributes.
KeyNotFoundException
- if the provided user id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByCourseId(Id courseId) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByCourseId(Id courseId, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByCourseId(Id courseId, java.sql.Connection con, boolean withUser) throws KeyNotFoundException, PersistenceException
User
object, without any of the user's heavyweight attributes.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByCourseIdAndRole(Id courseId, CourseMembership.Role role) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByCourseIdAndRole(Id courseId, CourseMembership.Role role, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the UserBbList loadByCourseIdAndRole(Id courseId, CourseMembership.Role role, java.sql.Connection con, boolean withUser) throws KeyNotFoundException, PersistenceException
User
object, without any of the user's
heavyweight attributes.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the UserCourseMembership loadByCourseAndUserId(Id courseId, Id userId) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if there is no CourseMembership in the
database with the given course and user id
PersistenceException
- if some other error occurs while loading
the objectCourseMembership loadByCourseAndUserId(Id courseId, Id userId, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
KeyNotFoundException
- if there is no CourseMembership in the
database with the given course and user id
PersistenceException
- if some other error occurs while loading
the objectCourseMembership loadByCourseAndUserId(Id courseId, Id userId, java.sql.Connection con, boolean withUser) throws KeyNotFoundException, PersistenceException
User
object,
without any of the user's heavyweight attributes.
KeyNotFoundException
- if there is no CourseMembership in the
database with the given course and user id
PersistenceException
- if some other error occurs while loading
the objectjava.util.Map loadInstructorsByUser(Id userId) throws PersistenceException
PersistenceException
- if some other error occurs while loading
the objectjava.util.Map loadInstructorsByUser(Id userId, java.sql.Connection con) throws PersistenceException
PersistenceException
- if some other error occurs while loading
the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |