Class BatchPlannerMappingUtil

java.lang.Object
com.liferay.batch.planner.service.persistence.BatchPlannerMappingUtil

public class BatchPlannerMappingUtil extends Object
The persistence utility for the batch planner mapping service. This utility wraps com.liferay.batch.planner.service.persistence.impl.BatchPlannerMappingPersistenceImpl 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

    • BatchPlannerMappingUtil

      public BatchPlannerMappingUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static BatchPlannerMapping update(BatchPlannerMapping batchPlannerMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByBatchPlannerPlanId

      public static List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId)
      Returns all the batch planner mappings where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      Returns:
      the matching batch planner mappings
    • findByBatchPlannerPlanId

      public static List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end)
      Returns a range of all the batch planner mappings where batchPlannerPlanId = ?.

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

      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      start - the lower bound of the range of batch planner mappings
      end - the upper bound of the range of batch planner mappings (not inclusive)
      Returns:
      the range of matching batch planner mappings
    • findByBatchPlannerPlanId

      public static List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
      Returns an ordered range of all the batch planner mappings where batchPlannerPlanId = ?.

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

      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      start - the lower bound of the range of batch planner mappings
      end - the upper bound of the range of batch planner mappings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching batch planner mappings
    • findByBatchPlannerPlanId

      public static List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the batch planner mappings where batchPlannerPlanId = ?.

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

      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      start - the lower bound of the range of batch planner mappings
      end - the upper bound of the range of batch planner mappings (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 batch planner mappings
    • findByBatchPlannerPlanId_First

      public static BatchPlannerMapping findByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) throws NoSuchMappingException
      Returns the first batch planner mapping in the ordered set where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching batch planner mapping
      Throws:
      NoSuchMappingException - if a matching batch planner mapping could not be found
      NoSuchMappingException
    • fetchByBatchPlannerPlanId_First

      public static BatchPlannerMapping fetchByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
      Returns the first batch planner mapping in the ordered set where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching batch planner mapping, or null if a matching batch planner mapping could not be found
    • findByBatchPlannerPlanId_Last

      public static BatchPlannerMapping findByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) throws NoSuchMappingException
      Returns the last batch planner mapping in the ordered set where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching batch planner mapping
      Throws:
      NoSuchMappingException - if a matching batch planner mapping could not be found
      NoSuchMappingException
    • fetchByBatchPlannerPlanId_Last

      public static BatchPlannerMapping fetchByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
      Returns the last batch planner mapping in the ordered set where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching batch planner mapping, or null if a matching batch planner mapping could not be found
    • findByBatchPlannerPlanId_PrevAndNext

      public static BatchPlannerMapping[] findByBatchPlannerPlanId_PrevAndNext(long batchPlannerMappingId, long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) throws NoSuchMappingException
      Returns the batch planner mappings before and after the current batch planner mapping in the ordered set where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerMappingId - the primary key of the current batch planner mapping
      batchPlannerPlanId - the batch planner plan ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next batch planner mapping
      Throws:
      NoSuchMappingException - if a batch planner mapping with the primary key could not be found
      NoSuchMappingException
    • removeByBatchPlannerPlanId

      public static void removeByBatchPlannerPlanId(long batchPlannerPlanId)
      Removes all the batch planner mappings where batchPlannerPlanId = ? from the database.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
    • countByBatchPlannerPlanId

      public static int countByBatchPlannerPlanId(long batchPlannerPlanId)
      Returns the number of batch planner mappings where batchPlannerPlanId = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      Returns:
      the number of matching batch planner mappings
    • findByBPPI_EFN_IFN

      public static BatchPlannerMapping findByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName) throws NoSuchMappingException
      Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or throws a NoSuchMappingException if it could not be found.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      externalFieldName - the external field name
      internalFieldName - the internal field name
      Returns:
      the matching batch planner mapping
      Throws:
      NoSuchMappingException - if a matching batch planner mapping could not be found
      NoSuchMappingException
    • fetchByBPPI_EFN_IFN

      public static BatchPlannerMapping fetchByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName)
      Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      externalFieldName - the external field name
      internalFieldName - the internal field name
      Returns:
      the matching batch planner mapping, or null if a matching batch planner mapping could not be found
    • fetchByBPPI_EFN_IFN

      public static BatchPlannerMapping fetchByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName, boolean useFinderCache)
      Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      externalFieldName - the external field name
      internalFieldName - the internal field name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching batch planner mapping, or null if a matching batch planner mapping could not be found
    • removeByBPPI_EFN_IFN

      public static BatchPlannerMapping removeByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName) throws NoSuchMappingException
      Removes the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? from the database.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      externalFieldName - the external field name
      internalFieldName - the internal field name
      Returns:
      the batch planner mapping that was removed
      Throws:
      NoSuchMappingException
    • countByBPPI_EFN_IFN

      public static int countByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName)
      Returns the number of batch planner mappings where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ?.
      Parameters:
      batchPlannerPlanId - the batch planner plan ID
      externalFieldName - the external field name
      internalFieldName - the internal field name
      Returns:
      the number of matching batch planner mappings
    • cacheResult

      public static void cacheResult(BatchPlannerMapping batchPlannerMapping)
      Caches the batch planner mapping in the entity cache if it is enabled.
      Parameters:
      batchPlannerMapping - the batch planner mapping
    • cacheResult

      public static void cacheResult(List<BatchPlannerMapping> batchPlannerMappings)
      Caches the batch planner mappings in the entity cache if it is enabled.
      Parameters:
      batchPlannerMappings - the batch planner mappings
    • create

      public static BatchPlannerMapping create(long batchPlannerMappingId)
      Creates a new batch planner mapping with the primary key. Does not add the batch planner mapping to the database.
      Parameters:
      batchPlannerMappingId - the primary key for the new batch planner mapping
      Returns:
      the new batch planner mapping
    • remove

      public static BatchPlannerMapping remove(long batchPlannerMappingId) throws NoSuchMappingException
      Removes the batch planner mapping with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      batchPlannerMappingId - the primary key of the batch planner mapping
      Returns:
      the batch planner mapping that was removed
      Throws:
      NoSuchMappingException - if a batch planner mapping with the primary key could not be found
      NoSuchMappingException
    • updateImpl

      public static BatchPlannerMapping updateImpl(BatchPlannerMapping batchPlannerMapping)
    • findByPrimaryKey

      public static BatchPlannerMapping findByPrimaryKey(long batchPlannerMappingId) throws NoSuchMappingException
      Returns the batch planner mapping with the primary key or throws a NoSuchMappingException if it could not be found.
      Parameters:
      batchPlannerMappingId - the primary key of the batch planner mapping
      Returns:
      the batch planner mapping
      Throws:
      NoSuchMappingException - if a batch planner mapping with the primary key could not be found
      NoSuchMappingException
    • fetchByPrimaryKey

      public static BatchPlannerMapping fetchByPrimaryKey(long batchPlannerMappingId)
      Returns the batch planner mapping with the primary key or returns null if it could not be found.
      Parameters:
      batchPlannerMappingId - the primary key of the batch planner mapping
      Returns:
      the batch planner mapping, or null if a batch planner mapping with the primary key could not be found
    • findAll

      public static List<BatchPlannerMapping> findAll()
      Returns all the batch planner mappings.
      Returns:
      the batch planner mappings
    • findAll

      public static List<BatchPlannerMapping> findAll(int start, int end)
      Returns a range of all the batch planner mappings.

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

      Parameters:
      start - the lower bound of the range of batch planner mappings
      end - the upper bound of the range of batch planner mappings (not inclusive)
      Returns:
      the range of batch planner mappings
    • findAll

      public static List<BatchPlannerMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
      Returns an ordered range of all the batch planner mappings.

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

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

      public static List<BatchPlannerMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the batch planner mappings.

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

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

      public static void removeAll()
      Removes all the batch planner mappings from the database.
    • countAll

      public static int countAll()
      Returns the number of batch planner mappings.
      Returns:
      the number of batch planner mappings
    • getPersistence

      public static BatchPlannerMappingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(BatchPlannerMappingPersistence persistence)