|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserMsgStateDbPersister
UserMsgStateDbPersister
| Nested Class Summary | |
|---|---|
static class |
UserMsgStateDbPersister.Default
A utility class that provides quick access to the UsrMsgStateDbPersister
instance associated with the default instance of the database BbPersistenceManager. |
| Field Summary | |
|---|---|
static java.lang.String |
TYPE
|
| Method Summary | |
|---|---|
void |
deleteById(Id id)
Deletes the UserMsgState identified by the given Id
value using a connection from the associated persistence manager's
database container. |
void |
deleteById(Id id,
java.sql.Connection con)
Deletes the UserMsgState identified by the given Id
value using the supplied connection. |
void |
deleteByMsgMainId(Id id)
Deletes the UserMsgState identified by the given message id
value using a connection from the associated persistence manager's
database container. |
void |
deleteByMsgMainId(Id id,
java.sql.Connection con)
Deletes the UserMsgState identified by the given message id
value using a supplied connection. |
void |
deleteByUserId(Id id)
Deletes the UserMsgState identified by the given user id
value using a connection from the associated persistence manager's
database container. |
void |
deleteByUserId(Id id,
java.sql.Connection con)
Deletes the UserMsgState identified by the given user id
value using a supplied connection. |
void |
incrementMessagesReadCount(java.util.List<Id> messageIds,
Id userId)
Increments the read count for the specified messages and user id using a connection from the associated persistence manager's database container. |
void |
incrementMessagesReadCount(java.util.List<Id> messageIds,
Id userId,
java.sql.Connection con)
Increments the read count for the specified messages and user id using the specified database connection. |
void |
persist(UserMsgState UsrMsgState)
Inserts or updates the supplied UserMsgState using a
connection from the associated persistence manager's database container. |
void |
persist(UserMsgState UsrMsgState,
java.sql.Connection con)
Inserts or updates the supplied UserMsgState using the
supplied connection. |
void |
updateReadStatusByMsgId(boolean read,
Id msgId,
Id userId)
Updates the read status of the specified message for the specified user using a connection from the associated persistence manager's database container. |
void |
updateReadStatusByMsgId(boolean read,
Id msgId,
Id userId,
java.sql.Connection con)
Updates the read status of the specified message for the specified user using the specified database connection. |
void |
updateReadStatusToUnreadForAllUsers(Id msgId)
Updates the read status to unread for all users for the specified message using a connection from the associated persistence manager's database connection. |
void |
updateReadStatusToUnreadForAllUsers(Id msgId,
java.sql.Connection con)
Updates the read status to unread for all users for the specified message using the specified database connection. |
void |
updateThreadReadStatusByTopMsgId(boolean read,
Id topMsgId,
Id userId)
Updates the read status for every message in the specified thread using a connection from the associated persistence manager's database container. |
void |
updateThreadReadStatusByTopMsgId(boolean read,
Id topMsgId,
Id userId,
java.sql.Connection con)
Updates the read status for every message in the specified thread using the specified database connection If no UserMsgState records exist for the messages/user mapping, and the read status is being set to "true" new records will be created. |
| Methods inherited from interface blackboard.persist.Persister |
|---|
getAppVersion, init |
| Field Detail |
|---|
static final java.lang.String TYPE
| Method Detail |
|---|
void persist(UserMsgState UsrMsgState)
throws ValidationException,
PersistenceException
UserMsgState using a
connection from the associated persistence manager's database container.
If the object's id is set and is associated with the same container, then
an update is done, otherwise a new object is inserted.
PersistenceException - if some other exception happens while
persisting the object.
ValidationException
void persist(UserMsgState UsrMsgState,
java.sql.Connection con)
throws ValidationException,
PersistenceException
UserMsgState using the
supplied connection. The connection must be to the same database as is
used by the associated persistence manager. If the object's id is set and
is associated with this persistence manager's same container, then an
update is done, otherwise a new object is inserted.
ValidationException - if the object is not in a consistent state
to be persisted.
PersistenceException - if some other exception happens while
persisting the object.
void updateReadStatusByMsgId(boolean read,
Id msgId,
Id userId)
throws PersistenceException
read - whether the message is to be set "read"msgId - the Id of the messageuserId - the Id of the current user
PersistenceException - if some exception occurs while updating the status
void updateReadStatusByMsgId(boolean read,
Id msgId,
Id userId,
java.sql.Connection con)
throws PersistenceException
read - whether the message is to be set "read"msgId - the Id of the messageuserId - the Id of the current user
PersistenceException - if some exception occurs while updating the status
void updateThreadReadStatusByTopMsgId(boolean read,
Id topMsgId,
Id userId)
throws PersistenceException
read - whether the message is to be set "read"topMsgId - the Id of the top-level message in the threaduserId - the Id of the current user
PersistenceException - if some exception occurs while updating the status
void updateThreadReadStatusByTopMsgId(boolean read,
Id topMsgId,
Id userId,
java.sql.Connection con)
throws PersistenceException
read - whether the message is to be set "read"topMsgId - the Id of the top-level message in the threaduserId - the Id of the current user
PersistenceException - if some exception occurs while updating the status
void incrementMessagesReadCount(java.util.List<Id> messageIds,
Id userId)
throws PersistenceException
messageIds - List of ids of the messages to increment the read count foruserId - the Id of the current user
PersistenceException - if some exception occurs while updating the count
void incrementMessagesReadCount(java.util.List<Id> messageIds,
Id userId,
java.sql.Connection con)
throws PersistenceException
messageIds - List of ids of the messages to increment the read count foruserId - the Id of the current user
PersistenceException - if some exception occurs while updating the count
void updateReadStatusToUnreadForAllUsers(Id msgId)
throws PersistenceException
msgId - the Id of the message to set as unread for all users
PersistenceException - if some exception occurs while updating the status
void updateReadStatusToUnreadForAllUsers(Id msgId,
java.sql.Connection con)
throws PersistenceException
msgId - the Id of the message to set as unread for all users
PersistenceException - if some exception occurs while updating the status
void deleteById(Id id)
throws KeyNotFoundException,
PersistenceException
UserMsgState identified by the given Id
value using a connection from the associated persistence manager's
database container.
KeyNotFoundException - if an object with the given Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
UserMsgState identified by the given Id
value using the supplied connection.
KeyNotFoundException - if an object with the given Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteByUserId(Id id)
throws KeyNotFoundException,
PersistenceException
UserMsgState identified by the given user id
value using a connection from the associated persistence manager's
database container.
KeyNotFoundException - if an object with the given user id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteByUserId(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
UserMsgState identified by the given user id
value using a supplied connection.
KeyNotFoundException - if an object with the given user Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteByMsgMainId(Id id)
throws KeyNotFoundException,
PersistenceException
UserMsgState identified by the given message id
value using a connection from the associated persistence manager's
database container.
KeyNotFoundException - if an object with the given message id
value can not be found.
PersistenceException - if some other exception happens during the
delete operation.
void deleteByMsgMainId(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
UserMsgState identified by the given message id
value using a supplied connection.
KeyNotFoundException - if an object with the given message id
value can not be found.
PersistenceException - if some other exception happens during the
delete operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||