Class DDMTemplateLinkUtil

java.lang.Object
com.liferay.dynamic.data.mapping.service.persistence.DDMTemplateLinkUtil

public class DDMTemplateLinkUtil extends Object
The persistence utility for the ddm template link service. This utility wraps com.liferay.dynamic.data.mapping.service.persistence.impl.DDMTemplateLinkPersistenceImpl 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 Details

    • DDMTemplateLinkUtil

      public DDMTemplateLinkUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(DDMTemplateLink ddmTemplateLink)
      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,DDMTemplateLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static DDMTemplateLink update(DDMTemplateLink ddmTemplateLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByTemplateId

      public static List<DDMTemplateLink> findByTemplateId(long templateId)
      Returns all the ddm template links where templateId = ?.
      Parameters:
      templateId - the template ID
      Returns:
      the matching ddm template links
    • findByTemplateId

      public static List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end)
      Returns a range of all the ddm template links where templateId = ?.

      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. 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 DDMTemplateLinkModelImpl.

      Parameters:
      templateId - the template ID
      start - the lower bound of the range of ddm template links
      end - the upper bound of the range of ddm template links (not inclusive)
      Returns:
      the range of matching ddm template links
    • findByTemplateId

      public static List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
      Returns an ordered range of all the ddm template links where templateId = ?.

      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. 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 DDMTemplateLinkModelImpl.

      Parameters:
      templateId - the template ID
      start - the lower bound of the range of ddm template links
      end - the upper bound of the range of ddm template links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm template links
    • findByTemplateId

      public static List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm template links where templateId = ?.

      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. 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 DDMTemplateLinkModelImpl.

      Parameters:
      templateId - the template ID
      start - the lower bound of the range of ddm template links
      end - the upper bound of the range of ddm template 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 ddm template links
    • findByTemplateId_First

      public static DDMTemplateLink findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
      Returns the first ddm template link in the ordered set where templateId = ?.
      Parameters:
      templateId - the template ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm template link
      Throws:
      NoSuchTemplateLinkException - if a matching ddm template link could not be found
      NoSuchTemplateLinkException
    • fetchByTemplateId_First

      public static DDMTemplateLink fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
      Returns the first ddm template link in the ordered set where templateId = ?.
      Parameters:
      templateId - the template ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm template link, or null if a matching ddm template link could not be found
    • findByTemplateId_Last

      public static DDMTemplateLink findByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
      Returns the last ddm template link in the ordered set where templateId = ?.
      Parameters:
      templateId - the template ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm template link
      Throws:
      NoSuchTemplateLinkException - if a matching ddm template link could not be found
      NoSuchTemplateLinkException
    • fetchByTemplateId_Last

      public static DDMTemplateLink fetchByTemplateId_Last(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
      Returns the last ddm template link in the ordered set where templateId = ?.
      Parameters:
      templateId - the template ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm template link, or null if a matching ddm template link could not be found
    • findByTemplateId_PrevAndNext

      public static DDMTemplateLink[] findByTemplateId_PrevAndNext(long templateLinkId, long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException
      Returns the ddm template links before and after the current ddm template link in the ordered set where templateId = ?.
      Parameters:
      templateLinkId - the primary key of the current ddm template link
      templateId - the template ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm template link
      Throws:
      NoSuchTemplateLinkException - if a ddm template link with the primary key could not be found
      NoSuchTemplateLinkException
    • removeByTemplateId

      public static void removeByTemplateId(long templateId)
      Removes all the ddm template links where templateId = ? from the database.
      Parameters:
      templateId - the template ID
    • countByTemplateId

      public static int countByTemplateId(long templateId)
      Returns the number of ddm template links where templateId = ?.
      Parameters:
      templateId - the template ID
      Returns:
      the number of matching ddm template links
    • findByC_C

      public static DDMTemplateLink findByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException
      Returns the ddm template link where classNameId = ? and classPK = ? or throws a NoSuchTemplateLinkException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching ddm template link
      Throws:
      NoSuchTemplateLinkException - if a matching ddm template link could not be found
      NoSuchTemplateLinkException
    • fetchByC_C

      public static DDMTemplateLink fetchByC_C(long classNameId, long classPK)
      Returns the ddm template link where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching ddm template link, or null if a matching ddm template link could not be found
    • fetchByC_C

      public static DDMTemplateLink fetchByC_C(long classNameId, long classPK, boolean useFinderCache)
      Returns the ddm template link where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ddm template link, or null if a matching ddm template link could not be found
    • removeByC_C

      public static DDMTemplateLink removeByC_C(long classNameId, long classPK) throws NoSuchTemplateLinkException
      Removes the ddm template link where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the ddm template link that was removed
      Throws:
      NoSuchTemplateLinkException
    • countByC_C

      public static int countByC_C(long classNameId, long classPK)
      Returns the number of ddm template links where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching ddm template links
    • cacheResult

      public static void cacheResult(DDMTemplateLink ddmTemplateLink)
      Caches the ddm template link in the entity cache if it is enabled.
      Parameters:
      ddmTemplateLink - the ddm template link
    • cacheResult

      public static void cacheResult(List<DDMTemplateLink> ddmTemplateLinks)
      Caches the ddm template links in the entity cache if it is enabled.
      Parameters:
      ddmTemplateLinks - the ddm template links
    • create

      public static DDMTemplateLink create(long templateLinkId)
      Creates a new ddm template link with the primary key. Does not add the ddm template link to the database.
      Parameters:
      templateLinkId - the primary key for the new ddm template link
      Returns:
      the new ddm template link
    • remove

      public static DDMTemplateLink remove(long templateLinkId) throws NoSuchTemplateLinkException
      Removes the ddm template link with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      templateLinkId - the primary key of the ddm template link
      Returns:
      the ddm template link that was removed
      Throws:
      NoSuchTemplateLinkException - if a ddm template link with the primary key could not be found
      NoSuchTemplateLinkException
    • updateImpl

      public static DDMTemplateLink updateImpl(DDMTemplateLink ddmTemplateLink)
    • findByPrimaryKey

      public static DDMTemplateLink findByPrimaryKey(long templateLinkId) throws NoSuchTemplateLinkException
      Returns the ddm template link with the primary key or throws a NoSuchTemplateLinkException if it could not be found.
      Parameters:
      templateLinkId - the primary key of the ddm template link
      Returns:
      the ddm template link
      Throws:
      NoSuchTemplateLinkException - if a ddm template link with the primary key could not be found
      NoSuchTemplateLinkException
    • fetchByPrimaryKey

      public static DDMTemplateLink fetchByPrimaryKey(long templateLinkId)
      Returns the ddm template link with the primary key or returns null if it could not be found.
      Parameters:
      templateLinkId - the primary key of the ddm template link
      Returns:
      the ddm template link, or null if a ddm template link with the primary key could not be found
    • findAll

      public static List<DDMTemplateLink> findAll()
      Returns all the ddm template links.
      Returns:
      the ddm template links
    • findAll

      public static List<DDMTemplateLink> findAll(int start, int end)
      Returns a range of all the ddm template 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. 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 DDMTemplateLinkModelImpl.

      Parameters:
      start - the lower bound of the range of ddm template links
      end - the upper bound of the range of ddm template links (not inclusive)
      Returns:
      the range of ddm template links
    • findAll

      public static List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator)
      Returns an ordered range of all the ddm template 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. 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 DDMTemplateLinkModelImpl.

      Parameters:
      start - the lower bound of the range of ddm template links
      end - the upper bound of the range of ddm template links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of ddm template links
    • findAll

      public static List<DDMTemplateLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm template 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. 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 DDMTemplateLinkModelImpl.

      Parameters:
      start - the lower bound of the range of ddm template links
      end - the upper bound of the range of ddm template 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 ddm template links
    • removeAll

      public static void removeAll()
      Removes all the ddm template links from the database.
    • countAll

      public static int countAll()
      Returns the number of ddm template links.
      Returns:
      the number of ddm template links
    • getPersistence

      public static DDMTemplateLinkPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DDMTemplateLinkPersistence persistence)