/** * 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.exception.NoSuchRecordSetVersionException; import com.liferay.dynamic.data.lists.model.DDLRecordSetVersion; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the ddl record set version service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.dynamic.data.lists.service.persistence.impl.DDLRecordSetVersionPersistenceImpl * @see DDLRecordSetVersionUtil * @generated */ @ProviderType public interface DDLRecordSetVersionPersistence extends BasePersistence<DDLRecordSetVersion> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link DDLRecordSetVersionUtil} to access the ddl record set version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the ddl record set versions where recordSetId = ?. * * @param recordSetId the record set ID * @return the matching ddl record set versions */ public java.util.List<DDLRecordSetVersion> findByRecordSetId( long 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 java.util.List<DDLRecordSetVersion> findByRecordSetId( long recordSetId, int start, int 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 java.util.List<DDLRecordSetVersion> findByRecordSetId( long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 java.util.List<DDLRecordSetVersion> findByRecordSetId( long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean 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 DDLRecordSetVersion findByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException; /** * 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 DDLRecordSetVersion fetchByRecordSetId_First(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 DDLRecordSetVersion findByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException; /** * 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 DDLRecordSetVersion fetchByRecordSetId_Last(long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 DDLRecordSetVersion[] findByRecordSetId_PrevAndNext( long recordSetVersionId, long recordSetId, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException; /** * Removes all the ddl record set versions where recordSetId = ? from the database. * * @param recordSetId the record set ID */ public void removeByRecordSetId(long 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 int countByRecordSetId(long 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 DDLRecordSetVersion findByRS_V(long recordSetId, java.lang.String version) throws NoSuchRecordSetVersionException; /** * 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 DDLRecordSetVersion fetchByRS_V(long recordSetId, java.lang.String 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 DDLRecordSetVersion fetchByRS_V(long recordSetId, java.lang.String version, boolean 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 DDLRecordSetVersion removeByRS_V(long recordSetId, java.lang.String version) throws NoSuchRecordSetVersionException; /** * 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 int countByRS_V(long recordSetId, java.lang.String 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 java.util.List<DDLRecordSetVersion> findByRS_S(long recordSetId, int 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 java.util.List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int 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 java.util.List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 java.util.List<DDLRecordSetVersion> findByRS_S(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean 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 DDLRecordSetVersion findByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException; /** * 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 DDLRecordSetVersion fetchByRS_S_First(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 DDLRecordSetVersion findByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException; /** * 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 DDLRecordSetVersion fetchByRS_S_Last(long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 DDLRecordSetVersion[] findByRS_S_PrevAndNext( long recordSetVersionId, long recordSetId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator) throws NoSuchRecordSetVersionException; /** * 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 void removeByRS_S(long recordSetId, int 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 int countByRS_S(long recordSetId, int status); /** * Caches the ddl record set version in the entity cache if it is enabled. * * @param ddlRecordSetVersion the ddl record set version */ public void cacheResult(DDLRecordSetVersion ddlRecordSetVersion); /** * Caches the ddl record set versions in the entity cache if it is enabled. * * @param ddlRecordSetVersions the ddl record set versions */ public void cacheResult( java.util.List<DDLRecordSetVersion> 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 DDLRecordSetVersion create(long 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 DDLRecordSetVersion remove(long recordSetVersionId) throws NoSuchRecordSetVersionException; public DDLRecordSetVersion updateImpl( DDLRecordSetVersion 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 DDLRecordSetVersion findByPrimaryKey(long recordSetVersionId) throws NoSuchRecordSetVersionException; /** * 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 DDLRecordSetVersion fetchByPrimaryKey(long recordSetVersionId); @Override public java.util.Map<java.io.Serializable, DDLRecordSetVersion> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the ddl record set versions. * * @return the ddl record set versions */ public java.util.List<DDLRecordSetVersion> 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 java.util.List<DDLRecordSetVersion> findAll(int start, int 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 java.util.List<DDLRecordSetVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> 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 java.util.List<DDLRecordSetVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSetVersion> orderByComparator, boolean retrieveFromCache); /** * Removes all the ddl record set versions from the database. */ public void removeAll(); /** * Returns the number of ddl record set versions. * * @return the number of ddl record set versions */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }