public class ActivityPostDAOImpl extends ActivitiesDAOImpl implements ActivityPostDAO
template
MAX_LEN_ACTIVITY_DATA, MAX_LEN_ACTIVITY_TYPE, MAX_LEN_APP_TOOL_ID, MAX_LEN_NAME, MAX_LEN_SITE_ID, MAX_LEN_USER_ID
KEY_ACTIVITY_NULL_VALUE
Constructor and Description |
---|
ActivityPostDAOImpl() |
Modifier and Type | Method and Description |
---|---|
int |
deletePosts(Date keepDate,
ActivityPostEntity.STATUS status) |
Long |
getMaxActivitySeq() |
Integer |
getMaxNodeHash() |
Long |
getMinActivitySeq() |
long |
insertPost(ActivityPostEntity activityPost) |
List<ActivityPostEntity> |
selectPosts(ActivityPostEntity activityPost,
int maxItems) |
int |
updatePost(long id,
String siteNetwork,
String activityData,
ActivityPostEntity.STATUS status) |
int |
updatePostStatus(long id,
ActivityPostEntity.STATUS status) |
commitTransaction, endTransaction, rollbackTransaction, setSqlSessionTemplate, startTransaction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commitTransaction, endTransaction, rollbackTransaction, startTransaction
public List<ActivityPostEntity> selectPosts(ActivityPostEntity activityPost, int maxItems) throws SQLException
selectPosts
in interface ActivityPostDAO
SQLException
public Long getMaxActivitySeq() throws SQLException
getMaxActivitySeq
in interface ActivityPostDAO
SQLException
public Long getMinActivitySeq() throws SQLException
getMinActivitySeq
in interface ActivityPostDAO
SQLException
public Integer getMaxNodeHash() throws SQLException
getMaxNodeHash
in interface ActivityPostDAO
SQLException
public int updatePost(long id, String siteNetwork, String activityData, ActivityPostEntity.STATUS status) throws SQLException
updatePost
in interface ActivityPostDAO
SQLException
public int updatePostStatus(long id, ActivityPostEntity.STATUS status) throws SQLException
updatePostStatus
in interface ActivityPostDAO
SQLException
public int deletePosts(Date keepDate, ActivityPostEntity.STATUS status) throws SQLException
deletePosts
in interface ActivityPostDAO
SQLException
public long insertPost(ActivityPostEntity activityPost) throws SQLException
insertPost
in interface ActivityPostDAO
SQLException
Copyright © 2005–2017 Alfresco Software. All rights reserved.