/** * 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.exception.NoSuchModuleException; import com.liferay.marketplace.model.Module; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the module service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Ryan Park * @see com.liferay.marketplace.service.persistence.impl.ModulePersistenceImpl * @see ModuleUtil * @generated */ @ProviderType public interface ModulePersistence extends BasePersistence<Module> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link ModuleUtil} to access the module persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the modules where uuid = ?. * * @param uuid the uuid * @return the matching modules */ public java.util.List<Module> findByUuid(java.lang.String 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 java.util.List<Module> findByUuid(java.lang.String uuid, int start, int 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 java.util.List<Module> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 java.util.List<Module> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean 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 Module findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module[] findByUuid_PrevAndNext(long moduleId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * Removes all the modules where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of modules where uuid = ?. * * @param uuid the uuid * @return the number of matching modules */ public int countByUuid(java.lang.String uuid); /** * Returns all the modules where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching modules */ public java.util.List<Module> findByUuid_C(java.lang.String uuid, long 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 java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int 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 java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean 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 Module findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module[] findByUuid_C_PrevAndNext(long moduleId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * Removes all the modules where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(java.lang.String uuid, long 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 int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the modules where appId = ?. * * @param appId the app ID * @return the matching modules */ public java.util.List<Module> findByAppId(long 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 java.util.List<Module> findByAppId(long appId, int start, int 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 java.util.List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 java.util.List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean 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 Module findByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module[] findByAppId_PrevAndNext(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * Removes all the modules where appId = ? from the database. * * @param appId the app ID */ public void removeByAppId(long appId); /** * Returns the number of modules where appId = ?. * * @param appId the app ID * @return the number of matching modules */ public int countByAppId(long appId); /** * Returns all the modules where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @return the matching modules */ public java.util.List<Module> findByBundleSymbolicName( java.lang.String 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 java.util.List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName, int start, int 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 java.util.List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 java.util.List<Module> findByBundleSymbolicName( java.lang.String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean 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 Module findByBundleSymbolicName_First( java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByBundleSymbolicName_First( java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module findByBundleSymbolicName_Last( java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByBundleSymbolicName_Last( java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module[] findByBundleSymbolicName_PrevAndNext(long moduleId, java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * Removes all the modules where bundleSymbolicName = ? from the database. * * @param bundleSymbolicName the bundle symbolic name */ public void removeByBundleSymbolicName(java.lang.String bundleSymbolicName); /** * Returns the number of modules where bundleSymbolicName = ?. * * @param bundleSymbolicName the bundle symbolic name * @return the number of matching modules */ public int countByBundleSymbolicName(java.lang.String bundleSymbolicName); /** * Returns all the modules where contextName = ?. * * @param contextName the context name * @return the matching modules */ public java.util.List<Module> findByContextName( java.lang.String 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 java.util.List<Module> findByContextName( java.lang.String contextName, int start, int 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 java.util.List<Module> findByContextName( java.lang.String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 java.util.List<Module> findByContextName( java.lang.String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean 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 Module findByContextName_First(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByContextName_First(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module findByContextName_Last(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * 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 Module fetchByContextName_Last(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 Module[] findByContextName_PrevAndNext(long moduleId, java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException; /** * Removes all the modules where contextName = ? from the database. * * @param contextName the context name */ public void removeByContextName(java.lang.String contextName); /** * Returns the number of modules where contextName = ?. * * @param contextName the context name * @return the number of matching modules */ public int countByContextName(java.lang.String 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 Module findByA_CN(long appId, java.lang.String contextName) throws NoSuchModuleException; /** * 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 Module fetchByA_CN(long appId, java.lang.String 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 Module fetchByA_CN(long appId, java.lang.String contextName, boolean 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 Module removeByA_CN(long appId, java.lang.String contextName) throws NoSuchModuleException; /** * 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 int countByA_CN(long appId, java.lang.String 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 Module findByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) throws NoSuchModuleException; /** * 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 Module fetchByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String 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 Module fetchByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion, boolean 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 Module removeByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) throws NoSuchModuleException; /** * 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 int countByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion); /** * Caches the module in the entity cache if it is enabled. * * @param module the module */ public void cacheResult(Module module); /** * Caches the modules in the entity cache if it is enabled. * * @param modules the modules */ public void cacheResult(java.util.List<Module> 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 Module create(long 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 Module remove(long moduleId) throws NoSuchModuleException; public Module updateImpl(Module 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 Module findByPrimaryKey(long moduleId) throws NoSuchModuleException; /** * 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 Module fetchByPrimaryKey(long moduleId); @Override public java.util.Map<java.io.Serializable, Module> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the modules. * * @return the modules */ public java.util.List<Module> 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 java.util.List<Module> findAll(int start, int 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 java.util.List<Module> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> 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 java.util.List<Module> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean retrieveFromCache); /** * Removes all the modules from the database. */ public void removeAll(); /** * Returns the number of modules. * * @return the number of modules */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }