com.liferay.portal.service.persistence
Interface UserGroupPersistence

All Superinterfaces:
BasePersistence<UserGroup>

public interface UserGroupPersistence
extends BasePersistence<UserGroup>

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:
UserGroupPersistenceImpl, UserGroupUtil
Generated:

Method Summary
 void addUser(long pk, long userPK)
           
 void addUser(long pk, User user)
           
 void addUsers(long pk, java.util.List<User> users)
           
 void addUsers(long pk, long[] userPKs)
           
 void cacheResult(java.util.List<UserGroup> userGroups)
           
 void cacheResult(UserGroup userGroup)
           
 void clearUsers(long pk)
           
 boolean containsUser(long pk, long userPK)
           
 boolean containsUsers(long pk)
           
 int countAll()
           
 int countByC_N(long companyId, java.lang.String name)
           
 int countByC_P(long companyId, long parentUserGroupId)
           
 int countByCompanyId(long companyId)
           
 UserGroup create(long userGroupId)
           
 UserGroup fetchByC_N(long companyId, java.lang.String name)
           
 UserGroup fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache)
           
 UserGroup fetchByPrimaryKey(long userGroupId)
           
 java.util.List<UserGroup> findAll()
           
 java.util.List<UserGroup> findAll(int start, int end)
           
 java.util.List<UserGroup> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup findByC_N(long companyId, java.lang.String name)
           
 UserGroup findByC_P_First(long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup findByC_P_Last(long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup[] findByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroup> findByC_P(long companyId, long parentUserGroupId)
           
 java.util.List<UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end)
           
 java.util.List<UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup[] findByCompanyId_PrevAndNext(long userGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroup> findByCompanyId(long companyId)
           
 java.util.List<UserGroup> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<UserGroup> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroup findByPrimaryKey(long userGroupId)
           
 java.util.List<User> getUsers(long pk)
           
 java.util.List<User> getUsers(long pk, int start, int end)
           
 java.util.List<User> getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getUsersSize(long pk)
           
 UserGroup remove(long userGroupId)
           
 void removeAll()
           
 void removeByC_N(long companyId, java.lang.String name)
           
 void removeByC_P(long companyId, long parentUserGroupId)
           
 void removeByCompanyId(long companyId)
           
 void removeUser(long pk, long userPK)
           
 void removeUser(long pk, User user)
           
 void removeUsers(long pk, java.util.List<User> users)
           
 void removeUsers(long pk, long[] userPKs)
           
 void setUsers(long pk, java.util.List<User> users)
           
 void setUsers(long pk, long[] userPKs)
           
 UserGroup updateImpl(UserGroup userGroup, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, getListeners, registerListener, remove, remove, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(UserGroup userGroup)

cacheResult

void cacheResult(java.util.List<UserGroup> userGroups)

create

UserGroup create(long userGroupId)

remove

UserGroup remove(long userGroupId)
                 throws NoSuchUserGroupException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

updateImpl

UserGroup updateImpl(UserGroup userGroup,
                     boolean merge)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByPrimaryKey

UserGroup findByPrimaryKey(long userGroupId)
                           throws NoSuchUserGroupException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

fetchByPrimaryKey

UserGroup fetchByPrimaryKey(long userGroupId)
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByCompanyId

java.util.List<UserGroup> findByCompanyId(long companyId)
                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByCompanyId

java.util.List<UserGroup> findByCompanyId(long companyId,
                                          int start,
                                          int end)
                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByCompanyId

java.util.List<UserGroup> findByCompanyId(long companyId,
                                          int start,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByCompanyId_First

UserGroup findByCompanyId_First(long companyId,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws NoSuchUserGroupException,
                                       com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

findByCompanyId_Last

UserGroup findByCompanyId_Last(long companyId,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws NoSuchUserGroupException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

findByCompanyId_PrevAndNext

UserGroup[] findByCompanyId_PrevAndNext(long userGroupId,
                                        long companyId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws NoSuchUserGroupException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

findByC_P

java.util.List<UserGroup> findByC_P(long companyId,
                                    long parentUserGroupId)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_P

java.util.List<UserGroup> findByC_P(long companyId,
                                    long parentUserGroupId,
                                    int start,
                                    int end)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_P

java.util.List<UserGroup> findByC_P(long companyId,
                                    long parentUserGroupId,
                                    int start,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_P_First

UserGroup findByC_P_First(long companyId,
                          long parentUserGroupId,
                          com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws NoSuchUserGroupException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

findByC_P_Last

UserGroup findByC_P_Last(long companyId,
                         long parentUserGroupId,
                         com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws NoSuchUserGroupException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

findByC_P_PrevAndNext

UserGroup[] findByC_P_PrevAndNext(long userGroupId,
                                  long companyId,
                                  long parentUserGroupId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws NoSuchUserGroupException,
                                         com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

findByC_N

UserGroup findByC_N(long companyId,
                    java.lang.String name)
                    throws NoSuchUserGroupException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

fetchByC_N

UserGroup fetchByC_N(long companyId,
                     java.lang.String name)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchByC_N

UserGroup fetchByC_N(long companyId,
                     java.lang.String name,
                     boolean retrieveFromCache)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

java.util.List<UserGroup> findAll()
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

java.util.List<UserGroup> findAll(int start,
                                  int end)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

java.util.List<UserGroup> findAll(int start,
                                  int end,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByC_P

void removeByC_P(long companyId,
                 long parentUserGroupId)
                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByC_N

void removeByC_N(long companyId,
                 java.lang.String name)
                 throws NoSuchUserGroupException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
NoSuchUserGroupException
com.liferay.portal.kernel.exception.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByCompanyId

int countByCompanyId(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_P

int countByC_P(long companyId,
               long parentUserGroupId)
               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_N

int countByC_N(long companyId,
               java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countAll

int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getUsers

java.util.List<User> getUsers(long pk)
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getUsers

java.util.List<User> getUsers(long pk,
                              int start,
                              int end)
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getUsers

java.util.List<User> getUsers(long pk,
                              int start,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getUsersSize

int getUsersSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

containsUser

boolean containsUser(long pk,
                     long userPK)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

containsUsers

boolean containsUsers(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addUser

void addUser(long pk,
             long userPK)
             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addUser

void addUser(long pk,
             User user)
             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addUsers

void addUsers(long pk,
              long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addUsers

void addUsers(long pk,
              java.util.List<User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

clearUsers

void clearUsers(long pk)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeUser

void removeUser(long pk,
                long userPK)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeUser

void removeUser(long pk,
                User user)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeUsers

void removeUsers(long pk,
                 long[] userPKs)
                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeUsers

void removeUsers(long pk,
                 java.util.List<User> users)
                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

setUsers

void setUsers(long pk,
              long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

setUsers

void setUsers(long pk,
              java.util.List<User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException