com.liferay.portal.service.persistence
Class UserGroupRoleUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.UserGroupRoleUtil

public class UserGroupRoleUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
UserGroupRolePersistence, UserGroupRolePersistenceImpl
Generated:

Constructor Summary
UserGroupRoleUtil()
           
 
Method Summary
static void cacheResult(java.util.List<UserGroupRole> userGroupRoles)
           
static void cacheResult(UserGroupRole userGroupRole)
           
static void clearCache()
           
static void clearCache(UserGroupRole userGroupRole)
           
static int countAll()
           
static int countByG_R(long groupId, long roleId)
           
static int countByGroupId(long groupId)
           
static int countByRoleId(long roleId)
           
static int countByU_G(long userId, long groupId)
           
static int countByUserId(long userId)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static UserGroupRole create(UserGroupRolePK userGroupRolePK)
           
static UserGroupRole fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
           
static java.util.List<UserGroupRole> findAll()
           
static java.util.List<UserGroupRole> findAll(int start, int end)
           
static java.util.List<UserGroupRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByG_R_First(long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByG_R_Last(long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK, long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<UserGroupRole> findByG_R(long groupId, long roleId)
           
static java.util.List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end)
           
static java.util.List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<UserGroupRole> findByGroupId(long groupId)
           
static java.util.List<UserGroupRole> findByGroupId(long groupId, int start, int end)
           
static java.util.List<UserGroupRole> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByPrimaryKey(UserGroupRolePK userGroupRolePK)
           
static UserGroupRole findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<UserGroupRole> findByRoleId(long roleId)
           
static java.util.List<UserGroupRole> findByRoleId(long roleId, int start, int end)
           
static java.util.List<UserGroupRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByU_G_First(long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByU_G_Last(long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK, long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<UserGroupRole> findByU_G(long userId, long groupId)
           
static java.util.List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end)
           
static java.util.List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<UserGroupRole> findByUserId(long userId)
           
static java.util.List<UserGroupRole> findByUserId(long userId, int start, int end)
           
static java.util.List<UserGroupRole> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static UserGroupRolePersistence getPersistence()
           
static UserGroupRole remove(UserGroupRole userGroupRole)
           
static UserGroupRole remove(UserGroupRolePK userGroupRolePK)
           
static void removeAll()
           
static void removeByG_R(long groupId, long roleId)
           
static void removeByGroupId(long groupId)
           
static void removeByRoleId(long roleId)
           
static void removeByU_G(long userId, long groupId)
           
static void removeByUserId(long userId)
           
 void setPersistence(UserGroupRolePersistence persistence)
           
static UserGroupRole update(UserGroupRole userGroupRole)
          Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static UserGroupRole update(UserGroupRole userGroupRole, boolean merge)
           
static UserGroupRole updateImpl(UserGroupRole userGroupRole, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroupRoleUtil

public UserGroupRoleUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(UserGroupRole userGroupRole)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(UserGroupRole)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static UserGroupRole remove(UserGroupRole userGroupRole)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static UserGroupRole update(UserGroupRole userGroupRole,
                                   boolean merge)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(UserGroupRole userGroupRole)

cacheResult

public static void cacheResult(java.util.List<UserGroupRole> userGroupRoles)

create

public static UserGroupRole create(UserGroupRolePK userGroupRolePK)

remove

public static UserGroupRole remove(UserGroupRolePK userGroupRolePK)
                            throws NoSuchUserGroupRoleException,
                                   com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

update

public static UserGroupRole update(UserGroupRole userGroupRole)
                            throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

public static UserGroupRole updateImpl(UserGroupRole userGroupRole,
                                       boolean merge)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static UserGroupRole findByPrimaryKey(UserGroupRolePK userGroupRolePK)
                                      throws NoSuchUserGroupRoleException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

fetchByPrimaryKey

public static UserGroupRole fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<UserGroupRole> findByUserId(long userId)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<UserGroupRole> findByUserId(long userId,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<UserGroupRole> findByUserId(long userId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

public static UserGroupRole findByUserId_First(long userId,
                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                        throws NoSuchUserGroupRoleException,
                                               com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByUserId_Last

public static UserGroupRole findByUserId_Last(long userId,
                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                       throws NoSuchUserGroupRoleException,
                                              com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByUserId_PrevAndNext

public static UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                       long userId,
                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                throws NoSuchUserGroupRoleException,
                                                       com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<UserGroupRole> findByGroupId(long groupId)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<UserGroupRole> findByGroupId(long groupId,
                                                          int start,
                                                          int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<UserGroupRole> findByGroupId(long groupId,
                                                          int start,
                                                          int end,
                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public static UserGroupRole findByGroupId_First(long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                         throws NoSuchUserGroupRoleException,
                                                com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByGroupId_Last

public static UserGroupRole findByGroupId_Last(long groupId,
                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                        throws NoSuchUserGroupRoleException,
                                               com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByGroupId_PrevAndNext

public static UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                        long groupId,
                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                 throws NoSuchUserGroupRoleException,
                                                        com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByRoleId

public static java.util.List<UserGroupRole> findByRoleId(long roleId)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

public static java.util.List<UserGroupRole> findByRoleId(long roleId,
                                                         int start,
                                                         int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

public static java.util.List<UserGroupRole> findByRoleId(long roleId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId_First

public static UserGroupRole findByRoleId_First(long roleId,
                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                        throws NoSuchUserGroupRoleException,
                                               com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByRoleId_Last

public static UserGroupRole findByRoleId_Last(long roleId,
                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                       throws NoSuchUserGroupRoleException,
                                              com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByRoleId_PrevAndNext

public static UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                       long roleId,
                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                throws NoSuchUserGroupRoleException,
                                                       com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByU_G

public static java.util.List<UserGroupRole> findByU_G(long userId,
                                                      long groupId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

public static java.util.List<UserGroupRole> findByU_G(long userId,
                                                      long groupId,
                                                      int start,
                                                      int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

public static java.util.List<UserGroupRole> findByU_G(long userId,
                                                      long groupId,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G_First

public static UserGroupRole findByU_G_First(long userId,
                                            long groupId,
                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                     throws NoSuchUserGroupRoleException,
                                            com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByU_G_Last

public static UserGroupRole findByU_G_Last(long userId,
                                           long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                    throws NoSuchUserGroupRoleException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByU_G_PrevAndNext

public static UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                    long userId,
                                                    long groupId,
                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                             throws NoSuchUserGroupRoleException,
                                                    com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByG_R

public static java.util.List<UserGroupRole> findByG_R(long groupId,
                                                      long roleId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R

public static java.util.List<UserGroupRole> findByG_R(long groupId,
                                                      long roleId,
                                                      int start,
                                                      int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R

public static java.util.List<UserGroupRole> findByG_R(long groupId,
                                                      long roleId,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R_First

public static UserGroupRole findByG_R_First(long groupId,
                                            long roleId,
                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                     throws NoSuchUserGroupRoleException,
                                            com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByG_R_Last

public static UserGroupRole findByG_R_Last(long groupId,
                                           long roleId,
                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                    throws NoSuchUserGroupRoleException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByG_R_PrevAndNext

public static UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                    long groupId,
                                                    long roleId,
                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                             throws NoSuchUserGroupRoleException,
                                                    com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findAll

public static java.util.List<UserGroupRole> findAll()
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<UserGroupRole> findAll(int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<UserGroupRole> findAll(int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

public static void removeByUserId(long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByRoleId

public static void removeByRoleId(long roleId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_G

public static void removeByU_G(long userId,
                               long groupId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_R

public static void removeByG_R(long groupId,
                               long roleId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

public static int countByUserId(long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

public static int countByGroupId(long groupId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByRoleId

public static int countByRoleId(long roleId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_G

public static int countByU_G(long userId,
                             long groupId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_R

public static int countByG_R(long groupId,
                             long roleId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static UserGroupRolePersistence getPersistence()

setPersistence

public void setPersistence(UserGroupRolePersistence persistence)