com.liferay.portal.service.persistence
Class OrganizationFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
      extended by com.liferay.portal.service.persistence.OrganizationFinderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>, com.liferay.portal.service.persistence.OrganizationFinder

public class OrganizationFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
implements com.liferay.portal.service.persistence.OrganizationFinder

View Source

Author:
Amos Fong, Brian Wing Shun Chan, Jorge Ferrer

Field Summary
static java.lang.String COUNT_BY_C_PO_N_L_S_C_Z_R_C
           
static java.lang.String COUNT_BY_C_PO_N_S_C_Z_R_C
           
static java.lang.String COUNT_BY_ORGANIZATION_ID
           
protected static java.lang.String COUNTRY_ID_SQL
           
static java.lang.String FIND_BY_C_PO_N_L_S_C_Z_R_C
           
static java.lang.String FIND_BY_C_PO_N_S_C_Z_R_C
           
static java.lang.String JOIN_BY_GROUPS_PERMISSIONS
           
static java.lang.String JOIN_BY_ORG_GROUP_PERMISSION
           
static java.lang.String JOIN_BY_ORGANIZATIONS_GROUPS
           
static java.lang.String JOIN_BY_ORGANIZATIONS_PASSWORD_POLICIES
           
static java.lang.String JOIN_BY_ORGANIZATIONS_ROLES
           
static java.lang.String JOIN_BY_ORGANIZATIONS_USER_GROUPS
           
static java.lang.String JOIN_BY_ORGANIZATIONS_USERS
           
static java.lang.String JOIN_BY_USERS_ORGS
           
protected static java.lang.String REGION_ID_SQL
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT
 
Constructor Summary
OrganizationFinderImpl()
           
 
Method Summary
 int countByC_PO_N_T_S_C_Z_R_C(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String[] names, java.lang.String type, java.lang.String[] streets, java.lang.String[] cities, java.lang.String[] zips, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator)
           
 int countByC_PO_N_T_S_C_Z_R_C(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String name, java.lang.String type, java.lang.String street, java.lang.String city, java.lang.String zip, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator)
           
 int countByKeywords(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String keywords, java.lang.String type, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 int countByO_U(long organizationId, long userId)
           
protected  int countByOrganizationId(com.liferay.portal.kernel.dao.orm.Session session, long organizationId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
protected  int countByPermissions(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String[] names, java.lang.String type, java.lang.String[] streets, java.lang.String[] cities, java.lang.String[] zips, java.lang.Long regionId, java.lang.Long countryId, long resourceId, long groupId, boolean andOperator)
           
 java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String[] names, java.lang.String type, java.lang.String[] streets, java.lang.String[] cities, java.lang.String[] zips, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String name, java.lang.String type, java.lang.String street, java.lang.String city, java.lang.String zip, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portal.model.Organization> findByKeywords(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String keywords, java.lang.String type, java.lang.Long regionId, java.lang.Long countryId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
protected  java.util.List<com.liferay.portal.model.Organization> findByPermissions(long companyId, long parentOrganizationId, java.lang.String parentOrganizationIdComparator, java.lang.String[] names, java.lang.String type, java.lang.String[] streets, java.lang.String[] cities, java.lang.String[] zips, java.lang.Long regionId, java.lang.Long countryId, long resourceId, long groupId, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
protected  java.lang.String getJoin(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
protected  java.lang.String getJoin(java.lang.String key)
           
protected  java.lang.String getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
protected  java.lang.String getWhere(java.lang.String key)
           
protected  java.lang.String getWhere(java.lang.String key, java.lang.Object value)
           
protected  void setJoin(com.liferay.portal.kernel.dao.orm.QueryPos qPos, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, closeSession, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, setDataSource, setSessionFactory, unregisterListener, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_ORGANIZATION_ID

public static java.lang.String COUNT_BY_ORGANIZATION_ID

COUNT_BY_C_PO_N_S_C_Z_R_C

public static java.lang.String COUNT_BY_C_PO_N_S_C_Z_R_C

COUNT_BY_C_PO_N_L_S_C_Z_R_C

public static java.lang.String COUNT_BY_C_PO_N_L_S_C_Z_R_C

FIND_BY_C_PO_N_S_C_Z_R_C

public static java.lang.String FIND_BY_C_PO_N_S_C_Z_R_C

FIND_BY_C_PO_N_L_S_C_Z_R_C

public static java.lang.String FIND_BY_C_PO_N_L_S_C_Z_R_C

JOIN_BY_GROUPS_PERMISSIONS

public static java.lang.String JOIN_BY_GROUPS_PERMISSIONS

JOIN_BY_ORGANIZATIONS_GROUPS

public static java.lang.String JOIN_BY_ORGANIZATIONS_GROUPS

JOIN_BY_ORGANIZATIONS_USER_GROUPS

public static java.lang.String JOIN_BY_ORGANIZATIONS_USER_GROUPS

JOIN_BY_ORGANIZATIONS_PASSWORD_POLICIES

public static java.lang.String JOIN_BY_ORGANIZATIONS_PASSWORD_POLICIES

JOIN_BY_ORGANIZATIONS_ROLES

public static java.lang.String JOIN_BY_ORGANIZATIONS_ROLES

JOIN_BY_ORGANIZATIONS_USERS

public static java.lang.String JOIN_BY_ORGANIZATIONS_USERS

JOIN_BY_ORG_GROUP_PERMISSION

public static java.lang.String JOIN_BY_ORG_GROUP_PERMISSION

JOIN_BY_USERS_ORGS

public static java.lang.String JOIN_BY_USERS_ORGS

COUNTRY_ID_SQL

protected static java.lang.String COUNTRY_ID_SQL

REGION_ID_SQL

protected static java.lang.String REGION_ID_SQL
Constructor Detail

OrganizationFinderImpl

public OrganizationFinderImpl()
Method Detail

countByKeywords

public int countByKeywords(long companyId,
                           long parentOrganizationId,
                           java.lang.String parentOrganizationIdComparator,
                           java.lang.String keywords,
                           java.lang.String type,
                           java.lang.Long regionId,
                           java.lang.Long countryId,
                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByKeywords in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByO_U

public int countByO_U(long organizationId,
                      long userId)
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByO_U in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_PO_N_T_S_C_Z_R_C

public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
                                     long parentOrganizationId,
                                     java.lang.String parentOrganizationIdComparator,
                                     java.lang.String name,
                                     java.lang.String type,
                                     java.lang.String street,
                                     java.lang.String city,
                                     java.lang.String zip,
                                     java.lang.Long regionId,
                                     java.lang.Long countryId,
                                     java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                     boolean andOperator)
                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByC_PO_N_T_S_C_Z_R_C in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_PO_N_T_S_C_Z_R_C

public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
                                     long parentOrganizationId,
                                     java.lang.String parentOrganizationIdComparator,
                                     java.lang.String[] names,
                                     java.lang.String type,
                                     java.lang.String[] streets,
                                     java.lang.String[] cities,
                                     java.lang.String[] zips,
                                     java.lang.Long regionId,
                                     java.lang.Long countryId,
                                     java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                     boolean andOperator)
                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByC_PO_N_T_S_C_Z_R_C in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByKeywords

public java.util.List<com.liferay.portal.model.Organization> findByKeywords(long companyId,
                                                                            long parentOrganizationId,
                                                                            java.lang.String parentOrganizationIdComparator,
                                                                            java.lang.String keywords,
                                                                            java.lang.String type,
                                                                            java.lang.Long regionId,
                                                                            java.lang.Long countryId,
                                                                            java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                                            int start,
                                                                            int end,
                                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                     throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByKeywords in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_PO_N_T_S_C_Z_R_C

public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(long companyId,
                                                                                      long parentOrganizationId,
                                                                                      java.lang.String parentOrganizationIdComparator,
                                                                                      java.lang.String name,
                                                                                      java.lang.String type,
                                                                                      java.lang.String street,
                                                                                      java.lang.String city,
                                                                                      java.lang.String zip,
                                                                                      java.lang.Long regionId,
                                                                                      java.lang.Long countryId,
                                                                                      java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                                                      boolean andOperator,
                                                                                      int start,
                                                                                      int end,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_PO_N_T_S_C_Z_R_C in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_PO_N_T_S_C_Z_R_C

public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(long companyId,
                                                                                      long parentOrganizationId,
                                                                                      java.lang.String parentOrganizationIdComparator,
                                                                                      java.lang.String[] names,
                                                                                      java.lang.String type,
                                                                                      java.lang.String[] streets,
                                                                                      java.lang.String[] cities,
                                                                                      java.lang.String[] zips,
                                                                                      java.lang.Long regionId,
                                                                                      java.lang.Long countryId,
                                                                                      java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                                                      boolean andOperator,
                                                                                      int start,
                                                                                      int end,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_PO_N_T_S_C_Z_R_C in interface com.liferay.portal.service.persistence.OrganizationFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByOrganizationId

protected int countByOrganizationId(com.liferay.portal.kernel.dao.orm.Session session,
                                    long organizationId,
                                    java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)

countByPermissions

protected int countByPermissions(long companyId,
                                 long parentOrganizationId,
                                 java.lang.String parentOrganizationIdComparator,
                                 java.lang.String[] names,
                                 java.lang.String type,
                                 java.lang.String[] streets,
                                 java.lang.String[] cities,
                                 java.lang.String[] zips,
                                 java.lang.Long regionId,
                                 java.lang.Long countryId,
                                 long resourceId,
                                 long groupId,
                                 boolean andOperator)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByPermissions

protected java.util.List<com.liferay.portal.model.Organization> findByPermissions(long companyId,
                                                                                  long parentOrganizationId,
                                                                                  java.lang.String parentOrganizationIdComparator,
                                                                                  java.lang.String[] names,
                                                                                  java.lang.String type,
                                                                                  java.lang.String[] streets,
                                                                                  java.lang.String[] cities,
                                                                                  java.lang.String[] zips,
                                                                                  java.lang.Long regionId,
                                                                                  java.lang.Long countryId,
                                                                                  long resourceId,
                                                                                  long groupId,
                                                                                  boolean andOperator,
                                                                                  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

getJoin

protected java.lang.String getJoin(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)

getJoin

protected java.lang.String getJoin(java.lang.String key)

getWhere

protected java.lang.String getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)

getWhere

protected java.lang.String getWhere(java.lang.String key)

getWhere

protected java.lang.String getWhere(java.lang.String key,
                                    java.lang.Object value)

setJoin

protected void setJoin(com.liferay.portal.kernel.dao.orm.QueryPos qPos,
                       java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)