|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface describes the set of methods that all database loaders for
Content objects must implement. This loader is capable of loading all
defined "types" of content (documents, folder, links, etc.).
Loading methods are named according to the criteria used for loading and the
type of load that is performed. Loading operations can be either "lightweight"
or "heavyweight". Lightweight loads load only those values directly associated
with a data object (the immediate properties of an object). Heavyweight loads
load those values directly associated with an object as well as the values of
those objects directly contained by the object. Heavyweight loads are
optimized to be as efficient as possible, but because more data is loaded
performance will be slower than that of lightweight loads. As a result,
lightweight load should be performed whenever possible.
Because of the tree structure of content (content and folders), some load
operations can also be "deep". A "deep" load, loads an entire tree of content,
while a "non-deep" load, loads only those content items at a specific level
within the tree structure.
| Nested Class Summary | |
static class |
ContentDbLoader.Default
A utility class that provides quick access to the ContentDbLoader
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 | |
Content |
loadById(Id id)
Load the Content with the given Id from the database in a lightweight fashion using a connection obtained through this object's database context. |
Content |
loadById(Id id,
java.sql.Connection con)
Load the Content with the given Id from the database in a lightweight fashion using the supplied connection. |
Content |
loadById(Id id,
java.sql.Connection con,
boolean bDeep,
boolean bHeavy)
Loads the Content with the given Id from the database in the specified fashion (lightweight or heavyweight) using the supplied connection. |
Content |
loadByTocId(Id tocId)
Load the Content item that is the "Top" folder for the specified blackboard.data.navigation.CourseToc (identified by Id) in a lightweight
fashion using a connection obtained through this object's database context.
|
Content |
loadByTocId(Id tocId,
java.sql.Connection con)
Load the Content item that is the "Top" folder for the specified blackboard.data.navigation.CourseToc (identified by Id) in a lightweight
fashion using the supplied connection.
|
Content |
loadByTocId(Id tocId,
java.sql.Connection con,
boolean bDeep)
Load the Content item that is the "Top" folder for the specified blackboard.data.navigation.CourseToc (identified by Id) in a lightweight
fashion using the supplied connection.
|
BbList |
loadChildren(Id id)
Loads a list containing the immediate children of the specified Content item (identified by Id) from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadChildren(Id id,
java.sql.Connection con)
Loads a list containing the immediate children of the specified Content item (identified by Id) from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadContentPath(Id id)
Loads a list of content items containing the specified Content item (identified by Id) along with all of its ancestors from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadContentPath(Id id,
java.sql.Connection con)
Loads a list of content items containing the specified Content item (identified by Id) along with all of its ancestors from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadListById(Id id)
Loads a list of Content by performing a deep load rooted at the content item with the given Id. |
BbList |
loadListById(Id id,
java.sql.Connection con)
Loads a list of Content by performing a deep load rooted at the content item with the given Id. |
BbList |
loadListById(Id id,
java.sql.Connection con,
boolean bHeavy)
Loads a list of Content by performing a deep load rooted at the content item with the given Id. |
| Methods inherited from interface blackboard.persist.Loader |
getAppVersion, init |
| Field Detail |
public static final java.lang.String TYPE
BbPersistenceManager.getLoader(String).
| Method Detail |
public Content loadById(Id id)
throws KeyNotFoundException,
PersistenceException
id references an aggregate type, and you want to load all
of the contained items and/or related objects such as files, use loadById(Id,Connection,boolean,boolean).
id - the Id of the Content that should be loaded
KeyNotFoundException - if there is no Content in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
public Content loadById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
id references an aggregate type, and you want to load all
of the contained items and/or related objects such as files, use loadById(Id,Connection,boolean,boolean).
id - the Id of the Content that should be loadedcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if there is no Content in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
public Content loadById(Id id,
java.sql.Connection con,
boolean bDeep,
boolean bHeavy)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content that should be loadedcon - the Connection to use to perform the load. Can be null.bDeep - a boolean value denoting whether a "deep" load
should be performed.bHeavy - a boolean value denoting whether a "heavy" load
should be performed.
KeyNotFoundException - if there is no Content in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
public BbList loadListById(Id id)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content that should be treated as
the root node for the load operation
KeyNotFoundException - if the provided content Id is invalid
PersistenceException - if some other error occurs while loading
the object
public BbList loadListById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content that should be treated as
the root node for the load operationcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided content Id is invalid
PersistenceException - if some other error occurs while loading
the object
public BbList loadListById(Id id,
java.sql.Connection con,
boolean bHeavy)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content that should be treated as
the root node for the load operationcon - the Connection to use to perform the load. Can be null.bHeavy - a boolean value denoting whether a "heavy" load
should be performed.
KeyNotFoundException - if the provided content Id is invalid
PersistenceException - if some other error occurs while loading
the object
public Content loadByTocId(Id tocId)
throws KeyNotFoundException,
PersistenceException
blackboard.data.navigation.CourseToc (identified by Id) in a lightweight
fashion using a connection obtained through this object's database context.
CourseToc) and is a ContentFolder which is the
root parent of all other defined content items.
tocId - the Id of the blackboard.data.navigation.CourseToc
for which the "Top" folder should be loaded
KeyNotFoundException - if there is no CourseToc in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
public Content loadByTocId(Id tocId,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
blackboard.data.navigation.CourseToc (identified by Id) in a lightweight
fashion using the supplied connection.
CourseToc) and is a ContentFolder which is the
root parent of all other defined content items.
tocId - the Id of the blackboard.data.navigation.CourseToc
for which the "Top" folder should be loadedcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if there is no CourseToc in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
public Content loadByTocId(Id tocId,
java.sql.Connection con,
boolean bDeep)
throws KeyNotFoundException,
PersistenceException
blackboard.data.navigation.CourseToc (identified by Id) in a lightweight
fashion using the supplied connection.
CourseToc) and is a ContentFolder which is the
root parent of all other defined content items.
tocId - the Id of the blackboard.data.navigation.CourseToc
for which the "Top" folder should be loadedcon - the Connection to use to perform the load. Can be null.bDeep - a boolean value denoting whether a "deep" load
should be performed.
KeyNotFoundException - if there is no CourseToc in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
public BbList loadContentPath(Id id)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content for which a content path
should be loaded
KeyNotFoundException - if the provided Content Id is invalid
PersistenceException - if some other error occurs while loading
the object
public BbList loadContentPath(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content for which a content path
should be loadedcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided Content Id is invalid
PersistenceException - if some other error occurs while loading
the object
public BbList loadChildren(Id id)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content for which the immediate
children should be loaded
KeyNotFoundException - if the provided Content Id is invalid
PersistenceException - if some other error occurs while loading
the object
public BbList loadChildren(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Content for which the immediate
children should be loadedcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided Content Id 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 | ||||||||||