Liferay 6.0.3

com.liferay.portal.service.persistence
Interface UserGroupPersistence

All Superinterfaces:
BasePersistence<UserGroup>
All Known Implementing Classes:
UserGroupPersistenceImpl

public interface UserGroupPersistence
extends BasePersistence<UserGroup>

See Also:
UserGroupPersistenceImpl, UserGroupUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void addGroup(long pk, Group group)
           
 void addGroup(long pk, long groupPK)
           
 void addGroups(long pk, List<Group> groups)
           
 void addGroups(long pk, long[] groupPKs)
           
 void addUser(long pk, long userPK)
           
 void addUser(long pk, User user)
           
 void addUsers(long pk, List<User> users)
           
 void addUsers(long pk, long[] userPKs)
           
 void cacheResult(List<UserGroup> userGroups)
           
 void cacheResult(UserGroup userGroup)
           
 void clearGroups(long pk)
           
 void clearUsers(long pk)
           
 boolean containsGroup(long pk, long groupPK)
           
 boolean containsGroups(long pk)
           
 boolean containsUser(long pk, long userPK)
           
 boolean containsUsers(long pk)
           
 int countAll()
           
 int countByC_N(long companyId, String name)
           
 int countByC_P(long companyId, long parentUserGroupId)
           
 int countByCompanyId(long companyId)
           
 UserGroup create(long userGroupId)
           
 UserGroup fetchByC_N(long companyId, String name)
           
 UserGroup fetchByC_N(long companyId, String name, boolean retrieveFromCache)
           
 UserGroup fetchByPrimaryKey(long userGroupId)
           
 List<UserGroup> findAll()
           
 List<UserGroup> findAll(int start, int end)
           
 List<UserGroup> findAll(int start, int end, OrderByComparator orderByComparator)
           
 UserGroup findByC_N(long companyId, String name)
           
 UserGroup findByC_P_First(long companyId, long parentUserGroupId, OrderByComparator orderByComparator)
           
 UserGroup findByC_P_Last(long companyId, long parentUserGroupId, OrderByComparator orderByComparator)
           
 UserGroup[] findByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator orderByComparator)
           
 List<UserGroup> findByC_P(long companyId, long parentUserGroupId)
           
 List<UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end)
           
 List<UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end, OrderByComparator orderByComparator)
           
 UserGroup findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
           
 UserGroup findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
           
 UserGroup[] findByCompanyId_PrevAndNext(long userGroupId, long companyId, OrderByComparator orderByComparator)
           
 List<UserGroup> findByCompanyId(long companyId)
           
 List<UserGroup> findByCompanyId(long companyId, int start, int end)
           
 List<UserGroup> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
           
 UserGroup findByPrimaryKey(long userGroupId)
           
 List<Group> getGroups(long pk)
           
 List<Group> getGroups(long pk, int start, int end)
           
 List<Group> getGroups(long pk, int start, int end, OrderByComparator orderByComparator)
           
 int getGroupsSize(long pk)
           
 List<User> getUsers(long pk)
           
 List<User> getUsers(long pk, int start, int end)
           
 List<User> getUsers(long pk, int start, int end, OrderByComparator orderByComparator)
           
 int getUsersSize(long pk)
           
 UserGroup remove(long userGroupId)
           
 void removeAll()
           
 void removeByC_N(long companyId, String name)
           
 void removeByC_P(long companyId, long parentUserGroupId)
           
 void removeByCompanyId(long companyId)
           
 void removeGroup(long pk, Group group)
           
 void removeGroup(long pk, long groupPK)
           
 void removeGroups(long pk, List<Group> groups)
           
 void removeGroups(long pk, long[] groupPKs)
           
 void removeUser(long pk, long userPK)
           
 void removeUser(long pk, User user)
           
 void removeUsers(long pk, List<User> users)
           
 void removeUsers(long pk, long[] userPKs)
           
 void setGroups(long pk, List<Group> groups)
           
 void setGroups(long pk, long[] groupPKs)
           
 void setUsers(long pk, 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, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(UserGroup userGroup)

cacheResult

void cacheResult(List<UserGroup> userGroups)

create

UserGroup create(long userGroupId)

remove

UserGroup remove(long userGroupId)
                 throws NoSuchUserGroupException,
                        SystemException
Throws:
NoSuchUserGroupException
SystemException

updateImpl

UserGroup updateImpl(UserGroup userGroup,
                     boolean merge)
                     throws SystemException
Throws:
SystemException

findByPrimaryKey

UserGroup findByPrimaryKey(long userGroupId)
                           throws NoSuchUserGroupException,
                                  SystemException
Throws:
NoSuchUserGroupException
SystemException

fetchByPrimaryKey

UserGroup fetchByPrimaryKey(long userGroupId)
                            throws SystemException
Throws:
SystemException

findByCompanyId

List<UserGroup> findByCompanyId(long companyId)
                                throws SystemException
Throws:
SystemException

findByCompanyId

List<UserGroup> findByCompanyId(long companyId,
                                int start,
                                int end)
                                throws SystemException
Throws:
SystemException

findByCompanyId

List<UserGroup> findByCompanyId(long companyId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Throws:
SystemException

findByCompanyId_First

UserGroup findByCompanyId_First(long companyId,
                                OrderByComparator orderByComparator)
                                throws NoSuchUserGroupException,
                                       SystemException
Throws:
NoSuchUserGroupException
SystemException

findByCompanyId_Last

UserGroup findByCompanyId_Last(long companyId,
                               OrderByComparator orderByComparator)
                               throws NoSuchUserGroupException,
                                      SystemException
Throws:
NoSuchUserGroupException
SystemException

findByCompanyId_PrevAndNext

UserGroup[] findByCompanyId_PrevAndNext(long userGroupId,
                                        long companyId,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchUserGroupException,
                                               SystemException
Throws:
NoSuchUserGroupException
SystemException

findByC_P

List<UserGroup> findByC_P(long companyId,
                          long parentUserGroupId)
                          throws SystemException
Throws:
SystemException

findByC_P

List<UserGroup> findByC_P(long companyId,
                          long parentUserGroupId,
                          int start,
                          int end)
                          throws SystemException
Throws:
SystemException

findByC_P

List<UserGroup> findByC_P(long companyId,
                          long parentUserGroupId,
                          int start,
                          int end,
                          OrderByComparator orderByComparator)
                          throws SystemException
Throws:
SystemException

findByC_P_First

UserGroup findByC_P_First(long companyId,
                          long parentUserGroupId,
                          OrderByComparator orderByComparator)
                          throws NoSuchUserGroupException,
                                 SystemException
Throws:
NoSuchUserGroupException
SystemException

findByC_P_Last

UserGroup findByC_P_Last(long companyId,
                         long parentUserGroupId,
                         OrderByComparator orderByComparator)
                         throws NoSuchUserGroupException,
                                SystemException
Throws:
NoSuchUserGroupException
SystemException

findByC_P_PrevAndNext

UserGroup[] findByC_P_PrevAndNext(long userGroupId,
                                  long companyId,
                                  long parentUserGroupId,
                                  OrderByComparator orderByComparator)
                                  throws NoSuchUserGroupException,
                                         SystemException
Throws:
NoSuchUserGroupException
SystemException

findByC_N

UserGroup findByC_N(long companyId,
                    String name)
                    throws NoSuchUserGroupException,
                           SystemException
Throws:
NoSuchUserGroupException
SystemException

fetchByC_N

UserGroup fetchByC_N(long companyId,
                     String name)
                     throws SystemException
Throws:
SystemException

fetchByC_N

UserGroup fetchByC_N(long companyId,
                     String name,
                     boolean retrieveFromCache)
                     throws SystemException
Throws:
SystemException

findAll

List<UserGroup> findAll()
                        throws SystemException
Throws:
SystemException

findAll

List<UserGroup> findAll(int start,
                        int end)
                        throws SystemException
Throws:
SystemException

findAll

List<UserGroup> findAll(int start,
                        int end,
                        OrderByComparator orderByComparator)
                        throws SystemException
Throws:
SystemException

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Throws:
SystemException

removeByC_P

void removeByC_P(long companyId,
                 long parentUserGroupId)
                 throws SystemException
Throws:
SystemException

removeByC_N

void removeByC_N(long companyId,
                 String name)
                 throws NoSuchUserGroupException,
                        SystemException
Throws:
NoSuchUserGroupException
SystemException

removeAll

void removeAll()
               throws SystemException
Throws:
SystemException

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Throws:
SystemException

countByC_P

int countByC_P(long companyId,
               long parentUserGroupId)
               throws SystemException
Throws:
SystemException

countByC_N

int countByC_N(long companyId,
               String name)
               throws SystemException
Throws:
SystemException

countAll

int countAll()
             throws SystemException
Throws:
SystemException

getGroups

List<Group> getGroups(long pk)
                      throws SystemException
Throws:
SystemException

getGroups

List<Group> getGroups(long pk,
                      int start,
                      int end)
                      throws SystemException
Throws:
SystemException

getGroups

List<Group> getGroups(long pk,
                      int start,
                      int end,
                      OrderByComparator orderByComparator)
                      throws SystemException
Throws:
SystemException

getGroupsSize

int getGroupsSize(long pk)
                  throws SystemException
Throws:
SystemException

containsGroup

boolean containsGroup(long pk,
                      long groupPK)
                      throws SystemException
Throws:
SystemException

containsGroups

boolean containsGroups(long pk)
                       throws SystemException
Throws:
SystemException

addGroup

void addGroup(long pk,
              long groupPK)
              throws SystemException
Throws:
SystemException

addGroup

void addGroup(long pk,
              Group group)
              throws SystemException
Throws:
SystemException

addGroups

void addGroups(long pk,
               long[] groupPKs)
               throws SystemException
Throws:
SystemException

addGroups

void addGroups(long pk,
               List<Group> groups)
               throws SystemException
Throws:
SystemException

clearGroups

void clearGroups(long pk)
                 throws SystemException
Throws:
SystemException

removeGroup

void removeGroup(long pk,
                 long groupPK)
                 throws SystemException
Throws:
SystemException

removeGroup

void removeGroup(long pk,
                 Group group)
                 throws SystemException
Throws:
SystemException

removeGroups

void removeGroups(long pk,
                  long[] groupPKs)
                  throws SystemException
Throws:
SystemException

removeGroups

void removeGroups(long pk,
                  List<Group> groups)
                  throws SystemException
Throws:
SystemException

setGroups

void setGroups(long pk,
               long[] groupPKs)
               throws SystemException
Throws:
SystemException

setGroups

void setGroups(long pk,
               List<Group> groups)
               throws SystemException
Throws:
SystemException

getUsers

List<User> getUsers(long pk)
                    throws SystemException
Throws:
SystemException

getUsers

List<User> getUsers(long pk,
                    int start,
                    int end)
                    throws SystemException
Throws:
SystemException

getUsers

List<User> getUsers(long pk,
                    int start,
                    int end,
                    OrderByComparator orderByComparator)
                    throws SystemException
Throws:
SystemException

getUsersSize

int getUsersSize(long pk)
                 throws SystemException
Throws:
SystemException

containsUser

boolean containsUser(long pk,
                     long userPK)
                     throws SystemException
Throws:
SystemException

containsUsers

boolean containsUsers(long pk)
                      throws SystemException
Throws:
SystemException

addUser

void addUser(long pk,
             long userPK)
             throws SystemException
Throws:
SystemException

addUser

void addUser(long pk,
             User user)
             throws SystemException
Throws:
SystemException

addUsers

void addUsers(long pk,
              long[] userPKs)
              throws SystemException
Throws:
SystemException

addUsers

void addUsers(long pk,
              List<User> users)
              throws SystemException
Throws:
SystemException

clearUsers

void clearUsers(long pk)
                throws SystemException
Throws:
SystemException

removeUser

void removeUser(long pk,
                long userPK)
                throws SystemException
Throws:
SystemException

removeUser

void removeUser(long pk,
                User user)
                throws SystemException
Throws:
SystemException

removeUsers

void removeUsers(long pk,
                 long[] userPKs)
                 throws SystemException
Throws:
SystemException

removeUsers

void removeUsers(long pk,
                 List<User> users)
                 throws SystemException
Throws:
SystemException

setUsers

void setUsers(long pk,
              long[] userPKs)
              throws SystemException
Throws:
SystemException

setUsers

void setUsers(long pk,
              List<User> users)
              throws SystemException
Throws:
SystemException

Liferay 6.0.3