Class AssetLinkUtil

java.lang.Object
com.liferay.asset.link.service.persistence.AssetLinkUtil

public class AssetLinkUtil extends Object
The persistence utility for the asset link service. This utility wraps com.liferay.asset.link.service.persistence.impl.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.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static void
    cacheResult(List<AssetLink> assetLinks)
     
    static void
     
    static void
    clearCache(AssetLink assetLink)
     
    static int
    countByE_E(long entryId1, long entryId2)
    Returns the number of asset links where entryId1 = ? and entryId2 = ?.
    static int
    countByE_E_T(long entryId1, long entryId2, int type)
    Returns the number of asset links where entryId1 = ? and entryId2 = ? and type = ?.
    static int
    countByE1_T(long entryId1, int type)
    Returns the number of asset links where entryId1 = ? and type = ?.
    static int
    countByE2_T(long entryId2, int type)
    Returns the number of asset links where entryId2 = ? and type = ?.
    static int
    countByEntryId1(long entryId1)
    Returns the number of asset links where entryId1 = ?.
    static int
    countByEntryId2(long entryId2)
    Returns the number of asset links where entryId2 = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static AssetLink
    create(long linkId)
    Creates a new asset link with the primary key.
    static AssetLink
    fetchByE_E_First(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
    static 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.
    static AssetLink
    fetchByE_E_T(long entryId1, long entryId2, int type, boolean useFinderCache)
    Returns the asset link where entryId1 = ? and entryId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
    static AssetLink
    fetchByE1_T_First(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
    static AssetLink
    fetchByE2_T_First(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
    static AssetLink
    fetchByEntryId1_First(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId1 = ?.
    static AssetLink
    fetchByEntryId2_First(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId2 = ?.
    static AssetLink
    fetchByPrimaryKey(long linkId)
    Returns the asset link with the primary key or returns null if it could not be found.
     
    static List<AssetLink>
    findByE_E(long entryId1, long entryId2)
    Returns all the asset links where entryId1 = ? and entryId2 = ?.
    static List<AssetLink>
    findByE_E(long entryId1, long entryId2, int start, int end)
    Returns a range of all the asset links where entryId1 = ? and entryId2 = ?.
    static List<AssetLink>
    findByE_E(long entryId1, long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
    static List<AssetLink>
    findByE_E(long entryId1, long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.
    static AssetLink
    findByE_E_First(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
    static 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.
    static List<AssetLink>
    findByE1_T(long entryId1, int type)
    Returns all the asset links where entryId1 = ? and type = ?.
    static List<AssetLink>
    findByE1_T(long entryId1, int type, int start, int end)
    Returns a range of all the asset links where entryId1 = ? and type = ?.
    static List<AssetLink>
    findByE1_T(long entryId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
    static List<AssetLink>
    findByE1_T(long entryId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset links where entryId1 = ? and type = ?.
    static AssetLink
    findByE1_T_First(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
    static List<AssetLink>
    findByE2_T(long entryId2, int type)
    Returns all the asset links where entryId2 = ? and type = ?.
    static List<AssetLink>
    findByE2_T(long entryId2, int type, int start, int end)
    Returns a range of all the asset links where entryId2 = ? and type = ?.
    static List<AssetLink>
    findByE2_T(long entryId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
    static List<AssetLink>
    findByE2_T(long entryId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset links where entryId2 = ? and type = ?.
    static AssetLink
    findByE2_T_First(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
    static List<AssetLink>
    findByEntryId1(long entryId1)
    Returns all the asset links where entryId1 = ?.
    static List<AssetLink>
    findByEntryId1(long entryId1, int start, int end)
    Returns a range of all the asset links where entryId1 = ?.
    static List<AssetLink>
    findByEntryId1(long entryId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns an ordered range of all the asset links where entryId1 = ?.
    static List<AssetLink>
    findByEntryId1(long entryId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset links where entryId1 = ?.
    static AssetLink
    findByEntryId1_First(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId1 = ?.
    static List<AssetLink>
    findByEntryId2(long entryId2)
    Returns all the asset links where entryId2 = ?.
    static List<AssetLink>
    findByEntryId2(long entryId2, int start, int end)
    Returns a range of all the asset links where entryId2 = ?.
    static List<AssetLink>
    findByEntryId2(long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns an ordered range of all the asset links where entryId2 = ?.
    static List<AssetLink>
    findByEntryId2(long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset links where entryId2 = ?.
    static AssetLink
    findByEntryId2_First(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
    Returns the first asset link in the ordered set where entryId2 = ?.
    static AssetLink
    findByPrimaryKey(long linkId)
    Returns the asset link with the primary key or throws a NoSuchLinkException if it could not be found.
    static List<AssetLink>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<AssetLink>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<AssetLink>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
     
     
    static AssetLink
    remove(long linkId)
    Removes the asset link with the primary key from the database.
    static void
    removeByE_E(long entryId1, long entryId2)
    Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.
    static AssetLink
    removeByE_E_T(long entryId1, long entryId2, int type)
    Removes the asset link where entryId1 = ? and entryId2 = ? and type = ? 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
    removeByE2_T(long entryId2, int type)
    Removes all the asset links where entryId2 = ? and type = ? from the database.
    static void
    removeByEntryId1(long entryId1)
    Removes all the asset links where entryId1 = ? from the database.
    static void
    removeByEntryId2(long entryId2)
    Removes all the asset links where entryId2 = ? from the database.
    static void
     
    static AssetLink
    update(AssetLink assetLink)
     
    static AssetLink
    update(AssetLink assetLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static AssetLink
    updateImpl(AssetLink assetLink)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetLinkUtil

      public AssetLinkUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<AssetLink> assetLinks)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

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

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

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

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,AssetLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<AssetLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<AssetLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<AssetLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static AssetLink update(AssetLink assetLink)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static AssetLink update(AssetLink assetLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByEntryId1

      public static List<AssetLink> findByEntryId1(long entryId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset links
    • findByEntryId1_First

      public static AssetLink findByEntryId1_First(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws 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
    • fetchByEntryId1_First

      public static AssetLink fetchByEntryId1_First(long entryId1, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      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
    • removeByEntryId1

      public static void removeByEntryId1(long entryId1)
      Removes all the asset links where entryId1 = ? from the database.
      Parameters:
      entryId1 - the entry id1
    • countByEntryId1

      public static int countByEntryId1(long entryId1)
      Returns the number of asset links where entryId1 = ?.
      Parameters:
      entryId1 - the entry id1
      Returns:
      the number of matching asset links
    • findByEntryId2

      public static List<AssetLink> findByEntryId2(long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset links
    • findByEntryId2_First

      public static AssetLink findByEntryId2_First(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws 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
    • fetchByEntryId2_First

      public static AssetLink fetchByEntryId2_First(long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      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
    • removeByEntryId2

      public static void removeByEntryId2(long entryId2)
      Removes all the asset links where entryId2 = ? from the database.
      Parameters:
      entryId2 - the entry id2
    • countByEntryId2

      public static int countByEntryId2(long entryId2)
      Returns the number of asset links where entryId2 = ?.
      Parameters:
      entryId2 - the entry id2
      Returns:
      the number of matching asset links
    • findByE_E

      public static List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset links
    • findByE_E_First

      public static AssetLink findByE_E_First(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException
      Returns the first asset link in the ordered set where entryId1 = ? and entryId2 = ?.
      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
    • fetchByE_E_First

      public static AssetLink fetchByE_E_First(long entryId1, long entryId2, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      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
    • removeByE_E

      public static void removeByE_E(long entryId1, long entryId2)
      Removes all the asset links where entryId1 = ? and entryId2 = ? from the database.
      Parameters:
      entryId1 - the entry id1
      entryId2 - the entry id2
    • countByE_E

      public static int countByE_E(long entryId1, long entryId2)
      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
    • findByE1_T

      public static List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset links
    • findByE1_T_First

      public static AssetLink findByE1_T_First(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException
      Returns the first asset link in the ordered set where entryId1 = ? and type = ?.
      Parameters:
      entryId1 - the entry id1
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset link
    • fetchByE1_T_First

      public static AssetLink fetchByE1_T_First(long entryId1, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      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
    • removeByE1_T

      public static void removeByE1_T(long entryId1, int type)
      Removes all the asset links where entryId1 = ? and type = ? from the database.
      Parameters:
      entryId1 - the entry id1
      type - the type
    • countByE1_T

      public static int countByE1_T(long entryId1, int type)
      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
    • findByE2_T

      public static List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator, boolean useFinderCache)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset links
    • findByE2_T_First

      public static AssetLink findByE2_T_First(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator) throws NoSuchLinkException
      Returns the first asset link in the ordered set where entryId2 = ? and type = ?.
      Parameters:
      entryId2 - the entry id2
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset link
    • fetchByE2_T_First

      public static AssetLink fetchByE2_T_First(long entryId2, int type, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      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
    • removeByE2_T

      public static void removeByE2_T(long entryId2, int type)
      Removes all the asset links where entryId2 = ? and type = ? from the database.
      Parameters:
      entryId2 - the entry id2
      type - the type
    • countByE2_T

      public static int countByE2_T(long entryId2, int type)
      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
    • findByE_E_T

      public static AssetLink findByE_E_T(long entryId1, long entryId2, int type) throws 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
    • fetchByE_E_T

      public static AssetLink fetchByE_E_T(long entryId1, long entryId2, int type, boolean useFinderCache)
      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
      useFinderCache - whether to use the finder cache
      Returns:
      the matching asset link, or null if a matching asset link could not be found
    • removeByE_E_T

      public static AssetLink removeByE_E_T(long entryId1, long entryId2, int type) throws 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:
      NoSuchLinkException
    • countByE_E_T

      public static int countByE_E_T(long entryId1, long entryId2, int type)
      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
    • 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 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
    • updateImpl

      public static AssetLink updateImpl(AssetLink assetLink)
    • findByPrimaryKey

      public static AssetLink findByPrimaryKey(long linkId) throws 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
    • fetchByPrimaryKey

      public static AssetLink fetchByPrimaryKey(long linkId)
      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
    • fetchByE_E_T

      public static 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. 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
    • findByEntryId1

      public static List<AssetLink> findByEntryId1(long entryId1)
      Returns all the asset links where entryId1 = ?.
      Parameters:
      entryId1 - the entry id1
      Returns:
      the matching asset links
    • findByEntryId1

      public static List<AssetLink> findByEntryId1(long entryId1, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByEntryId1

      public static List<AssetLink> findByEntryId1(long entryId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      Returns an ordered range of all the asset links where entryId1 = ?.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByEntryId2

      public static List<AssetLink> findByEntryId2(long entryId2)
      Returns all the asset links where entryId2 = ?.
      Parameters:
      entryId2 - the entry id2
      Returns:
      the matching asset links
    • findByEntryId2

      public static List<AssetLink> findByEntryId2(long entryId2, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByEntryId2

      public static List<AssetLink> findByEntryId2(long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      Returns an ordered range of all the asset links where entryId2 = ?.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByE_E

      public static List<AssetLink> findByE_E(long entryId1, long entryId2)
      Returns all the asset links where entryId1 = ? and entryId2 = ?.
      Parameters:
      entryId1 - the entry id1
      entryId2 - the entry id2
      Returns:
      the matching asset links
    • findByE_E

      public static List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByE_E

      public static List<AssetLink> findByE_E(long entryId1, long entryId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      Returns an ordered range of all the asset links where entryId1 = ? and entryId2 = ?.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByE1_T

      public static List<AssetLink> findByE1_T(long entryId1, int type)
      Returns all the asset links where entryId1 = ? and type = ?.
      Parameters:
      entryId1 - the entry id1
      type - the type
      Returns:
      the matching asset links
    • findByE1_T

      public static List<AssetLink> findByE1_T(long entryId1, int type, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByE1_T

      public static List<AssetLink> findByE1_T(long entryId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      Returns an ordered range of all the asset links where entryId1 = ? and type = ?.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByE2_T

      public static List<AssetLink> findByE2_T(long entryId2, int type)
      Returns all the asset links where entryId2 = ? and type = ?.
      Parameters:
      entryId2 - the entry id2
      type - the type
      Returns:
      the matching asset links
    • findByE2_T

      public static List<AssetLink> findByE2_T(long entryId2, int type, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • findByE2_T

      public static List<AssetLink> findByE2_T(long entryId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetLink> orderByComparator)
      Returns an ordered range of all the asset links where entryId2 = ? and type = ?.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.link.model.impl.AssetLinkModelImpl.

      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
    • getPersistence

      public static AssetLinkPersistence getPersistence()
    • setPersistence

      public static void setPersistence(AssetLinkPersistence persistence)