Class DDMStructureLinkUtil

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

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

    • DDMStructureLinkUtil

      public DDMStructureLinkUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static DDMStructureLink update(DDMStructureLink ddmStructureLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByStructureId

      public static List<DDMStructureLink> findByStructureId(long structureId)
      Returns all the ddm structure links where structureId = ?.
      Parameters:
      structureId - the structure ID
      Returns:
      the matching ddm structure links
    • findByStructureId

      public static List<DDMStructureLink> findByStructureId(long structureId, int start, int end)
      Returns a range of all the ddm structure links where structureId = ?.

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

      Parameters:
      structureId - the structure ID
      start - the lower bound of the range of ddm structure links
      end - the upper bound of the range of ddm structure links (not inclusive)
      Returns:
      the range of matching ddm structure links
    • findByStructureId

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

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

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

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

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

      Parameters:
      structureId - the structure ID
      start - the lower bound of the range of ddm structure links
      end - the upper bound of the range of ddm structure 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 structure links
    • findByStructureId_First

      public static DDMStructureLink findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
      Returns the first ddm structure link in the ordered set where structureId = ?.
      Parameters:
      structureId - the structure ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm structure link
      Throws:
      NoSuchStructureLinkException - if a matching ddm structure link could not be found
      NoSuchStructureLinkException
    • fetchByStructureId_First

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

      public static DDMStructureLink findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
      Returns the last ddm structure link in the ordered set where structureId = ?.
      Parameters:
      structureId - the structure ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm structure link
      Throws:
      NoSuchStructureLinkException - if a matching ddm structure link could not be found
      NoSuchStructureLinkException
    • fetchByStructureId_Last

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

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

      public static void removeByStructureId(long structureId)
      Removes all the ddm structure links where structureId = ? from the database.
      Parameters:
      structureId - the structure ID
    • countByStructureId

      public static int countByStructureId(long structureId)
      Returns the number of ddm structure links where structureId = ?.
      Parameters:
      structureId - the structure ID
      Returns:
      the number of matching ddm structure links
    • findByC_C

      public static List<DDMStructureLink> findByC_C(long classNameId, long classPK)
      Returns all the ddm structure links where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching ddm structure links
    • findByC_C

      public static List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end)
      Returns a range of all the ddm structure links where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of ddm structure links
      end - the upper bound of the range of ddm structure links (not inclusive)
      Returns:
      the range of matching ddm structure links
    • findByC_C

      public static List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
      Returns an ordered range of all the ddm structure links where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of ddm structure links
      end - the upper bound of the range of ddm structure links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm structure links
    • findByC_C

      public static List<DDMStructureLink> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm structure links where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of ddm structure links
      end - the upper bound of the range of ddm structure 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 structure links
    • findByC_C_First

      public static DDMStructureLink findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
      Returns the first ddm structure link in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm structure link
      Throws:
      NoSuchStructureLinkException - if a matching ddm structure link could not be found
      NoSuchStructureLinkException
    • fetchByC_C_First

      public static DDMStructureLink fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
      Returns the first ddm structure link in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm structure link, or null if a matching ddm structure link could not be found
    • findByC_C_Last

      public static DDMStructureLink findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
      Returns the last ddm structure link in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm structure link
      Throws:
      NoSuchStructureLinkException - if a matching ddm structure link could not be found
      NoSuchStructureLinkException
    • fetchByC_C_Last

      public static DDMStructureLink fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator)
      Returns the last ddm structure link in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm structure link, or null if a matching ddm structure link could not be found
    • findByC_C_PrevAndNext

      public static DDMStructureLink[] findByC_C_PrevAndNext(long structureLinkId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureLink> orderByComparator) throws NoSuchStructureLinkException
      Returns the ddm structure links before and after the current ddm structure link in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      structureLinkId - the primary key of the current ddm structure link
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm structure link
      Throws:
      NoSuchStructureLinkException - if a ddm structure link with the primary key could not be found
      NoSuchStructureLinkException
    • removeByC_C

      public static void removeByC_C(long classNameId, long classPK)
      Removes all the ddm structure links where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByC_C

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

      public static DDMStructureLink findByC_C_S(long classNameId, long classPK, long structureId) throws NoSuchStructureLinkException
      Returns the ddm structure link where classNameId = ? and classPK = ? and structureId = ? or throws a NoSuchStructureLinkException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      structureId - the structure ID
      Returns:
      the matching ddm structure link
      Throws:
      NoSuchStructureLinkException - if a matching ddm structure link could not be found
      NoSuchStructureLinkException
    • fetchByC_C_S

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

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

      public static DDMStructureLink removeByC_C_S(long classNameId, long classPK, long structureId) throws NoSuchStructureLinkException
      Removes the ddm structure link where classNameId = ? and classPK = ? and structureId = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      structureId - the structure ID
      Returns:
      the ddm structure link that was removed
      Throws:
      NoSuchStructureLinkException
    • countByC_C_S

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

      public static void cacheResult(DDMStructureLink ddmStructureLink)
      Caches the ddm structure link in the entity cache if it is enabled.
      Parameters:
      ddmStructureLink - the ddm structure link
    • cacheResult

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

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

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

      public static DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink)
    • findByPrimaryKey

      public static DDMStructureLink findByPrimaryKey(long structureLinkId) throws NoSuchStructureLinkException
      Returns the ddm structure link with the primary key or throws a NoSuchStructureLinkException if it could not be found.
      Parameters:
      structureLinkId - the primary key of the ddm structure link
      Returns:
      the ddm structure link
      Throws:
      NoSuchStructureLinkException - if a ddm structure link with the primary key could not be found
      NoSuchStructureLinkException
    • fetchByPrimaryKey

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

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

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

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

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

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

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

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

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

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

      public static DDMStructureLinkPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DDMStructureLinkPersistence persistence)