Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class GroupFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Group>
      extended by com.liferay.portal.service.persistence.GroupFinderImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<Group>, GroupFinder

public class GroupFinderImpl
extends BasePersistenceImpl<Group>
implements GroupFinder


Field Summary
static String COUNT_BY_C_C_PG_N_D
           
static String COUNT_BY_GROUP_ID
           
static String COUNT_BY_LAYOUTS
           
static String FIND_BY_C_C
           
static String FIND_BY_C_C_PG_N_D
           
static String FIND_BY_C_N
           
static String FIND_BY_C_P
           
static String FIND_BY_LAYOUTS
           
static String FIND_BY_LIVE_GROUPS
           
static String FIND_BY_NO_LAYOUTS
           
static String FIND_BY_NULL_FRIENDLY_URL
           
static String FIND_BY_SYSTEM
           
static String JOIN_BY_ACTIVE
           
static String JOIN_BY_CREATOR_USER_ID
           
static String JOIN_BY_GROUP_ORG
           
static String JOIN_BY_GROUPS_ORGS
           
static String JOIN_BY_GROUPS_ROLES
           
static String JOIN_BY_GROUPS_USER_GROUPS
           
static String JOIN_BY_LAYOUT_SET
           
static String JOIN_BY_MANUAL_MEMBERSHIP
           
static String JOIN_BY_MEMBERSHIP_RESTRICTION
           
static String JOIN_BY_PAGE_COUNT
           
static String JOIN_BY_ROLE_RESOURCE_PERMISSIONS
           
static String JOIN_BY_ROLE_RESOURCE_TYPE_PERMISSIONS
           
static String JOIN_BY_SITE
           
static String JOIN_BY_TYPE
           
static String JOIN_BY_USER_GROUP_ROLE
           
static String JOIN_BY_USERS_GROUPS
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
GroupFinderImpl()
           
 
Method Summary
 int countByC_C_PG_N_D(long companyId, long[] classNameIds, long parentGroupId, String[] names, String[] descriptions, LinkedHashMap<String,Object> params, boolean andOperator)
           
protected  List<Long> countByC_C_PG_N_D(Session session, long companyId, long[] classNameIds, long parentGroupId, String parentGroupIdComparator, String[] names, String[] descriptions, LinkedHashMap<String,Object> params, boolean andOperator)
           
 int countByG_U(long groupId, long userId, boolean inherit)
           
