blackboard.persist.discussionboard
Interface MessageAttachmentDbLoader

All Superinterfaces:
Loader

public interface MessageAttachmentDbLoader
extends Loader

MessageAttachmentDbLoader

Since:
Bb 5.5
Version:
$Revision: #1 $ $Date: 2007/06/27 $

Nested Class Summary
static class MessageAttachmentDbLoader.Default
          A utility class that provides quick access to the MessageAttachmentDbLoader 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 loadByForumId(Id forumId)
          Loads the list of Message attachments that belong to messages located within the given forum (identified by Id) using a connection obtained through this object's database context.
 BbList loadByForumId(Id forumId, java.sql.Connection con)
          Loads the list of Message attachments that belong to messages located within the given forum (identified by Id) using the supplied connection.
 MessageAttachment loadById(Id id)
          Load the Message attachment with the given Id from the database using a connection obtained through this object's database context.
 MessageAttachment loadById(Id id, java.sql.Connection con)
          Load the Message attachment with the given Id from the database using the supplied connection.
 MessageAttachment loadByMessageId(Id messageId)
          Load the Message attachment with the given parent message Id from the database using a connection obtained through this object's database context.
 MessageAttachment loadByMessageId(Id messageId, java.sql.Connection con)
          Load the Message attachment with the given parent message Id from the database using the supplied connection.
 
Methods inherited from interface blackboard.persist.Loader
getAppVersion, init
 

Field Detail

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
Method Detail

loadById

MessageAttachment loadById(Id id)
                           throws KeyNotFoundException,
                                  PersistenceException
Load the Message attachment with the given Id from the database using a connection obtained through this object's database context.

Parameters:
id - the Id of the MessageAttachment that should be loaded
Throws:
KeyNotFoundException - if there is no Message attachment in the database with the given id
PersistenceException - if some other error occurs while loading the object

loadById

MessageAttachment loadById(Id id,
                           java.sql.Connection con)
                           throws KeyNotFoundException,
                                  PersistenceException
Load the Message attachment with the given Id from the database using the supplied connection.

Parameters:
id - the Id of the MessageAttachment that should be loaded
con - the Connection to use to perform the load. Can be null.
Throws:
KeyNotFoundException - if there is no Message attachment in the database with the given id
PersistenceException - if some other error occurs while loading the object

loadByMessageId

MessageAttachment loadByMessageId(Id messageId)
                                  throws KeyNotFoundException,
                                         PersistenceException
Load the Message attachment with the given parent message Id from the database using a connection obtained through this object's database context.

Parameters:
messageId - the Id of the parent Message that the MessageAttachment should be loaded for
Throws:
KeyNotFoundException - if there is no Message attachment in the database with the given parent message id
PersistenceException - if some other error occurs while loading the object

loadByMessageId

MessageAttachment loadByMessageId(Id messageId,
                                  java.sql.Connection con)
                                  throws KeyNotFoundException,
                                         PersistenceException
Load the Message attachment with the given parent message Id from the database using the supplied connection.

Parameters:
messageId - the Id of the parent Message that the MessageAttachment should be loaded for
con - the Connection to use to perform the load. Can be null.
Throws:
KeyNotFoundException - if there is no Message attachment in the database with the given parent message id
PersistenceException - if some other error occurs while loading the object

loadByForumId

BbList loadByForumId(Id forumId)
                     throws KeyNotFoundException,
                            PersistenceException
Loads the list of Message attachments that belong to messages located within the given forum (identified by Id) using a connection obtained through this object's database context.

Parameters:
forumId - the Id of the Forum that contains messages for which attachments should be loaded
Throws:
KeyNotFoundException - if the provided forum Id is invalid
PersistenceException - if some other error occurs while loading the object

loadByForumId

BbList loadByForumId(Id forumId,
                     java.sql.Connection con)
                     throws KeyNotFoundException,
                            PersistenceException
Loads the list of Message attachments that belong to messages located within the given forum (identified by Id) using the supplied connection.

Parameters:
forumId - the Id of the Forum that contains messages for which attachments should be loaded
con - the Connection to use to perform the load. Can be null.
Throws:
KeyNotFoundException - if the provided forum Id is invalid
PersistenceException - if some other error occurs while loading the object


Copyright © 2003 Blackboard, Inc. All Rights Reserved.