public class BatchPlannerMappingUtil
extends java.lang.Object
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
BatchPlannerMappingPersistence
Constructor and Description |
---|
BatchPlannerMappingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(BatchPlannerMapping batchPlannerMapping)
Caches the batch planner mapping in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<BatchPlannerMapping> batchPlannerMappings)
Caches the batch planner mappings in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(BatchPlannerMapping batchPlannerMapping) |
static int |
countAll()
Returns the number of batch planner mappings.
|
static int |
countByBatchPlannerPlanId(long batchPlannerPlanId)
Returns the number of batch planner mappings where batchPlannerPlanId = ?.
|
static int |
countByBPPI_EFN_IFN(long batchPlannerPlanId,
java.lang.String externalFieldName,
java.lang.String internalFieldName)
Returns the number of batch planner mappings where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static BatchPlannerMapping |
create(long batchPlannerMappingId)
Creates a new batch planner mapping with the primary key.
|
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 = ?.
|
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 = ?.
|
static BatchPlannerMapping |
fetchByBPPI_EFN_IFN(long batchPlannerPlanId,
java.lang.String externalFieldName,
java.lang.String internalFieldName)
Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or returns
null if it could not be found. |
static BatchPlannerMapping |
fetchByBPPI_EFN_IFN(long batchPlannerPlanId,
java.lang.String externalFieldName,
java.lang.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. |
static BatchPlannerMapping |
fetchByPrimaryKey(long batchPlannerMappingId)
Returns the batch planner mapping with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,BatchPlannerMapping> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<BatchPlannerMapping> |
findAll()
Returns all the batch planner mappings.
|
static java.util.List<BatchPlannerMapping> |
findAll(int start,
int end)
Returns a range of all the batch planner mappings.
|
static java.util.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 java.util.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 BatchPlannerMapping |
findByBatchPlannerPlanId_First(long batchPlannerPlanId,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
Returns the first batch planner mapping in the ordered set where batchPlannerPlanId = ?.
|
static BatchPlannerMapping |
findByBatchPlannerPlanId_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 java.util.List<BatchPlannerMapping> |
findByBatchPlannerPlanId(long batchPlannerPlanId)
Returns all the batch planner mappings where batchPlannerPlanId = ?.
|
static java.util.List<BatchPlannerMapping> |
findByBatchPlannerPlanId(long batchPlannerPlanId,
int start,
int end)
Returns a range of all the batch planner mappings where batchPlannerPlanId = ?.
|
static java.util.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 java.util.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 BatchPlannerMapping |
findByBPPI_EFN_IFN(long batchPlannerPlanId,
java.lang.String externalFieldName,
java.lang.String internalFieldName)
Returns the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? or throws a
NoSuchMappingException if it could not be found. |
static BatchPlannerMapping |
findByPrimaryKey(long batchPlannerMappingId)
Returns the batch planner mapping with the primary key or throws a
NoSuchMappingException if it could not be found. |
static java.util.List<BatchPlannerMapping> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<BatchPlannerMapping> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<BatchPlannerMapping> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) |
static BatchPlannerMappingPersistence |
getPersistence() |
static BatchPlannerMapping |
remove(long batchPlannerMappingId)
Removes the batch planner mapping with the primary key from the database.
|
static void |
removeAll()
Removes all the batch planner mappings from the database.
|
static void |
removeByBatchPlannerPlanId(long batchPlannerPlanId)
Removes all the batch planner mappings where batchPlannerPlanId = ? from the database.
|
static BatchPlannerMapping |
removeByBPPI_EFN_IFN(long batchPlannerPlanId,
java.lang.String externalFieldName,
java.lang.String internalFieldName)
Removes the batch planner mapping where batchPlannerPlanId = ? and externalFieldName = ? and internalFieldName = ? from the database.
|
static void |
setPersistence(BatchPlannerMappingPersistence persistence) |
static BatchPlannerMapping |
update(BatchPlannerMapping batchPlannerMapping) |
static BatchPlannerMapping |
update(BatchPlannerMapping batchPlannerMapping,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static BatchPlannerMapping |
updateImpl(BatchPlannerMapping batchPlannerMapping) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(BatchPlannerMapping batchPlannerMapping)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,BatchPlannerMapping> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<BatchPlannerMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<BatchPlannerMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<BatchPlannerMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static BatchPlannerMapping update(BatchPlannerMapping batchPlannerMapping)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static BatchPlannerMapping update(BatchPlannerMapping batchPlannerMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDpublic static java.util.List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end)
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
.
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)public static java.util.List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<BatchPlannerMapping> findByBatchPlannerPlanId(long batchPlannerPlanId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static BatchPlannerMapping findByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) throws NoSuchMappingException
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMappingException
- if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping fetchByBatchPlannerPlanId_First(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping findByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) throws NoSuchMappingException
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMappingException
- if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping fetchByBatchPlannerPlanId_Last(long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
batchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping[] findByBatchPlannerPlanId_PrevAndNext(long batchPlannerMappingId, long batchPlannerPlanId, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator) throws NoSuchMappingException
batchPlannerMappingId
- the primary key of the current batch planner mappingbatchPlannerPlanId
- the batch planner plan IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMappingException
- if a batch planner mapping with the primary key could not be foundpublic static void removeByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDpublic static int countByBatchPlannerPlanId(long batchPlannerPlanId)
batchPlannerPlanId
- the batch planner plan IDpublic static BatchPlannerMapping findByBPPI_EFN_IFN(long batchPlannerPlanId, java.lang.String externalFieldName, java.lang.String internalFieldName) throws NoSuchMappingException
NoSuchMappingException
if it could not be found.batchPlannerPlanId
- the batch planner plan IDexternalFieldName
- the external field nameinternalFieldName
- the internal field nameNoSuchMappingException
- if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping fetchByBPPI_EFN_IFN(long batchPlannerPlanId, java.lang.String externalFieldName, java.lang.String internalFieldName)
null
if it could not be found. Uses the finder cache.batchPlannerPlanId
- the batch planner plan IDexternalFieldName
- the external field nameinternalFieldName
- the internal field namenull
if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping fetchByBPPI_EFN_IFN(long batchPlannerPlanId, java.lang.String externalFieldName, java.lang.String internalFieldName, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.batchPlannerPlanId
- the batch planner plan IDexternalFieldName
- the external field nameinternalFieldName
- the internal field nameuseFinderCache
- whether to use the finder cachenull
if a matching batch planner mapping could not be foundpublic static BatchPlannerMapping removeByBPPI_EFN_IFN(long batchPlannerPlanId, java.lang.String externalFieldName, java.lang.String internalFieldName) throws NoSuchMappingException
batchPlannerPlanId
- the batch planner plan IDexternalFieldName
- the external field nameinternalFieldName
- the internal field nameNoSuchMappingException
public static int countByBPPI_EFN_IFN(long batchPlannerPlanId, java.lang.String externalFieldName, java.lang.String internalFieldName)
batchPlannerPlanId
- the batch planner plan IDexternalFieldName
- the external field nameinternalFieldName
- the internal field namepublic static void cacheResult(BatchPlannerMapping batchPlannerMapping)
batchPlannerMapping
- the batch planner mappingpublic static void cacheResult(java.util.List<BatchPlannerMapping> batchPlannerMappings)
batchPlannerMappings
- the batch planner mappingspublic static BatchPlannerMapping create(long batchPlannerMappingId)
batchPlannerMappingId
- the primary key for the new batch planner mappingpublic static BatchPlannerMapping remove(long batchPlannerMappingId) throws NoSuchMappingException
batchPlannerMappingId
- the primary key of the batch planner mappingNoSuchMappingException
- if a batch planner mapping with the primary key could not be foundpublic static BatchPlannerMapping updateImpl(BatchPlannerMapping batchPlannerMapping)
public static BatchPlannerMapping findByPrimaryKey(long batchPlannerMappingId) throws NoSuchMappingException
NoSuchMappingException
if it could not be found.batchPlannerMappingId
- the primary key of the batch planner mappingNoSuchMappingException
- if a batch planner mapping with the primary key could not be foundpublic static BatchPlannerMapping fetchByPrimaryKey(long batchPlannerMappingId)
null
if it could not be found.batchPlannerMappingId
- the primary key of the batch planner mappingnull
if a batch planner mapping with the primary key could not be foundpublic static java.util.List<BatchPlannerMapping> findAll()
public static java.util.List<BatchPlannerMapping> findAll(int start, int end)
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
.
start
- the lower bound of the range of batch planner mappingsend
- the upper bound of the range of batch planner mappings (not inclusive)public static java.util.List<BatchPlannerMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<BatchPlannerMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BatchPlannerMapping> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static BatchPlannerMappingPersistence getPersistence()
public static void setPersistence(BatchPlannerMappingPersistence persistence)