Content
objects, many of the
load criteria are identical to those used in loading Content
.
- Since:
- Bb 5.5
- Version:
- $Revision: #1 $ $Date: 2005/06/27 $
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 |
loadByContentFolderId(Id folderId)
Load the list of ContentFile objects that are referenced by children of the
specified ContentFolder (identified by Id) from the database
in a lightweight fashion using a connection obtained through this object's
database context. |
BbList |
loadByContentFolderId(Id folderId,
java.sql.Connection con)
Load the list of ContentFile objects that are referenced by children of the
specified ContentFolder (identified by Id) from the database
in a lightweight fashion using the supplied connection. |
BbList |
loadByContentFolderId(Id folderId,
java.sql.Connection con,
boolean bHeavy)
Load the list of ContentFile objects that are referenced by children of the
specified ContentFolder (identified by Id) in the specified
fashion (lightweight or heavyweight) using the supplied connection. |
BbList |
loadByContentId(Id id)
Load the list of ContentFile objects associated with the given piece of
Content (identifed by Id) from the database in a lightweight
fashion using a connection obtained through this object's database context. |
BbList |
loadByContentId(Id id,
java.sql.Connection con)
Load the list of ContentFile objects associated with the given piece of
Content (identifed by Id) from the database in a lightweight
fashion using the supplied connection. |
BbList |
loadByContentId(Id id,
java.sql.Connection con,
boolean bHeavy,
boolean bDeep)
Load the list of ContentFile objects associated with the given piece of
Content (identifed by Id) from the database in the specified
fashion (lightweight or heavyweight) using the supplied connection. |
ContentFile |
loadById(Id id)
Load the ContentFile with the given Id from the database in a lightweight
fashion using a connection obtained through this object's database context. |
ContentFile |
loadById(Id id,
java.sql.Connection con)
Load the ContentFile with the given Id from the database in a lightweight
fashion using the supplied connection. |
ContentFile |
loadById(Id id,
java.sql.Connection con,
boolean bHeavy)
Load the ContentFile with the given Id from the database in the specified
fashion (lightweight or heavyweight) using the supplied connection. |
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
loadById
ContentFile loadById(Id id)
throws KeyNotFoundException,
PersistenceException
- Load the ContentFile with the given Id from the database in a lightweight
fashion using a connection obtained through this object's database context.
- Parameters:
id
- the Id
of the ContentFile
that should be loaded
- Throws:
KeyNotFoundException
- if there is no ContentFile in the database
with the given id
PersistenceException
- if some other error occurs while loading
the object
loadById
ContentFile loadById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
- Load the ContentFile with the given Id from the database in a lightweight
fashion using the supplied connection.
- Parameters:
id
- the Id
of the ContentFile
that should be loadedcon
- the Connection
to use to perform the load. Can be null.
- Throws:
KeyNotFoundException
- if there is no ContentFile in the database
with the given id
PersistenceException
- if some other error occurs while loading
the object
loadById
ContentFile loadById(Id id,
java.sql.Connection con,
boolean bHeavy)
throws KeyNotFoundException,
PersistenceException
- Load the ContentFile with the given Id from the database in the specified
fashion (lightweight or heavyweight) using the supplied connection.
- Parameters:
id
- the Id
of the ContentFile
that should be loadedcon
- the Connection
to use to perform the load. Can be null.bHeavy
- a boolean
value denoting whether a "heavy" load
should be performed.
- Throws:
KeyNotFoundException
- if there is no ContentFile in the database
with the given id
PersistenceException
- if some other error occurs while loading
the object
loadByContentFolderId
BbList loadByContentFolderId(Id folderId)
throws KeyNotFoundException,
PersistenceException
- Load the list of ContentFile objects that are referenced by children of the
specified
ContentFolder
(identified by Id) from the database
in a lightweight fashion using a connection obtained through this object's
database context. This is a "shallow" load in that only the content files
referenced by immediate children of the given folder are loaded.
This method is most useful for rendering the contents of a folder or lesson
(i.e., loading folder contents, including the set of referenced file objects).
- Parameters:
folderId
- the Id
of the ContentFolder
that contains
the children content items for which content files should be loaded
- Throws:
KeyNotFoundException
- if the given ContentFolder Id is invalid
PersistenceException
- if some other error occurs while loading
the object
loadByContentFolderId
BbList loadByContentFolderId(Id folderId,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
- Load the list of ContentFile objects that are referenced by children of the
specified
ContentFolder
(identified by Id) from the database
in a lightweight fashion using the supplied connection. This is a "shallow"
load in that only the content files referenced by immediate children of the
given folder are loaded.
This method is most useful for rendering the contents of a folder or lesson
(i.e., loading folder contents, including the set of referenced file objects).
- Parameters:
folderId
- the Id
of the ContentFolder
that contains
the children content items for which content files should be loadedcon
- the Connection
to use to perform the load. Can be null.
- Throws:
KeyNotFoundException
- if the given ContentFolder Id is invalid
PersistenceException
- if some other error occurs while loading
the object
loadByContentFolderId
BbList loadByContentFolderId(Id folderId,
java.sql.Connection con,
boolean bHeavy)
throws KeyNotFoundException,
PersistenceException
- Load the list of ContentFile objects that are referenced by children of the
specified
ContentFolder
(identified by Id) in the specified
fashion (lightweight or heavyweight) using the supplied connection. This
is a "shallow" load in that only the content files referenced by immediate
children of the given folder are loaded.
This method is most useful for rendering the contents of a folder or lesson
(i.e., loading folder contents, including the set of referenced file objects).
- Parameters:
folderId
- the Id
of the ContentFolder
that contains
the children content items for which content files should be loadedcon
- the Connection
to use to perform the load. Can be null.bHeavy
- a boolean
value denoting whether a "heavy" load
should be performed.
- Throws:
KeyNotFoundException
- if the given ContentFolder Id is invalid
PersistenceException
- if some other error occurs while loading
the object
loadByContentId
BbList loadByContentId(Id id)
throws KeyNotFoundException,
PersistenceException
- Load the list of ContentFile objects associated with the given piece of
Content
(identifed by Id) from the database in a lightweight
fashion using a connection obtained through this object's database context.
- Parameters:
id
- the Id
of the Content
item for which content files
should be loaded
- Throws:
KeyNotFoundException
- if the given Content Id is invalid
PersistenceException
- if some other error occurs while loading
the object
loadByContentId
BbList loadByContentId(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
- Load the list of ContentFile objects associated with the given piece of
Content
(identifed by Id) from the database in a lightweight
fashion using the supplied connection.
- Parameters:
id
- the Id
of the Content
item for which content files
should be loadedcon
- the Connection
to use to perform the load. Can be null.
- Throws:
KeyNotFoundException
- if the given Content Id is invalid
PersistenceException
- if some other error occurs while loading
the object
loadByContentId
BbList loadByContentId(Id id,
java.sql.Connection con,
boolean bHeavy,
boolean bDeep)
throws KeyNotFoundException,
PersistenceException
- Load the list of ContentFile objects associated with the given piece of
Content
(identifed by Id) from the database in the specified
fashion (lightweight or heavyweight) using the supplied connection.
If deep loading is specified, the list returned will include files for all
descendants of the Content
item specified. The list order will
not necessarily reflect the ordering of the tree, so additional processing
may be required to match up the objects.
- Parameters:
id
- the Id
of the Content
item for which content files
should be loadedcon
- the Connection
to use to perform the load. Can be null.bHeavy
- a boolean
value denoting whether a "heavy" load
should be performed.bDeep
- a boolean
value denoting whether a "deep" load
should be performed (load files for all descendant content items).
- Throws:
KeyNotFoundException
- if the given Content Id is invalid
PersistenceException
- if some other error occurs while loading
the object
Copyright © 2003 Blackboard, Inc. All Rights Reserved.