public class CommerceBOMEntryUtil
extends java.lang.Object
com.liferay.commerce.bom.service.persistence.impl.CommerceBOMEntryPersistenceImpl 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
CommerceBOMEntryPersistence| Constructor and Description |
|---|
CommerceBOMEntryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceBOMEntry commerceBOMEntry)
Caches the commerce bom entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceBOMEntry> commerceBOMEntries)
Caches the commerce bom entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceBOMEntry commerceBOMEntry) |
static int |
countAll()
Returns the number of commerce bom entries.
|
static int |
countByCommerceBOMDefinitionId(long commerceBOMDefinitionId)
Returns the number of commerce bom entries where commerceBOMDefinitionId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceBOMEntry |
create(long commerceBOMEntryId)
Creates a new commerce bom entry with the primary key.
|
static CommerceBOMEntry |
fetchByCommerceBOMDefinitionId_First(long commerceBOMDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns the first commerce bom entry in the ordered set where commerceBOMDefinitionId = ?.
|
static CommerceBOMEntry |
fetchByCommerceBOMDefinitionId_Last(long commerceBOMDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns the last commerce bom entry in the ordered set where commerceBOMDefinitionId = ?.
|
static CommerceBOMEntry |
fetchByPrimaryKey(long commerceBOMEntryId)
Returns the commerce bom entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceBOMEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceBOMEntry> |
findAll()
Returns all the commerce bom entries.
|
static java.util.List<CommerceBOMEntry> |
findAll(int start,
int end)
Returns a range of all the commerce bom entries.
|
static java.util.List<CommerceBOMEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns an ordered range of all the commerce bom entries.
|
static java.util.List<CommerceBOMEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom entries.
|
static CommerceBOMEntry |
findByCommerceBOMDefinitionId_First(long commerceBOMDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns the first commerce bom entry in the ordered set where commerceBOMDefinitionId = ?.
|
static CommerceBOMEntry |
findByCommerceBOMDefinitionId_Last(long commerceBOMDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns the last commerce bom entry in the ordered set where commerceBOMDefinitionId = ?.
|
static CommerceBOMEntry[] |
findByCommerceBOMDefinitionId_PrevAndNext(long commerceBOMEntryId,
long commerceBOMDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns the commerce bom entries before and after the current commerce bom entry in the ordered set where commerceBOMDefinitionId = ?.
|
static java.util.List<CommerceBOMEntry> |
findByCommerceBOMDefinitionId(long commerceBOMDefinitionId)
Returns all the commerce bom entries where commerceBOMDefinitionId = ?.
|
static java.util.List<CommerceBOMEntry> |
findByCommerceBOMDefinitionId(long commerceBOMDefinitionId,
int start,
int end)
Returns a range of all the commerce bom entries where commerceBOMDefinitionId = ?.
|
static java.util.List<CommerceBOMEntry> |
findByCommerceBOMDefinitionId(long commerceBOMDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
Returns an ordered range of all the commerce bom entries where commerceBOMDefinitionId = ?.
|
static java.util.List<CommerceBOMEntry> |
findByCommerceBOMDefinitionId(long commerceBOMDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom entries where commerceBOMDefinitionId = ?.
|
static CommerceBOMEntry |
findByPrimaryKey(long commerceBOMEntryId)
Returns the commerce bom entry with the primary key or throws a
NoSuchBOMEntryException if it could not be found. |
static java.util.List<CommerceBOMEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceBOMEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceBOMEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator) |
static CommerceBOMEntryPersistence |
getPersistence() |
static CommerceBOMEntry |
remove(long commerceBOMEntryId)
Removes the commerce bom entry with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce bom entries from the database.
|
static void |
removeByCommerceBOMDefinitionId(long commerceBOMDefinitionId)
Removes all the commerce bom entries where commerceBOMDefinitionId = ? from the database.
|
static void |
setPersistence(CommerceBOMEntryPersistence persistence) |
static CommerceBOMEntry |
update(CommerceBOMEntry commerceBOMEntry) |
static CommerceBOMEntry |
update(CommerceBOMEntry commerceBOMEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceBOMEntry |
updateImpl(CommerceBOMEntry commerceBOMEntry) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceBOMEntry commerceBOMEntry)
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,CommerceBOMEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceBOMEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceBOMEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceBOMEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceBOMEntry update(CommerceBOMEntry commerceBOMEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceBOMEntry update(CommerceBOMEntry commerceBOMEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceBOMEntry> findByCommerceBOMDefinitionId(long commerceBOMDefinitionId)
commerceBOMDefinitionId - the commerce bom definition IDpublic static java.util.List<CommerceBOMEntry> findByCommerceBOMDefinitionId(long commerceBOMDefinitionId, 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 CommerceBOMEntryModelImpl.
commerceBOMDefinitionId - the commerce bom definition IDstart - the lower bound of the range of commerce bom entriesend - the upper bound of the range of commerce bom entries (not inclusive)public static java.util.List<CommerceBOMEntry> findByCommerceBOMDefinitionId(long commerceBOMDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> 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 CommerceBOMEntryModelImpl.
commerceBOMDefinitionId - the commerce bom definition IDstart - the lower bound of the range of commerce bom entriesend - the upper bound of the range of commerce bom entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMEntry> findByCommerceBOMDefinitionId(long commerceBOMDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> 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 CommerceBOMEntryModelImpl.
commerceBOMDefinitionId - the commerce bom definition IDstart - the lower bound of the range of commerce bom entriesend - the upper bound of the range of commerce bom entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceBOMEntry findByCommerceBOMDefinitionId_First(long commerceBOMDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator) throws NoSuchBOMEntryException
commerceBOMDefinitionId - the commerce bom definition IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMEntryException - if a matching commerce bom entry could not be foundpublic static CommerceBOMEntry fetchByCommerceBOMDefinitionId_First(long commerceBOMDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
commerceBOMDefinitionId - the commerce bom definition IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom entry could not be foundpublic static CommerceBOMEntry findByCommerceBOMDefinitionId_Last(long commerceBOMDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator) throws NoSuchBOMEntryException
commerceBOMDefinitionId - the commerce bom definition IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMEntryException - if a matching commerce bom entry could not be foundpublic static CommerceBOMEntry fetchByCommerceBOMDefinitionId_Last(long commerceBOMDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator)
commerceBOMDefinitionId - the commerce bom definition IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom entry could not be foundpublic static CommerceBOMEntry[] findByCommerceBOMDefinitionId_PrevAndNext(long commerceBOMEntryId, long commerceBOMDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> orderByComparator) throws NoSuchBOMEntryException
commerceBOMEntryId - the primary key of the current commerce bom entrycommerceBOMDefinitionId - the commerce bom definition IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMEntryException - if a commerce bom entry with the primary key could not be foundpublic static void removeByCommerceBOMDefinitionId(long commerceBOMDefinitionId)
commerceBOMDefinitionId - the commerce bom definition IDpublic static int countByCommerceBOMDefinitionId(long commerceBOMDefinitionId)
commerceBOMDefinitionId - the commerce bom definition IDpublic static void cacheResult(CommerceBOMEntry commerceBOMEntry)
commerceBOMEntry - the commerce bom entrypublic static void cacheResult(java.util.List<CommerceBOMEntry> commerceBOMEntries)
commerceBOMEntries - the commerce bom entriespublic static CommerceBOMEntry create(long commerceBOMEntryId)
commerceBOMEntryId - the primary key for the new commerce bom entrypublic static CommerceBOMEntry remove(long commerceBOMEntryId) throws NoSuchBOMEntryException
commerceBOMEntryId - the primary key of the commerce bom entryNoSuchBOMEntryException - if a commerce bom entry with the primary key could not be foundpublic static CommerceBOMEntry updateImpl(CommerceBOMEntry commerceBOMEntry)
public static CommerceBOMEntry findByPrimaryKey(long commerceBOMEntryId) throws NoSuchBOMEntryException
NoSuchBOMEntryException if it could not be found.commerceBOMEntryId - the primary key of the commerce bom entryNoSuchBOMEntryException - if a commerce bom entry with the primary key could not be foundpublic static CommerceBOMEntry fetchByPrimaryKey(long commerceBOMEntryId)
null if it could not be found.commerceBOMEntryId - the primary key of the commerce bom entrynull if a commerce bom entry with the primary key could not be foundpublic static java.util.List<CommerceBOMEntry> findAll()
public static java.util.List<CommerceBOMEntry> 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 CommerceBOMEntryModelImpl.
start - the lower bound of the range of commerce bom entriesend - the upper bound of the range of commerce bom entries (not inclusive)public static java.util.List<CommerceBOMEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> 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 CommerceBOMEntryModelImpl.
start - the lower bound of the range of commerce bom entriesend - the upper bound of the range of commerce bom entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMEntry> 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 CommerceBOMEntryModelImpl.
start - the lower bound of the range of commerce bom entriesend - the upper bound of the range of commerce bom entries (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 CommerceBOMEntryPersistence getPersistence()
public static void setPersistence(CommerceBOMEntryPersistence persistence)