public class CommerceBOMDefinitionUtil
extends java.lang.Object
com.liferay.commerce.bom.service.persistence.impl.CommerceBOMDefinitionPersistenceImpl 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
CommerceBOMDefinitionPersistence| Constructor and Description |
|---|
CommerceBOMDefinitionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceBOMDefinition commerceBOMDefinition)
Caches the commerce bom definition in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceBOMDefinition> commerceBOMDefinitions)
Caches the commerce bom definitions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceBOMDefinition commerceBOMDefinition) |
static int |
countAll()
Returns the number of commerce bom definitions.
|
static int |
countByCommerceBOMFolderId(long commerceBOMFolderId)
Returns the number of commerce bom definitions where commerceBOMFolderId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceBOMDefinition |
create(long commerceBOMDefinitionId)
Creates a new commerce bom definition with the primary key.
|
static CommerceBOMDefinition |
fetchByCommerceBOMFolderId_First(long commerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns the first commerce bom definition in the ordered set where commerceBOMFolderId = ?.
|
static CommerceBOMDefinition |
fetchByCommerceBOMFolderId_Last(long commerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns the last commerce bom definition in the ordered set where commerceBOMFolderId = ?.
|
static CommerceBOMDefinition |
fetchByPrimaryKey(long commerceBOMDefinitionId)
Returns the commerce bom definition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceBOMDefinition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByCommerceBOMFolderId(long commerceBOMFolderId)
Returns the number of commerce bom definitions that the user has permission to view where commerceBOMFolderId = ?.
|
static CommerceBOMDefinition[] |
filterFindByCommerceBOMFolderId_PrevAndNext(long commerceBOMDefinitionId,
long commerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns the commerce bom definitions before and after the current commerce bom definition in the ordered set of commerce bom definitions that the user has permission to view where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
filterFindByCommerceBOMFolderId(long commerceBOMFolderId)
Returns all the commerce bom definitions that the user has permission to view where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
filterFindByCommerceBOMFolderId(long commerceBOMFolderId,
int start,
int end)
Returns a range of all the commerce bom definitions that the user has permission to view where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
filterFindByCommerceBOMFolderId(long commerceBOMFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns an ordered range of all the commerce bom definitions that the user has permissions to view where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
findAll()
Returns all the commerce bom definitions.
|
static java.util.List<CommerceBOMDefinition> |
findAll(int start,
int end)
Returns a range of all the commerce bom definitions.
|
static java.util.List<CommerceBOMDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns an ordered range of all the commerce bom definitions.
|
static java.util.List<CommerceBOMDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom definitions.
|
static CommerceBOMDefinition |
findByCommerceBOMFolderId_First(long commerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns the first commerce bom definition in the ordered set where commerceBOMFolderId = ?.
|
static CommerceBOMDefinition |
findByCommerceBOMFolderId_Last(long commerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns the last commerce bom definition in the ordered set where commerceBOMFolderId = ?.
|
static CommerceBOMDefinition[] |
findByCommerceBOMFolderId_PrevAndNext(long commerceBOMDefinitionId,
long commerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns the commerce bom definitions before and after the current commerce bom definition in the ordered set where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
findByCommerceBOMFolderId(long commerceBOMFolderId)
Returns all the commerce bom definitions where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
findByCommerceBOMFolderId(long commerceBOMFolderId,
int start,
int end)
Returns a range of all the commerce bom definitions where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
findByCommerceBOMFolderId(long commerceBOMFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
Returns an ordered range of all the commerce bom definitions where commerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMDefinition> |
findByCommerceBOMFolderId(long commerceBOMFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom definitions where commerceBOMFolderId = ?.
|
static CommerceBOMDefinition |
findByPrimaryKey(long commerceBOMDefinitionId)
Returns the commerce bom definition with the primary key or throws a
NoSuchBOMDefinitionException if it could not be found. |
static java.util.List<CommerceBOMDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceBOMDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceBOMDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator) |
static CommerceBOMDefinitionPersistence |
getPersistence() |
static CommerceBOMDefinition |
remove(long commerceBOMDefinitionId)
Removes the commerce bom definition with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce bom definitions from the database.
|
static void |
removeByCommerceBOMFolderId(long commerceBOMFolderId)
Removes all the commerce bom definitions where commerceBOMFolderId = ? from the database.
|
static CommerceBOMDefinition |
update(CommerceBOMDefinition commerceBOMDefinition) |
static CommerceBOMDefinition |
update(CommerceBOMDefinition commerceBOMDefinition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceBOMDefinition |
updateImpl(CommerceBOMDefinition commerceBOMDefinition) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceBOMDefinition commerceBOMDefinition)
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,CommerceBOMDefinition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceBOMDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceBOMDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceBOMDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceBOMDefinition update(CommerceBOMDefinition commerceBOMDefinition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceBOMDefinition update(CommerceBOMDefinition commerceBOMDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceBOMDefinition> findByCommerceBOMFolderId(long commerceBOMFolderId)
commerceBOMFolderId - the commerce bom folder IDpublic static java.util.List<CommerceBOMDefinition> findByCommerceBOMFolderId(long commerceBOMFolderId, 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 CommerceBOMDefinitionModelImpl.
commerceBOMFolderId - the commerce bom folder IDstart - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)public static java.util.List<CommerceBOMDefinition> findByCommerceBOMFolderId(long commerceBOMFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> 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 CommerceBOMDefinitionModelImpl.
commerceBOMFolderId - the commerce bom folder IDstart - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMDefinition> findByCommerceBOMFolderId(long commerceBOMFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> 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 CommerceBOMDefinitionModelImpl.
commerceBOMFolderId - the commerce bom folder IDstart - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceBOMDefinition findByCommerceBOMFolderId_First(long commerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator) throws NoSuchBOMDefinitionException
commerceBOMFolderId - the commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMDefinitionException - if a matching commerce bom definition could not be foundpublic static CommerceBOMDefinition fetchByCommerceBOMFolderId_First(long commerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
commerceBOMFolderId - the commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom definition could not be foundpublic static CommerceBOMDefinition findByCommerceBOMFolderId_Last(long commerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator) throws NoSuchBOMDefinitionException
commerceBOMFolderId - the commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMDefinitionException - if a matching commerce bom definition could not be foundpublic static CommerceBOMDefinition fetchByCommerceBOMFolderId_Last(long commerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator)
commerceBOMFolderId - the commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom definition could not be foundpublic static CommerceBOMDefinition[] findByCommerceBOMFolderId_PrevAndNext(long commerceBOMDefinitionId, long commerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator) throws NoSuchBOMDefinitionException
commerceBOMDefinitionId - the primary key of the current commerce bom definitioncommerceBOMFolderId - the commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMDefinitionException - if a commerce bom definition with the primary key could not be foundpublic static java.util.List<CommerceBOMDefinition> filterFindByCommerceBOMFolderId(long commerceBOMFolderId)
commerceBOMFolderId - the commerce bom folder IDpublic static java.util.List<CommerceBOMDefinition> filterFindByCommerceBOMFolderId(long commerceBOMFolderId, 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 CommerceBOMDefinitionModelImpl.
commerceBOMFolderId - the commerce bom folder IDstart - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)public static java.util.List<CommerceBOMDefinition> filterFindByCommerceBOMFolderId(long commerceBOMFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> 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 CommerceBOMDefinitionModelImpl.
commerceBOMFolderId - the commerce bom folder IDstart - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceBOMDefinition[] filterFindByCommerceBOMFolderId_PrevAndNext(long commerceBOMDefinitionId, long commerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> orderByComparator) throws NoSuchBOMDefinitionException
commerceBOMDefinitionId - the primary key of the current commerce bom definitioncommerceBOMFolderId - the commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMDefinitionException - if a commerce bom definition with the primary key could not be foundpublic static void removeByCommerceBOMFolderId(long commerceBOMFolderId)
commerceBOMFolderId - the commerce bom folder IDpublic static int countByCommerceBOMFolderId(long commerceBOMFolderId)
commerceBOMFolderId - the commerce bom folder IDpublic static int filterCountByCommerceBOMFolderId(long commerceBOMFolderId)
commerceBOMFolderId - the commerce bom folder IDpublic static void cacheResult(CommerceBOMDefinition commerceBOMDefinition)
commerceBOMDefinition - the commerce bom definitionpublic static void cacheResult(java.util.List<CommerceBOMDefinition> commerceBOMDefinitions)
commerceBOMDefinitions - the commerce bom definitionspublic static CommerceBOMDefinition create(long commerceBOMDefinitionId)
commerceBOMDefinitionId - the primary key for the new commerce bom definitionpublic static CommerceBOMDefinition remove(long commerceBOMDefinitionId) throws NoSuchBOMDefinitionException
commerceBOMDefinitionId - the primary key of the commerce bom definitionNoSuchBOMDefinitionException - if a commerce bom definition with the primary key could not be foundpublic static CommerceBOMDefinition updateImpl(CommerceBOMDefinition commerceBOMDefinition)
public static CommerceBOMDefinition findByPrimaryKey(long commerceBOMDefinitionId) throws NoSuchBOMDefinitionException
NoSuchBOMDefinitionException if it could not be found.commerceBOMDefinitionId - the primary key of the commerce bom definitionNoSuchBOMDefinitionException - if a commerce bom definition with the primary key could not be foundpublic static CommerceBOMDefinition fetchByPrimaryKey(long commerceBOMDefinitionId)
null if it could not be found.commerceBOMDefinitionId - the primary key of the commerce bom definitionnull if a commerce bom definition with the primary key could not be foundpublic static java.util.List<CommerceBOMDefinition> findAll()
public static java.util.List<CommerceBOMDefinition> 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 CommerceBOMDefinitionModelImpl.
start - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)public static java.util.List<CommerceBOMDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> 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 CommerceBOMDefinitionModelImpl.
start - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMDefinition> 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 CommerceBOMDefinitionModelImpl.
start - the lower bound of the range of commerce bom definitionsend - the upper bound of the range of commerce bom definitions (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 CommerceBOMDefinitionPersistence getPersistence()