|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.service.forum.ForumDaoJdbc
public class ForumDaoJdbc
Forum Database manipulation class.
Constructor Summary | |
---|---|
ForumDaoJdbc()
|
Method Summary | |
---|---|
void |
decreasePostedMessages(java.lang.String topicId,
ITransaction transaction)
Decrease the count of messages (by one) on the specified topic and it's forum. |
void |
decreasePostedTopics(java.lang.String topicId,
ITransaction transaction)
Decrease the count of messages from the specified topic on it's forum. |
ForumCategoryConfig |
getCategory(java.lang.String categoryId,
ITransaction transaction)
Gets the ForumCategoryConfig for the specified categoryId. |
java.lang.String |
getContentIdByPrimaryKey(java.lang.String primaryKeyValue)
Returns the contentId corresponding to the given primary key. |
ForumConfig |
getForum(java.lang.String forumId,
ITransaction transaction)
|
java.lang.String |
getForumIdByTopicId(java.lang.String topicId,
ITransaction transaction)
|
java.util.Collection<java.lang.String> |
getForumIdsByCategory(java.lang.String categoryContentId,
ITransaction transaction)
|
java.util.Collection<java.lang.String> |
getForumTopicIds(java.lang.String forumContentId,
ITransaction transaction)
|
java.lang.String |
getLastPostedMessageId(java.lang.String topicContentId,
java.lang.String excludedMessageId,
ITransaction transaction)
Returns the id of the last message posted on the specified topic. |
java.lang.String |
getLastPostedTopicId(java.lang.String forumContentId,
java.lang.String excludedTopicId,
ITransaction transaction)
Returns the id of the last updated topic on the specified forum. |
ForumMessageConfig |
getMessage(java.lang.String messageId,
ITransaction transaction)
Gets the ForumMessageConfig for the specified message id. |
java.lang.String |
getPrimaryKeyByContentId(java.lang.String contentId)
Returns the primary key through the given contentId. |
ForumTopicConfig |
getTopic(java.lang.String topicId,
ITransaction transaction)
Gets the ForumTopicConfig for the specified topicId. |
void |
increasePostedMessages(java.lang.String topicId,
ITransaction transaction)
Increase topic and forum's message counters. |
void |
increasePostedTopics(java.lang.String topicId,
ITransaction transaction)
Increase the forum's topic counter. |
void |
increaseTopicViews(java.lang.String topicId,
ITransaction transaction)
Increase the topic view counter. |
void |
setForumLastMessageInfo(java.lang.String forumId,
java.lang.String lastTopicUser,
java.sql.Timestamp lastTopicDate,
ITransaction transaction)
Sets the forum's last message post date and user. |
void |
setForumState(java.lang.String forumId,
int state,
ITransaction transaction)
|
void |
setTopicFirstMessage(java.lang.String topicId,
java.lang.String messageId,
ITransaction transaction)
Updates the topic's firstMessageId colum with the specified messageId. |
void |
setTopicLastMessageInfo(java.lang.String topicId,
java.lang.String lastMessageUser,
java.sql.Timestamp lastMessageDate,
ITransaction transaction)
Sets the topic's last message post date and user. |
void |
setTopicState(java.lang.String topicId,
int state,
ITransaction transaction)
Sets the topic state. |
void |
setTopicSubject(java.lang.String topicId,
java.lang.String subject,
ITransaction transaction)
Updates the topic subject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForumDaoJdbc()
Method Detail |
---|
public java.lang.String getForumIdByTopicId(java.lang.String topicId, ITransaction transaction) throws PortalException
PortalException
public java.lang.String getPrimaryKeyByContentId(java.lang.String contentId)
contentId
- the content identifier.
public java.lang.String getContentIdByPrimaryKey(java.lang.String primaryKeyValue) throws PortalException
primaryKeyValue
- the primary key.
PortalException
public void setTopicSubject(java.lang.String topicId, java.lang.String subject, ITransaction transaction) throws PortalException
topicId
- subject
- transaction
-
PortalException
public void setTopicFirstMessage(java.lang.String topicId, java.lang.String messageId, ITransaction transaction) throws PortalException
topicId
- messageId
- transaction
-
PortalException
public void increasePostedTopics(java.lang.String topicId, ITransaction transaction) throws PortalException
topicId
- transaction
-
PortalException
public void increasePostedMessages(java.lang.String topicId, ITransaction transaction) throws PortalException
topicId
- transaction
-
PortalException
public void decreasePostedTopics(java.lang.String topicId, ITransaction transaction) throws PortalException
topicId
- transaction
-
PortalException
public void decreasePostedMessages(java.lang.String topicId, ITransaction transaction) throws PortalException
topicId
- transaction
-
PortalException
public java.lang.String getLastPostedTopicId(java.lang.String forumContentId, java.lang.String excludedTopicId, ITransaction transaction) throws PortalException
forumContentId
- excludedTopicId
- transaction
-
PortalException
public java.lang.String getLastPostedMessageId(java.lang.String topicContentId, java.lang.String excludedMessageId, ITransaction transaction) throws PortalException
topicContentId
- the topic content identifier.excludedMessageId
- transaction
-
PortalException
public void setTopicLastMessageInfo(java.lang.String topicId, java.lang.String lastMessageUser, java.sql.Timestamp lastMessageDate, ITransaction transaction) throws PortalException
topicId
- lastMessageUser
- lastMessageDate
- transaction
-
PortalException
public void setForumLastMessageInfo(java.lang.String forumId, java.lang.String lastTopicUser, java.sql.Timestamp lastTopicDate, ITransaction transaction) throws PortalException
forumId
- lastTopicUser
- lastTopicDate
- transaction
-
PortalException
public ForumTopicConfig getTopic(java.lang.String topicId, ITransaction transaction) throws PortalException
ForumTopicConfig
for the specified topicId.
topicId
- transaction
-
PortalException
public ForumMessageConfig getMessage(java.lang.String messageId, ITransaction transaction) throws PortalException
ForumMessageConfig
for the specified message id.
messageId
- transaction
-
PortalException
public ForumCategoryConfig getCategory(java.lang.String categoryId, ITransaction transaction) throws PortalException
ForumCategoryConfig
for the specified categoryId.
categoryId
- transaction
-
PortalException
public ForumConfig getForum(java.lang.String forumId, ITransaction transaction) throws PortalException
PortalException
public void increaseTopicViews(java.lang.String topicId, ITransaction transaction) throws PortalException
topicId
- the topic identifier.transaction
- the transaction for persistence access.
PortalException
public void setTopicState(java.lang.String topicId, int state, ITransaction transaction) throws PortalException
topicId
- the topic identifier.state
- the state to set.transaction
- the transaction for persistence access.
PortalException
public void setForumState(java.lang.String forumId, int state, ITransaction transaction) throws PortalException
PortalException
public java.util.Collection<java.lang.String> getForumTopicIds(java.lang.String forumContentId, ITransaction transaction) throws PortalException
PortalException
public java.util.Collection<java.lang.String> getForumIdsByCategory(java.lang.String categoryContentId, ITransaction transaction) throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |