|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnouncementDbLoader
This interface describes the set of methods that all database loaders for
Announcement
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 |
AnnouncementDbLoader.Default
A utility class that provides quick access to the AnnouncementDbLoader
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 |
loadAvailableByCourseIdAndUserId(Id courseId,
Id userId,
int numDaysBack,
boolean showPerm)
loadAvailableByCourseIdAndUserId Loads the list of all available announcements that pertain to the user identified by the given user id, within the course specified by the given courseId, within a given time period. |
BbList |
loadAvailableByCourseIdAndUserId(Id courseId,
Id userId,
int numDaysBack,
boolean showPerm,
java.sql.Connection con)
loadAvailableByCourseIdAndUserId Loads the list of all available announcements that pertain to the user identified by the given user id, within the course specified by the given courseId, within a given time period using the supplied connection |
BbList |
loadAvailableByType(Announcement.Type type)
Load the list of Announcement objects currently available to the user of the type identified by the given Announcement.Type using a connection obtained through this object's database context. |
BbList |
loadAvailableByType(Announcement.Type type,
boolean showPerm)
Load the list of Announcement objects currently available to the user of the type identified by the given Announcement.Type using a connection obtained through this object's database context. |
BbList |
loadAvailableByType(Announcement.Type type,
java.sql.Connection con)
Load the list of Announcement objects currently available to the user of the type identified by the given Announcement.Type using the supplied connection. |
BbList |
loadAvailableByType(Announcement.Type type,
int numDaysBack)
Load the list of Announcement objects currently available to the user of the type identified by the given Announcement.Type created or modified within the last n days, using a connection obtained through this object's database context. |
BbList |
loadAvailableByType(Announcement.Type type,
int numDaysBack,
boolean showPerm,
java.sql.Connection con)
Load the list of Announcement objects currently available to the user of the type identified by the given Announcement.Type created or modified within the last n days, using the supplied connection. |
BbList |
loadAvailableByUserId(Id userId)
Loads the list of all available announcements (system, course and organization) that pertain to the user identified by the given user Id, using a connection obtained through this object's database context. |
BbList |
loadAvailableByUserId(Id userId,
java.sql.Connection con)
Loads the list of all available announcements (system, course and organization) that pertain to the user identified by the given user Id, using the supplied connection. |
BbList |
loadAvailableByUserId(Id userId,
int numDaysBack)
Loads the list of all available announcements (system, course and organization) that pertain to the user identified by the given user Id, within a given time period, using a connection obtained through this object's database context. |
BbList |
loadAvailableByUserId(Id userId,
int numDaysBack,
java.sql.Connection con)
Loads the list of all available announcements (system, course and organization) that pertain to the user identified by the given user Id, within a given time period, using the supplied connection. |
BbList |
loadByCourseId(Id courseId)
Load the list of Announcement objects that currently exist for the course identified by the given course Id using a connection obtained through this object's database context. |
BbList |
loadByCourseId(Id courseId,
java.sql.Connection con)
Load the list of Announcement objects that currently exist for the course identified by the given course Id using the supplied connection. |
Announcement |
loadById(Id id)
Load the Announcement with the given Id from the database using a connection obtained through this object's database context. |
Announcement |
loadById(Id id,
java.sql.Connection con)
Load the Announcement with the given Id from the database using the supplied connection. |
BbList |
loadByType(Announcement.Type type)
Load the list of Announcement objects that currently exist of the type identified by the given Announcement.Type using a connection obtained through this object's database context. |
BbList |
loadByType(Announcement.Type type,
java.sql.Connection con)
Load the list of Announcement objects that currently exist of the type identified by the given Announcement.Type 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 |
---|
Announcement loadById(Id id) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Announcement
to be loaded
KeyNotFoundException
- if there is no Announcement in the database
with the given Id
PersistenceException
- if some other error occurs while loading the
objectAnnouncement loadById(Id id, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Announcement
to be loadedcon
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if there is no Announcement in the database
with the given Id
PersistenceException
- if some other error occurs while loading the
objectBbList loadByType(Announcement.Type type) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loaded
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadByType(Announcement.Type type, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loadedcon
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByType(Announcement.Type type, boolean showPerm) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loaded
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByType(Announcement.Type type) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loaded
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByType(Announcement.Type type, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loadedcon
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByType(Announcement.Type type, int numDaysBack) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loadednumDaysBack
- the number of past days to search (from current date)
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByType(Announcement.Type type, int numDaysBack, boolean showPerm, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
type
- the Announcement.Type
of Announcement
to be loadednumDaysBack
- the number of days worth of announcements to load (-1 =
all, 0 = today, 1 = today and yesterday, etc.)con
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadByCourseId(Id courseId) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Course
from which announcements are loaded
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadByCourseId(Id courseId, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Course
from which announcements are loadedcon
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByUserId(Id userId) throws KeyNotFoundException, PersistenceException
userId
- the Id
of the target user
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByUserId(Id userId, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
userId
- the Id
of the target usercon
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByUserId(Id userId, int numDaysBack) throws KeyNotFoundException, PersistenceException
userId
- the Id
of the target usernumDaysBack
- the number of days worth of announcements to load (-1 =
all, 0 = today, 1 = today and yesterday, etc.)
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByUserId(Id userId, int numDaysBack, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
userId
- the Id
of the target usernumDaysBack
- the number of days worth of announcements to load (-1 =
all, 0 = today, 1 = today and yesterday, etc.)con
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id is invalid
PersistenceException
- if some other error occurs while loading
the objectBbList loadAvailableByCourseIdAndUserId(Id courseId, Id userId, int numDaysBack, boolean showPerm) throws KeyNotFoundException, PersistenceException
courseId
- the {@link Id) of the target courseuserId
- the Id
of the target usernumDaysBack
- the number of days worth of announcements to load (-1 =
all, 0 = today, 1 = today and yesterday, etc.)
KeyNotFoundException
PersistenceException
BbList loadAvailableByCourseIdAndUserId(Id courseId, Id userId, int numDaysBack, boolean showPerm, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
courseId
- the {@link Id) of the target courseuserId
- the Id
of the target usernumDaysBack
- the number of days worth of announcements to load (-1 =
all, 0 = today, 1 = today and yesterday, etc.)con
- the Connection
to use to perform the persistence. If left null, method will use default connection.
KeyNotFoundException
PersistenceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |