Class OrganizationPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Organization>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>,com.liferay.portal.kernel.service.persistence.OrganizationPersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected com.liferay.portal.kernel.service.persistence.GroupPersistenceprotected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.model.Group> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.model.User> protected com.liferay.portal.kernel.service.persistence.UserPersistenceFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroup(long pk, long groupPK) Adds an association between the organization and the group.booleanaddGroup(long pk, com.liferay.portal.kernel.model.Group group) Adds an association between the organization and the group.booleanaddGroups(long pk, long[] groupPKs) Adds an association between the organization and the groups.booleanAdds an association between the organization and the groups.booleanaddUser(long pk, long userPK) Adds an association between the organization and the user.booleanaddUser(long pk, com.liferay.portal.kernel.model.User user) Adds an association between the organization and the user.booleanaddUsers(long pk, long[] userPKs) Adds an association between the organization and the users.booleanAdds an association between the organization and the users.voidInitializes the organization persistence.voidclearGroups(long pk) Clears all associations between the organization and its groups.voidclearUsers(long pk) Clears all associations between the organization and its users.booleancontainsGroup(long pk, long groupPK) Returnstrueif the group is associated with the organization.booleancontainsGroups(long pk) Returnstrueif the organization has any groups associated with it.booleancontainsUser(long pk, long userPK) Returnstrueif the user is associated with the organization.booleancontainsUsers(long pk) Returnstrueif the organization has any users associated with it.intcountByC_LikeN(long companyId, String name) Returns the number of organizations where companyId = ? and name LIKE ?.intcountByC_LikeT(long companyId, String treePath) Returns the number of organizations where companyId = ? and treePath LIKE ?.intcountByC_N(long companyId, String name) Returns the number of organizations where companyId = ? and name = ?.intcountByC_P(long companyId, long parentOrganizationId) Returns the number of organizations where companyId = ? and parentOrganizationId = ?.intcountByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.intcountByCompanyId(long companyId) Returns the number of organizations where companyId = ?.intcountByCompanyIdLocations(long companyId) Returns the number of organizations where companyId = ?.intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of organizations where externalReferenceCode = ? and companyId = ?.intcountByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.intcountByLogoId(long logoId) Returns the number of organizations where logoId = ?.intcountByUuid(String uuid) Returns the number of organizations where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of organizations where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Organizationcreate(long organizationId) Creates a new organization with the primary key.voiddestroy()com.liferay.portal.kernel.model.OrganizationfetchByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.com.liferay.portal.kernel.model.OrganizationfetchByC_LikeT_First(long companyId, String treePath, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.com.liferay.portal.kernel.model.OrganizationfetchByC_N(long companyId, String name, boolean useFinderCache) Returns the organization where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.OrganizationfetchByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.com.liferay.portal.kernel.model.OrganizationfetchByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.com.liferay.portal.kernel.model.OrganizationfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.com.liferay.portal.kernel.model.OrganizationfetchByCompanyIdLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.com.liferay.portal.kernel.model.OrganizationfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.OrganizationfetchByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.com.liferay.portal.kernel.model.OrganizationfetchByLogoId_First(long logoId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where logoId = ?.com.liferay.portal.kernel.model.OrganizationfetchByPrimaryKey(long organizationId) Returns the organization with the primary key or returnsnullif it could not be found.com.liferay.portal.kernel.model.OrganizationfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.OrganizationfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.intfilterCountByC_LikeN(long companyId, String name) Returns the number of organizations that the user has permission to view where companyId = ? and name LIKE ?.intfilterCountByC_LikeT(long companyId, String treePath) Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.intfilterCountByC_P(long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.intfilterCountByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.intfilterCountByCompanyId(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.intfilterCountByCompanyIdLocations(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.intfilterCountByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.intfilterCountByLogoId(long logoId) Returns the number of organizations that the user has permission to view where logoId = ?.intfilterCountByUuid(String uuid) Returns the number of organizations that the user has permission to view where uuid = ?.intfilterCountByUuid_C(String uuid, long companyId) Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_LikeN(long companyId, String name) Returns all the organizations that the user has permission to view where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_LikeN(long companyId, String name, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_LikeT(long companyId, String treePath) Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_LikeT(long companyId, String treePath, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_LikeT(long companyId, String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByCompanyIdLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByLogoId(long logoId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where logoId = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?.List<com.liferay.portal.kernel.model.Organization>filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeN(long companyId, String name) Returns all the organizations where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeN(long companyId, String name, int start, int end) Returns a range of all the organizations where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.com.liferay.portal.kernel.model.OrganizationfindByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeT(long companyId, String treePath) Returns all the organizations where companyId = ? and treePath LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeT(long companyId, String treePath, int start, int end) Returns a range of all the organizations where companyId = ? and treePath LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeT(long companyId, String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_LikeT(long companyId, String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.com.liferay.portal.kernel.model.OrganizationfindByC_LikeT_First(long companyId, String treePath, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.com.liferay.portal.kernel.model.OrganizationReturns the organization where companyId = ? and name = ? or throws aNoSuchOrganizationExceptionif it could not be found.List<com.liferay.portal.kernel.model.Organization>findByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.com.liferay.portal.kernel.model.OrganizationfindByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>findByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end) Returns a range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.com.liferay.portal.kernel.model.OrganizationfindByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.List<com.liferay.portal.kernel.model.Organization>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.com.liferay.portal.kernel.model.OrganizationfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.List<com.liferay.portal.kernel.model.Organization>findByCompanyIdLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.com.liferay.portal.kernel.model.OrganizationfindByCompanyIdLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.com.liferay.portal.kernel.model.OrganizationfindByERC_C(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrganizationExceptionif it could not be found.List<com.liferay.portal.kernel.model.Organization>findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.com.liferay.portal.kernel.model.OrganizationfindByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.List<com.liferay.portal.kernel.model.Organization>findByLogoId(long logoId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where logoId = ?.com.liferay.portal.kernel.model.OrganizationfindByLogoId_First(long logoId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where logoId = ?.com.liferay.portal.kernel.model.OrganizationfindByPrimaryKey(long organizationId) Returns the organization with the primary key or throws aNoSuchOrganizationExceptionif it could not be found.List<com.liferay.portal.kernel.model.Organization>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ?.List<com.liferay.portal.kernel.model.Organization>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.OrganizationfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.OrganizationfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelperprotected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCachelong[]getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the organization.List<com.liferay.portal.kernel.model.Group>getGroups(long pk) Returns all the groups associated with the organization.List<com.liferay.portal.kernel.model.Group>getGroups(long pk, int start, int end) Returns a range of all the groups associated with the organization.List<com.liferay.portal.kernel.model.Group>getGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) Returns an ordered range of all the groups associated with the organization.intgetGroupsSize(long pk) Returns the number of groups associated with the organization.protected Stringprotected Stringlong[]getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the organization.List<com.liferay.portal.kernel.model.User>getUsers(long pk) Returns all the users associated with the organization.List<com.liferay.portal.kernel.model.User>getUsers(long pk, int start, int end) Returns a range of all the users associated with the organization.List<com.liferay.portal.kernel.model.User>getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users associated with the organization.intgetUsersSize(long pk) Returns the number of users associated with the organization.com.liferay.portal.kernel.model.Organizationremove(long organizationId) Removes the organization with the primary key from the database.voidremoveByC_LikeN(long companyId, String name) Removes all the organizations where companyId = ? and name LIKE ? from the database.voidremoveByC_LikeT(long companyId, String treePath) Removes all the organizations where companyId = ? and treePath LIKE ? from the database.com.liferay.portal.kernel.model.OrganizationremoveByC_N(long companyId, String name) Removes the organization where companyId = ? and name = ? from the database.voidremoveByC_P(long companyId, long parentOrganizationId) Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.voidremoveByC_P_LikeN(long companyId, long parentOrganizationId, String name) Removes all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ? from the database.voidremoveByCompanyId(long companyId) Removes all the organizations where companyId = ? from the database.voidremoveByCompanyIdLocations(long companyId) Removes all the organizations where companyId = ? from the database.com.liferay.portal.kernel.model.OrganizationremoveByERC_C(String externalReferenceCode, long companyId) Removes the organization where externalReferenceCode = ? and companyId = ? from the database.voidremoveByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database.voidremoveByLogoId(long logoId) Removes all the organizations where logoId = ? from the database.voidremoveByUuid(String uuid) Removes all the organizations where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the organizations where uuid = ? and companyId = ? from the database.voidremoveGroup(long pk, long groupPK) Removes the association between the organization and the group.voidremoveGroup(long pk, com.liferay.portal.kernel.model.Group group) Removes the association between the organization and the group.voidremoveGroups(long pk, long[] groupPKs) Removes the association between the organization and the groups.voidremoveGroups(long pk, List<com.liferay.portal.kernel.model.Group> groups) Removes the association between the organization and the groups.protected com.liferay.portal.kernel.model.OrganizationremoveImpl(com.liferay.portal.kernel.model.Organization organization) voidremoveUser(long pk, long userPK) Removes the association between the organization and the user.voidremoveUser(long pk, com.liferay.portal.kernel.model.User user) Removes the association between the organization and the user.voidremoveUsers(long pk, long[] userPKs) Removes the association between the organization and the users.voidremoveUsers(long pk, List<com.liferay.portal.kernel.model.User> users) Removes the association between the organization and the users.voidsetGroups(long pk, long[] groupPKs) Sets the groups associated with the organization, removing and adding associations as necessary.voidSets the groups associated with the organization, removing and adding associations as necessary.voidsetUsers(long pk, long[] userPKs) Sets the users associated with the organization, removing and adding associations as necessary.voidSets the users associated with the organization, removing and adding associations as necessary.com.liferay.portal.kernel.model.OrganizationupdateImpl(com.liferay.portal.kernel.model.Organization organization) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.OrganizationPersistence
fetchByC_N, fetchByERC_C, filterFindByC_P, filterFindByC_P, filterFindByCompanyId, filterFindByCompanyId, filterFindByCompanyIdLocations, filterFindByCompanyIdLocations, filterFindByLogoId, filterFindByLogoId, filterFindByUuid, filterFindByUuid, filterFindByUuid_C, filterFindByUuid_C, findByC_P, findByC_P, findByC_P, findByCompanyId, findByCompanyId, findByCompanyId, findByCompanyIdLocations, findByCompanyIdLocations, findByCompanyIdLocations, findByLogoId, findByLogoId, findByLogoId, findByUuid, findByUuid, findByUuid, findByUuid_C, findByUuid_C, findByUuid_C
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
groupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.GroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.GroupPersistence groupPersistence -
organizationToGroupTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.model.Group> organizationToGroupTableMapper -
userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence -
organizationToUserTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.model.User> organizationToUserTableMapper
-
-
Constructor Details
-
OrganizationPersistenceImpl
public OrganizationPersistenceImpl()
-
-
Method Details
-
findByUuid
public List<com.liferay.portal.kernel.model.Organization> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByUuid_First
public com.liferay.portal.kernel.model.Organization findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where uuid = ?.- Specified by:
findByUuid_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByUuid_First
public com.liferay.portal.kernel.model.Organization fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.- Specified by:
fetchByUuid_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByUuid
public List<com.liferay.portal.kernel.model.Organization> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByUuidin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByUuid
Removes all the organizations where uuid = ? from the database.- Specified by:
removeByUuidin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of organizations where uuid = ?.- Specified by:
countByUuidin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuid- Returns:
- the number of matching organizations
-
filterCountByUuid
Returns the number of organizations that the user has permission to view where uuid = ?.- Specified by:
filterCountByUuidin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuid- Returns:
- the number of matching organizations that the user has permission to view
-
findByUuid_C
public List<com.liferay.portal.kernel.model.Organization> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByUuid_C_First
public com.liferay.portal.kernel.model.Organization findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByUuid_C_First
public com.liferay.portal.kernel.model.Organization fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.- Specified by:
fetchByUuid_C_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByUuid_C
public List<com.liferay.portal.kernel.model.Organization> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByUuid_C
Removes all the organizations where uuid = ? and companyId = ? from the database.- Specified by:
removeByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of organizations where uuid = ? and companyId = ?.- Specified by:
countByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching organizations
-
filterCountByUuid_C
Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.- Specified by:
filterCountByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByCompanyId
public List<com.liferay.portal.kernel.model.Organization> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByCompanyId_First
public com.liferay.portal.kernel.model.Organization findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByCompanyId_First
public com.liferay.portal.kernel.model.Organization fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByCompanyId
public List<com.liferay.portal.kernel.model.Organization> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the organizations where companyId = ? from the database.- Specified by:
removeByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of organizations where companyId = ?.- Specified by:
countByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching organizations
-
filterCountByCompanyId
public int filterCountByCompanyId(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.- Specified by:
filterCountByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByCompanyIdLocations
public List<com.liferay.portal.kernel.model.Organization> findByCompanyIdLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByCompanyIdLocationsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByCompanyIdLocations_First
public com.liferay.portal.kernel.model.Organization findByCompanyIdLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where companyId = ?.- Specified by:
findByCompanyIdLocations_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByCompanyIdLocations_First
public com.liferay.portal.kernel.model.Organization fetchByCompanyIdLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.- Specified by:
fetchByCompanyIdLocations_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByCompanyIdLocations
public List<com.liferay.portal.kernel.model.Organization> filterFindByCompanyIdLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByCompanyIdLocationsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByCompanyIdLocations
public void removeByCompanyIdLocations(long companyId) Removes all the organizations where companyId = ? from the database.- Specified by:
removeByCompanyIdLocationsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company ID
-
countByCompanyIdLocations
public int countByCompanyIdLocations(long companyId) Returns the number of organizations where companyId = ?.- Specified by:
countByCompanyIdLocationsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching organizations
-
filterCountByCompanyIdLocations
public int filterCountByCompanyIdLocations(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.- Specified by:
filterCountByCompanyIdLocationsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByLogoId
public List<com.liferay.portal.kernel.model.Organization> findByLogoId(long logoId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where logoId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByLogoIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByLogoId_First
public com.liferay.portal.kernel.model.Organization findByLogoId_First(long logoId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where logoId = ?.- Specified by:
findByLogoId_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByLogoId_First
public com.liferay.portal.kernel.model.Organization fetchByLogoId_First(long logoId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where logoId = ?.- Specified by:
fetchByLogoId_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByLogoId
public List<com.liferay.portal.kernel.model.Organization> filterFindByLogoId(long logoId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where logoId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByLogoIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByLogoId
public void removeByLogoId(long logoId) Removes all the organizations where logoId = ? from the database.- Specified by:
removeByLogoIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo ID
-
countByLogoId
public int countByLogoId(long logoId) Returns the number of organizations where logoId = ?.- Specified by:
countByLogoIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo ID- Returns:
- the number of matching organizations
-
filterCountByLogoId
public int filterCountByLogoId(long logoId) Returns the number of organizations that the user has permission to view where logoId = ?.- Specified by:
filterCountByLogoIdin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
logoId- the logo ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_P
public List<com.liferay.portal.kernel.model.Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_P_First
public com.liferay.portal.kernel.model.Organization findByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.- Specified by:
findByC_P_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByC_P_First
public com.liferay.portal.kernel.model.Organization fetchByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.- Specified by:
fetchByC_P_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByC_P
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByC_P
public void removeByC_P(long companyId, long parentOrganizationId) Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.- Specified by:
removeByC_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization ID
-
countByC_P
public int countByC_P(long companyId, long parentOrganizationId) Returns the number of organizations where companyId = ? and parentOrganizationId = ?.- Specified by:
countByC_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization ID- Returns:
- the number of matching organizations
-
filterCountByC_P
public int filterCountByC_P(long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.- Specified by:
filterCountByC_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeT(long companyId, String treePath) Returns all the organizations where companyId = ? and treePath LIKE ?.- Specified by:
findByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree path- Returns:
- the matching organizations
-
findByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeT(long companyId, String treePath, int start, int end) Returns a range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeT(long companyId, String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations
-
findByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeT(long companyId, String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_LikeT_First
public com.liferay.portal.kernel.model.Organization findByC_LikeT_First(long companyId, String treePath, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.- Specified by:
findByC_LikeT_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByC_LikeT_First
public com.liferay.portal.kernel.model.Organization fetchByC_LikeT_First(long companyId, String treePath, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.- Specified by:
fetchByC_LikeT_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_LikeT(long companyId, String treePath) Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.- Specified by:
filterFindByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree path- Returns:
- the matching organizations that the user has permission to view
-
filterFindByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_LikeT(long companyId, String treePath, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_LikeT
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_LikeT(long companyId, String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree pathstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByC_LikeT
Removes all the organizations where companyId = ? and treePath LIKE ? from the database.- Specified by:
removeByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree path
-
countByC_LikeT
Returns the number of organizations where companyId = ? and treePath LIKE ?.- Specified by:
countByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree path- Returns:
- the number of matching organizations
-
filterCountByC_LikeT
Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.- Specified by:
filterCountByC_LikeTin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDtreePath- the tree path- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_N
public com.liferay.portal.kernel.model.Organization findByC_N(long companyId, String name) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the organization where companyId = ? and name = ? or throws aNoSuchOrganizationExceptionif it could not be found.- Specified by:
findByC_Nin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByC_N
public com.liferay.portal.kernel.model.Organization fetchByC_N(long companyId, String name, boolean useFinderCache) Returns the organization where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByC_Nin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching organization, or
nullif a matching organization could not be found
-
removeByC_N
public com.liferay.portal.kernel.model.Organization removeByC_N(long companyId, String name) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Removes the organization where companyId = ? and name = ? from the database.- Specified by:
removeByC_Nin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the organization that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException
-
countByC_N
Returns the number of organizations where companyId = ? and name = ?.- Specified by:
countByC_Nin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the number of matching organizations
-
findByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeN(long companyId, String name) Returns all the organizations where companyId = ? and name LIKE ?.- Specified by:
findByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the matching organizations
-
findByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeN(long companyId, String name, int start, int end) Returns a range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations
-
findByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_LikeN_First
public com.liferay.portal.kernel.model.Organization findByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where companyId = ? and name LIKE ?.- Specified by:
findByC_LikeN_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByC_LikeN_First
public com.liferay.portal.kernel.model.Organization fetchByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.- Specified by:
fetchByC_LikeN_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_LikeN(long companyId, String name) Returns all the organizations that the user has permission to view where companyId = ? and name LIKE ?.- Specified by:
filterFindByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the matching organizations that the user has permission to view
-
filterFindByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_LikeN(long companyId, String name, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_LikeN
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByC_LikeN
Removes all the organizations where companyId = ? and name LIKE ? from the database.- Specified by:
removeByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name
-
countByC_LikeN
Returns the number of organizations where companyId = ? and name LIKE ?.- Specified by:
countByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the number of matching organizations
-
filterCountByC_LikeN
Returns the number of organizations that the user has permission to view where companyId = ? and name LIKE ?.- Specified by:
filterCountByC_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDname- the name- Returns:
- the number of matching organizations that the user has permission to view
-
findByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Specified by:
findByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization ID- Returns:
- the matching organizations
-
findByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations
-
findByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByGtO_C_P_First
public com.liferay.portal.kernel.model.Organization findByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Specified by:
findByGtO_C_P_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByGtO_C_P_First
public com.liferay.portal.kernel.model.Organization fetchByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Specified by:
fetchByGtO_C_P_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Specified by:
filterFindByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization ID- Returns:
- the matching organizations that the user has permission to view
-
filterFindByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByGtO_C_P
public List<com.liferay.portal.kernel.model.Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization IDstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByGtO_C_P
public void removeByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database.- Specified by:
removeByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization ID
-
countByGtO_C_P
public int countByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Specified by:
countByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization ID- Returns:
- the number of matching organizations
-
filterCountByGtO_C_P
public int filterCountByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Specified by:
filterCountByGtO_C_Pin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the organization IDcompanyId- the company IDparentOrganizationId- the parent organization ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Specified by:
findByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the name- Returns:
- the matching organizations
-
findByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end) Returns a range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations
-
findByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
findByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_P_LikeN_First
public com.liferay.portal.kernel.model.Organization findByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Specified by:
findByC_P_LikeN_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByC_P_LikeN_First
public com.liferay.portal.kernel.model.Organization fetchByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Specified by:
fetchByC_P_LikeN_Firstin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching organization, or
nullif a matching organization could not be found
-
filterFindByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Specified by:
filterFindByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the name- Returns:
- the matching organizations that the user has permission to view
-
filterFindByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_P_LikeN
public List<com.liferay.portal.kernel.model.Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
filterFindByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the namestart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByC_P_LikeN
Removes all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ? from the database.- Specified by:
removeByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the name
-
countByC_P_LikeN
Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Specified by:
countByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the name- Returns:
- the number of matching organizations
-
filterCountByC_P_LikeN
Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Specified by:
filterCountByC_P_LikeNin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
companyId- the company IDparentOrganizationId- the parent organization IDname- the name- Returns:
- the number of matching organizations that the user has permission to view
-
findByERC_C
public com.liferay.portal.kernel.model.Organization findByERC_C(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the organization where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrganizationExceptionif it could not be found.- Specified by:
findByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a matching organization could not be found
-
fetchByERC_C
public com.liferay.portal.kernel.model.Organization fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching organization, or
nullif a matching organization could not be found
-
removeByERC_C
public com.liferay.portal.kernel.model.Organization removeByERC_C(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Removes the organization where externalReferenceCode = ? and companyId = ? from the database.- Specified by:
removeByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the organization that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException
-
countByERC_C
Returns the number of organizations where externalReferenceCode = ? and companyId = ?.- Specified by:
countByERC_Cin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching organizations
-
create
public com.liferay.portal.kernel.model.Organization create(long organizationId) Creates a new organization with the primary key. Does not add the organization to the database.- Specified by:
createin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the primary key for the new organization- Returns:
- the new organization
-
remove
public com.liferay.portal.kernel.model.Organization remove(long organizationId) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Removes the organization with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the primary key of the organization- Returns:
- the organization that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a organization with the primary key could not be found
-
removeImpl
protected com.liferay.portal.kernel.model.Organization removeImpl(com.liferay.portal.kernel.model.Organization organization) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
updateImpl
public com.liferay.portal.kernel.model.Organization updateImpl(com.liferay.portal.kernel.model.Organization organization) - Specified by:
updateImplin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
findByPrimaryKey
public com.liferay.portal.kernel.model.Organization findByPrimaryKey(long organizationId) throws com.liferay.portal.kernel.exception.NoSuchOrganizationException Returns the organization with the primary key or throws aNoSuchOrganizationExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the primary key of the organization- Returns:
- the organization
- Throws:
com.liferay.portal.kernel.exception.NoSuchOrganizationException- if a organization with the primary key could not be found
-
getCTPersistenceHelper
protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()- Overrides:
getCTPersistenceHelperin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
fetchByPrimaryKey
public com.liferay.portal.kernel.model.Organization fetchByPrimaryKey(long organizationId) Returns the organization with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
organizationId- the primary key of the organization- Returns:
- the organization, or
nullif a organization with the primary key could not be found
-
getGroupPrimaryKeys
public long[] getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the organization.- Specified by:
getGroupPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization- Returns:
- long[] of the primaryKeys of groups associated with the organization
-
getGroups
Returns all the groups associated with the organization.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization- Returns:
- the groups associated with the organization
-
getGroups
Returns a range of all the groups associated with the organization.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of groups associated with the organization
-
getGroups
public List<com.liferay.portal.kernel.model.Group> getGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) Returns an ordered range of all the groups associated with the organization.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
getGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of groups associated with the organization
-
getGroupsSize
public int getGroupsSize(long pk) Returns the number of groups associated with the organization.- Specified by:
getGroupsSizein interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization- Returns:
- the number of groups associated with the organization
-
containsGroup
public boolean containsGroup(long pk, long groupPK) Returnstrueif the group is associated with the organization.- Specified by:
containsGroupin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroupPK- the primary key of the group- Returns:
trueif the group is associated with the organization;falseotherwise
-
containsGroups
public boolean containsGroups(long pk) Returnstrueif the organization has any groups associated with it.- Specified by:
containsGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization to check for associations with groups- Returns:
trueif the organization has any groups associated with it;falseotherwise
-
addGroup
public boolean addGroup(long pk, long groupPK) Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroupPK- the primary key of the group- Returns:
trueif an association between the organization and the group was added;falseif they were already associated
-
addGroup
public boolean addGroup(long pk, com.liferay.portal.kernel.model.Group group) Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroup- the group- Returns:
trueif an association between the organization and the group was added;falseif they were already associated
-
addGroups
public boolean addGroups(long pk, long[] groupPKs) Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroupPKs- the primary keys of the groups- Returns:
trueif at least one association between the organization and the groups was added;falseif they were all already associated
-
addGroups
Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroups- the groups- Returns:
trueif at least one association between the organization and the groups was added;falseif they were all already associated
-
clearGroups
public void clearGroups(long pk) Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization to clear the associated groups from
-
removeGroup
public void removeGroup(long pk, long groupPK) Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroupPK- the primary key of the group
-
removeGroup
public void removeGroup(long pk, com.liferay.portal.kernel.model.Group group) Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroup- the group
-
removeGroups
public void removeGroups(long pk, long[] groupPKs) Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroupPKs- the primary keys of the groups
-
removeGroups
Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroups- the groups
-
setGroups
public void setGroups(long pk, long[] groupPKs) Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroupPKs- the primary keys of the groups to be associated with the organization
-
setGroups
Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setGroupsin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationgroups- the groups to be associated with the organization
-
getUserPrimaryKeys
public long[] getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the organization.- Specified by:
getUserPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization- Returns:
- long[] of the primaryKeys of users associated with the organization
-
getUsers
Returns all the users associated with the organization.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization- Returns:
- the users associated with the organization
-
getUsers
Returns a range of all the users associated with the organization.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of users associated with the organization
-
getUsers
public List<com.liferay.portal.kernel.model.User> getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users associated with the organization.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationstart- the lower bound of the range of organizationsend- the upper bound of the range of organizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of users associated with the organization
-
getUsersSize
public int getUsersSize(long pk) Returns the number of users associated with the organization.- Specified by:
getUsersSizein interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization- Returns:
- the number of users associated with the organization
-
containsUser
public boolean containsUser(long pk, long userPK) Returnstrueif the user is associated with the organization.- Specified by:
containsUserin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuserPK- the primary key of the user- Returns:
trueif the user is associated with the organization;falseotherwise
-
containsUsers
public boolean containsUsers(long pk) Returnstrueif the organization has any users associated with it.- Specified by:
containsUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization to check for associations with users- Returns:
trueif the organization has any users associated with it;falseotherwise
-
addUser
public boolean addUser(long pk, long userPK) Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuserPK- the primary key of the user- Returns:
trueif an association between the organization and the user was added;falseif they were already associated
-
addUser
public boolean addUser(long pk, com.liferay.portal.kernel.model.User user) Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuser- the user- Returns:
trueif an association between the organization and the user was added;falseif they were already associated
-
addUsers
public boolean addUsers(long pk, long[] userPKs) Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuserPKs- the primary keys of the users- Returns:
trueif at least one association between the organization and the users was added;falseif they were all already associated
-
addUsers
Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationusers- the users- Returns:
trueif at least one association between the organization and the users was added;falseif they were all already associated
-
clearUsers
public void clearUsers(long pk) Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organization to clear the associated users from
-
removeUser
public void removeUser(long pk, long userPK) Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuserPK- the primary key of the user
-
removeUser
public void removeUser(long pk, com.liferay.portal.kernel.model.User user) Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuser- the user
-
removeUsers
public void removeUsers(long pk, long[] userPKs) Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuserPKs- the primary keys of the users
-
removeUsers
Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationusers- the users
-
setUsers
public void setUsers(long pk, long[] userPKs) Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationuserPKs- the primary keys of the users to be associated with the organization
-
setUsers
Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setUsersin interfacecom.liferay.portal.kernel.service.persistence.OrganizationPersistence- Parameters:
pk- the primary key of the organizationusers- the users to be associated with the organization
-
getBadColumnNames
- Specified by:
getBadColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Organization>- Overrides:
getBadColumnNamesin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Organization>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the organization persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Organization,com.liferay.portal.kernel.exception.NoSuchOrganizationException>
-