|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinkDbLoader
This interface describes the set of methods that all database loaders for
Link
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 |
LinkDbLoader.Default
A utility class that provides quick access to the LinkDbLoader
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 |
loadByCourseId(Id courseId)
Load the Links defined within the given course (identified by id) from the database using a connection obtained through this object's database context. |
BbList |
loadByCourseId(Id courseId,
java.sql.Connection con)
Load the Links defined within the given course (identified by id) from the database using the supplied connection. |
Link |
loadById(Id id)
Load the Link with the given Id from the database using a connection obtained through this object's database context. |
Link |
loadById(Id id,
java.sql.Connection con)
Load the Link with the given Id from the database using the supplied connection. |
BbList |
loadByReferredToIdAndType(Id id,
Link.ReferredToType eReferredToType)
Load the Link with the given referred to id and type from the database using a connection obtained through this object's database context. |
BbList |
loadByReferredToIdAndType(Id id,
Link.ReferredToType eReferredToType,
java.sql.Connection con)
Load the Links with the given referred to id and type from the database using the supplied connection. |
Link |
loadByReferrerIdAndType(Id id,
Link.ReferrerType eReferrerType)
Load the Link with the given referrer id and type from the database using a connection obtained through this object's database context. |
Link |
loadByReferrerIdAndType(Id id,
Link.ReferrerType eReferrerType,
java.sql.Connection con)
Load the Link with the given referrer id and type 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 |
---|
Link loadById(Id id) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Link
that should be loaded
KeyNotFoundException
- if there is no Link in the database with
the given Id
PersistenceException
- if some other error occurs while loading the
objectLink loadById(Id id, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Link
that should be loadedcon
- the Connection
to use to perform the load. If left null, method will use default connection.
KeyNotFoundException
- if there is no Link in the database with
the given Id
PersistenceException
- if some other error occurs while loading the
objectBbList loadByCourseId(Id courseId) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Link
that should be loaded
KeyNotFoundException
- if the provided course id value 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
that from which links should be loadedcon
- the Connection
to use to perform the load. If left null, method will use default connection.
KeyNotFoundException
- if the provided course id value is invalid
PersistenceException
- if some other error occurs while loading the
objectLink loadByReferrerIdAndType(Id id, Link.ReferrerType eReferrerType) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Course
from which links should be loaded
KeyNotFoundException
- if there is no Link in the database with
the given referrer id and type
PersistenceException
- if some other error occurs while loading the
objectLink loadByReferrerIdAndType(Id id, Link.ReferrerType eReferrerType, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Link.Referrer
that should be loadedeReferrerType
- the Link.ReferrerType
con
- the Connection
to use to perform the load. If left null, method will use default connection.
KeyNotFoundException
- if there is no Link in the database with
the given referrer id and type
PersistenceException
- if some other error occurs while loading the
objectBbList loadByReferredToIdAndType(Id id, Link.ReferredToType eReferredToType) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Link.ReferrerType
that should be loadedeReferredToType
- the Link.ReferrerType
KeyNotFoundException
- if the provided id value is invalid
PersistenceException
- if some other error occurs while loading the
objectBbList loadByReferredToIdAndType(Id id, Link.ReferredToType eReferredToType, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Link.ReferredToType
that should be loadedeReferredToType
- the Link.ReferredToType
con
- the Connection
to use to perform the load. If left null, method will use default connection.
KeyNotFoundException
- if the provided id value is invalid
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 |