All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.dynamic.data.lists.service.persistence.DDLRecordSetVersionUtil Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * 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.dynamic.data.lists.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.dynamic.data.lists.model.DDLRecordSetVersion;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;

import java.io.Serializable;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
import org.osgi.util.tracker.ServiceTracker;

/**
 * The persistence utility for the ddl record set version service. This utility wraps com.liferay.dynamic.data.lists.service.persistence.impl.DDLRecordSetVersionPersistenceImpl 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 Brian Wing Shun Chan * @see DDLRecordSetVersionPersistence * @generated */ @ProviderType public class DDLRecordSetVersionUtil { /* * 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(DDLRecordSetVersion ddlRecordSetVersion) { getPersistence().clearCache(ddlRecordSetVersion); } /** * @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#fetchByPrimaryKeys(Set) */ public static Map fetchByPrimaryKeys( Set primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * @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 DDLRecordSetVersion update( DDLRecordSetVersion ddlRecordSetVersion) { return getPersistence().update(ddlRecordSetVersion); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static DDLRecordSetVersion update( DDLRecordSetVersion ddlRecordSetVersion, ServiceContext serviceContext) { return getPersistence().update(ddlRecordSetVersion, serviceContext); } /** * Returns all the ddl record set versions where recordSetId = ?. * * @param recordSetId the record set ID * @return the matching ddl record set versions */ public static List findByRecordSetId( long recordSetId) { return getPersistence().findByRecordSetId(recordSetId); } /** * Returns a range of all the ddl record set versions where recordSetId = ?. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 recordSetId the record set ID * @param start the lower bound of the range of ddl record set versions * @param end the upper bound of the range of ddl record set versions (not inclusive) * @return the range of matching ddl record set versions */ public static List findByRecordSetId( long recordSetId, int start, int end) { return getPersistence().findByRecordSetId(recordSetId, start, end); } /** * Returns an ordered range of all the ddl record set versions where recordSetId = ?. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 recordSetId the record set ID * @param start the lower bound of the range of ddl record set versions * @param end the upper bound of the range of ddl record set versions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ddl record set versions */ public static List findByRecordSetId( long recordSetId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByRecordSetId( recordSetId, start, end, orderByComparator); } /** * Returns an ordered range of all the ddl record set versions where recordSetId = ?. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 recordSetId the record set ID * @param start the lower bound of the range of ddl record set versions * @param end the upper bound of the range of ddl record set versions (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 ddl record set versions */ public static List findByRecordSetId( long recordSetId, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByRecordSetId( recordSetId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first ddl record set version in the ordered set where recordSetId = ?. * * @param recordSetId the record set ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ddl record set version * @throws NoSuchRecordSetVersionException if a matching ddl record set version could not be found */ public static DDLRecordSetVersion findByRecordSetId_First( long recordSetId, OrderByComparator orderByComparator) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRecordSetId_First( recordSetId, orderByComparator); } /** * Returns the first ddl record set version in the ordered set where recordSetId = ?. * * @param recordSetId the record set ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ddl record set version, or null if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRecordSetId_First( long recordSetId, OrderByComparator orderByComparator) { return getPersistence().fetchByRecordSetId_First( recordSetId, orderByComparator); } /** * Returns the last ddl record set version in the ordered set where recordSetId = ?. * * @param recordSetId the record set ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ddl record set version * @throws NoSuchRecordSetVersionException if a matching ddl record set version could not be found */ public static DDLRecordSetVersion findByRecordSetId_Last( long recordSetId, OrderByComparator orderByComparator) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRecordSetId_Last( recordSetId, orderByComparator); } /** * Returns the last ddl record set version in the ordered set where recordSetId = ?. * * @param recordSetId the record set ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ddl record set version, or null if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRecordSetId_Last( long recordSetId, OrderByComparator orderByComparator) { return getPersistence().fetchByRecordSetId_Last( recordSetId, orderByComparator); } /** * Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ?. * * @param recordSetVersionId the primary key of the current ddl record set version * @param recordSetId the record set ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ddl record set version * @throws NoSuchRecordSetVersionException if a ddl record set version with the primary key could not be found */ public static DDLRecordSetVersion[] findByRecordSetId_PrevAndNext( long recordSetVersionId, long recordSetId, OrderByComparator orderByComparator) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRecordSetId_PrevAndNext( recordSetVersionId, recordSetId, orderByComparator); } /** * Removes all the ddl record set versions where recordSetId = ? from the database. * * @param recordSetId the record set ID */ public static void removeByRecordSetId(long recordSetId) { getPersistence().removeByRecordSetId(recordSetId); } /** * Returns the number of ddl record set versions where recordSetId = ?. * * @param recordSetId the record set ID * @return the number of matching ddl record set versions */ public static int countByRecordSetId(long recordSetId) { return getPersistence().countByRecordSetId(recordSetId); } /** * Returns the ddl record set version where recordSetId = ? and version = ? or throws a NoSuchRecordSetVersionException if it could not be found. * * @param recordSetId the record set ID * @param version the version * @return the matching ddl record set version * @throws NoSuchRecordSetVersionException if a matching ddl record set version could not be found */ public static DDLRecordSetVersion findByRS_V( long recordSetId, String version) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRS_V(recordSetId, version); } /** * Returns the ddl record set version where recordSetId = ? and version = ? or returns null if it could not be found. Uses the finder cache. * * @param recordSetId the record set ID * @param version the version * @return the matching ddl record set version, or null if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_V( long recordSetId, String version) { return getPersistence().fetchByRS_V(recordSetId, version); } /** * Returns the ddl record set version where recordSetId = ? and version = ? or returns null if it could not be found, optionally using the finder cache. * * @param recordSetId the record set ID * @param version the version * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching ddl record set version, or null if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_V( long recordSetId, String version, boolean retrieveFromCache) { return getPersistence().fetchByRS_V( recordSetId, version, retrieveFromCache); } /** * Removes the ddl record set version where recordSetId = ? and version = ? from the database. * * @param recordSetId the record set ID * @param version the version * @return the ddl record set version that was removed */ public static DDLRecordSetVersion removeByRS_V( long recordSetId, String version) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().removeByRS_V(recordSetId, version); } /** * Returns the number of ddl record set versions where recordSetId = ? and version = ?. * * @param recordSetId the record set ID * @param version the version * @return the number of matching ddl record set versions */ public static int countByRS_V(long recordSetId, String version) { return getPersistence().countByRS_V(recordSetId, version); } /** * Returns all the ddl record set versions where recordSetId = ? and status = ?. * * @param recordSetId the record set ID * @param status the status * @return the matching ddl record set versions */ public static List findByRS_S( long recordSetId, int status) { return getPersistence().findByRS_S(recordSetId, status); } /** * Returns a range of all the ddl record set versions where recordSetId = ? and status = ?. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 recordSetId the record set ID * @param status the status * @param start the lower bound of the range of ddl record set versions * @param end the upper bound of the range of ddl record set versions (not inclusive) * @return the range of matching ddl record set versions */ public static List findByRS_S( long recordSetId, int status, int start, int end) { return getPersistence().findByRS_S(recordSetId, status, start, end); } /** * Returns an ordered range of all the ddl record set versions where recordSetId = ? and status = ?. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 recordSetId the record set ID * @param status the status * @param start the lower bound of the range of ddl record set versions * @param end the upper bound of the range of ddl record set versions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ddl record set versions */ public static List findByRS_S( long recordSetId, int status, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByRS_S( recordSetId, status, start, end, orderByComparator); } /** * Returns an ordered range of all the ddl record set versions where recordSetId = ? and status = ?. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 recordSetId the record set ID * @param status the status * @param start the lower bound of the range of ddl record set versions * @param end the upper bound of the range of ddl record set versions (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 ddl record set versions */ public static List findByRS_S( long recordSetId, int status, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByRS_S( recordSetId, status, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?. * * @param recordSetId the record set ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ddl record set version * @throws NoSuchRecordSetVersionException if a matching ddl record set version could not be found */ public static DDLRecordSetVersion findByRS_S_First( long recordSetId, int status, OrderByComparator orderByComparator) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRS_S_First( recordSetId, status, orderByComparator); } /** * Returns the first ddl record set version in the ordered set where recordSetId = ? and status = ?. * * @param recordSetId the record set ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ddl record set version, or null if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_S_First( long recordSetId, int status, OrderByComparator orderByComparator) { return getPersistence().fetchByRS_S_First( recordSetId, status, orderByComparator); } /** * Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?. * * @param recordSetId the record set ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ddl record set version * @throws NoSuchRecordSetVersionException if a matching ddl record set version could not be found */ public static DDLRecordSetVersion findByRS_S_Last( long recordSetId, int status, OrderByComparator orderByComparator) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRS_S_Last( recordSetId, status, orderByComparator); } /** * Returns the last ddl record set version in the ordered set where recordSetId = ? and status = ?. * * @param recordSetId the record set ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ddl record set version, or null if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_S_Last( long recordSetId, int status, OrderByComparator orderByComparator) { return getPersistence().fetchByRS_S_Last( recordSetId, status, orderByComparator); } /** * Returns the ddl record set versions before and after the current ddl record set version in the ordered set where recordSetId = ? and status = ?. * * @param recordSetVersionId the primary key of the current ddl record set version * @param recordSetId the record set ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ddl record set version * @throws NoSuchRecordSetVersionException if a ddl record set version with the primary key could not be found */ public static DDLRecordSetVersion[] findByRS_S_PrevAndNext( long recordSetVersionId, long recordSetId, int status, OrderByComparator orderByComparator) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByRS_S_PrevAndNext( recordSetVersionId, recordSetId, status, orderByComparator); } /** * Removes all the ddl record set versions where recordSetId = ? and status = ? from the database. * * @param recordSetId the record set ID * @param status the status */ public static void removeByRS_S(long recordSetId, int status) { getPersistence().removeByRS_S(recordSetId, status); } /** * Returns the number of ddl record set versions where recordSetId = ? and status = ?. * * @param recordSetId the record set ID * @param status the status * @return the number of matching ddl record set versions */ public static int countByRS_S(long recordSetId, int status) { return getPersistence().countByRS_S(recordSetId, status); } /** * Caches the ddl record set version in the entity cache if it is enabled. * * @param ddlRecordSetVersion the ddl record set version */ public static void cacheResult(DDLRecordSetVersion ddlRecordSetVersion) { getPersistence().cacheResult(ddlRecordSetVersion); } /** * Caches the ddl record set versions in the entity cache if it is enabled. * * @param ddlRecordSetVersions the ddl record set versions */ public static void cacheResult( List ddlRecordSetVersions) { getPersistence().cacheResult(ddlRecordSetVersions); } /** * Creates a new ddl record set version with the primary key. Does not add the ddl record set version to the database. * * @param recordSetVersionId the primary key for the new ddl record set version * @return the new ddl record set version */ public static DDLRecordSetVersion create(long recordSetVersionId) { return getPersistence().create(recordSetVersionId); } /** * Removes the ddl record set version with the primary key from the database. Also notifies the appropriate model listeners. * * @param recordSetVersionId the primary key of the ddl record set version * @return the ddl record set version that was removed * @throws NoSuchRecordSetVersionException if a ddl record set version with the primary key could not be found */ public static DDLRecordSetVersion remove(long recordSetVersionId) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().remove(recordSetVersionId); } public static DDLRecordSetVersion updateImpl( DDLRecordSetVersion ddlRecordSetVersion) { return getPersistence().updateImpl(ddlRecordSetVersion); } /** * Returns the ddl record set version with the primary key or throws a NoSuchRecordSetVersionException if it could not be found. * * @param recordSetVersionId the primary key of the ddl record set version * @return the ddl record set version * @throws NoSuchRecordSetVersionException if a ddl record set version with the primary key could not be found */ public static DDLRecordSetVersion findByPrimaryKey(long recordSetVersionId) throws com.liferay.dynamic.data.lists.exception. NoSuchRecordSetVersionException { return getPersistence().findByPrimaryKey(recordSetVersionId); } /** * Returns the ddl record set version with the primary key or returns null if it could not be found. * * @param recordSetVersionId the primary key of the ddl record set version * @return the ddl record set version, or null if a ddl record set version with the primary key could not be found */ public static DDLRecordSetVersion fetchByPrimaryKey( long recordSetVersionId) { return getPersistence().fetchByPrimaryKey(recordSetVersionId); } /** * Returns all the ddl record set versions. * * @return the ddl record set versions */ public static List findAll() { return getPersistence().findAll(); } /** * Returns a range of all the ddl record set versions. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 ddl record set versions * @param end the upper bound of the range of ddl record set versions (not inclusive) * @return the range of ddl record set versions */ public static List findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the ddl record set versions. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 ddl record set versions * @param end the upper bound of the range of ddl record set versions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of ddl record set versions */ public static List findAll( int start, int end, OrderByComparator orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the ddl record set versions. * *

* 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 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 QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDLRecordSetVersionModelImpl. 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 ddl record set versions * @param end the upper bound of the range of ddl record set versions (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 ddl record set versions */ public static List findAll( int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findAll( start, end, orderByComparator, retrieveFromCache); } /** * Removes all the ddl record set versions from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of ddl record set versions. * * @return the number of ddl record set versions */ public static int countAll() { return getPersistence().countAll(); } public static Set getBadColumnNames() { return getPersistence().getBadColumnNames(); } public static DDLRecordSetVersionPersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker _serviceTracker; static { Bundle bundle = FrameworkUtil.getBundle( DDLRecordSetVersionPersistence.class); ServiceTracker serviceTracker = new ServiceTracker ( bundle.getBundleContext(), DDLRecordSetVersionPersistence.class, null); serviceTracker.open(); _serviceTracker = serviceTracker; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy