com.liferay.portal.service.persistence
Class UserGroupPersistenceImpl

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.jdbc.core.support.JdbcDaoSupport
          extended bycom.liferay.portal.service.persistence.BasePersistence
              extended bycom.liferay.portal.service.persistence.UserGroupPersistenceImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, UserGroupPersistence

public class UserGroupPersistenceImpl
extends BasePersistence
implements UserGroupPersistence

View Source

Author:
Brian Wing Shun Chan

Nested Class Summary
protected  class UserGroupPersistenceImpl.AddUser
           
protected  class UserGroupPersistenceImpl.ClearUsers
           
protected  class UserGroupPersistenceImpl.ContainsUser
           
protected  class UserGroupPersistenceImpl.RemoveUser
           
 
Field Summary
protected  UserGroupPersistenceImpl.AddUser addUser
           
protected  UserGroupPersistenceImpl.ClearUsers clearUsers
           
protected  UserGroupPersistenceImpl.ContainsUser containsUser
           
protected  UserGroupPersistenceImpl.RemoveUser removeUser
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UserGroupPersistenceImpl()
           
 
Method Summary
 void addUser(long pk, long userPK)
           
 void addUser(long pk, com.liferay.portal.model.User user)
           
 void addUsers(long pk, java.util.List users)
           
 void addUsers(long pk, long[] userPKs)
           
 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)
           
 com.liferay.portal.model.UserGroup create(long userGroupId)
           
 com.liferay.portal.model.UserGroup fetchByC_N(long companyId, java.lang.String name)
           
 com.liferay.portal.model.UserGroup fetchByPrimaryKey(long userGroupId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup findByC_N(long companyId, java.lang.String name)
           
 com.liferay.portal.model.UserGroup findByC_P_First(long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup findByC_P_Last(long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByC_P(long companyId, long parentUserGroupId)
           
 java.util.List findByC_P(long companyId, long parentUserGroupId, int begin, int end)
           
 java.util.List findByC_P(long companyId, long parentUserGroupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(long userGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByCompanyId(long companyId)
           
 java.util.List findByCompanyId(long companyId, int begin, int end)
           
 java.util.List findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 java.util.List getUsers(long pk)
           
 java.util.List getUsers(long pk, int begin, int end)
           
 java.util.List getUsers(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getUsersSize(long pk)
           
protected  void initDao()
           
 com.liferay.portal.model.UserGroup remove(long userGroupId)
           
 com.liferay.portal.model.UserGroup remove(com.liferay.portal.model.UserGroup userGroup)
           
 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, com.liferay.portal.model.User user)
           
 void removeUsers(long pk, java.util.List users)
           
 void removeUsers(long pk, long[] userPKs)
           
 void setUsers(long pk, java.util.List users)
           
 void setUsers(long pk, long[] userPKs)
           
 com.liferay.portal.model.UserGroup update(com.liferay.portal.model.UserGroup userGroup)
           
 com.liferay.portal.model.UserGroup update(com.liferay.portal.model.UserGroup userGroup, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.BasePersistence
closeSession, getDialect, getSessionFactory, openSession, openSession, setSessionFactory
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

containsUser

protected UserGroupPersistenceImpl.ContainsUser containsUser

addUser

protected UserGroupPersistenceImpl.AddUser addUser

clearUsers

protected UserGroupPersistenceImpl.ClearUsers clearUsers

removeUser

protected UserGroupPersistenceImpl.RemoveUser removeUser
Constructor Detail

UserGroupPersistenceImpl

public UserGroupPersistenceImpl()
Method Detail

create

public com.liferay.portal.model.UserGroup create(long userGroupId)
Specified by:
create in interface UserGroupPersistence

remove

public com.liferay.portal.model.UserGroup remove(long userGroupId)
                                          throws com.liferay.portal.NoSuchUserGroupException,
                                                 com.liferay.portal.SystemException
Specified by:
remove in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

remove

public com.liferay.portal.model.UserGroup remove(com.liferay.portal.model.UserGroup userGroup)
                                          throws com.liferay.portal.SystemException
Specified by:
remove in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.UserGroup update(com.liferay.portal.model.UserGroup userGroup)
                                          throws com.liferay.portal.SystemException
Specified by:
update in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.UserGroup update(com.liferay.portal.model.UserGroup userGroup,
                                                 boolean merge)
                                          throws com.liferay.portal.SystemException
Specified by:
update in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
                                                    throws com.liferay.portal.NoSuchUserGroupException,
                                                           com.liferay.portal.SystemException
Specified by:
findByPrimaryKey in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

fetchByPrimaryKey

public com.liferay.portal.model.UserGroup fetchByPrimaryKey(long userGroupId)
                                                     throws com.liferay.portal.SystemException
Specified by:
fetchByPrimaryKey in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId)
                               throws com.liferay.portal.SystemException
Specified by:
findByCompanyId in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Specified by:
findByCompanyId in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Specified by:
findByCompanyId in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

public com.liferay.portal.model.UserGroup findByCompanyId_First(long companyId,
                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                         throws com.liferay.portal.NoSuchUserGroupException,
                                                                com.liferay.portal.SystemException
Specified by:
findByCompanyId_First in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

findByCompanyId_Last

public com.liferay.portal.model.UserGroup findByCompanyId_Last(long companyId,
                                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                                        throws com.liferay.portal.NoSuchUserGroupException,
                                                               com.liferay.portal.SystemException
Specified by:
findByCompanyId_Last in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

findByCompanyId_PrevAndNext

public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(long userGroupId,
                                                                        long companyId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                 throws com.liferay.portal.NoSuchUserGroupException,
                                                                        com.liferay.portal.SystemException
Specified by:
findByCompanyId_PrevAndNext in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

findByC_P

public java.util.List findByC_P(long companyId,
                                long parentUserGroupId)
                         throws com.liferay.portal.SystemException
Specified by:
findByC_P in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByC_P

public java.util.List findByC_P(long companyId,
                                long parentUserGroupId,
                                int begin,
                                int end)
                         throws com.liferay.portal.SystemException
Specified by:
findByC_P in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByC_P

public java.util.List findByC_P(long companyId,
                                long parentUserGroupId,
                                int begin,
                                int end,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException
Specified by:
findByC_P in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findByC_P_First

public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
                                                          long parentUserGroupId,
                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                   throws com.liferay.portal.NoSuchUserGroupException,
                                                          com.liferay.portal.SystemException
Specified by:
findByC_P_First in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

findByC_P_Last

public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
                                                         long parentUserGroupId,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.NoSuchUserGroupException,
                                                         com.liferay.portal.SystemException
Specified by:
findByC_P_Last in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

findByC_P_PrevAndNext

public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(long userGroupId,
                                                                  long companyId,
                                                                  long parentUserGroupId,
                                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                                           throws com.liferay.portal.NoSuchUserGroupException,
                                                                  com.liferay.portal.SystemException
Specified by:
findByC_P_PrevAndNext in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

findByC_N

public com.liferay.portal.model.UserGroup findByC_N(long companyId,
                                                    java.lang.String name)
                                             throws com.liferay.portal.NoSuchUserGroupException,
                                                    com.liferay.portal.SystemException
Specified by:
findByC_N in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

fetchByC_N

public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
                                                     java.lang.String name)
                                              throws com.liferay.portal.SystemException
Specified by:
fetchByC_N in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Specified by:
findAll in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Specified by:
removeByCompanyId in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

removeByC_P

public void removeByC_P(long companyId,
                        long parentUserGroupId)
                 throws com.liferay.portal.SystemException
Specified by:
removeByC_P in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

removeByC_N

public void removeByC_N(long companyId,
                        java.lang.String name)
                 throws com.liferay.portal.NoSuchUserGroupException,
                        com.liferay.portal.SystemException
Specified by:
removeByC_N in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Specified by:
removeAll in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Specified by:
countByCompanyId in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

countByC_P

public int countByC_P(long companyId,
                      long parentUserGroupId)
               throws com.liferay.portal.SystemException
Specified by:
countByC_P in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

countByC_N

public int countByC_N(long companyId,
                      java.lang.String name)
               throws com.liferay.portal.SystemException
Specified by:
countByC_N in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Specified by:
countAll in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

getUsers

public java.util.List getUsers(long pk)
                        throws com.liferay.portal.NoSuchUserGroupException,
                               com.liferay.portal.SystemException
Specified by:
getUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

getUsers

public java.util.List getUsers(long pk,
                               int begin,
                               int end)
                        throws com.liferay.portal.NoSuchUserGroupException,
                               com.liferay.portal.SystemException
Specified by:
getUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

getUsers

public java.util.List getUsers(long pk,
                               int begin,
                               int end,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                        throws com.liferay.portal.NoSuchUserGroupException,
                               com.liferay.portal.SystemException
Specified by:
getUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

getUsersSize

public int getUsersSize(long pk)
                 throws com.liferay.portal.SystemException
Specified by:
getUsersSize in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

containsUser

public boolean containsUser(long pk,
                            long userPK)
                     throws com.liferay.portal.SystemException
Specified by:
containsUser in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

containsUsers

public boolean containsUsers(long pk)
                      throws com.liferay.portal.SystemException
Specified by:
containsUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.SystemException

addUser

public void addUser(long pk,
                    long userPK)
             throws com.liferay.portal.NoSuchUserGroupException,
                    com.liferay.portal.NoSuchUserException,
                    com.liferay.portal.SystemException
Specified by:
addUser in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

addUser

public void addUser(long pk,
                    com.liferay.portal.model.User user)
             throws com.liferay.portal.NoSuchUserGroupException,
                    com.liferay.portal.NoSuchUserException,
                    com.liferay.portal.SystemException
Specified by:
addUser in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

addUsers

public void addUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.NoSuchUserGroupException,
                     com.liferay.portal.NoSuchUserException,
                     com.liferay.portal.SystemException
Specified by:
addUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

addUsers

public void addUsers(long pk,
                     java.util.List users)
              throws com.liferay.portal.NoSuchUserGroupException,
                     com.liferay.portal.NoSuchUserException,
                     com.liferay.portal.SystemException
Specified by:
addUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

clearUsers

public void clearUsers(long pk)
                throws com.liferay.portal.NoSuchUserGroupException,
                       com.liferay.portal.SystemException
Specified by:
clearUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.SystemException

removeUser

public void removeUser(long pk,
                       long userPK)
                throws com.liferay.portal.NoSuchUserGroupException,
                       com.liferay.portal.NoSuchUserException,
                       com.liferay.portal.SystemException
Specified by:
removeUser in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

removeUser

public void removeUser(long pk,
                       com.liferay.portal.model.User user)
                throws com.liferay.portal.NoSuchUserGroupException,
                       com.liferay.portal.NoSuchUserException,
                       com.liferay.portal.SystemException
Specified by:
removeUser in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

removeUsers

public void removeUsers(long pk,
                        long[] userPKs)
                 throws com.liferay.portal.NoSuchUserGroupException,
                        com.liferay.portal.NoSuchUserException,
                        com.liferay.portal.SystemException
Specified by:
removeUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

removeUsers

public void removeUsers(long pk,
                        java.util.List users)
                 throws com.liferay.portal.NoSuchUserGroupException,
                        com.liferay.portal.NoSuchUserException,
                        com.liferay.portal.SystemException
Specified by:
removeUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

setUsers

public void setUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.NoSuchUserGroupException,
                     com.liferay.portal.NoSuchUserException,
                     com.liferay.portal.SystemException
Specified by:
setUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

setUsers

public void setUsers(long pk,
                     java.util.List users)
              throws com.liferay.portal.NoSuchUserGroupException,
                     com.liferay.portal.NoSuchUserException,
                     com.liferay.portal.SystemException
Specified by:
setUsers in interface UserGroupPersistence
Throws:
com.liferay.portal.NoSuchUserGroupException
com.liferay.portal.NoSuchUserException
com.liferay.portal.SystemException

initDao

protected void initDao()