protected  int countByGroupId(Session session, long groupId, LinkedHashMap<String,Object> params)
           
 int countByLayouts(long companyId, long parentGroupId, boolean site)
           
 List<Group> findByC_C_PG_N_D(long companyId, long[] classNameIds, long parentGroupId, String[] names, String[] descriptions, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator obc)
           
 Group findByC_N(long companyId, String name)
           
 List<Long> findByC_P(long companyId, long parentGroupId, long previousGroupId, int size)
           
 List<Group> findByCompanyId(long companyId, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
 List<Group> findByLayouts(long companyId, long parentGroupId, boolean site, int start, int end)
          Deprecated. 
 List<Group> findByLayouts(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator obc)
           
 List<Group> findByLiveGroups()
           
 List<Group> findByNoLayouts(long classNameId, boolean privateLayout, int start, int end)
           
 List<Group> findByNullFriendlyURL()
           
 List<Group> findBySystem(long companyId)
           
protected  String getJoin(LinkedHashMap<String,Object> params)
           
protected  String getWhere(LinkedHashMap<String,Object> params)
           
protected  String replaceJoinAndWhere(String sql, LinkedHashMap<String,Object> params)
           
protected  String replaceOrderBy(String sql, OrderByComparator obc)
           
protected  void setJoin(QueryPos qPos, LinkedHashMap<String,Object> params)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, remove, removeConjunction, removeImpl, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_LAYOUTS

public static final String COUNT_BY_LAYOUTS

COUNT_BY_GROUP_ID

public static final String COUNT_BY_GROUP_ID

COUNT_BY_C_C_PG_N_D

public static final String COUNT_BY_C_C_PG_N_D

FIND_BY_LAYOUTS

public static final String FIND_BY_LAYOUTS

FIND_BY_LIVE_GROUPS

public static final String FIND_BY_LIVE_GROUPS

FIND_BY_NO_LAYOUTS

public static final String FIND_BY_NO_LAYOUTS

FIND_BY_NULL_FRIENDLY_URL

public static final String FIND_BY_NULL_FRIENDLY_URL

FIND_BY_SYSTEM

public static final String FIND_BY_SYSTEM

FIND_BY_C_C

public static final String FIND_BY_C_C

FIND_BY_C_P

public static final String FIND_BY_C_P

FIND_BY_C_N

public static final String FIND_BY_C_N

FIND_BY_C_C_PG_N_D

public static final String FIND_BY_C_C_PG_N_D

JOIN_BY_ACTIVE

public static final String JOIN_BY_ACTIVE

JOIN_BY_CREATOR_USER_ID

public static final String JOIN_BY_CREATOR_USER_ID

JOIN_BY_GROUP_ORG

public static final String JOIN_BY_GROUP_ORG

JOIN_BY_GROUPS_ORGS

public static final String JOIN_BY_GROUPS_ORGS

JOIN_BY_GROUPS_ROLES

public static final String JOIN_BY_GROUPS_ROLES

JOIN_BY_GROUPS_USER_GROUPS

public static final String JOIN_BY_GROUPS_USER_GROUPS

JOIN_BY_LAYOUT_SET

public static final String JOIN_BY_LAYOUT_SET

JOIN_BY_MANUAL_MEMBERSHIP

public static final String JOIN_BY_MANUAL_MEMBERSHIP

JOIN_BY_MEMBERSHIP_RESTRICTION

public static final String JOIN_BY_MEMBERSHIP_RESTRICTION

JOIN_BY_PAGE_COUNT

public static final String JOIN_BY_PAGE_COUNT

JOIN_BY_ROLE_RESOURCE_PERMISSIONS

public static final String JOIN_BY_ROLE_RESOURCE_PERMISSIONS

JOIN_BY_ROLE_RESOURCE_TYPE_PERMISSIONS

public static final String JOIN_BY_ROLE_RESOURCE_TYPE_PERMISSIONS

JOIN_BY_SITE

public static final String JOIN_BY_SITE

JOIN_BY_TYPE

public static final String JOIN_BY_TYPE

JOIN_BY_USER_GROUP_ROLE

public static final String JOIN_BY_USER_GROUP_ROLE

JOIN_BY_USERS_GROUPS

public static final String JOIN_BY_USERS_GROUPS
Constructor Detail

GroupFinderImpl

public GroupFinderImpl()
Method Detail

countByLayouts

public int countByLayouts(long companyId,
                          long parentGroupId,
                          boolean site)
                   throws SystemException
Specified by:
countByLayouts in interface GroupFinder
Throws:
SystemException

countByG_U

public int countByG_U(long groupId,
                      long userId,
                      boolean inherit)
               throws SystemException
Specified by:
countByG_U in interface GroupFinder
Throws:
SystemException

countByC_C_PG_N_D

public int countByC_C_PG_N_D(long companyId,
                             long[] classNameIds,
                             long parentGroupId,
                             String[] names,
                             String[] descriptions,
                             LinkedHashMap<String,Object> params,
                             boolean andOperator)
                      throws SystemException
Specified by:
countByC_C_PG_N_D in interface GroupFinder
Throws:
SystemException

findByLayouts

@Deprecated
public List<Group> findByLayouts(long companyId,
                                            long parentGroupId,
                                            boolean site,
                                            int start,
                                            int end)
                          throws SystemException
Deprecated. 

Specified by:
findByLayouts in interface GroupFinder
Throws:
SystemException

findByLayouts

public List<Group> findByLayouts(long companyId,
                                 long parentGroupId,
                                 boolean site,
                                 int start,
                                 int end,
                                 OrderByComparator obc)
                          throws SystemException
Specified by:
findByLayouts in interface GroupFinder
Throws:
SystemException

findByLiveGroups

public List<Group> findByLiveGroups()
                             throws SystemException
Specified by:
findByLiveGroups in interface GroupFinder
Throws:
SystemException

findByNoLayouts

public List<Group> findByNoLayouts(long classNameId,
                                   boolean privateLayout,
                                   int start,
                                   int end)
                            throws SystemException
Specified by:
findByNoLayouts in interface GroupFinder
Throws:
SystemException

findByNullFriendlyURL

public List<Group> findByNullFriendlyURL()
                                  throws SystemException
Specified by:
findByNullFriendlyURL in interface GroupFinder
Throws:
SystemException

findBySystem

public List<Group> findBySystem(long companyId)
                         throws SystemException
Specified by:
findBySystem in interface GroupFinder
Throws:
SystemException

findByCompanyId

public List<Group> findByCompanyId(long companyId,
                                   LinkedHashMap<String,Object> params,
                                   int start,
                                   int end,
                                   OrderByComparator obc)
                            throws SystemException
Specified by:
findByCompanyId in interface GroupFinder
Throws:
SystemException

findByC_P

public List<Long> findByC_P(long companyId,
                            long parentGroupId,
                            long previousGroupId,
                            int size)
                     throws SystemException
Specified by:
findByC_P in interface GroupFinder
Throws:
SystemException

findByC_N

public Group findByC_N(long companyId,
                       String name)
                throws NoSuchGroupException,
                       SystemException
Specified by:
findByC_N in interface GroupFinder
Throws:
NoSuchGroupException
SystemException

findByC_C_PG_N_D

public List<Group> findByC_C_PG_N_D(long companyId,
                                    long[] classNameIds,
                                    long parentGroupId,
                                    String[] names,
                                    String[] descriptions,
                                    LinkedHashMap<String,Object> params,
                                    boolean andOperator,
                                    int start,
                                    int end,
                                    OrderByComparator obc)
                             throws SystemException
Specified by:
findByC_C_PG_N_D in interface GroupFinder
Throws:
SystemException

countByGroupId

protected int countByGroupId(Session session,
                             long groupId,
                             LinkedHashMap<String,Object> params)
                      throws Exception
Throws:
Exception

countByC_C_PG_N_D

protected List<Long> countByC_C_PG_N_D(Session session,
                                       long companyId,
                                       long[] classNameIds,
                                       long parentGroupId,
                                       String parentGroupIdComparator,
                                       String[] names,
                                       String[] descriptions,
                                       LinkedHashMap<String,Object> params,
                                       boolean andOperator)
                                throws Exception
Throws:
Exception

getJoin

protected String getJoin(LinkedHashMap<String,Object> params)

getWhere

protected String getWhere(LinkedHashMap<String,Object> params)

replaceJoinAndWhere

protected String replaceJoinAndWhere(String sql,
                                     LinkedHashMap<String,Object> params)

replaceOrderBy

protected String replaceOrderBy(String sql,
                                OrderByComparator obc)

setJoin

protected void setJoin(QueryPos qPos,
                       LinkedHashMap<String,Object> params)
                throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5