/** * 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.asset.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.asset.kernel.exception.NoSuchLinkException; import com.liferay.asset.kernel.model.AssetLink; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the asset link service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portlet.asset.service.persistence.impl.AssetLinkPersistenceImpl * @see AssetLinkUtil * @generated */ @ProviderType public interface AssetLinkPersistence extends BasePersistence<AssetLink> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link AssetLinkUtil} to access the asset link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the asset links where entryId1 = ?. * * @param entryId1 the entry id1 * @return the matching asset links */ public java.util.List<AssetLink> findByE1(long entryId1); /** * Returns a range of all the asset links where entryId1 = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @return the range of matching asset links */ public java.util.List<AssetLink> findByE1(long entryId1, int start, int end); /** * Returns an ordered range of all the asset links where entryId1 = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset links */ public java.util.List<AssetLink> findByE1(long entryId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns an ordered range of all the asset links where entryId1 = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (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 asset links */ public java.util.List<AssetLink> findByE1(long entryId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset link in the ordered set where entryId1 = ?. * * @param entryId1 the entry id1 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE1_First(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the first asset link in the ordered set where entryId1 = ?. * * @param entryId1 the entry id1 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE1_First(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the last asset link in the ordered set where entryId1 = ?. * * @param entryId1 the entry id1 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE1_Last(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the last asset link in the ordered set where entryId1 = ?. * * @param entryId1 the entry id1 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE1_Last(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?. * * @param linkId the primary key of the current asset link * @param entryId1 the entry id1 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset link * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink[] findByE1_PrevAndNext(long linkId, long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Removes all the asset links where entryId1 = ? from the database. * * @param entryId1 the entry id1 */ public void removeByE1(long entryId1); /** * Returns the number of asset links where entryId1 = ?. * * @param entryId1 the entry id1 * @return the number of matching asset links */ public int countByE1(long entryId1); /** * Returns all the asset links where entryId2 = ?. * * @param entryId2 the entry id2 * @return the matching asset links */ public java.util.List<AssetLink> findByE2(long entryId2); /** * Returns a range of all the asset links where entryId2 = ?. * * <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 AssetLinkModelImpl}. 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 entryId2 the entry id2 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @return the range of matching asset links */ public java.util.List<AssetLink> findByE2(long entryId2, int start, int end); /** * Returns an ordered range of all the asset links where entryId2 = ?. * * <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 AssetLinkModelImpl}. 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 entryId2 the entry id2 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset links */ public java.util.List<AssetLink> findByE2(long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns an ordered range of all the asset links where entryId2 = ?. * * <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 AssetLinkModelImpl}. 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 entryId2 the entry id2 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (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 asset links */ public java.util.List<AssetLink> findByE2(long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset link in the ordered set where entryId2 = ?. * * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE2_First(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the first asset link in the ordered set where entryId2 = ?. * * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE2_First(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the last asset link in the ordered set where entryId2 = ?. * * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE2_Last(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the last asset link in the ordered set where entryId2 = ?. * * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE2_Last(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?. * * @param linkId the primary key of the current asset link * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset link * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink[] findByE2_PrevAndNext(long linkId, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Removes all the asset links where entryId2 = ? from the database. * * @param entryId2 the entry id2 */ public void removeByE2(long entryId2); /** * Returns the number of asset links where entryId2 = ?. * * @param entryId2 the entry id2 * @return the number of matching asset links */ public int countByE2(long entryId2); /** * Returns all the asset links where entryId1 = ? and entryId2 = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @return the matching asset links */ public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2); /** * Returns a range of all the asset links where entryId1 = ? and entryId2 = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param entryId2 the entry id2 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @return the range of matching asset links */ public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end); /** * Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param entryId2 the entry id2 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset links */ public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param entryId2 the entry id2 * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (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 asset links */ public java.util.List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE_E_First(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE_E_First(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE_E_Last(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE_E_Last(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?. * * @param linkId the primary key of the current asset link * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset link * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink[] findByE_E_PrevAndNext(long linkId, long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Removes all the asset links where entryId1 = ? and entryId2 = ? from the database. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 */ public void removeByE_E(long entryId1, long entryId2); /** * Returns the number of asset links where entryId1 = ? and entryId2 = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @return the number of matching asset links */ public int countByE_E(long entryId1, long entryId2); /** * Returns all the asset links where entryId1 = ? and type = ?. * * @param entryId1 the entry id1 * @param type the type * @return the matching asset links */ public java.util.List<AssetLink> findByE1_T(long entryId1, int type); /** * Returns a range of all the asset links where entryId1 = ? and type = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param type the type * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @return the range of matching asset links */ public java.util.List<AssetLink> findByE1_T(long entryId1, int type, int start, int end); /** * Returns an ordered range of all the asset links where entryId1 = ? and type = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param type the type * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset links */ public java.util.List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns an ordered range of all the asset links where entryId1 = ? and type = ?. * * <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 AssetLinkModelImpl}. 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 entryId1 the entry id1 * @param type the type * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (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 asset links */ public java.util.List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset link in the ordered set where entryId1 = ? and type = ?. * * @param entryId1 the entry id1 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE1_T_First(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the first asset link in the ordered set where entryId1 = ? and type = ?. * * @param entryId1 the entry id1 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE1_T_First(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the last asset link in the ordered set where entryId1 = ? and type = ?. * * @param entryId1 the entry id1 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE1_T_Last(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the last asset link in the ordered set where entryId1 = ? and type = ?. * * @param entryId1 the entry id1 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE1_T_Last(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?. * * @param linkId the primary key of the current asset link * @param entryId1 the entry id1 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset link * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink[] findByE1_T_PrevAndNext(long linkId, long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Removes all the asset links where entryId1 = ? and type = ? from the database. * * @param entryId1 the entry id1 * @param type the type */ public void removeByE1_T(long entryId1, int type); /** * Returns the number of asset links where entryId1 = ? and type = ?. * * @param entryId1 the entry id1 * @param type the type * @return the number of matching asset links */ public int countByE1_T(long entryId1, int type); /** * Returns all the asset links where entryId2 = ? and type = ?. * * @param entryId2 the entry id2 * @param type the type * @return the matching asset links */ public java.util.List<AssetLink> findByE2_T(long entryId2, int type); /** * Returns a range of all the asset links where entryId2 = ? and type = ?. * * <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 AssetLinkModelImpl}. 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 entryId2 the entry id2 * @param type the type * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @return the range of matching asset links */ public java.util.List<AssetLink> findByE2_T(long entryId2, int type, int start, int end); /** * Returns an ordered range of all the asset links where entryId2 = ? and type = ?. * * <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 AssetLinkModelImpl}. 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 entryId2 the entry id2 * @param type the type * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching asset links */ public java.util.List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns an ordered range of all the asset links where entryId2 = ? and type = ?. * * <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 AssetLinkModelImpl}. 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 entryId2 the entry id2 * @param type the type * @param start the lower bound of the range of asset links * @param end the upper bound of the range of asset links (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 asset links */ public java.util.List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache); /** * Returns the first asset link in the ordered set where entryId2 = ? and type = ?. * * @param entryId2 the entry id2 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE2_T_First(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the first asset link in the ordered set where entryId2 = ? and type = ?. * * @param entryId2 the entry id2 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE2_T_First(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the last asset link in the ordered set where entryId2 = ? and type = ?. * * @param entryId2 the entry id2 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE2_T_Last(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Returns the last asset link in the ordered set where entryId2 = ? and type = ?. * * @param entryId2 the entry id2 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE2_T_Last(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?. * * @param linkId the primary key of the current asset link * @param entryId2 the entry id2 * @param type the type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next asset link * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink[] findByE2_T_PrevAndNext(long linkId, long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException; /** * Removes all the asset links where entryId2 = ? and type = ? from the database. * * @param entryId2 the entry id2 * @param type the type */ public void removeByE2_T(long entryId2, int type); /** * Returns the number of asset links where entryId2 = ? and type = ?. * * @param entryId2 the entry id2 * @param type the type * @return the number of matching asset links */ public int countByE2_T(long entryId2, int type); /** * Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or throws a {@link NoSuchLinkException} if it could not be found. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param type the type * @return the matching asset link * @throws NoSuchLinkException if a matching asset link could not be found */ public AssetLink findByE_E_T(long entryId1, long entryId2, int type) throws NoSuchLinkException; /** * Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param type the type * @return the matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE_E_T(long entryId1, long entryId2, int type); /** * Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param type the type * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching asset link, or <code>null</code> if a matching asset link could not be found */ public AssetLink fetchByE_E_T(long entryId1, long entryId2, int type, boolean retrieveFromCache); /** * Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param type the type * @return the asset link that was removed */ public AssetLink removeByE_E_T(long entryId1, long entryId2, int type) throws NoSuchLinkException; /** * Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?. * * @param entryId1 the entry id1 * @param entryId2 the entry id2 * @param type the type * @return the number of matching asset links */ public int countByE_E_T(long entryId1, long entryId2, int type); /** * Caches the asset link in the entity cache if it is enabled. * * @param assetLink the asset link */ public void cacheResult(AssetLink assetLink); /** * Caches the asset links in the entity cache if it is enabled. * * @param assetLinks the asset links */ public void cacheResult(java.util.List<AssetLink> assetLinks); /** * Creates a new asset link with the primary key. Does not add the asset link to the database. * * @param linkId the primary key for the new asset link * @return the new asset link */ public AssetLink create(long linkId); /** * Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners. * * @param linkId the primary key of the asset link * @return the asset link that was removed * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink remove(long linkId) throws NoSuchLinkException; public AssetLink updateImpl(AssetLink assetLink); /** * Returns the asset link with the primary key or throws a {@link NoSuchLinkException} if it could not be found. * * @param linkId the primary key of the asset link * @return the asset link * @throws NoSuchLinkException if a asset link with the primary key could not be found */ public AssetLink findByPrimaryKey(long linkId) throws NoSuchLinkException; /** * Returns the asset link with the primary key or returns <code>null</code> if it could not be found. * * @param linkId the primary key of the asset link * @return the asset link, or <code>null</code> if a asset link with the primary key could not be found */ public AssetLink fetchByPrimaryKey(long linkId); @Override public java.util.Map<java.io.Serializable, AssetLink> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the asset links. * * @return the asset links */ public java.util.List<AssetLink> findAll(); /** * Returns a range of all the asset links. * * <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 AssetLinkModelImpl}. 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 asset links * @param end the upper bound of the range of asset links (not inclusive) * @return the range of asset links */ public java.util.List<AssetLink> findAll(int start, int end); /** * Returns an ordered range of all the asset links. * * <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 AssetLinkModelImpl}. 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 asset links * @param end the upper bound of the range of asset links (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of asset links */ public java.util.List<AssetLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator); /** * Returns an ordered range of all the asset links. * * <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 AssetLinkModelImpl}. 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 asset links * @param end the upper bound of the range of asset links (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 asset links */ public java.util.List<AssetLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean retrieveFromCache); /** * Removes all the asset links from the database. */ public void removeAll(); /** * Returns the number of asset links. * * @return the number of asset links */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }