Liferay 6.1.2-ce-ga3

com.liferay.portlet.asset.service.persistence
Interface AssetLinkPersistence

All Superinterfaces:
BasePersistence<AssetLink>

public interface AssetLinkPersistence
extends BasePersistence<AssetLink>

The persistence interface for the asset link service.

Caching information and settings can be found in portal.properties

See Also:
AssetLinkPersistenceImpl, AssetLinkUtil

Method Summary
 void cacheResult(AssetLink assetLink)
          Caches the asset link in the entity cache if it is enabled.
 void cacheResult(List<AssetLink> assetLinks)
          Caches the asset links in the entity cache if it is enabled.
 int countAll()
          Returns the number of asset links.
 int countByE_E_T(long entryId1, long entryId2, int type)
          Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?.
 int countByE_E(long entryId1, long entryId2)
          Returns the number of asset links where entryId1 = ? and entryId2 = ?.
 int countByE1_T(long entryId1, int type)
          Returns the number of asset links where entryId1 = ? and type = ?.
 int countByE1(long entryId1)
          Returns the number of asset links where entryId1 = ?.
 int countByE2_T(long entryId2, int type)
          Returns the number of asset links where entryId2 = ? and type = ?.
 int countByE2(long entryId2)
          Returns the number of asset links where entryId2 = ?.
 AssetLink create(long linkId)
          Creates a new asset link with the primary key.
 AssetLink fetchByE_E_First(long entryId1, long entryId2, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink fetchByE_E_Last(long entryId1, long entryId2, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 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.
 AssetLink fetchByE_E_T(long entryId1, long entryId2, int type, boolean retrieveFromCache)
          Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
 AssetLink fetchByE1_First(long entryId1, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ?.
 AssetLink fetchByE1_Last(long entryId1, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ?.
 AssetLink fetchByE1_T_First(long entryId1, int type, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink fetchByE1_T_Last(long entryId1, int type, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink fetchByE2_First(long entryId2, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ?.
 AssetLink fetchByE2_Last(long entryId2, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ?.
 AssetLink fetchByE2_T_First(long entryId2, int type, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink fetchByE2_T_Last(long entryId2, int type, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink fetchByPrimaryKey(long linkId)
          Returns the asset link with the primary key or returns null if it could not be found.
 List<AssetLink> findAll()
          Returns all the asset links.
 List<AssetLink> findAll(int start, int end)
          Returns a range of all the asset links.
 List<AssetLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset links.
 AssetLink findByE_E_First(long entryId1, long entryId2, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink findByE_E_Last(long entryId1, long entryId2, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink[] findByE_E_PrevAndNext(long linkId, long entryId1, long entryId2, OrderByComparator orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?.
 AssetLink findByE_E_T(long entryId1, long entryId2, int type)
          Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or throws a NoSuchLinkException if it could not be found.
 List<AssetLink> findByE_E(long entryId1, long entryId2)
          Returns all the asset links where entryId1 = ? and entryId2 = ?.
 List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end)
          Returns a range of all the asset links where entryId1 = ? and entryId2 = ?.
 List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
 AssetLink findByE1_First(long entryId1, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ?.
 AssetLink findByE1_Last(long entryId1, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ?.
 AssetLink[] findByE1_PrevAndNext(long linkId, long entryId1, OrderByComparator orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?.
 AssetLink findByE1_T_First(long entryId1, int type, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink findByE1_T_Last(long entryId1, int type, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId1 = ? and type = ?.
 AssetLink[] findByE1_T_PrevAndNext(long linkId, long entryId1, int type, OrderByComparator orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type)
          Returns all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type, int start, int end)
          Returns a range of all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
 List<AssetLink> findByE1(long entryId1)
          Returns all the asset links where entryId1 = ?.
 List<AssetLink> findByE1(long entryId1, int start, int end)
          Returns a range of all the asset links where entryId1 = ?.
 List<AssetLink> findByE1(long entryId1, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset links where entryId1 = ?.
 AssetLink findByE2_First(long entryId2, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ?.
 AssetLink findByE2_Last(long entryId2, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ?.
 AssetLink[] findByE2_PrevAndNext(long linkId, long entryId2, OrderByComparator orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?.
 AssetLink findByE2_T_First(long entryId2, int type, OrderByComparator orderByComparator)
          Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink findByE2_T_Last(long entryId2, int type, OrderByComparator orderByComparator)
          Returns the last asset link in the ordered set where entryId2 = ? and type = ?.
 AssetLink[] findByE2_T_PrevAndNext(long linkId, long entryId2, int type, OrderByComparator orderByComparator)
          Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type)
          Returns all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type, int start, int end)
          Returns a range of all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
 List<AssetLink> findByE2(long entryId2)
          Returns all the asset links where entryId2 = ?.
 List<AssetLink> findByE2(long entryId2, int start, int end)
          Returns a range of all the asset links where entryId2 = ?.
 List<AssetLink> findByE2(long entryId2, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset links where entryId2 = ?.
 AssetLink findByPrimaryKey(long linkId)
          Returns the asset link with the primary key or throws a NoSuchLinkException if it could not be found.
 AssetLink remove(long linkId)
          Removes the asset link with the primary key from the database.
 void removeAll()
          Removes all the asset links from the database.
 AssetLink removeByE_E_T(long entryId1, long entryId2, int type)
          Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database.
 void removeByE_E(long entryId1, long entryId2)
          Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.
 void removeByE1_T(long entryId1, int type)
          Removes all the asset links where entryId1 = ? and type = ? from the database.
 void removeByE1(long entryId1)
          Removes all the asset links where entryId1 = ? from the database.
 void removeByE2_T(long entryId2, int type)
          Removes all the asset links where entryId2 = ? and type = ? from the database.
 void removeByE2(long entryId2)
          Removes all the asset links where entryId2 = ? from the database.
 AssetLink updateImpl(AssetLink assetLink, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(AssetLink assetLink)
Caches the asset link in the entity cache if it is enabled.

Parameters:
assetLink - the asset link

cacheResult

void cacheResult(List<AssetLink> assetLinks)
Caches the asset links in the entity cache if it is enabled.

Parameters:
assetLinks - the asset links

create

AssetLink create(long linkId)
Creates a new asset link with the primary key. Does not add the asset link to the database.

Parameters:
linkId - the primary key for the new asset link
Returns:
the new asset link

remove

AssetLink remove(long linkId)
                 throws SystemException,
                        NoSuchLinkException
Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
linkId - the primary key of the asset link
Returns:
the asset link that was removed
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

AssetLink updateImpl(AssetLink assetLink,
                     boolean merge)
                     throws SystemException
Throws:
SystemException

findByPrimaryKey

AssetLink findByPrimaryKey(long linkId)
                           throws SystemException,
                                  NoSuchLinkException
Returns the asset link with the primary key or throws a NoSuchLinkException if it could not be found.

Parameters:
linkId - the primary key of the asset link
Returns:
the asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

AssetLink fetchByPrimaryKey(long linkId)
                            throws SystemException
Returns the asset link with the primary key or returns null if it could not be found.

Parameters:
linkId - the primary key of the asset link
Returns:
the asset link, or null if a asset link with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByE1

List<AssetLink> findByE1(long entryId1)
                         throws SystemException
Returns all the asset links where entryId1 = ?.

Parameters:
entryId1 - the entry id1
Returns:
the matching asset links
Throws:
SystemException - if a system exception occurred

findByE1

List<AssetLink> findByE1(long entryId1,
                         int start,
                         int end)
                         throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId1 - the entry id1
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1

List<AssetLink> findByE1(long entryId1,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId1 - the entry id1
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_First

AssetLink findByE1_First(long entryId1,
                         OrderByComparator orderByComparator)
                         throws SystemException,
                                NoSuchLinkException
Returns the first asset link in the ordered set where entryId1 = ?.

Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE1_First

AssetLink fetchByE1_First(long entryId1,
                          OrderByComparator orderByComparator)
                          throws SystemException
Returns the first asset link in the ordered set where entryId1 = ?.

Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE1_Last

AssetLink findByE1_Last(long entryId1,
                        OrderByComparator orderByComparator)
                        throws SystemException,
                               NoSuchLinkException
Returns the last asset link in the ordered set where entryId1 = ?.

Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE1_Last

AssetLink fetchByE1_Last(long entryId1,
                         OrderByComparator orderByComparator)
                         throws SystemException
Returns the last asset link in the ordered set where entryId1 = ?.

Parameters:
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE1_PrevAndNext

AssetLink[] findByE1_PrevAndNext(long linkId,
                                 long entryId1,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ?.

Parameters:
linkId - the primary key of the current asset link
entryId1 - the entry id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

findByE2

List<AssetLink> findByE2(long entryId2)
                         throws SystemException
Returns all the asset links where entryId2 = ?.

Parameters:
entryId2 - the entry id2
Returns:
the matching asset links
Throws:
SystemException - if a system exception occurred

findByE2

List<AssetLink> findByE2(long entryId2,
                         int start,
                         int end)
                         throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2

List<AssetLink> findByE2(long entryId2,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_First

AssetLink findByE2_First(long entryId2,
                         OrderByComparator orderByComparator)
                         throws SystemException,
                                NoSuchLinkException
Returns the first asset link in the ordered set where entryId2 = ?.

Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE2_First

AssetLink fetchByE2_First(long entryId2,
                          OrderByComparator orderByComparator)
                          throws SystemException
Returns the first asset link in the ordered set where entryId2 = ?.

Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE2_Last

AssetLink findByE2_Last(long entryId2,
                        OrderByComparator orderByComparator)
                        throws SystemException,
                               NoSuchLinkException
Returns the last asset link in the ordered set where entryId2 = ?.

Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE2_Last

AssetLink fetchByE2_Last(long entryId2,
                         OrderByComparator orderByComparator)
                         throws SystemException
Returns the last asset link in the ordered set where entryId2 = ?.

Parameters:
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE2_PrevAndNext

AssetLink[] findByE2_PrevAndNext(long linkId,
                                 long entryId2,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId2 = ?.

Parameters:
linkId - the primary key of the current asset link
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

findByE_E

List<AssetLink> findByE_E(long entryId1,
                          long entryId2)
                          throws SystemException
Returns all the asset links where entryId1 = ? and entryId2 = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
Returns:
the matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E

List<AssetLink> findByE_E(long entryId1,
                          long entryId2,
                          int start,
                          int end)
                          throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E

List<AssetLink> findByE_E(long entryId1,
                          long entryId2,
                          int start,
                          int end,
                          OrderByComparator orderByComparator)
                          throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E_First

AssetLink findByE_E_First(long entryId1,
                          long entryId2,
                          OrderByComparator orderByComparator)
                          throws SystemException,
                                 NoSuchLinkException
Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE_E_First

AssetLink fetchByE_E_First(long entryId1,
                           long entryId2,
                           OrderByComparator orderByComparator)
                           throws SystemException
Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE_E_Last

AssetLink findByE_E_Last(long entryId1,
                         long entryId2,
                         OrderByComparator orderByComparator)
                         throws SystemException,
                                NoSuchLinkException
Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE_E_Last

AssetLink fetchByE_E_Last(long entryId1,
                          long entryId2,
                          OrderByComparator orderByComparator)
                          throws SystemException
Returns the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE_E_PrevAndNext

AssetLink[] findByE_E_PrevAndNext(long linkId,
                                  long entryId1,
                                  long entryId2,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?.

Parameters:
linkId - the primary key of the current asset link
entryId1 - the entry id1
entryId2 - the entry id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

findByE1_T

List<AssetLink> findByE1_T(long entryId1,
                           int type)
                           throws SystemException
Returns all the asset links where entryId1 = ? and type = ?.

Parameters:
entryId1 - the entry id1
type - the type
Returns:
the matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_T

List<AssetLink> findByE1_T(long entryId1,
                           int type,
                           int start,
                           int end)
                           throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId1 - the entry id1
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_T

List<AssetLink> findByE1_T(long entryId1,
                           int type,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId1 - the entry id1
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_T_First

AssetLink findByE1_T_First(long entryId1,
                           int type,
                           OrderByComparator orderByComparator)
                           throws SystemException,
                                  NoSuchLinkException
Returns the first asset link in the ordered set where entryId1 = ? and type = ?.

Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE1_T_First

AssetLink fetchByE1_T_First(long entryId1,
                            int type,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns the first asset link in the ordered set where entryId1 = ? and type = ?.

Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE1_T_Last

AssetLink findByE1_T_Last(long entryId1,
                          int type,
                          OrderByComparator orderByComparator)
                          throws SystemException,
                                 NoSuchLinkException
Returns the last asset link in the ordered set where entryId1 = ? and type = ?.

Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE1_T_Last

AssetLink fetchByE1_T_Last(long entryId1,
                           int type,
                           OrderByComparator orderByComparator)
                           throws SystemException
Returns the last asset link in the ordered set where entryId1 = ? and type = ?.

Parameters:
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE1_T_PrevAndNext

AssetLink[] findByE1_T_PrevAndNext(long linkId,
                                   long entryId1,
                                   int type,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?.

Parameters:
linkId - the primary key of the current asset link
entryId1 - the entry id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

findByE2_T

List<AssetLink> findByE2_T(long entryId2,
                           int type)
                           throws SystemException
Returns all the asset links where entryId2 = ? and type = ?.

Parameters:
entryId2 - the entry id2
type - the type
Returns:
the matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_T

List<AssetLink> findByE2_T(long entryId2,
                           int type,
                           int start,
                           int end)
                           throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId2 - the entry id2
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_T

List<AssetLink> findByE2_T(long entryId2,
                           int type,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
entryId2 - the entry id2
type - the type
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_T_First

AssetLink findByE2_T_First(long entryId2,
                           int type,
                           OrderByComparator orderByComparator)
                           throws SystemException,
                                  NoSuchLinkException
Returns the first asset link in the ordered set where entryId2 = ? and type = ?.

Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE2_T_First

AssetLink fetchByE2_T_First(long entryId2,
                            int type,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns the first asset link in the ordered set where entryId2 = ? and type = ?.

Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE2_T_Last

AssetLink findByE2_T_Last(long entryId2,
                          int type,
                          OrderByComparator orderByComparator)
                          throws SystemException,
                                 NoSuchLinkException
Returns the last asset link in the ordered set where entryId2 = ? and type = ?.

Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE2_T_Last

AssetLink fetchByE2_T_Last(long entryId2,
                           int type,
                           OrderByComparator orderByComparator)
                           throws SystemException
Returns the last asset link in the ordered set where entryId2 = ? and type = ?.

Parameters:
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findByE2_T_PrevAndNext

AssetLink[] findByE2_T_PrevAndNext(long linkId,
                                   long entryId2,
                                   int type,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchLinkException
Returns the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?.

Parameters:
linkId - the primary key of the current asset link
entryId2 - the entry id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset link
Throws:
NoSuchLinkException - if a asset link with the primary key could not be found
SystemException - if a system exception occurred

findByE_E_T

AssetLink findByE_E_T(long entryId1,
                      long entryId2,
                      int type)
                      throws SystemException,
                             NoSuchLinkException
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or throws a NoSuchLinkException if it could not be found.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

fetchByE_E_T

AssetLink fetchByE_E_T(long entryId1,
                       long entryId2,
                       int type)
                       throws SystemException
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

fetchByE_E_T

AssetLink fetchByE_E_T(long entryId1,
                       long entryId2,
                       int type,
                       boolean retrieveFromCache)
                       throws SystemException
Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
retrieveFromCache - whether to use the finder cache
Returns:
the matching asset link, or null if a matching asset link could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<AssetLink> findAll()
                        throws SystemException
Returns all the asset links.

Returns:
the asset links
Throws:
SystemException - if a system exception occurred

findAll

List<AssetLink> findAll(int start,
                        int end)
                        throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
Returns:
the range of asset links
Throws:
SystemException - if a system exception occurred

findAll

List<AssetLink> findAll(int start,
                        int end,
                        OrderByComparator orderByComparator)
                        throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of asset links
end - the upper bound of the range of asset links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset links
Throws:
SystemException - if a system exception occurred

removeByE1

void removeByE1(long entryId1)
                throws SystemException
Removes all the asset links where entryId1 = ? from the database.

Parameters:
entryId1 - the entry id1
Throws:
SystemException - if a system exception occurred

removeByE2

void removeByE2(long entryId2)
                throws SystemException
Removes all the asset links where entryId2 = ? from the database.

Parameters:
entryId2 - the entry id2
Throws:
SystemException - if a system exception occurred

removeByE_E

void removeByE_E(long entryId1,
                 long entryId2)
                 throws SystemException
Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
Throws:
SystemException - if a system exception occurred

removeByE1_T

void removeByE1_T(long entryId1,
                  int type)
                  throws SystemException
Removes all the asset links where entryId1 = ? and type = ? from the database.

Parameters:
entryId1 - the entry id1
type - the type
Throws:
SystemException - if a system exception occurred

removeByE2_T

void removeByE2_T(long entryId2,
                  int type)
                  throws SystemException
Removes all the asset links where entryId2 = ? and type = ? from the database.

Parameters:
entryId2 - the entry id2
type - the type
Throws:
SystemException - if a system exception occurred

removeByE_E_T

AssetLink removeByE_E_T(long entryId1,
                        long entryId2,
                        int type)
                        throws SystemException,
                               NoSuchLinkException
Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? from the database.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the asset link that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLinkException

removeAll

void removeAll()
               throws SystemException
Removes all the asset links from the database.

Throws:
SystemException - if a system exception occurred

countByE1

int countByE1(long entryId1)
              throws SystemException
Returns the number of asset links where entryId1 = ?.

Parameters:
entryId1 - the entry id1
Returns:
the number of matching asset links
Throws:
SystemException - if a system exception occurred

countByE2

int countByE2(long entryId2)
              throws SystemException
Returns the number of asset links where entryId2 = ?.

Parameters:
entryId2 - the entry id2
Returns:
the number of matching asset links
Throws:
SystemException - if a system exception occurred

countByE_E

int countByE_E(long entryId1,
               long entryId2)
               throws SystemException
Returns the number of asset links where entryId1 = ? and entryId2 = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
Returns:
the number of matching asset links
Throws:
SystemException - if a system exception occurred

countByE1_T

int countByE1_T(long entryId1,
                int type)
                throws SystemException
Returns the number of asset links where entryId1 = ? and type = ?.

Parameters:
entryId1 - the entry id1
type - the type
Returns:
the number of matching asset links
Throws:
SystemException - if a system exception occurred

countByE2_T

int countByE2_T(long entryId2,
                int type)
                throws SystemException
Returns the number of asset links where entryId2 = ? and type = ?.

Parameters:
entryId2 - the entry id2
type - the type
Returns:
the number of matching asset links
Throws:
SystemException - if a system exception occurred

countByE_E_T

int countByE_E_T(long entryId1,
                 long entryId2,
                 int type)
                 throws SystemException
Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?.

Parameters:
entryId1 - the entry id1
entryId2 - the entry id2
type - the type
Returns:
the number of matching asset links
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of asset links.

Returns:
the number of asset links
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3