com.liferay.asset.kernel.service.persistence.AssetLinkPersistence Maven / Gradle / Ivy
Show all versions of com.liferay.portal.kernel Show documentation
/**
* 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.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Brian Wing Shun Chan
* @see com.liferay.portlet.asset.service.persistence.impl.AssetLinkPersistenceImpl
* @see AssetLinkUtil
* @generated
*/
@ProviderType
public interface AssetLinkPersistence extends BasePersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link AssetLinkUtil} to access the asset link persistence. Modify service.xml
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 findByE1(long entryId1);
/**
* Returns a range of all the asset links where entryId1 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 findByE1(long entryId1, int start, int end);
/**
* Returns an ordered range of all the asset links where entryId1 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @return the ordered range of matching asset links
*/
public java.util.List findByE1(long entryId1, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the asset links where entryId1 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching asset links
*/
public java.util.List findByE1(long entryId1, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE1_First(long entryId1,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE1_Last(long entryId1,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 findByE2(long entryId2);
/**
* Returns a range of all the asset links where entryId2 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 findByE2(long entryId2, int start, int end);
/**
* Returns an ordered range of all the asset links where entryId2 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @return the ordered range of matching asset links
*/
public java.util.List findByE2(long entryId2, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the asset links where entryId2 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching asset links
*/
public java.util.List findByE2(long entryId2, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE2_First(long entryId2,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE2_Last(long entryId2,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 findByE_E(long entryId1, long entryId2);
/**
* Returns a range of all the asset links where entryId1 = ? and entryId2 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 findByE_E(long entryId1, long entryId2,
int start, int end);
/**
* Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @return the ordered range of matching asset links
*/
public java.util.List findByE_E(long entryId1, long entryId2,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching asset links
*/
public java.util.List findByE_E(long entryId1, long entryId2,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE_E_First(long entryId1, long entryId2,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE_E_Last(long entryId1, long entryId2,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 findByE1_T(long entryId1, int type);
/**
* Returns a range of all the asset links where entryId1 = ? and type = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 findByE1_T(long entryId1, int type,
int start, int end);
/**
* Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @return the ordered range of matching asset links
*/
public java.util.List findByE1_T(long entryId1, int type,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching asset links
*/
public java.util.List findByE1_T(long entryId1, int type,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE1_T_First(long entryId1, int type,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE1_T_Last(long entryId1, int type,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 findByE2_T(long entryId2, int type);
/**
* Returns a range of all the asset links where entryId2 = ? and type = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 findByE2_T(long entryId2, int type,
int start, int end);
/**
* Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @return the ordered range of matching asset links
*/
public java.util.List findByE2_T(long entryId2, int type,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param 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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching asset links
*/
public java.util.List findByE2_T(long entryId2, int type,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the first matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE2_T_First(long entryId2, int type,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
)
* @return the last matching asset link, or null
if a matching asset link could not be found
*/
public AssetLink fetchByE2_T_Last(long entryId2, int type,
com.liferay.portal.kernel.util.OrderByComparator 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 null
)
* @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 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 null
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 null
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 null
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 null
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 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 null
if it could not be found.
*
* @param linkId the primary key of the asset link
* @return the asset link, or null
if a asset link with the primary key could not be found
*/
public AssetLink fetchByPrimaryKey(long linkId);
@Override
public java.util.Map fetchByPrimaryKeys(
java.util.Set primaryKeys);
/**
* Returns all the asset links.
*
* @return the asset links
*/
public java.util.List findAll();
/**
* Returns a range of all the asset links.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param start the lower bound of the range of 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 findAll(int start, int end);
/**
* Returns an ordered range of all the asset links.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param start the lower bound of the range of 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 null
)
* @return the ordered range of asset links
*/
public java.util.List findAll(int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the asset links.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetLinkModelImpl}. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
*
*
* @param start the lower bound of the range of 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 null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of asset links
*/
public java.util.List findAll(int start, int end,
com.liferay.portal.kernel.util.OrderByComparator 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 getBadColumnNames();
}