Class DepotAppCustomizationUtil

java.lang.Object
com.liferay.depot.service.persistence.DepotAppCustomizationUtil

public class DepotAppCustomizationUtil extends Object
The persistence utility for the depot app customization service. This utility wraps com.liferay.depot.service.persistence.impl.DepotAppCustomizationPersistenceImpl 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

    • DepotAppCustomizationUtil

      public DepotAppCustomizationUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static DepotAppCustomization update(DepotAppCustomization depotAppCustomization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByDepotEntryId

      public static List<DepotAppCustomization> findByDepotEntryId(long depotEntryId)
      Returns all the depot app customizations where depotEntryId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      Returns:
      the matching depot app customizations
    • findByDepotEntryId

      public static List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end)
      Returns a range of all the depot app customizations where depotEntryId = ?.

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

      Parameters:
      depotEntryId - the depot entry ID
      start - the lower bound of the range of depot app customizations
      end - the upper bound of the range of depot app customizations (not inclusive)
      Returns:
      the range of matching depot app customizations
    • findByDepotEntryId

      public static List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
      Returns an ordered range of all the depot app customizations where depotEntryId = ?.

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

      Parameters:
      depotEntryId - the depot entry ID
      start - the lower bound of the range of depot app customizations
      end - the upper bound of the range of depot app customizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching depot app customizations
    • findByDepotEntryId

      public static List<DepotAppCustomization> findByDepotEntryId(long depotEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the depot app customizations where depotEntryId = ?.

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

      Parameters:
      depotEntryId - the depot entry ID
      start - the lower bound of the range of depot app customizations
      end - the upper bound of the range of depot app customizations (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 depot app customizations
    • findByDepotEntryId_First

      public static DepotAppCustomization findByDepotEntryId_First(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException
      Returns the first depot app customization in the ordered set where depotEntryId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching depot app customization
      Throws:
      NoSuchAppCustomizationException - if a matching depot app customization could not be found
      NoSuchAppCustomizationException
    • fetchByDepotEntryId_First

      public static DepotAppCustomization fetchByDepotEntryId_First(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
      Returns the first depot app customization in the ordered set where depotEntryId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching depot app customization, or null if a matching depot app customization could not be found
    • findByDepotEntryId_Last

      public static DepotAppCustomization findByDepotEntryId_Last(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException
      Returns the last depot app customization in the ordered set where depotEntryId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching depot app customization
      Throws:
      NoSuchAppCustomizationException - if a matching depot app customization could not be found
      NoSuchAppCustomizationException
    • fetchByDepotEntryId_Last

      public static DepotAppCustomization fetchByDepotEntryId_Last(long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
      Returns the last depot app customization in the ordered set where depotEntryId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching depot app customization, or null if a matching depot app customization could not be found
    • findByDepotEntryId_PrevAndNext

      public static DepotAppCustomization[] findByDepotEntryId_PrevAndNext(long depotAppCustomizationId, long depotEntryId, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator) throws NoSuchAppCustomizationException
      Returns the depot app customizations before and after the current depot app customization in the ordered set where depotEntryId = ?.
      Parameters:
      depotAppCustomizationId - the primary key of the current depot app customization
      depotEntryId - the depot entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next depot app customization
      Throws:
      NoSuchAppCustomizationException - if a depot app customization with the primary key could not be found
      NoSuchAppCustomizationException
    • removeByDepotEntryId

      public static void removeByDepotEntryId(long depotEntryId)
      Removes all the depot app customizations where depotEntryId = ? from the database.
      Parameters:
      depotEntryId - the depot entry ID
    • countByDepotEntryId

      public static int countByDepotEntryId(long depotEntryId)
      Returns the number of depot app customizations where depotEntryId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      Returns:
      the number of matching depot app customizations
    • findByD_E

      public static DepotAppCustomization findByD_E(long depotEntryId, boolean enabled) throws NoSuchAppCustomizationException
      Returns the depot app customization where depotEntryId = ? and enabled = ? or throws a NoSuchAppCustomizationException if it could not be found.
      Parameters:
      depotEntryId - the depot entry ID
      enabled - the enabled
      Returns:
      the matching depot app customization
      Throws:
      NoSuchAppCustomizationException - if a matching depot app customization could not be found
      NoSuchAppCustomizationException
    • fetchByD_E

      public static DepotAppCustomization fetchByD_E(long depotEntryId, boolean enabled)
      Returns the depot app customization where depotEntryId = ? and enabled = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      depotEntryId - the depot entry ID
      enabled - the enabled
      Returns:
      the matching depot app customization, or null if a matching depot app customization could not be found
    • fetchByD_E

      public static DepotAppCustomization fetchByD_E(long depotEntryId, boolean enabled, boolean useFinderCache)
      Returns the depot app customization where depotEntryId = ? and enabled = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      depotEntryId - the depot entry ID
      enabled - the enabled
      useFinderCache - whether to use the finder cache
      Returns:
      the matching depot app customization, or null if a matching depot app customization could not be found
    • removeByD_E

      public static DepotAppCustomization removeByD_E(long depotEntryId, boolean enabled) throws NoSuchAppCustomizationException
      Removes the depot app customization where depotEntryId = ? and enabled = ? from the database.
      Parameters:
      depotEntryId - the depot entry ID
      enabled - the enabled
      Returns:
      the depot app customization that was removed
      Throws:
      NoSuchAppCustomizationException
    • countByD_E

      public static int countByD_E(long depotEntryId, boolean enabled)
      Returns the number of depot app customizations where depotEntryId = ? and enabled = ?.
      Parameters:
      depotEntryId - the depot entry ID
      enabled - the enabled
      Returns:
      the number of matching depot app customizations
    • findByD_P

      public static DepotAppCustomization findByD_P(long depotEntryId, String portletId) throws NoSuchAppCustomizationException
      Returns the depot app customization where depotEntryId = ? and portletId = ? or throws a NoSuchAppCustomizationException if it could not be found.
      Parameters:
      depotEntryId - the depot entry ID
      portletId - the portlet ID
      Returns:
      the matching depot app customization
      Throws:
      NoSuchAppCustomizationException - if a matching depot app customization could not be found
      NoSuchAppCustomizationException
    • fetchByD_P

      public static DepotAppCustomization fetchByD_P(long depotEntryId, String portletId)
      Returns the depot app customization where depotEntryId = ? and portletId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      depotEntryId - the depot entry ID
      portletId - the portlet ID
      Returns:
      the matching depot app customization, or null if a matching depot app customization could not be found
    • fetchByD_P

      public static DepotAppCustomization fetchByD_P(long depotEntryId, String portletId, boolean useFinderCache)
      Returns the depot app customization where depotEntryId = ? and portletId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      depotEntryId - the depot entry ID
      portletId - the portlet ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching depot app customization, or null if a matching depot app customization could not be found
    • removeByD_P

      public static DepotAppCustomization removeByD_P(long depotEntryId, String portletId) throws NoSuchAppCustomizationException
      Removes the depot app customization where depotEntryId = ? and portletId = ? from the database.
      Parameters:
      depotEntryId - the depot entry ID
      portletId - the portlet ID
      Returns:
      the depot app customization that was removed
      Throws:
      NoSuchAppCustomizationException
    • countByD_P

      public static int countByD_P(long depotEntryId, String portletId)
      Returns the number of depot app customizations where depotEntryId = ? and portletId = ?.
      Parameters:
      depotEntryId - the depot entry ID
      portletId - the portlet ID
      Returns:
      the number of matching depot app customizations
    • cacheResult

      public static void cacheResult(DepotAppCustomization depotAppCustomization)
      Caches the depot app customization in the entity cache if it is enabled.
      Parameters:
      depotAppCustomization - the depot app customization
    • cacheResult

      public static void cacheResult(List<DepotAppCustomization> depotAppCustomizations)
      Caches the depot app customizations in the entity cache if it is enabled.
      Parameters:
      depotAppCustomizations - the depot app customizations
    • create

      public static DepotAppCustomization create(long depotAppCustomizationId)
      Creates a new depot app customization with the primary key. Does not add the depot app customization to the database.
      Parameters:
      depotAppCustomizationId - the primary key for the new depot app customization
      Returns:
      the new depot app customization
    • remove

      public static DepotAppCustomization remove(long depotAppCustomizationId) throws NoSuchAppCustomizationException
      Removes the depot app customization with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      depotAppCustomizationId - the primary key of the depot app customization
      Returns:
      the depot app customization that was removed
      Throws:
      NoSuchAppCustomizationException - if a depot app customization with the primary key could not be found
      NoSuchAppCustomizationException
    • updateImpl

      public static DepotAppCustomization updateImpl(DepotAppCustomization depotAppCustomization)
    • findByPrimaryKey

      public static DepotAppCustomization findByPrimaryKey(long depotAppCustomizationId) throws NoSuchAppCustomizationException
      Returns the depot app customization with the primary key or throws a NoSuchAppCustomizationException if it could not be found.
      Parameters:
      depotAppCustomizationId - the primary key of the depot app customization
      Returns:
      the depot app customization
      Throws:
      NoSuchAppCustomizationException - if a depot app customization with the primary key could not be found
      NoSuchAppCustomizationException
    • fetchByPrimaryKey

      public static DepotAppCustomization fetchByPrimaryKey(long depotAppCustomizationId)
      Returns the depot app customization with the primary key or returns null if it could not be found.
      Parameters:
      depotAppCustomizationId - the primary key of the depot app customization
      Returns:
      the depot app customization, or null if a depot app customization with the primary key could not be found
    • findAll

      public static List<DepotAppCustomization> findAll()
      Returns all the depot app customizations.
      Returns:
      the depot app customizations
    • findAll

      public static List<DepotAppCustomization> findAll(int start, int end)
      Returns a range of all the depot app customizations.

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

      Parameters:
      start - the lower bound of the range of depot app customizations
      end - the upper bound of the range of depot app customizations (not inclusive)
      Returns:
      the range of depot app customizations
    • findAll

      public static List<DepotAppCustomization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator)
      Returns an ordered range of all the depot app customizations.

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

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

      public static List<DepotAppCustomization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DepotAppCustomization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the depot app customizations.

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

      Parameters:
      start - the lower bound of the range of depot app customizations
      end - the upper bound of the range of depot app customizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of depot app customizations
    • removeAll

      public static void removeAll()
      Removes all the depot app customizations from the database.
    • countAll

      public static int countAll()
      Returns the number of depot app customizations.
      Returns:
      the number of depot app customizations
    • getPersistence

      public static DepotAppCustomizationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DepotAppCustomizationPersistence persistence)