Liferay 6.0.5

com.liferay.portlet.asset.service.persistence
Class AssetLinkUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.persistence.AssetLinkUtil

public class AssetLinkUtil
extends Object

The persistence utility for the asset link service. This utility wraps AssetLinkPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
AssetLinkPersistence, AssetLinkPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
AssetLinkUtil()
           
 
Method Summary
static void cacheResult(AssetLink assetLink)
          Caches the asset link in the entity cache if it is enabled.
static void cacheResult(List<AssetLink> assetLinks)
          Caches the asset links in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(AssetLink assetLink)
           
static int countAll()
          Counts all the asset links.
static int countByE_E_T(long entryId1, long entryId2, int type)
          Counts all the asset links where entryId1 = ? and entryId2 = ? and type = ?.
static int countByE_E(long entryId1, long entryId2)
          Counts all the asset links where entryId1 = ? and entryId2 = ?.
static int countByE1_T(long entryId1, int type)
          Counts all the asset links where entryId1 = ? and type = ?.
static int countByE1(long entryId1)
          Counts all the asset links where entryId1 = ?.
static int countByE2_T(long entryId2, int type)
          Counts all the asset links where entryId2 = ? and type = ?.
static int countByE2(long entryId2)
          Counts all the asset links where entryId2 = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetLink create(long linkId)
          Creates a new asset link with the primary key.
static AssetLink fetchByPrimaryKey(long linkId)
          Finds the asset link with the primary key or returns null if it could not be found.
static List<AssetLink> findAll()
          Finds all the asset links.
static List<AssetLink> findAll(int start, int end)
          Finds a range of all the asset links.
static List<AssetLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links.
static AssetLink findByE_E_First(long entryId1, long entryId2, OrderByComparator orderByComparator)
          Finds the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
static AssetLink findByE_E_Last(long entryId1, long entryId2, OrderByComparator orderByComparator)
          Finds the last asset link in the ordered set where entryId1 = ? and entryId2 = ?.
static AssetLink[] findByE_E_PrevAndNext(long linkId, long entryId1, long entryId2, OrderByComparator orderByComparator)
          Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ?.
static AssetLink findByE_E_T_First(long entryId1, long entryId2, int type, OrderByComparator orderByComparator)
          Finds the first asset link in the ordered set where entryId1 = ? and entryId2 = ? and type = ?.
static AssetLink findByE_E_T_Last(long entryId1, long entryId2, int type, OrderByComparator orderByComparator)
          Finds the last asset link in the ordered set where entryId1 = ? and entryId2 = ? and type = ?.
static AssetLink[] findByE_E_T_PrevAndNext(long linkId, long entryId1, long entryId2, int type, OrderByComparator orderByComparator)
          Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and entryId2 = ? and type = ?.
static List<AssetLink> findByE_E_T(long entryId1, long entryId2, int type)
          Finds all the asset links where entryId1 = ? and entryId2 = ? and type = ?.
static List<AssetLink> findByE_E_T(long entryId1, long entryId2, int type, int start, int end)
          Finds a range of all the asset links where entryId1 = ? and entryId2 = ? and type = ?.
static List<AssetLink> findByE_E_T(long entryId1, long entryId2, int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links where entryId1 = ? and entryId2 = ? and type = ?.
static List<AssetLink> findByE_E(long entryId1, long entryId2)
          Finds all the asset links where entryId1 = ? and entryId2 = ?.
static List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end)
          Finds a range of all the asset links where entryId1 = ? and entryId2 = ?.
static List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
static AssetLink findByE1_First(long entryId1, OrderByComparator orderByComparator)
          Finds the first asset link in the ordered set where entryId1 = ?.
static AssetLink findByE1_Last(long entryId1, OrderByComparator orderByComparator)
          Finds the last asset link in the ordered set where entryId1 = ?.
static AssetLink[] findByE1_PrevAndNext(long linkId, long entryId1, OrderByComparator orderByComparator)
          Finds the asset links before and after the current asset link in the ordered set where entryId1 = ?.
static AssetLink findByE1_T_First(long entryId1, int type, OrderByComparator orderByComparator)
          Finds the first asset link in the ordered set where entryId1 = ? and type = ?.
static AssetLink findByE1_T_Last(long entryId1, int type, OrderByComparator orderByComparator)
          Finds the last asset link in the ordered set where entryId1 = ? and type = ?.
static AssetLink[] findByE1_T_PrevAndNext(long linkId, long entryId1, int type, OrderByComparator orderByComparator)
          Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and type = ?.
static List<AssetLink> findByE1_T(long entryId1, int type)
          Finds all the asset links where entryId1 = ? and type = ?.
static List<AssetLink> findByE1_T(long entryId1, int type, int start, int end)
          Finds a range of all the asset links where entryId1 = ? and type = ?.
static List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links where entryId1 = ? and type = ?.
static List<AssetLink> findByE1(long entryId1)
          Finds all the asset links where entryId1 = ?.
static List<AssetLink> findByE1(long entryId1, int start, int end)
          Finds a range of all the asset links where entryId1 = ?.
static List<AssetLink> findByE1(long entryId1, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links where entryId1 = ?.
static AssetLink findByE2_First(long entryId2, OrderByComparator orderByComparator)
          Finds the first asset link in the ordered set where entryId2 = ?.
static AssetLink findByE2_Last(long entryId2, OrderByComparator orderByComparator)
          Finds the last asset link in the ordered set where entryId2 = ?.
static AssetLink[] findByE2_PrevAndNext(long linkId, long entryId2, OrderByComparator orderByComparator)
          Finds the asset links before and after the current asset link in the ordered set where entryId2 = ?.
static AssetLink findByE2_T_First(long entryId2, int type, OrderByComparator orderByComparator)
          Finds the first asset link in the ordered set where entryId2 = ? and type = ?.
static AssetLink findByE2_T_Last(long entryId2, int type, OrderByComparator orderByComparator)
          Finds the last asset link in the ordered set where entryId2 = ? and type = ?.
static AssetLink[] findByE2_T_PrevAndNext(long linkId, long entryId2, int type, OrderByComparator orderByComparator)
          Finds the asset links before and after the current asset link in the ordered set where entryId2 = ? and type = ?.
static List<AssetLink> findByE2_T(long entryId2, int type)
          Finds all the asset links where entryId2 = ? and type = ?.
static List<AssetLink> findByE2_T(long entryId2, int type, int start, int end)
          Finds a range of all the asset links where entryId2 = ? and type = ?.
static List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links where entryId2 = ? and type = ?.
static List<AssetLink> findByE2(long entryId2)
          Finds all the asset links where entryId2 = ?.
static List<AssetLink> findByE2(long entryId2, int start, int end)
          Finds a range of all the asset links where entryId2 = ?.
static List<AssetLink> findByE2(long entryId2, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset links where entryId2 = ?.
static AssetLink findByPrimaryKey(long linkId)
          Finds the asset link with the primary key or throws a NoSuchLinkException if it could not be found.
static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static AssetLinkPersistence getPersistence()
           
static AssetLink remove(AssetLink assetLink)
           
static AssetLink remove(long linkId)
          Removes the asset link with the primary key from the database.
static void removeAll()
          Removes all the asset links from the database.
static void removeByE_E_T(long entryId1, long entryId2, int type)
          Removes all the asset links where entryId1 = ? and entryId2 = ? and type = ? from the database.
static void removeByE_E(long entryId1, long entryId2)
          Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.
static void removeByE1_T(long entryId1, int type)
          Removes all the asset links where entryId1 = ? and type = ? from the database.
static void removeByE1(long entryId1)
          Removes all the asset links where entryId1 = ? from the database.
static void removeByE2_T(long entryId2, int type)
          Removes all the asset links where entryId2 = ? and type = ? from the database.
static void removeByE2(long entryId2)
          Removes all the asset links where entryId2 = ? from the database.
 void setPersistence(AssetLinkPersistence persistence)
           
static AssetLink update(AssetLink assetLink, boolean merge)
           
static AssetLink update(AssetLink assetLink, boolean merge, ServiceContext serviceContext)
           
static AssetLink updateImpl(AssetLink assetLink, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetLinkUtil

public AssetLinkUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(AssetLink assetLink)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                   int start,
                                                   int end)
                                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<AssetLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static AssetLink remove(AssetLink assetLink)
                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static AssetLink update(AssetLink assetLink,
                               boolean merge)
                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static AssetLink update(AssetLink assetLink,
                               boolean merge,
                               ServiceContext serviceContext)
                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

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

Parameters:
assetLink - the asset link to cache

cacheResult

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

Parameters:
assetLinks - the asset links to cache

create

public static 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

public static 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 to remove
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

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

findByPrimaryKey

public static AssetLink findByPrimaryKey(long linkId)
                                  throws SystemException,
                                         NoSuchLinkException
Finds 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 to find
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

public static AssetLink fetchByPrimaryKey(long linkId)
                                   throws SystemException
Finds 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 to find
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

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

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

findByE1

public static List<AssetLink> findByE1(long entryId1,
                                       int start,
                                       int end)
                                throws SystemException
Finds 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 to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1

public static List<AssetLink> findByE1(long entryId1,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds 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 to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_First

public static AssetLink findByE1_First(long entryId1,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchLinkException
Finds the first asset link in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE1_Last

public static AssetLink findByE1_Last(long entryId1,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchLinkException
Finds the last asset link in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE1_PrevAndNext

public static AssetLink[] findByE1_PrevAndNext(long linkId,
                                               long entryId1,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchLinkException
Finds the asset links before and after the current asset link in the ordered set 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:
linkId - the primary key of the current asset link
entryId1 - the entry id1 to search with
orderByComparator - the comparator to order the set by
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

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

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

findByE2

public static List<AssetLink> findByE2(long entryId2,
                                       int start,
                                       int end)
                                throws SystemException
Finds 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 to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2

public static List<AssetLink> findByE2(long entryId2,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds 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 to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_First

public static AssetLink findByE2_First(long entryId2,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchLinkException
Finds the first asset link in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE2_Last

public static AssetLink findByE2_Last(long entryId2,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchLinkException
Finds the last asset link in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE2_PrevAndNext

public static AssetLink[] findByE2_PrevAndNext(long linkId,
                                               long entryId2,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchLinkException
Finds the asset links before and after the current asset link in the ordered set 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:
linkId - the primary key of the current asset link
entryId2 - the entry id2 to search with
orderByComparator - the comparator to order the set by
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

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

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

findByE_E

public static List<AssetLink> findByE_E(long entryId1,
                                        long entryId2,
                                        int start,
                                        int end)
                                 throws SystemException
Finds 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 to search with
entryId2 - the entry id2 to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E

public static List<AssetLink> findByE_E(long entryId1,
                                        long entryId2,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds 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 to search with
entryId2 - the entry id2 to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E_First

public static AssetLink findByE_E_First(long entryId1,
                                        long entryId2,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchLinkException
Finds the first asset link in the ordered set 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 to search with
entryId2 - the entry id2 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE_E_Last

public static AssetLink findByE_E_Last(long entryId1,
                                       long entryId2,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchLinkException
Finds the last asset link in the ordered set 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 to search with
entryId2 - the entry id2 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE_E_PrevAndNext

public static AssetLink[] findByE_E_PrevAndNext(long linkId,
                                                long entryId1,
                                                long entryId2,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchLinkException
Finds the asset links before and after the current asset link in the ordered set 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:
linkId - the primary key of the current asset link
entryId1 - the entry id1 to search with
entryId2 - the entry id2 to search with
orderByComparator - the comparator to order the set by
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

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

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

findByE1_T

public static List<AssetLink> findByE1_T(long entryId1,
                                         int type,
                                         int start,
                                         int end)
                                  throws SystemException
Finds 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 to search with
type - the type to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_T

public static List<AssetLink> findByE1_T(long entryId1,
                                         int type,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds 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 to search with
type - the type to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE1_T_First

public static AssetLink findByE1_T_First(long entryId1,
                                         int type,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchLinkException
Finds the first asset link in the ordered set 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 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE1_T_Last

public static AssetLink findByE1_T_Last(long entryId1,
                                        int type,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchLinkException
Finds the last asset link in the ordered set 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 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE1_T_PrevAndNext

public static AssetLink[] findByE1_T_PrevAndNext(long linkId,
                                                 long entryId1,
                                                 int type,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchLinkException
Finds the asset links before and after the current asset link in the ordered set 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:
linkId - the primary key of the current asset link
entryId1 - the entry id1 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
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

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

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

findByE2_T

public static List<AssetLink> findByE2_T(long entryId2,
                                         int type,
                                         int start,
                                         int end)
                                  throws SystemException
Finds 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 to search with
type - the type to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_T

public static List<AssetLink> findByE2_T(long entryId2,
                                         int type,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds 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 to search with
type - the type to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE2_T_First

public static AssetLink findByE2_T_First(long entryId2,
                                         int type,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchLinkException
Finds the first asset link in the ordered set 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 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE2_T_Last

public static AssetLink findByE2_T_Last(long entryId2,
                                        int type,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchLinkException
Finds the last asset link in the ordered set 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 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE2_T_PrevAndNext

public static AssetLink[] findByE2_T_PrevAndNext(long linkId,
                                                 long entryId2,
                                                 int type,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchLinkException
Finds the asset links before and after the current asset link in the ordered set 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:
linkId - the primary key of the current asset link
entryId2 - the entry id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
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

public static List<AssetLink> findByE_E_T(long entryId1,
                                          long entryId2,
                                          int type)
                                   throws SystemException
Finds all the asset links where entryId1 = ? and entryId2 = ? and type = ?.

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

findByE_E_T

public static List<AssetLink> findByE_E_T(long entryId1,
                                          long entryId2,
                                          int type,
                                          int start,
                                          int end)
                                   throws SystemException
Finds a range of all the asset links where entryId1 = ? and 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:
entryId1 - the entry id1 to search with
entryId2 - the entry id2 to search with
type - the type to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E_T

public static List<AssetLink> findByE_E_T(long entryId1,
                                          long entryId2,
                                          int type,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds an ordered range of all the asset links where entryId1 = ? and 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:
entryId1 - the entry id1 to search with
entryId2 - the entry id2 to search with
type - the type to search with
start - the lower bound of the range of asset links to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset links
Throws:
SystemException - if a system exception occurred

findByE_E_T_First

public static AssetLink findByE_E_T_First(long entryId1,
                                          long entryId2,
                                          int type,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchLinkException
Finds the first asset link in the ordered set where entryId1 = ? and 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:
entryId1 - the entry id1 to search with
entryId2 - the entry id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE_E_T_Last

public static AssetLink findByE_E_T_Last(long entryId1,
                                         long entryId2,
                                         int type,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchLinkException
Finds the last asset link in the ordered set where entryId1 = ? and 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:
entryId1 - the entry id1 to search with
entryId2 - the entry id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset link
Throws:
NoSuchLinkException - if a matching asset link could not be found
SystemException - if a system exception occurred

findByE_E_T_PrevAndNext

public static AssetLink[] findByE_E_T_PrevAndNext(long linkId,
                                                  long entryId1,
                                                  long entryId2,
                                                  int type,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchLinkException
Finds the asset links before and after the current asset link in the ordered set where entryId1 = ? and 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:
linkId - the primary key of the current asset link
entryId1 - the entry id1 to search with
entryId2 - the entry id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
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

findAll

public static List<AssetLink> findAll()
                               throws SystemException
Finds all the asset links.

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

findAll

public static List<AssetLink> findAll(int start,
                                      int end)
                               throws SystemException
Finds 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 to return
end - the upper bound of the range of asset links to return (not inclusive)
Returns:
the range of asset links
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetLink> findAll(int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Finds 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 to return
end - the upper bound of the range of asset links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset links
Throws:
SystemException - if a system exception occurred

removeByE1

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

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

removeByE2

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

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

removeByE_E

public static 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 to search with
entryId2 - the entry id2 to search with
Throws:
SystemException - if a system exception occurred

removeByE1_T

public static 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 to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByE2_T

public static 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 to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByE_E_T

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

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countByE1

public static int countByE1(long entryId1)
                     throws SystemException
Counts all the asset links where entryId1 = ?.

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

countByE2

public static int countByE2(long entryId2)
                     throws SystemException
Counts all the asset links where entryId2 = ?.

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

countByE_E

public static int countByE_E(long entryId1,
                             long entryId2)
                      throws SystemException
Counts all the asset links where entryId1 = ? and entryId2 = ?.

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

countByE1_T

public static int countByE1_T(long entryId1,
                              int type)
                       throws SystemException
Counts all the asset links where entryId1 = ? and type = ?.

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

countByE2_T

public static int countByE2_T(long entryId2,
                              int type)
                       throws SystemException
Counts all the asset links where entryId2 = ? and type = ?.

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

countByE_E_T

public static int countByE_E_T(long entryId1,
                               long entryId2,
                               int type)
                        throws SystemException
Counts all the asset links where entryId1 = ? and entryId2 = ? and type = ?.

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

countAll

public static int countAll()
                    throws SystemException
Counts all the asset links.

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

getPersistence

public static AssetLinkPersistence getPersistence()

setPersistence

public void setPersistence(AssetLinkPersistence persistence)

Liferay 6.0.5