/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.marketplace.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.marketplace.model.Module; import com.liferay.osgi.util.ServiceTrackerFactory; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.service.ServiceContext; import com.liferay.portal.kernel.util.OrderByComparator; import org.osgi.util.tracker.ServiceTracker; import java.util.List; /** * The persistence utility for the module service. This utility wraps {@link com.liferay.marketplace.service.persistence.impl.ModulePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Ryan Park * @see ModulePersistence * @see com.liferay.marketplace.service.persistence.impl.ModulePersistenceImpl * @generated */ @ProviderType public class ModuleUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache(Module module) { getPersistence().clearCache(module); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<Module> findWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<Module> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<Module> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static Module update(Module module) { return getPersistence().update(module); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static Module update(Module module, ServiceContext serviceContext) { return getPersistence().update(module, serviceContext); } /** * Returns all the modules where uuid = ?. * * @param uuid the uuid * @return the matching modules */ public static List<Module> findByUuid(java.lang.String uuid) { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the modules where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @return the range of matching modules */ public static List<Module> findByUuid(java.lang.String uuid, int start, int end) { return getPersistence().findByUuid(uuid, start, end); } /** * Returns an ordered range of all the modules where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching modules */ public static List<Module> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence().findByUuid(uuid, start, end, orderByComparator); } /** * Returns an ordered range of all the modules where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching modules */ public static List<Module> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<Module> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByUuid(uuid, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first module in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByUuid_First(java.lang.String uuid, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first module in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByUuid_First(java.lang.String uuid, OrderByComparator<Module> orderByComparator) { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last module in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByUuid_Last(java.lang.String uuid, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last module in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByUuid_Last(java.lang.String uuid, OrderByComparator<Module> orderByComparator) { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the modules before and after the current module in the ordered set where uuid = ?. * * @param moduleId the primary key of the current module * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next module * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module[] findByUuid_PrevAndNext(long moduleId, java.lang.String uuid, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByUuid_PrevAndNext(moduleId, uuid, orderByComparator); } /** * Removes all the modules where uuid = ? from the database. * * @param uuid the uuid */ public static void removeByUuid(java.lang.String uuid) { getPersistence().removeByUuid(uuid); } /** * Returns the number of modules where uuid = ?. * * @param uuid the uuid * @return the number of matching modules */ public static int countByUuid(java.lang.String uuid) { return getPersistence().countByUuid(uuid); } /** * Returns all the modules where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching modules */ public static List<Module> findByUuid_C(java.lang.String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); } /** * Returns a range of all the modules where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @return the range of matching modules */ public static List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end) { return getPersistence().findByUuid_C(uuid, companyId, start, end); } /** * Returns an ordered range of all the modules where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching modules */ public static List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence() .findByUuid_C(uuid, companyId, start, end, orderByComparator); } /** * Returns an ordered range of all the modules where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching modules */ public static List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<Module> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByUuid_C(uuid, companyId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first module in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the first module in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<Module> orderByComparator) { return getPersistence() .fetchByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the last module in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the last module in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<Module> orderByComparator) { return getPersistence() .fetchByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the modules before and after the current module in the ordered set where uuid = ? and companyId = ?. * * @param moduleId the primary key of the current module * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next module * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module[] findByUuid_C_PrevAndNext(long moduleId, java.lang.String uuid, long companyId, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByUuid_C_PrevAndNext(moduleId, uuid, companyId, orderByComparator); } /** * Removes all the modules where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public static void removeByUuid_C(java.lang.String uuid, long companyId) { getPersistence().removeByUuid_C(uuid, companyId); } /** * Returns the number of modules where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching modules */ public static int countByUuid_C(java.lang.String uuid, long companyId) { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns all the modules where appId = ?. * * @param appId the app ID * @return the matching modules */ public static List<Module> findByAppId(long appId) { return getPersistence().findByAppId(appId); } /** * Returns a range of all the modules where appId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param appId the app ID * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @return the range of matching modules */ public static List<Module> findByAppId(long appId, int start, int end) { return getPersistence().findByAppId(appId, start, end); } /** * Returns an ordered range of all the modules where appId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param appId the app ID * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching modules */ public static List<Module> findByAppId(long appId, int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence().findByAppId(appId, start, end, orderByComparator); } /** * Returns an ordered range of all the modules where appId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param appId the app ID * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching modules */ public static List<Module> findByAppId(long appId, int start, int end, OrderByComparator<Module> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByAppId(appId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first module in the ordered set where appId = ?. * * @param appId the app ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByAppId_First(long appId, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().findByAppId_First(appId, orderByComparator); } /** * Returns the first module in the ordered set where appId = ?. * * @param appId the app ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByAppId_First(long appId, OrderByComparator<Module> orderByComparator) { return getPersistence().fetchByAppId_First(appId, orderByComparator); } /** * Returns the last module in the ordered set where appId = ?. * * @param appId the app ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByAppId_Last(long appId, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().findByAppId_Last(appId, orderByComparator); } /** * Returns the last module in the ordered set where appId = ?. * * @param appId the app ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByAppId_Last(long appId, OrderByComparator<Module> orderByComparator) { return getPersistence().fetchByAppId_Last(appId, orderByComparator); } /** * Returns the modules before and after the current module in the ordered set where appId = ?. * * @param moduleId the primary key of the current module * @param appId the app ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next module * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module[] findByAppId_PrevAndNext(long moduleId, long appId, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByAppId_PrevAndNext(moduleId, appId, orderByComparator); } /** * Removes all the modules where appId = ? from the database. * * @param appId the app ID */ public static void removeByAppId(long appId) { getPersistence().removeByAppId(appId); } /** * Returns the number of modules where appId = ?. * * @param appId the app ID * @return the number of matching modules */ public static int countByAppId(long appId) { return getPersistence().countByAppId(appId); } /** * Returns all the modules where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @return the matching modules */ public static List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName) { return getPersistence().findByBundleSymbolicName(bundleSymbolicName); } /** * Returns a range of all the modules where bundleSymbolicName = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param bundleSymbolicName the bundle symbolic name * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @return the range of matching modules */ public static List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName, int start, int end) { return getPersistence() .findByBundleSymbolicName(bundleSymbolicName, start, end); } /** * Returns an ordered range of all the modules where bundleSymbolicName = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param bundleSymbolicName the bundle symbolic name * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching modules */ public static List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName, int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence() .findByBundleSymbolicName(bundleSymbolicName, start, end, orderByComparator); } /** * Returns an ordered range of all the modules where bundleSymbolicName = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param bundleSymbolicName the bundle symbolic name * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching modules */ public static List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName, int start, int end, OrderByComparator<Module> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByBundleSymbolicName(bundleSymbolicName, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first module in the ordered set where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByBundleSymbolicName_First( java.lang.String bundleSymbolicName, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByBundleSymbolicName_First(bundleSymbolicName, orderByComparator); } /** * Returns the first module in the ordered set where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByBundleSymbolicName_First( java.lang.String bundleSymbolicName, OrderByComparator<Module> orderByComparator) { return getPersistence() .fetchByBundleSymbolicName_First(bundleSymbolicName, orderByComparator); } /** * Returns the last module in the ordered set where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByBundleSymbolicName_Last( java.lang.String bundleSymbolicName, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByBundleSymbolicName_Last(bundleSymbolicName, orderByComparator); } /** * Returns the last module in the ordered set where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByBundleSymbolicName_Last( java.lang.String bundleSymbolicName, OrderByComparator<Module> orderByComparator) { return getPersistence() .fetchByBundleSymbolicName_Last(bundleSymbolicName, orderByComparator); } /** * Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?. * * @param moduleId the primary key of the current module * @param bundleSymbolicName the bundle symbolic name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next module * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module[] findByBundleSymbolicName_PrevAndNext(long moduleId, java.lang.String bundleSymbolicName, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByBundleSymbolicName_PrevAndNext(moduleId, bundleSymbolicName, orderByComparator); } /** * Removes all the modules where bundleSymbolicName = ? from the database. * * @param bundleSymbolicName the bundle symbolic name */ public static void removeByBundleSymbolicName( java.lang.String bundleSymbolicName) { getPersistence().removeByBundleSymbolicName(bundleSymbolicName); } /** * Returns the number of modules where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @return the number of matching modules */ public static int countByBundleSymbolicName( java.lang.String bundleSymbolicName) { return getPersistence().countByBundleSymbolicName(bundleSymbolicName); } /** * Returns all the modules where contextName = ?. * * @param contextName the context name * @return the matching modules */ public static List<Module> findByContextName(java.lang.String contextName) { return getPersistence().findByContextName(contextName); } /** * Returns a range of all the modules where contextName = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param contextName the context name * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @return the range of matching modules */ public static List<Module> findByContextName(java.lang.String contextName, int start, int end) { return getPersistence().findByContextName(contextName, start, end); } /** * Returns an ordered range of all the modules where contextName = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param contextName the context name * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching modules */ public static List<Module> findByContextName(java.lang.String contextName, int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence() .findByContextName(contextName, start, end, orderByComparator); } /** * Returns an ordered range of all the modules where contextName = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param contextName the context name * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching modules */ public static List<Module> findByContextName(java.lang.String contextName, int start, int end, OrderByComparator<Module> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByContextName(contextName, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first module in the ordered set where contextName = ?. * * @param contextName the context name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByContextName_First(java.lang.String contextName, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByContextName_First(contextName, orderByComparator); } /** * Returns the first module in the ordered set where contextName = ?. * * @param contextName the context name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByContextName_First( java.lang.String contextName, OrderByComparator<Module> orderByComparator) { return getPersistence() .fetchByContextName_First(contextName, orderByComparator); } /** * Returns the last module in the ordered set where contextName = ?. * * @param contextName the context name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByContextName_Last(java.lang.String contextName, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByContextName_Last(contextName, orderByComparator); } /** * Returns the last module in the ordered set where contextName = ?. * * @param contextName the context name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByContextName_Last(java.lang.String contextName, OrderByComparator<Module> orderByComparator) { return getPersistence() .fetchByContextName_Last(contextName, orderByComparator); } /** * Returns the modules before and after the current module in the ordered set where contextName = ?. * * @param moduleId the primary key of the current module * @param contextName the context name * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next module * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module[] findByContextName_PrevAndNext(long moduleId, java.lang.String contextName, OrderByComparator<Module> orderByComparator) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByContextName_PrevAndNext(moduleId, contextName, orderByComparator); } /** * Removes all the modules where contextName = ? from the database. * * @param contextName the context name */ public static void removeByContextName(java.lang.String contextName) { getPersistence().removeByContextName(contextName); } /** * Returns the number of modules where contextName = ?. * * @param contextName the context name * @return the number of matching modules */ public static int countByContextName(java.lang.String contextName) { return getPersistence().countByContextName(contextName); } /** * Returns the module where appId = ? and contextName = ? or throws a {@link NoSuchModuleException} if it could not be found. * * @param appId the app ID * @param contextName the context name * @return the matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByA_CN(long appId, java.lang.String contextName) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().findByA_CN(appId, contextName); } /** * Returns the module where appId = ? and contextName = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param appId the app ID * @param contextName the context name * @return the matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByA_CN(long appId, java.lang.String contextName) { return getPersistence().fetchByA_CN(appId, contextName); } /** * Returns the module where appId = ? and contextName = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param appId the app ID * @param contextName the context name * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByA_CN(long appId, java.lang.String contextName, boolean retrieveFromCache) { return getPersistence() .fetchByA_CN(appId, contextName, retrieveFromCache); } /** * Removes the module where appId = ? and contextName = ? from the database. * * @param appId the app ID * @param contextName the context name * @return the module that was removed */ public static Module removeByA_CN(long appId, java.lang.String contextName) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().removeByA_CN(appId, contextName); } /** * Returns the number of modules where appId = ? and contextName = ?. * * @param appId the app ID * @param contextName the context name * @return the number of matching modules */ public static int countByA_CN(long appId, java.lang.String contextName) { return getPersistence().countByA_CN(appId, contextName); } /** * Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws a {@link NoSuchModuleException} if it could not be found. * * @param appId the app ID * @param bundleSymbolicName the bundle symbolic name * @param bundleVersion the bundle version * @return the matching module * @throws NoSuchModuleException if a matching module could not be found */ public static Module findByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .findByA_BSN_BV(appId, bundleSymbolicName, bundleVersion); } /** * Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param appId the app ID * @param bundleSymbolicName the bundle symbolic name * @param bundleVersion the bundle version * @return the matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) { return getPersistence() .fetchByA_BSN_BV(appId, bundleSymbolicName, bundleVersion); } /** * Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param appId the app ID * @param bundleSymbolicName the bundle symbolic name * @param bundleVersion the bundle version * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching module, or <code>null</code> if a matching module could not be found */ public static Module fetchByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion, boolean retrieveFromCache) { return getPersistence() .fetchByA_BSN_BV(appId, bundleSymbolicName, bundleVersion, retrieveFromCache); } /** * Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database. * * @param appId the app ID * @param bundleSymbolicName the bundle symbolic name * @param bundleVersion the bundle version * @return the module that was removed */ public static Module removeByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence() .removeByA_BSN_BV(appId, bundleSymbolicName, bundleVersion); } /** * Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?. * * @param appId the app ID * @param bundleSymbolicName the bundle symbolic name * @param bundleVersion the bundle version * @return the number of matching modules */ public static int countByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) { return getPersistence() .countByA_BSN_BV(appId, bundleSymbolicName, bundleVersion); } /** * Caches the module in the entity cache if it is enabled. * * @param module the module */ public static void cacheResult(Module module) { getPersistence().cacheResult(module); } /** * Caches the modules in the entity cache if it is enabled. * * @param modules the modules */ public static void cacheResult(List<Module> modules) { getPersistence().cacheResult(modules); } /** * Creates a new module with the primary key. Does not add the module to the database. * * @param moduleId the primary key for the new module * @return the new module */ public static Module create(long moduleId) { return getPersistence().create(moduleId); } /** * Removes the module with the primary key from the database. Also notifies the appropriate model listeners. * * @param moduleId the primary key of the module * @return the module that was removed * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module remove(long moduleId) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().remove(moduleId); } public static Module updateImpl(Module module) { return getPersistence().updateImpl(module); } /** * Returns the module with the primary key or throws a {@link NoSuchModuleException} if it could not be found. * * @param moduleId the primary key of the module * @return the module * @throws NoSuchModuleException if a module with the primary key could not be found */ public static Module findByPrimaryKey(long moduleId) throws com.liferay.marketplace.exception.NoSuchModuleException { return getPersistence().findByPrimaryKey(moduleId); } /** * Returns the module with the primary key or returns <code>null</code> if it could not be found. * * @param moduleId the primary key of the module * @return the module, or <code>null</code> if a module with the primary key could not be found */ public static Module fetchByPrimaryKey(long moduleId) { return getPersistence().fetchByPrimaryKey(moduleId); } public static java.util.Map<java.io.Serializable, Module> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * Returns all the modules. * * @return the modules */ public static List<Module> findAll() { return getPersistence().findAll(); } /** * Returns a range of all the modules. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @return the range of modules */ public static List<Module> findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the modules. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of modules */ public static List<Module> findAll(int start, int end, OrderByComparator<Module> orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the modules. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of modules * @param end the upper bound of the range of modules (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of modules */ public static List<Module> findAll(int start, int end, OrderByComparator<Module> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findAll(start, end, orderByComparator, retrieveFromCache); } /** * Removes all the modules from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of modules. * * @return the number of modules */ public static int countAll() { return getPersistence().countAll(); } public static java.util.Set<java.lang.String> getBadColumnNames() { return getPersistence().getBadColumnNames(); } public static ModulePersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker<ModulePersistence, ModulePersistence> _serviceTracker = ServiceTrackerFactory.open(ModulePersistence.class); }