public class CommerceBOMFolderUtil
extends java.lang.Object
com.liferay.commerce.bom.service.persistence.impl.CommerceBOMFolderPersistenceImpl 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
CommerceBOMFolderPersistence| Constructor and Description |
|---|
CommerceBOMFolderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceBOMFolder commerceBOMFolder)
Caches the commerce bom folder in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceBOMFolder> commerceBOMFolders)
Caches the commerce bom folders in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceBOMFolder commerceBOMFolder) |
static int |
countAll()
Returns the number of commerce bom folders.
|
static int |
countByC_P(long companyId,
long parentCommerceBOMFolderId)
Returns the number of commerce bom folders where companyId = ? and parentCommerceBOMFolderId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce bom folders where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceBOMFolder |
create(long commerceBOMFolderId)
Creates a new commerce bom folder with the primary key.
|
static CommerceBOMFolder |
fetchByC_P_First(long companyId,
long parentCommerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the first commerce bom folder in the ordered set where companyId = ? and parentCommerceBOMFolderId = ?.
|
static CommerceBOMFolder |
fetchByC_P_Last(long companyId,
long parentCommerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the last commerce bom folder in the ordered set where companyId = ? and parentCommerceBOMFolderId = ?.
|
static CommerceBOMFolder |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the first commerce bom folder in the ordered set where companyId = ?.
|
static CommerceBOMFolder |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the last commerce bom folder in the ordered set where companyId = ?.
|
static CommerceBOMFolder |
fetchByPrimaryKey(long commerceBOMFolderId)
Returns the commerce bom folder with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceBOMFolder> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByC_P(long companyId,
long parentCommerceBOMFolderId)
Returns the number of commerce bom folders that the user has permission to view where companyId = ? and parentCommerceBOMFolderId = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce bom folders that the user has permission to view where companyId = ?.
|
static CommerceBOMFolder[] |
filterFindByC_P_PrevAndNext(long commerceBOMFolderId,
long companyId,
long parentCommerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the commerce bom folders before and after the current commerce bom folder in the ordered set of commerce bom folders that the user has permission to view where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
filterFindByC_P(long companyId,
long parentCommerceBOMFolderId)
Returns all the commerce bom folders that the user has permission to view where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
filterFindByC_P(long companyId,
long parentCommerceBOMFolderId,
int start,
int end)
Returns a range of all the commerce bom folders that the user has permission to view where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
filterFindByC_P(long companyId,
long parentCommerceBOMFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns an ordered range of all the commerce bom folders that the user has permissions to view where companyId = ? and parentCommerceBOMFolderId = ?.
|
static CommerceBOMFolder[] |
filterFindByCompanyId_PrevAndNext(long commerceBOMFolderId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the commerce bom folders before and after the current commerce bom folder in the ordered set of commerce bom folders that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
filterFindByCompanyId(long companyId)
Returns all the commerce bom folders that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce bom folders that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns an ordered range of all the commerce bom folders that the user has permissions to view where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
findAll()
Returns all the commerce bom folders.
|
static java.util.List<CommerceBOMFolder> |
findAll(int start,
int end)
Returns a range of all the commerce bom folders.
|
static java.util.List<CommerceBOMFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns an ordered range of all the commerce bom folders.
|
static java.util.List<CommerceBOMFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom folders.
|
static CommerceBOMFolder |
findByC_P_First(long companyId,
long parentCommerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the first commerce bom folder in the ordered set where companyId = ? and parentCommerceBOMFolderId = ?.
|
static CommerceBOMFolder |
findByC_P_Last(long companyId,
long parentCommerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the last commerce bom folder in the ordered set where companyId = ? and parentCommerceBOMFolderId = ?.
|
static CommerceBOMFolder[] |
findByC_P_PrevAndNext(long commerceBOMFolderId,
long companyId,
long parentCommerceBOMFolderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the commerce bom folders before and after the current commerce bom folder in the ordered set where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByC_P(long companyId,
long parentCommerceBOMFolderId)
Returns all the commerce bom folders where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByC_P(long companyId,
long parentCommerceBOMFolderId,
int start,
int end)
Returns a range of all the commerce bom folders where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByC_P(long companyId,
long parentCommerceBOMFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns an ordered range of all the commerce bom folders where companyId = ? and parentCommerceBOMFolderId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByC_P(long companyId,
long parentCommerceBOMFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom folders where companyId = ? and parentCommerceBOMFolderId = ?.
|
static CommerceBOMFolder |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the first commerce bom folder in the ordered set where companyId = ?.
|
static CommerceBOMFolder |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the last commerce bom folder in the ordered set where companyId = ?.
|
static CommerceBOMFolder[] |
findByCompanyId_PrevAndNext(long commerceBOMFolderId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns the commerce bom folders before and after the current commerce bom folder in the ordered set where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByCompanyId(long companyId)
Returns all the commerce bom folders where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce bom folders where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
Returns an ordered range of all the commerce bom folders where companyId = ?.
|
static java.util.List<CommerceBOMFolder> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce bom folders where companyId = ?.
|
static CommerceBOMFolder |
findByPrimaryKey(long commerceBOMFolderId)
Returns the commerce bom folder with the primary key or throws a
NoSuchBOMFolderException if it could not be found. |
static java.util.List<CommerceBOMFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceBOMFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceBOMFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) |
static CommerceBOMFolderPersistence |
getPersistence() |
static CommerceBOMFolder |
remove(long commerceBOMFolderId)
Removes the commerce bom folder with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce bom folders from the database.
|
static void |
removeByC_P(long companyId,
long parentCommerceBOMFolderId)
Removes all the commerce bom folders where companyId = ? and parentCommerceBOMFolderId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce bom folders where companyId = ? from the database.
|
static void |
setPersistence(CommerceBOMFolderPersistence persistence) |
static CommerceBOMFolder |
update(CommerceBOMFolder commerceBOMFolder) |
static CommerceBOMFolder |
update(CommerceBOMFolder commerceBOMFolder,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceBOMFolder |
updateImpl(CommerceBOMFolder commerceBOMFolder) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceBOMFolder commerceBOMFolder)
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,CommerceBOMFolder> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceBOMFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceBOMFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceBOMFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceBOMFolder update(CommerceBOMFolder commerceBOMFolder)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceBOMFolder update(CommerceBOMFolder commerceBOMFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceBOMFolder> findByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceBOMFolder> findByCompanyId(long companyId, 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 CommerceBOMFolderModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)public static java.util.List<CommerceBOMFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceBOMFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder[] findByCompanyId_PrevAndNext(long commerceBOMFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
commerceBOMFolderId - the primary key of the current commerce bom foldercompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a commerce bom folder with the primary key could not be foundpublic static java.util.List<CommerceBOMFolder> filterFindByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceBOMFolder> filterFindByCompanyId(long companyId, 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 CommerceBOMFolderModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)public static java.util.List<CommerceBOMFolder> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceBOMFolder[] filterFindByCompanyId_PrevAndNext(long commerceBOMFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
commerceBOMFolderId - the primary key of the current commerce bom foldercompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a commerce bom folder with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId - the company IDpublic static int countByCompanyId(long companyId)
companyId - the company IDpublic static int filterCountByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceBOMFolder> findByC_P(long companyId, long parentCommerceBOMFolderId)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDpublic static java.util.List<CommerceBOMFolder> findByC_P(long companyId, long parentCommerceBOMFolderId, 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 CommerceBOMFolderModelImpl.
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)public static java.util.List<CommerceBOMFolder> findByC_P(long companyId, long parentCommerceBOMFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMFolder> findByC_P(long companyId, long parentCommerceBOMFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceBOMFolder findByC_P_First(long companyId, long parentCommerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder fetchByC_P_First(long companyId, long parentCommerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder findByC_P_Last(long companyId, long parentCommerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder fetchByC_P_Last(long companyId, long parentCommerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce bom folder could not be foundpublic static CommerceBOMFolder[] findByC_P_PrevAndNext(long commerceBOMFolderId, long companyId, long parentCommerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
commerceBOMFolderId - the primary key of the current commerce bom foldercompanyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a commerce bom folder with the primary key could not be foundpublic static java.util.List<CommerceBOMFolder> filterFindByC_P(long companyId, long parentCommerceBOMFolderId)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDpublic static java.util.List<CommerceBOMFolder> filterFindByC_P(long companyId, long parentCommerceBOMFolderId, 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 CommerceBOMFolderModelImpl.
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)public static java.util.List<CommerceBOMFolder> filterFindByC_P(long companyId, long parentCommerceBOMFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDstart - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceBOMFolder[] filterFindByC_P_PrevAndNext(long commerceBOMFolderId, long companyId, long parentCommerceBOMFolderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> orderByComparator) throws NoSuchBOMFolderException
commerceBOMFolderId - the primary key of the current commerce bom foldercompanyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchBOMFolderException - if a commerce bom folder with the primary key could not be foundpublic static void removeByC_P(long companyId,
long parentCommerceBOMFolderId)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDpublic static int countByC_P(long companyId,
long parentCommerceBOMFolderId)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDpublic static int filterCountByC_P(long companyId,
long parentCommerceBOMFolderId)
companyId - the company IDparentCommerceBOMFolderId - the parent commerce bom folder IDpublic static void cacheResult(CommerceBOMFolder commerceBOMFolder)
commerceBOMFolder - the commerce bom folderpublic static void cacheResult(java.util.List<CommerceBOMFolder> commerceBOMFolders)
commerceBOMFolders - the commerce bom folderspublic static CommerceBOMFolder create(long commerceBOMFolderId)
commerceBOMFolderId - the primary key for the new commerce bom folderpublic static CommerceBOMFolder remove(long commerceBOMFolderId) throws NoSuchBOMFolderException
commerceBOMFolderId - the primary key of the commerce bom folderNoSuchBOMFolderException - if a commerce bom folder with the primary key could not be foundpublic static CommerceBOMFolder updateImpl(CommerceBOMFolder commerceBOMFolder)
public static CommerceBOMFolder findByPrimaryKey(long commerceBOMFolderId) throws NoSuchBOMFolderException
NoSuchBOMFolderException if it could not be found.commerceBOMFolderId - the primary key of the commerce bom folderNoSuchBOMFolderException - if a commerce bom folder with the primary key could not be foundpublic static CommerceBOMFolder fetchByPrimaryKey(long commerceBOMFolderId)
null if it could not be found.commerceBOMFolderId - the primary key of the commerce bom foldernull if a commerce bom folder with the primary key could not be foundpublic static java.util.List<CommerceBOMFolder> findAll()
public static java.util.List<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
start - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)public static java.util.List<CommerceBOMFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
start - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceBOMFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceBOMFolder> 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 CommerceBOMFolderModelImpl.
start - the lower bound of the range of commerce bom foldersend - the upper bound of the range of commerce bom folders (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 CommerceBOMFolderPersistence getPersistence()
public static void setPersistence(CommerceBOMFolderPersistence persistence)