
com.liferay.marketplace.service.persistence.ModuleUtil Maven / Gradle / Ivy
/**
* 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.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @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 service.xml
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 findWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List 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 findWithDynamicQuery(DynamicQuery dynamicQuery,
int start, int end, OrderByComparator 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 findByUuid(java.lang.String uuid) {
return getPersistence().findByUuid(uuid);
}
/**
* Returns a range of all the modules where uuid = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 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 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @return the ordered range of matching modules
*/
public static List findByUuid(java.lang.String uuid, int start,
int end, OrderByComparator orderByComparator) {
return getPersistence().findByUuid(uuid, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the modules where uuid = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching modules
*/
public static List findByUuid(java.lang.String uuid, int start,
int end, OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching module, or null
if a matching module could not be found
*/
public static Module fetchByUuid_First(java.lang.String uuid,
OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching module, or null
if a matching module could not be found
*/
public static Module fetchByUuid_Last(java.lang.String uuid,
OrderByComparator 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 null
)
* @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 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 appId = ?.
*
* @param appId the app ID
* @return the matching modules
*/
public static List findByAppId(long appId) {
return getPersistence().findByAppId(appId);
}
/**
* Returns a range of all the modules where appId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 findByAppId(long appId, int start, int end) {
return getPersistence().findByAppId(appId, start, end);
}
/**
* Returns an ordered range of all the modules where appId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @return the ordered range of matching modules
*/
public static List findByAppId(long appId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByAppId(appId, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the modules where appId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching modules
*/
public static List findByAppId(long appId, int start, int end,
OrderByComparator 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 null
)
* @return the first matching module
* @throws NoSuchModuleException if a matching module could not be found
*/
public static Module findByAppId_First(long appId,
OrderByComparator 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 null
)
* @return the first matching module, or null
if a matching module could not be found
*/
public static Module fetchByAppId_First(long appId,
OrderByComparator 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 null
)
* @return the last matching module
* @throws NoSuchModuleException if a matching module could not be found
*/
public static Module findByAppId_Last(long appId,
OrderByComparator 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 null
)
* @return the last matching module, or null
if a matching module could not be found
*/
public static Module fetchByAppId_Last(long appId,
OrderByComparator 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 null
)
* @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 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 findByBundleSymbolicName(
java.lang.String bundleSymbolicName) {
return getPersistence().findByBundleSymbolicName(bundleSymbolicName);
}
/**
* Returns a range of all the modules where bundleSymbolicName = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 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 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @return the ordered range of matching modules
*/
public static List findByBundleSymbolicName(
java.lang.String bundleSymbolicName, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence()
.findByBundleSymbolicName(bundleSymbolicName, start, end,
orderByComparator);
}
/**
* Returns an ordered range of all the modules where bundleSymbolicName = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching modules
*/
public static List findByBundleSymbolicName(
java.lang.String bundleSymbolicName, int start, int end,
OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching module, or null
if a matching module could not be found
*/
public static Module fetchByBundleSymbolicName_First(
java.lang.String bundleSymbolicName,
OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching module, or null
if a matching module could not be found
*/
public static Module fetchByBundleSymbolicName_Last(
java.lang.String bundleSymbolicName,
OrderByComparator 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 null
)
* @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 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 findByContextName(java.lang.String contextName) {
return getPersistence().findByContextName(contextName);
}
/**
* Returns a range of all the modules where contextName = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 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 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @return the ordered range of matching modules
*/
public static List findByContextName(java.lang.String contextName,
int start, int end, OrderByComparator orderByComparator) {
return getPersistence()
.findByContextName(contextName, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the modules where contextName = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching modules
*/
public static List findByContextName(java.lang.String contextName,
int start, int end, OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching module, or null
if a matching module could not be found
*/
public static Module fetchByContextName_First(
java.lang.String contextName,
OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching module, or null
if a matching module could not be found
*/
public static Module fetchByContextName_Last(java.lang.String contextName,
OrderByComparator 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 null
)
* @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 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 null
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 null
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 null
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 null
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 null
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 null
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 null
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 null
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 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 null
if it could not be found.
*
* @param moduleId the primary key of the module
* @return the module, or null
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 fetchByPrimaryKeys(
java.util.Set primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* Returns all the modules.
*
* @return the modules
*/
public static List findAll() {
return getPersistence().findAll();
}
/**
* Returns a range of all the modules.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 findAll(int start, int end) {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the modules.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @return the ordered range of modules
*/
public static List findAll(int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Returns an ordered range of all the modules.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ModuleModelImpl}. If both orderByComparator
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.
*
*
* @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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of modules
*/
public static List findAll(int start, int end,
OrderByComparator 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 getBadColumnNames() {
return getPersistence().getBadColumnNames();
}
public static ModulePersistence getPersistence() {
return _serviceTracker.getService();
}
private static ServiceTracker _serviceTracker =
ServiceTrackerFactory.open(ModulePersistence.class);
}