com.liferay.portlet.social.service.persistence
Class SocialActivityFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      extended by com.liferay.portlet.social.service.persistence.SocialActivityFinderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portlet.social.service.persistence.SocialActivityFinder

public class SocialActivityFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
implements com.liferay.portlet.social.service.persistence.SocialActivityFinder

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String COUNT_BY_GROUP_ID
           
static java.lang.String COUNT_BY_ORGANIZATION_ID
           
static java.lang.String COUNT_BY_RELATION
           
static java.lang.String COUNT_BY_RELATION_TYPE
           
static java.lang.String FIND_BY_GROUP_ID
           
static java.lang.String FIND_BY_ORGANIZATION_ID
           
static java.lang.String FIND_BY_RELATION
           
static java.lang.String FIND_BY_RELATION_TYPE
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME
 
Constructor Summary
SocialActivityFinderImpl()
           
 
Method Summary
 int countByGroupId(long groupId)
           
 int countByOrganizationId(long organizationId)
           
 int countByRelation(long userId)
           
 int countByRelationType(long userId, int type)
           
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(long organizationId, int start, int end)
           
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(long userId, int start, int end)
           
 java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(long userId, int type, int start, int end)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
closeSession, getDataSource, getDialect, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_GROUP_ID

public static java.lang.String COUNT_BY_GROUP_ID

COUNT_BY_ORGANIZATION_ID

public static java.lang.String COUNT_BY_ORGANIZATION_ID

COUNT_BY_RELATION

public static java.lang.String COUNT_BY_RELATION

COUNT_BY_RELATION_TYPE

public static java.lang.String COUNT_BY_RELATION_TYPE

FIND_BY_GROUP_ID

public static java.lang.String FIND_BY_GROUP_ID

FIND_BY_ORGANIZATION_ID

public static java.lang.String FIND_BY_ORGANIZATION_ID

FIND_BY_RELATION

public static java.lang.String FIND_BY_RELATION

FIND_BY_RELATION_TYPE

public static java.lang.String FIND_BY_RELATION_TYPE
Constructor Detail

SocialActivityFinderImpl

public SocialActivityFinderImpl()
Method Detail

countByGroupId

public int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Specified by:
countByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

countByOrganizationId

public int countByOrganizationId(long organizationId)
                          throws com.liferay.portal.SystemException
Specified by:
countByOrganizationId in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

countByRelation

public int countByRelation(long userId)
                    throws com.liferay.portal.SystemException
Specified by:
countByRelation in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

countByRelationType

public int countByRelationType(long userId,
                               int type)
                        throws com.liferay.portal.SystemException
Specified by:
countByRelationType in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

findByGroupId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(long groupId,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.SystemException
Specified by:
findByGroupId in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

findByOrganizationId

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByOrganizationId(long organizationId,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.SystemException
Specified by:
findByOrganizationId in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

findByRelation

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelation(long userId,
                                                                                      int start,
                                                                                      int end)
                                                                               throws com.liferay.portal.SystemException
Specified by:
findByRelation in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException

findByRelationType

public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByRelationType(long userId,
                                                                                          int type,
                                                                                          int start,
                                                                                          int end)
                                                                                   throws com.liferay.portal.SystemException
Specified by:
findByRelationType in interface com.liferay.portlet.social.service.persistence.SocialActivityFinder
Throws:
com.liferay.portal.SystemException