Class CSDiagramSettingUtil

java.lang.Object
com.liferay.commerce.shop.by.diagram.service.persistence.CSDiagramSettingUtil

public class CSDiagramSettingUtil extends Object
The persistence utility for the cs diagram setting service. This utility wraps com.liferay.commerce.shop.by.diagram.service.persistence.impl.CSDiagramSettingPersistenceImpl 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

    • CSDiagramSettingUtil

      public CSDiagramSettingUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CSDiagramSetting update(CSDiagramSetting csDiagramSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CSDiagramSetting> findByUuid(String uuid)
      Returns all the cs diagram settings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cs diagram settings
    • findByUuid

      public static List<CSDiagramSetting> findByUuid(String uuid, int start, int end)
      Returns a range of all the cs diagram settings where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (not inclusive)
      Returns:
      the range of matching cs diagram settings
    • findByUuid

      public static List<CSDiagramSetting> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns an ordered range of all the cs diagram settings where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cs diagram settings
    • findByUuid

      public static List<CSDiagramSetting> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cs diagram settings where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (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 cs diagram settings
    • findByUuid_First

      public static CSDiagramSetting findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator) throws NoSuchCSDiagramSettingException
      Returns the first cs diagram setting in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a matching cs diagram setting could not be found
      NoSuchCSDiagramSettingException
    • fetchByUuid_First

      public static CSDiagramSetting fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns the first cs diagram setting in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cs diagram setting, or null if a matching cs diagram setting could not be found
    • findByUuid_Last

      public static CSDiagramSetting findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator) throws NoSuchCSDiagramSettingException
      Returns the last cs diagram setting in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a matching cs diagram setting could not be found
      NoSuchCSDiagramSettingException
    • fetchByUuid_Last

      public static CSDiagramSetting fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns the last cs diagram setting in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cs diagram setting, or null if a matching cs diagram setting could not be found
    • findByUuid_PrevAndNext

      public static CSDiagramSetting[] findByUuid_PrevAndNext(long CSDiagramSettingId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator) throws NoSuchCSDiagramSettingException
      Returns the cs diagram settings before and after the current cs diagram setting in the ordered set where uuid = ?.
      Parameters:
      CSDiagramSettingId - the primary key of the current cs diagram setting
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a cs diagram setting with the primary key could not be found
      NoSuchCSDiagramSettingException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the cs diagram settings where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of cs diagram settings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cs diagram settings
    • findByUuid_C

      public static List<CSDiagramSetting> findByUuid_C(String uuid, long companyId)
      Returns all the cs diagram settings where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching cs diagram settings
    • findByUuid_C

      public static List<CSDiagramSetting> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cs diagram settings where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (not inclusive)
      Returns:
      the range of matching cs diagram settings
    • findByUuid_C

      public static List<CSDiagramSetting> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns an ordered range of all the cs diagram settings where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cs diagram settings
    • findByUuid_C

      public static List<CSDiagramSetting> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cs diagram settings where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (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 cs diagram settings
    • findByUuid_C_First

      public static CSDiagramSetting findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator) throws NoSuchCSDiagramSettingException
      Returns the first cs diagram setting in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a matching cs diagram setting could not be found
      NoSuchCSDiagramSettingException
    • fetchByUuid_C_First

      public static CSDiagramSetting fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns the first cs diagram setting in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cs diagram setting, or null if a matching cs diagram setting could not be found
    • findByUuid_C_Last

      public static CSDiagramSetting findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator) throws NoSuchCSDiagramSettingException
      Returns the last cs diagram setting in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a matching cs diagram setting could not be found
      NoSuchCSDiagramSettingException
    • fetchByUuid_C_Last

      public static CSDiagramSetting fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns the last cs diagram setting in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cs diagram setting, or null if a matching cs diagram setting could not be found
    • findByUuid_C_PrevAndNext

      public static CSDiagramSetting[] findByUuid_C_PrevAndNext(long CSDiagramSettingId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator) throws NoSuchCSDiagramSettingException
      Returns the cs diagram settings before and after the current cs diagram setting in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      CSDiagramSettingId - the primary key of the current cs diagram setting
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a cs diagram setting with the primary key could not be found
      NoSuchCSDiagramSettingException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the cs diagram settings where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of cs diagram settings where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cs diagram settings
    • findByCPDefinitionId

      public static CSDiagramSetting findByCPDefinitionId(long CPDefinitionId) throws NoSuchCSDiagramSettingException
      Returns the cs diagram setting where CPDefinitionId = ? or throws a NoSuchCSDiagramSettingException if it could not be found.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the matching cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a matching cs diagram setting could not be found
      NoSuchCSDiagramSettingException
    • fetchByCPDefinitionId

      public static CSDiagramSetting fetchByCPDefinitionId(long CPDefinitionId)
      Returns the cs diagram setting where CPDefinitionId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the matching cs diagram setting, or null if a matching cs diagram setting could not be found
    • fetchByCPDefinitionId

      public static CSDiagramSetting fetchByCPDefinitionId(long CPDefinitionId, boolean useFinderCache)
      Returns the cs diagram setting where CPDefinitionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cs diagram setting, or null if a matching cs diagram setting could not be found
    • removeByCPDefinitionId

      public static CSDiagramSetting removeByCPDefinitionId(long CPDefinitionId) throws NoSuchCSDiagramSettingException
      Removes the cs diagram setting where CPDefinitionId = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the cs diagram setting that was removed
      Throws:
      NoSuchCSDiagramSettingException
    • countByCPDefinitionId

      public static int countByCPDefinitionId(long CPDefinitionId)
      Returns the number of cs diagram settings where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the number of matching cs diagram settings
    • cacheResult

      public static void cacheResult(CSDiagramSetting csDiagramSetting)
      Caches the cs diagram setting in the entity cache if it is enabled.
      Parameters:
      csDiagramSetting - the cs diagram setting
    • cacheResult

      public static void cacheResult(List<CSDiagramSetting> csDiagramSettings)
      Caches the cs diagram settings in the entity cache if it is enabled.
      Parameters:
      csDiagramSettings - the cs diagram settings
    • create

      public static CSDiagramSetting create(long CSDiagramSettingId)
      Creates a new cs diagram setting with the primary key. Does not add the cs diagram setting to the database.
      Parameters:
      CSDiagramSettingId - the primary key for the new cs diagram setting
      Returns:
      the new cs diagram setting
    • remove

      public static CSDiagramSetting remove(long CSDiagramSettingId) throws NoSuchCSDiagramSettingException
      Removes the cs diagram setting with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      CSDiagramSettingId - the primary key of the cs diagram setting
      Returns:
      the cs diagram setting that was removed
      Throws:
      NoSuchCSDiagramSettingException - if a cs diagram setting with the primary key could not be found
      NoSuchCSDiagramSettingException
    • updateImpl

      public static CSDiagramSetting updateImpl(CSDiagramSetting csDiagramSetting)
    • findByPrimaryKey

      public static CSDiagramSetting findByPrimaryKey(long CSDiagramSettingId) throws NoSuchCSDiagramSettingException
      Returns the cs diagram setting with the primary key or throws a NoSuchCSDiagramSettingException if it could not be found.
      Parameters:
      CSDiagramSettingId - the primary key of the cs diagram setting
      Returns:
      the cs diagram setting
      Throws:
      NoSuchCSDiagramSettingException - if a cs diagram setting with the primary key could not be found
      NoSuchCSDiagramSettingException
    • fetchByPrimaryKey

      public static CSDiagramSetting fetchByPrimaryKey(long CSDiagramSettingId)
      Returns the cs diagram setting with the primary key or returns null if it could not be found.
      Parameters:
      CSDiagramSettingId - the primary key of the cs diagram setting
      Returns:
      the cs diagram setting, or null if a cs diagram setting with the primary key could not be found
    • findAll

      public static List<CSDiagramSetting> findAll()
      Returns all the cs diagram settings.
      Returns:
      the cs diagram settings
    • findAll

      public static List<CSDiagramSetting> findAll(int start, int end)
      Returns a range of all the cs diagram settings.

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

      Parameters:
      start - the lower bound of the range of cs diagram settings
      end - the upper bound of the range of cs diagram settings (not inclusive)
      Returns:
      the range of cs diagram settings
    • findAll

      public static List<CSDiagramSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator)
      Returns an ordered range of all the cs diagram settings.

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

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

      public static List<CSDiagramSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cs diagram settings.

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

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

      public static void removeAll()
      Removes all the cs diagram settings from the database.
    • countAll

      public static int countAll()
      Returns the number of cs diagram settings.
      Returns:
      the number of cs diagram settings
    • getPersistence

      public static CSDiagramSettingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CSDiagramSettingPersistence persistence)