Class BatchPlannerMappingUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(BatchPlannerMapping batchPlannerMapping) Caches the batch planner mapping in the entity cache if it is enabled.static voidcacheResult(List<BatchPlannerMapping> batchPlannerMappings) Caches the batch planner mappings in the entity cache if it is enabled.static voidstatic voidclearCache(BatchPlannerMapping batchPlannerMapping) static intcountAll()Returns the number of batch planner mappings.static intcountByBatchPlannerPlanId(long batchPlannerPlanId) Returns the number of batch planner mappings where batchPlannerPlanId = ?.static intcountByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName) Returns the number of batch planner mappings where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static BatchPlannerMappingcreate(long batchPlannerMappingId) Creates a new batch planner mapping with the primary key.static BatchPlannerMappingfetchByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) Returns the first batch planner mapping in the ordered set where batchPlannerPlanId = ?.static BatchPlannerMappingfetchByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) Returns the last batch planner mapping in the ordered set where batchPlannerPlanId = ?.static BatchPlannerMappingfetchByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName) Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or returnsnullif it could not be found.static BatchPlannerMappingfetchByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName, boolean useFinderCache) Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or returnsnullif it could not be found, optionally using the finder cache.static BatchPlannerMappingfetchByPrimaryKey(long batchPlannerMappingId) Returns the batch planner mapping with the primary key or returnsnullif it could not be found.static Map<Serializable,BatchPlannerMapping> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<BatchPlannerMapping>findAll()Returns all the batch planner mappings.static List<BatchPlannerMapping>findAll(int start, int end) Returns a range of all the batch planner mappings.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.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.static List<BatchPlannerMapping>findByBatchPlannerPlanId(long batchPlannerPlanId) Returns all the batch planner mappings where batchPlannerPlanId = ?.static List<BatchPlannerMapping>findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end) Returns a range of all the batch planner mappings where batchPlannerPlanId = ?.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 = ?.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 = ?.static BatchPlannerMappingfindByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) Returns the first batch planner mapping in the ordered set where batchPlannerPlanId = ?.static BatchPlannerMappingfindByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) Returns the last batch planner mapping in the ordered set where batchPlannerPlanId = ?.static BatchPlannerMapping[]findByBatchPlannerPlanId_PrevAndNext(long batchPlannerMappingId, long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) Returns the batch planner mappings before and after the current batch planner mapping in the ordered set where batchPlannerPlanId = ?.static BatchPlannerMappingfindByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName) Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or throws aNoSuchMappingExceptionif it could not be found.static BatchPlannerMappingfindByPrimaryKey(long batchPlannerMappingId) Returns the batch planner mapping with the primary key or throws aNoSuchMappingExceptionif it could not be found.static List<BatchPlannerMapping>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<BatchPlannerMapping>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<BatchPlannerMapping>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) static BatchPlannerMappingremove(long batchPlannerMappingId) Removes the batch planner mapping with the primary key from the database.static voidRemoves all the batch planner mappings from the database.static voidremoveByBatchPlannerPlanId(long batchPlannerPlanId) Removes all the batch planner mappings where batchPlannerPlanId = ? from the database.static BatchPlannerMappingremoveByBPPI_EFN_IFN(long batchPlannerPlanId, String externalFieldName, String internalFieldName) Removes the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? from the database.static voidsetPersistence(BatchPlannerMappingPersistence persistence) static BatchPlannerMappingupdate(BatchPlannerMapping batchPlannerMapping) static BatchPlannerMappingupdate(BatchPlannerMapping batchPlannerMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext) static BatchPlannerMappingupdateImpl(BatchPlannerMapping batchPlannerMapping)
-
Constructor Details
-
BatchPlannerMappingUtil
public BatchPlannerMappingUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerMappingModelImpl.- Parameters:
batchPlannerPlanId- the batch planner plan IDstart- the lower bound of the range of batch planner mappingsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerMappingModelImpl.- Parameters:
batchPlannerPlanId- the batch planner plan IDstart- the lower bound of the range of batch planner mappingsend- the upper bound of the range of batch planner mappings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerMappingModelImpl.- Parameters:
batchPlannerPlanId- the batch planner plan IDstart- the lower bound of the range of batch planner mappingsend- the upper bound of the range of batch planner mappings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching batch planner mapping
- Throws:
NoSuchMappingException- if a matching batch planner mapping could not be foundNoSuchMappingException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching batch planner mapping, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching batch planner mapping
- Throws:
NoSuchMappingException- if a matching batch planner mapping could not be foundNoSuchMappingException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching batch planner mapping, or
nullif 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 mappingbatchPlannerPlanId- the batch planner plan IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next batch planner mapping
- Throws:
NoSuchMappingException- if a batch planner mapping with the primary key could not be foundNoSuchMappingException
-
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 aNoSuchMappingExceptionif it could not be found.- Parameters:
batchPlannerPlanId- the batch planner plan IDexternalFieldName- the external field nameinternalFieldName- the internal field name- Returns:
- the matching batch planner mapping
- Throws:
NoSuchMappingException- if a matching batch planner mapping could not be foundNoSuchMappingException
-
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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
batchPlannerPlanId- the batch planner plan IDexternalFieldName- the external field nameinternalFieldName- the internal field name- Returns:
- the matching batch planner mapping, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
batchPlannerPlanId- the batch planner plan IDexternalFieldName- the external field nameinternalFieldName- the internal field nameuseFinderCache- whether to use the finder cache- Returns:
- the matching batch planner mapping, or
nullif 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 IDexternalFieldName- the external field nameinternalFieldName- 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 IDexternalFieldName- the external field nameinternalFieldName- the internal field name- Returns:
- the number of matching batch planner mappings
-
cacheResult
Caches the batch planner mapping in the entity cache if it is enabled.- Parameters:
batchPlannerMapping- the batch planner mapping
-
cacheResult
Caches the batch planner mappings in the entity cache if it is enabled.- Parameters:
batchPlannerMappings- the batch planner mappings
-
create
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
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 foundNoSuchMappingException
-
updateImpl
-
findByPrimaryKey
public static BatchPlannerMapping findByPrimaryKey(long batchPlannerMappingId) throws NoSuchMappingException Returns the batch planner mapping with the primary key or throws aNoSuchMappingExceptionif 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 foundNoSuchMappingException
-
fetchByPrimaryKey
Returns the batch planner mapping with the primary key or returnsnullif it could not be found.- Parameters:
batchPlannerMappingId- the primary key of the batch planner mapping- Returns:
- the batch planner mapping, or
nullif a batch planner mapping with the primary key could not be found
-
findAll
Returns all the batch planner mappings.- Returns:
- the batch planner mappings
-
findAll
Returns a range of all the batch planner mappings.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerMappingModelImpl.- Parameters:
start- the lower bound of the range of batch planner mappingsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerMappingModelImpl.- Parameters:
start- the lower bound of the range of batch planner mappingsend- the upper bound of the range of batch planner mappings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromBatchPlannerMappingModelImpl.- Parameters:
start- the lower bound of the range of batch planner mappingsend- the upper bound of the range of batch planner mappings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-