|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageDbLoader
This interface describes the set of methods that all database loaders for
Message objects must implement.
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 discussion board messages and their replies,
some load operations can also be "deep". A "deep" load, loads an entire tree
of messages, while a "non-deep" load, loads only those messages at a specific
level within the tree structure.
| Nested Class Summary | |
|---|---|
static class |
MessageDbLoader.Default
A utility class that provides quick access to the MessageDbLoader
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 | |
|---|---|
java.util.List |
collectMessagesByIds(java.lang.String ids)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesByMsgIdsWithStatus( List instead. |
java.util.List |
collectMessagesByIds(java.lang.String ids,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesByMsgIdsWithStatus( List instead. |
java.util.List |
collectMessagesBySearch(Id user_id,
java.lang.String key_word,
java.lang.String start_date,
java.lang.String end_date,
java.lang.String scope_level,
Id scope_pk1)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesBySearchWithStatus( Id userId, String scopeType, Id scopeId, String keyword, String startDate, String endDate, boolean includeTopic ) |
java.util.List |
collectMessagesBySearch(Id user_id,
java.lang.String key_word,
java.lang.String start_date,
java.lang.String end_date,
java.lang.String scope_level,
Id scope_pk1,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesBySearchWithStatus(Id, String, Id, String, String, String, boolean, boolean, Connection) instead. |
java.util.List |
collectMessagesByThreadId(Id thread_id)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessageThreadWithStatus( Id topMsgId, Id userId ) instead. |
java.util.List |
collectMessagesByThreadId(Id thread_id,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessageThreadWithStatus( Id topMsgId, Id userId, Connection con ) instead. |
java.util.List |
collectMessagesByUserIdAndForumId(Id user_id,
Id forum_id)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesByForumIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean) instead. |
java.util.List |
collectMessagesByUserIdAndForumId(Id user_id,
Id forum_id,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesByForumIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean, Connection) instead. |
java.util.List |
collectMessagesByUserIdAndThreadId(Id user_id,
Id thread_id)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesByThreadIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean) instead. |
java.util.List |
collectMessagesByUserIdAndThreadId(Id user_id,
Id thread_id,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use #loadMessagesByThreadIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean, Connection) instead. |
Id[] |
findPreviousAndNextThreadIdsInForum(Id forumId,
Id threadId,
Id userId)
Given the id of a thread in a forum, loads the previous and next thread ids for threads in the same forum. |
Id[] |
findPreviousAndNextThreadIdsInForum(Id forumId,
Id threadId,
Id userId,
java.sql.Connection con)
Given the id of a thread in a forum, loads the previous and next thread ids for threads in the same forum. |
BbList |
loadAllByForumId(Id forumId)
Loads the list of top level Messages with the given parent forum Id from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadAllByForumId(Id forumId,
java.sql.Connection con)
Loads the list of all Messages with the given parent forum Id from the database in a lightweight fashion using the supplied connection. |
BbList |
loadByForumId(Id forumId)
Loads the list of all Messages with the given parent forum Id from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadByForumId(Id forumId,
java.sql.Connection con)
Loads the list of top level Messages with the given parent forum Id from the database in a lightweight fashion using the supplied connection. |
BbList |
loadByForumId(Id forumId,
java.sql.Connection con,
boolean bDeep,
boolean bHeavy)
Loads a list of Messages with the given parent forum Id from the database in the specified fashion (lightweight or heavyweight) using the supplied connection. |
BbList |
loadByForumIdAndLifeCycle(Id forumId,
Message.MessageLifecycle ml)
Loads the list of top level Messages with the given parent forum Id and the message's lifecycle from the database in a lightweight fashion using a connection obtained through this object's database context. |
BbList |
loadByForumIdAndLifeCycle(Id forumId,
Message.MessageLifecycle ml,
java.sql.Connection con)
Loads the list of top level Messages with the given parent forum Id and the message's lifecycle from the database in a lightweight fashion using a supplied connection . |
Message |
loadById(Id id)
Load the Message with the given Id from the database in a lightweight fashion using a connection obtained through this object's database context. |
Message |
loadById(Id id,
java.sql.Connection con)
Load the Message with the given Id from the database in a lightweight fashion using the supplied connection. |
Message |
loadById(Id id,
java.sql.Connection con,
boolean bHeavy)
Load the Message with the given Id from the database in the specified fashion (lightweight or heavyweight) using the supplied connection. |
Message |
loadById(Id id,
java.sql.Connection con,
boolean bHeavy,
boolean bDeep)
Load the Message with the given Id from the database in the specified fashion (lightweight or heavyweight) using the supplied connection. |
java.util.List<Message> |
loadImmediateChildrenByMessageId(Id parentId)
Loads a list of all immediate child messages of the given parent message WITHOUT MessageStatus objects or other heavy objects. |
java.util.List<Message> |
loadImmediateChildrenByMessageId(Id parentId,
java.sql.Connection con)
Loads a list of all immediate child messages of the given parent message WITHOUT MessageStatus objects or other heavy objects,
using the supplied connection. |
java.util.List<Message> |
loadImmediateChildrenWithStatusAndCountsByMessageId(Id messageId,
Id forumId,
Id userId)
Loads the immediate childen of the specified message using a connection obtained through this object's database context |
java.util.List<Message> |
loadImmediateChildrenWithStatusAndCountsByMessageId(Id messageId,
Id forumId,
Id userId,
java.sql.Connection con)
Loads the immediate childen of the specified message using the specified database connection |
MessageCounts |
loadMessageCountsByConferenceId(Id conferenceId,
Id userId)
Loads the count of total / read messages in a conference using a connection obtained through this object's database context |
MessageCounts |
loadMessageCountsByConferenceId(Id conferenceId,
Id userId,
java.sql.Connection con)
Loads the count of total / read messages in a conference using the specified database connection |
MessageCounts |
loadMessageCountsByForumId(Id forumId,
Id userId)
Loads the count of total / read messages in a forum using a connection obtained through this object's database context |
MessageCounts |
loadMessageCountsByForumId(Id forumId,
Id userId,
java.sql.Connection con)
Loads the count of total / read messages in a forum using the specified database connection |
MessageCounts |
loadMessageCountsByMsgIds(java.lang.String msgIds,
Id userId)
Loads the count of total / read messages in the specified messages using a connection obtained through this object's database context. |
MessageCounts |
loadMessageCountsByMsgIds(java.lang.String msgIds,
Id userId,
java.sql.Connection con)
Loads the count of total / read messages in the specified messages using the specified database connection |
MessageCounts |
loadMessageCountsByThreadId(Id threadId,
Id userId)
Loads the count of total / read messages in a thread using a connection obtained through this object's database context Does *NOT* include the top-level message itself in the counts |
MessageCounts |
loadMessageCountsByThreadId(Id threadId,
Id userId,
java.sql.Connection con)
Loads the count of total / read messages in a thread using the specified database connection Does *NOT* include the top-level message itself in the counts |
java.util.List<Message> |
loadMessagesByForumIdAndAuthorIdWithStatus(Id forumId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads a list of messages (PUBLISHED only) in the given forum authored by the specified user using a connection obtained through this object's database context The returned messages are "heavy" in that they have the message body in them Any Tags associated with the messages are also loaded. |
java.util.List<Message> |
loadMessagesByForumIdAndAuthorIdWithStatus(Id forumId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads a list of messages (PUBLISHED only) in the given forum authored by the specified user using the specified database connection The returned messages are "heavy" in that they have the message body in them Any Tags associated with the messages are also loaded. |
java.util.List<Message> |
loadMessagesByForumIdAndTagIdWithStatus(Id forumId,
Id userId,
Id tagId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads a list of messages in the given forum having the specified tag using the specified database connection The returned messages are "heavy" in that they have the message body in them Any Tags associated with the messages are also loaded. |
java.util.List<Message> |
loadMessagesByForumIdAndTagIdWithStatus(Id forumId,
Id userId,
Id tagId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads a list of messages in the given forum having the specified tag using a connection obtained through this object's database context. |
java.util.List<Message> |
loadMessagesByForumIdWithStatus(Id forumId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads a list of messages in the given forum using a connection obtained through this object's database context The returned messages are "heavy" in that they have the message body in them Any Tags associated with the messages are also loaded. |
java.util.List<Message> |
loadMessagesByForumIdWithStatus(Id forumId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads a list of messages in the given forum using the specified database connection The returned messages are "heavy" in that they have the message body in them Any Tags associated with the messages are also loaded. |
java.util.List<Message> |
loadMessagesByMsgIdsWithStatus(java.util.List<Id> msgIds,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads the specified messages with status information using the specified database connection. |
java.util.List<Message> |
loadMessagesByMsgIdsWithStatus(java.util.List<Id> msgIds,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads the specified messages with status information using a connection obtained through this object's database context. |
java.util.List<Message> |
loadMessagesBySearchWithStatus(Id userId,
java.lang.String scopeType,
Id scopeId,
java.lang.String keyword,
java.lang.String startDate,
java.lang.String endDate,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Returns the result of searching messages by keyword, in a date range, and in a specific scope using a connection obtained through this object's database context. |
java.util.List<Message> |
loadMessagesBySearchWithStatus(Id userId,
java.lang.String scopeType,
Id scopeId,
java.lang.String keyword,
java.lang.String startDate,
java.lang.String endDate,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Returns the result of searching messages by keyword, in a date range, and in a specific scope using the specified connection. |
java.util.List<Message> |
loadMessagesByThreadIdAndAuthorIdWithStatus(Id topMsgId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads a list of messages (PUBLISHED only) in the given thread authored by the specified user using a connection obtained through this object's database context. |
java.util.List<Message> |
loadMessagesByThreadIdAndAuthorIdWithStatus(Id topMsgId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads a list of messages (PUBLISHED only) in the given thread authored by the specified user using the specified database connection. |
java.util.List<Message> |
loadMessagesByThreadIdsWithStatus(java.util.List<Id> threadIds,
Id forumId,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads a list of messsages in the specified threads using a connection obtained through this object's database context. |
java.util.List<Message> |
loadMessagesByThreadIdsWithStatus(java.util.List<Id> threadIds,
Id forumId,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads a list of messsages in the specified threads using the specified database connection. |
java.util.List<Message> |
loadMessagesByThreadIdWithStatus(Id topMsgId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
Loads a list of messages in the given thread using a connection obtained through this object's database context. |
java.util.List<Message> |
loadMessagesByThreadIdWithStatus(Id topMsgId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
Loads a list of messages in the given thread using the specified database connection. |
java.util.List<Message> |
loadMessagesWithStatusAndCountsByForumId(Id forumId,
Id userId)
Loads all the messages in a forum using a connection obtained through this object's database context |
java.util.List<Message> |
loadMessagesWithStatusAndCountsByForumId(Id forumId,
Id userId,
java.sql.Connection con)
Loads all the messages in a forum using the specified database connection |
java.util.List<Message> |
loadMessageThreadWithStatus(Id msgId,
Id userId,
boolean heavyAttachment,
boolean loadBody,
boolean includeTopic)
Loads the messages in the specified thread using a connection obtained through this object's database context |
java.util.List<Message> |
loadMessageThreadWithStatus(Id msgId,
Id userId,
boolean heavyAttachment,
boolean loadBody,
boolean includeTopic,
java.sql.Connection con)
Loads the messages in the specified thread using the specified database connection |
java.util.List<Message> |
loadMessageThreadWithStatusAndTags(Id msgId,
Id userId,
boolean heavyAttachment,
boolean loadBody,
boolean includeTopic)
Loads the messages and accompanying Tags in the specified thread using a connection obtained through this object's database context |
java.util.List |
loadThreadWithStatus(Id forumId,
Id userId)
Deprecated. This loader does not load message status objects with the messages. Use #loadTopThreadsWithStatusAndCountsByForumId( Id forumId, Id userId, boolean loadTags ) instead. |
java.util.List |
loadThreadWithStatus(Id forumId,
Id userId,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use #loadTopThreadsWithStatusAndCountsByForumId( Id forumId, Id userId, boolean loadTags, Connection con ) instead. |
Message |
loadTopThreadById(Id id)
Load the top thread with the given Id from the database in a lightweight fashion using a connection obtained through this object's database context. |
Message |
loadTopThreadById(Id id,
java.sql.Connection con)
Load the top thread with the given Id from the database in a lightweight fashion using the supplied connection. |
java.util.List<Message> |
loadTopThreadsWithStatusAndCountsByForumId(Id forumId,
Id userId,
boolean loadAttachments,
boolean loadTags,
boolean flagRollup)
Loads the top threads in a forum using a connection obtained through this object's database context |
java.util.List<Message> |
loadTopThreadsWithStatusAndCountsByForumId(Id forumId,
Id userId,
boolean loadAttachment,
boolean loadTags,
boolean flagRollup,
java.sql.Connection con)
Loads the top threads in a forum using the specified database connection |
java.util.List |
loadTreeWithStatus(Id messageId,
Id userId)
Deprecated. This loader does not load message status objects with the messages. Use loadMessageThreadWithStatus(Id, Id, boolean, boolean, boolean) using a thread id instead. |
java.util.List |
loadTreeWithStatus(Id messageId,
Id userId,
java.sql.Connection con)
Deprecated. This loader does not load message status objects with the messages. Use loadMessageThreadWithStatus(Id, Id, boolean, boolean, boolean, Connection) using a thread id instead. |
Message |
loadWithStatusByIdAndUserId(Id messageId,
Id userId)
load messageId and userId from the database in the specified fashion (lightweight or heavyweight) using the supplied connection. |
Message |
loadWithStatusByIdAndUserId(Id messageId,
Id userId,
java.sql.Connection con)
load messageId and userId from the database in the specified fashion (lightweight or heavyweight) using a connection obtained through this object's database context. |
| Methods inherited from interface blackboard.persist.Loader |
|---|
getAppVersion, init |
| Field Detail |
|---|
static final java.lang.String TYPE
BbPersistenceManager.getLoader(String)
| Method Detail |
|---|
Message loadById(Id id)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Message that should be loaded
KeyNotFoundException - if there is no Message in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
Message loadById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Message that should be loadedcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if there is no Message in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
Message loadById(Id id,
java.sql.Connection con,
boolean bHeavy)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Message 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.
KeyNotFoundException - if there is no Message in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
Message loadById(Id id,
java.sql.Connection con,
boolean bHeavy,
boolean bDeep)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Message 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.bDeep - a boolean value denoting whether all the responsed
should be loaded.
KeyNotFoundException - if there is no Message in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
Message loadTopThreadById(Id id)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Message that should be loaded
KeyNotFoundException - if there is no Message in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
Message loadTopThreadById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
id - the Id of the Message that should be loadedcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if there is no Message in the database with
the given id
PersistenceException - if some other error occurs while loading
the object
BbList loadAllByForumId(Id forumId)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that top level messages
should be loaded for
KeyNotFoundException - if the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
BbList loadAllByForumId(Id forumId,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that top level messages
should be loaded forcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
BbList loadByForumId(Id forumId)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that top level messages
should be loaded for
KeyNotFoundException - if the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
BbList loadByForumId(Id forumId,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that top level messages
should be loaded forcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
BbList loadByForumIdAndLifeCycle(Id forumId,
Message.MessageLifecycle ml)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that top level messages
should be loaded forcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
BbList loadByForumIdAndLifeCycle(Id forumId,
Message.MessageLifecycle ml,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that top level messages
should be loaded forcon - the Connection to use to perform the load. Can be null.
KeyNotFoundException - if the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
BbList loadByForumId(Id forumId,
java.sql.Connection con,
boolean bDeep,
boolean bHeavy)
throws KeyNotFoundException,
PersistenceException
forumId - the Id of the Forum that messages should be
loaded forcon - 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 the provided forum id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List loadTreeWithStatus(Id messageId,
Id userId)
throws PersistenceException
loadMessageThreadWithStatus(Id, Id, boolean, boolean, boolean) using a thread id instead.
PersistenceException - if some other error occurs while loading
the object
java.util.List loadTreeWithStatus(Id messageId,
Id userId,
java.sql.Connection con)
throws PersistenceException
loadMessageThreadWithStatus(Id, Id, boolean, boolean, boolean, Connection) using a thread id instead.
PersistenceException - if some other error occurs while loading
the object
Message loadWithStatusByIdAndUserId(Id messageId,
Id userId)
throws PersistenceException
PersistenceException - if some other error occurs while loading
the object
Message loadWithStatusByIdAndUserId(Id messageId,
Id userId,
java.sql.Connection con)
throws PersistenceException
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByIds(java.lang.String ids)
throws PersistenceException,
KeyNotFoundException
#loadMessagesByMsgIdsWithStatus( List msgIds, Id userId ) instead.
KeyNotFoundException - if the provided messages's ids is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByIds(java.lang.String ids,
java.sql.Connection con)
throws PersistenceException,
KeyNotFoundException
#loadMessagesByMsgIdsWithStatus( List msgIds, Id userId, Connection con ) instead.
KeyNotFoundException - if the provided messages's ids is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByUserIdAndForumId(Id user_id,
Id forum_id)
throws PersistenceException,
KeyNotFoundException
#loadMessagesByForumIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean) instead.
KeyNotFoundException - if the provided user_id or forum_id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByUserIdAndForumId(Id user_id,
Id forum_id,
java.sql.Connection con)
throws PersistenceException,
KeyNotFoundException
#loadMessagesByForumIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean, Connection) instead.
KeyNotFoundException - if the provided user_id or forum_id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByUserIdAndThreadId(Id user_id,
Id thread_id)
throws PersistenceException,
KeyNotFoundException
#loadMessagesByThreadIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean) instead.
KeyNotFoundException - if the provided user_id or thread_id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByUserIdAndThreadId(Id user_id,
Id thread_id,
java.sql.Connection con)
throws PersistenceException,
KeyNotFoundException
#loadMessagesByThreadIdAndAuthorIdWithStatus(Id, Id, Id, boolean, boolean, Connection) instead.
KeyNotFoundException - if the provided user_id or thread_id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByThreadId(Id thread_id)
throws PersistenceException,
KeyNotFoundException
#loadMessageThreadWithStatus( Id topMsgId, Id userId ) instead.
KeyNotFoundException - if the provided thread_id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesByThreadId(Id thread_id,
java.sql.Connection con)
throws PersistenceException,
KeyNotFoundException
#loadMessageThreadWithStatus( Id topMsgId, Id userId, Connection con ) instead.
KeyNotFoundException - if the provided thread_id is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List loadThreadWithStatus(Id forumId,
Id userId)
throws PersistenceException
#loadTopThreadsWithStatusAndCountsByForumId( Id forumId, Id userId, boolean loadTags ) instead.
PersistenceException
java.util.List loadThreadWithStatus(Id forumId,
Id userId,
java.sql.Connection con)
throws PersistenceException
#loadTopThreadsWithStatusAndCountsByForumId( Id forumId, Id userId, boolean loadTags, Connection con ) instead.
PersistenceException
java.util.List collectMessagesBySearch(Id user_id,
java.lang.String key_word,
java.lang.String start_date,
java.lang.String end_date,
java.lang.String scope_level,
Id scope_pk1)
throws PersistenceException,
KeyNotFoundException
#loadMessagesBySearchWithStatus( Id userId, String scopeType, Id scopeId, String keyword, String startDate, String endDate, boolean includeTopic )
KeyNotFoundException - if the provided parameters is invalid
PersistenceException - if some other error occurs while loading
the object
java.util.List collectMessagesBySearch(Id user_id,
java.lang.String key_word,
java.lang.String start_date,
java.lang.String end_date,
java.lang.String scope_level,
Id scope_pk1,
java.sql.Connection con)
throws PersistenceException,
KeyNotFoundException
#loadMessagesBySearchWithStatus(Id, String, Id, String, String, String, boolean, boolean, Connection) instead.
PersistenceException
KeyNotFoundException
java.util.List<Message> loadImmediateChildrenByMessageId(Id parentId)
throws PersistenceException,
KeyNotFoundException
MessageStatus objects or other heavy objects.
parentId -
PersistenceException - if the provided messages's ids is invalid
KeyNotFoundException - if some other error occurs while loading
the object
java.util.List<Message> loadImmediateChildrenByMessageId(Id parentId,
java.sql.Connection con)
throws PersistenceException,
KeyNotFoundException
MessageStatus objects or other heavy objects,
using the supplied connection.
parentId - con -
PersistenceException - if the provided messages's ids is invalid
KeyNotFoundException - if some other error occurs while loading
the object
java.util.List<Message> loadMessagesByForumIdWithStatus(Id forumId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
forumId - id of the forumuserId - unreadOnly - whether to return only unread messages. If false will return all messagesheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByForumIdWithStatus(Id forumId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
forumId - id of the forumuserId - unreadOnly - whether to return only unread messages. If false will return all messagesheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByForumIdAndAuthorIdWithStatus(Id forumId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
forumId - id of the forumuserId - the Id of the current userauthorId - the Id of the author to filter byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByForumIdAndAuthorIdWithStatus(Id forumId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
forumId - id of the forumuserId - the Id of the current userauthorId - the Id of the author to filter byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByForumIdAndTagIdWithStatus(Id forumId,
Id userId,
Id tagId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
forumId - id of the forumuserId - the Id of the current usertagId - the Id of the tag to filter byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByForumIdAndTagIdWithStatus(Id forumId,
Id userId,
Id tagId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
forumId - id of the forumuserId - the Id of the current usertagId - the Id of the tag to filter byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByThreadIdWithStatus(Id topMsgId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
topMsgId - id of the top level message in a threaduserId - unreadOnly - whether to return only unread messages. If false will return all messagesheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByThreadIdWithStatus(Id topMsgId,
Id userId,
boolean unreadOnly,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
topMsgId - id of the top level message in a threaduserId - unreadOnly - whether to return only unread messages. If false will return all messagesheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByThreadIdsWithStatus(java.util.List<Id> threadIds,
Id forumId,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
threadIds - list of ids of the threads to loadforumId - id of forum that the threads are inuserId - heavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statusloadTags - whether to load any associated Tags
PersistenceException
java.util.List<Message> loadMessagesByThreadIdsWithStatus(java.util.List<Id> threadIds,
Id forumId,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
threadIds - list of ids of the threads to loadforumId - id of forum that the threads are inuserId - heavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statusloadTags - whether to load any associated Tagscon -
PersistenceException
java.util.List<Message> loadMessagesByThreadIdAndAuthorIdWithStatus(Id topMsgId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
topMsgId - id of the top level message in a threaduserId - the Id of the current userauthorId - the Id of the author to filter byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByThreadIdAndAuthorIdWithStatus(Id topMsgId,
Id userId,
Id authorId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
topMsgId - id of the top level message in a threaduserId - the Id of the current userauthorId - the Id of the author to filter byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByMsgIdsWithStatus(java.util.List<Id> msgIds,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
msgIds - List of Ids of the messages that are to be loadeduserId - id of the current userheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesByMsgIdsWithStatus(java.util.List<Id> msgIds,
Id userId,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
msgIds - List of Ids of the messages that are to be loadeduserId - id of the current userheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessagesBySearchWithStatus(Id userId,
java.lang.String scopeType,
Id scopeId,
java.lang.String keyword,
java.lang.String startDate,
java.lang.String endDate,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags)
throws PersistenceException
userId - the Id of the current userscopeType - the scope that this search is for ( either "thread", "forum", "conference", or "course"scopeId - the Id of the object that represents the scope (i.e. the top message id, forum id, conference id, or course id)keyword - the keyword to search bystartDate - start date to limit the search byendDate - end date to limit the search byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the thread topic information in the message status
PersistenceException
java.util.List<Message> loadMessagesBySearchWithStatus(Id userId,
java.lang.String scopeType,
Id scopeId,
java.lang.String keyword,
java.lang.String startDate,
java.lang.String endDate,
boolean heavyAttachment,
boolean includeTopic,
boolean loadTags,
java.sql.Connection con)
throws PersistenceException
userId - the Id of the current userscopeType - the scope that this search is for ( either "thread", "forum", "conference", or "course"scopeId - the Id of the object that represents the scope (i.e. the top message id, forum id, conference id, or course id)keyword - the keyword to search bystartDate - start date to limit the search byendDate - end date to limit the search byheavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageincludeTopic - whether to include the thread topic information in the message status
PersistenceException
java.util.List<Message> loadTopThreadsWithStatusAndCountsByForumId(Id forumId,
Id userId,
boolean loadAttachment,
boolean loadTags,
boolean flagRollup,
java.sql.Connection con)
throws PersistenceException
forumId - id of the discussion forumuserId - needed to load the message status for a particular userloadAttachment - if true, any attachments associated with the messages are also loadedloadTags - if true, any Tags associated with the messages are also loadedflagRollup - if true, the flag indicator for top threads is set to yes if any of its children is flaggedcon -
PersistenceException
java.util.List<Message> loadTopThreadsWithStatusAndCountsByForumId(Id forumId,
Id userId,
boolean loadAttachments,
boolean loadTags,
boolean flagRollup)
throws PersistenceException
forumId - id of the discussion forumuserId - needed to load the message status for a particular userloadAttachments - if true, any attachments associated with the messages are also loadedloadTags - if true, any Tags associated with the messages are also loadedflagRollup - if true, the flag indicator for top threads is set to yes if any of its children is flagged
PersistenceException
java.util.List<Message> loadMessagesWithStatusAndCountsByForumId(Id forumId,
Id userId,
java.sql.Connection con)
throws PersistenceException
forumId - id of the discussion forumuserId - con -
PersistenceException
java.util.List<Message> loadMessagesWithStatusAndCountsByForumId(Id forumId,
Id userId)
throws PersistenceException
forumId - id of the discussion forumuserId -
PersistenceException
java.util.List<Message> loadImmediateChildrenWithStatusAndCountsByMessageId(Id messageId,
Id forumId,
Id userId,
java.sql.Connection con)
throws PersistenceException
messageId - id of the message whose immediate children you wantforumid - id of the forum that the message is inuserId - con -
PersistenceException
java.util.List<Message> loadImmediateChildrenWithStatusAndCountsByMessageId(Id messageId,
Id forumId,
Id userId)
throws PersistenceException
messageId - id of the message whose immediate children you wantforumid - id of the forum that the message is inuserId -
PersistenceException
java.util.List<Message> loadMessageThreadWithStatus(Id msgId,
Id userId,
boolean heavyAttachment,
boolean loadBody,
boolean includeTopic,
java.sql.Connection con)
throws PersistenceException
#loadMessageThreadWithStatusAndTags( Id msgId, Id userId, boolean heavyAttachment, boolean loadBody, boolean includeTopic, Connection con ) instead.
msgId - Id of the top-level message in the threaduserId - heavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageloadBody - whether to load the message bodyincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
java.util.List<Message> loadMessageThreadWithStatus(Id msgId,
Id userId,
boolean heavyAttachment,
boolean loadBody,
boolean includeTopic)
throws PersistenceException
loadMessageThreadWithStatusAndTags( Id msgId, Id userId, boolean heavyAttachment, boolean loadBody, boolean includeTopic ) instead.
msgId - Id of the top-level message in the threaduserId - heavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageloadBody - whether to load the message bodyincludeTopic - whether to include the message topic information in the message status
PersistenceException
java.util.List<Message> loadMessageThreadWithStatusAndTags(Id msgId,
Id userId,
boolean heavyAttachment,
boolean loadBody,
boolean includeTopic)
throws PersistenceException
msgId - Id of the top-level message in the threaduserId - heavyAttachment - whether to heavily load the MessageAttachment (if any) associated with the messageloadBody - whether to load the message bodyincludeTopic - whether to include the message topic information in the message statuscon -
PersistenceException
MessageCounts loadMessageCountsByConferenceId(Id conferenceId,
Id userId,
java.sql.Connection con)
throws PersistenceException
conferenceId - userId - con -
PersistenceException
MessageCounts loadMessageCountsByConferenceId(Id conferenceId,
Id userId)
throws PersistenceException
conferenceId - userId - con -
PersistenceException
MessageCounts loadMessageCountsByForumId(Id forumId,
Id userId,
java.sql.Connection con)
throws PersistenceException
forumId - userId - con -
PersistenceException
MessageCounts loadMessageCountsByForumId(Id forumId,
Id userId)
throws PersistenceException
forumId - userId - con -
PersistenceException
MessageCounts loadMessageCountsByThreadId(Id threadId,
Id userId,
java.sql.Connection con)
throws PersistenceException
threadId - message id of the top level message of a threaduserId - con -
PersistenceException
MessageCounts loadMessageCountsByThreadId(Id threadId,
Id userId)
throws PersistenceException
threadId - message id of the top level message of a threaduserId - con -
PersistenceException
MessageCounts loadMessageCountsByMsgIds(java.lang.String msgIds,
Id userId,
java.sql.Connection con)
throws PersistenceException
msgIds - comma separated string containing message ids
-this must be generated by the application or else sql could be injecteduserId - con -
PersistenceException
MessageCounts loadMessageCountsByMsgIds(java.lang.String msgIds,
Id userId)
throws PersistenceException
msgIds - comma separated string containing message idsuserId - con -
PersistenceException
Id[] findPreviousAndNextThreadIdsInForum(Id forumId,
Id threadId,
Id userId)
throws PersistenceException
forumId - - Id of the forum containing the threads. Can not be null or unsetthreadId - - Id of the current thread. Can not be null or unsetuserId - - Id of the user issuing the request. Can not be null or unset
PersistenceException
Id[] findPreviousAndNextThreadIdsInForum(Id forumId,
Id threadId,
Id userId,
java.sql.Connection con)
throws PersistenceException
forumId - - Id of the forum containing the threads. Can not be null or unsetthreadId - - Id of the current thread. Can not be null or unsetuserId - - Id of the user issuing the request. Can not be null or unsetcon - - java.sql.Connection. Can not be null or unset
PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||