/** * 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.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 ddl record set version service. This utility wraps {@link 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. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see DDLRecordSetVersionPersistence * @see com.liferay.dynamic.data.lists.service.persistence.impl.DDLRecordSetVersionPersistenceImpl * @generated */ @ProviderType public class DDLRecordSetVersionUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache(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#findWithDynamicQuery(DynamicQuery) */ public static List<DDLRecordSetVersion> findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<DDLRecordSetVersion> 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<DDLRecordSetVersion> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DDLRecordSetVersion> 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<DDLRecordSetVersion> findByRecordSetId(long recordSetId) { return getPersistence().findByRecordSetId(recordSetId); } /** * Returns a range of all the ddl record set versions where recordSetId = ?. * * <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 DDLRecordSetVersionModelImpl}. 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 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<DDLRecordSetVersion> 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 = ?. * * <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 DDLRecordSetVersionModelImpl}. 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 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 <code>null</code>) * @return the ordered range of matching ddl record set versions */ public static List<DDLRecordSetVersion> findByRecordSetId( long recordSetId, int start, int end, OrderByComparator<DDLRecordSetVersion> orderByComparator) { return getPersistence() .findByRecordSetId(recordSetId, start, end, orderByComparator); } /** * Returns an ordered range of all the ddl record set versions where recordSetId = ?. * * <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 DDLRecordSetVersionModelImpl}. 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 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 <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching ddl record set versions */ public static List<DDLRecordSetVersion> findByRecordSetId( long recordSetId, int start, int end, OrderByComparator<DDLRecordSetVersion> 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 <code>null</code>) * @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<DDLRecordSetVersion> 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 <code>null</code>) * @return the first matching ddl record set version, or <code>null</code> if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRecordSetId_First( long recordSetId, OrderByComparator<DDLRecordSetVersion> 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 <code>null</code>) * @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<DDLRecordSetVersion> 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 <code>null</code>) * @return the last matching ddl record set version, or <code>null</code> if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRecordSetId_Last( long recordSetId, OrderByComparator<DDLRecordSetVersion> 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 <code>null</code>) * @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<DDLRecordSetVersion> 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 {@link 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, java.lang.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 <code>null</code> 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 <code>null</code> if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_V(long recordSetId, java.lang.String version) { return getPersistence().fetchByRS_V(recordSetId, version); } /** * Returns the ddl record set version where recordSetId = ? and version = ? or returns <code>null</code> 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 <code>null</code> if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_V(long recordSetId, java.lang.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, java.lang.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, java.lang.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<DDLRecordSetVersion> 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 = ?. * * <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 DDLRecordSetVersionModelImpl}. 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 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<DDLRecordSetVersion> 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 = ?. * * <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 DDLRecordSetVersionModelImpl}. 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 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 <code>null</code>) * @return the ordered range of matching ddl record set versions */ public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, OrderByComparator<DDLRecordSetVersion> 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 = ?. * * <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 DDLRecordSetVersionModelImpl}. 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 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 <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching ddl record set versions */ public static List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, OrderByComparator<DDLRecordSetVersion> 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 <code>null</code>) * @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<DDLRecordSetVersion> 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 <code>null</code>) * @return the first matching ddl record set version, or <code>null</code> if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_S_First(long recordSetId, int status, OrderByComparator<DDLRecordSetVersion> 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 <code>null</code>) * @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<DDLRecordSetVersion> 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 <code>null</code>) * @return the last matching ddl record set version, or <code>null</code> if a matching ddl record set version could not be found */ public static DDLRecordSetVersion fetchByRS_S_Last(long recordSetId, int status, OrderByComparator<DDLRecordSetVersion> 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 <code>null</code>) * @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<DDLRecordSetVersion> 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<DDLRecordSetVersion> 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 {@link 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 <code>null</code> if it could not be found. * * @param recordSetVersionId the primary key of the ddl record set version * @return the ddl record set version, or <code>null</code> if a ddl record set version with the primary key could not be found */ public static DDLRecordSetVersion fetchByPrimaryKey(long recordSetVersionId) { return getPersistence().fetchByPrimaryKey(recordSetVersionId); } public static java.util.Map<java.io.Serializable, DDLRecordSetVersion> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * Returns all the ddl record set versions. * * @return the ddl record set versions */ public static List<DDLRecordSetVersion> findAll() { return getPersistence().findAll(); } /** * Returns a range of all the ddl record set versions. * * <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 DDLRecordSetVersionModelImpl}. 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 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<DDLRecordSetVersion> findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the ddl record set versions. * * <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 DDLRecordSetVersionModelImpl}. 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 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 <code>null</code>) * @return the ordered range of ddl record set versions */ public static List<DDLRecordSetVersion> findAll(int start, int end, OrderByComparator<DDLRecordSetVersion> orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the ddl record set versions. * * <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 DDLRecordSetVersionModelImpl}. 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 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 <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of ddl record set versions */ public static List<DDLRecordSetVersion> findAll(int start, int end, OrderByComparator<DDLRecordSetVersion> 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 java.util.Set<java.lang.String> getBadColumnNames() { return getPersistence().getBadColumnNames(); } public static DDLRecordSetVersionPersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker<DDLRecordSetVersionPersistence, DDLRecordSetVersionPersistence> _serviceTracker = ServiceTrackerFactory.open(DDLRecordSetVersionPersistence.class); }