@ProviderType
public class AssetDisplayPageEntryUtil
extends java.lang.Object
com.liferay.asset.display.page.service.persistence.impl.AssetDisplayPageEntryPersistenceImpl 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
AssetDisplayPageEntryPersistence,
com.liferay.asset.display.page.service.persistence.impl.AssetDisplayPageEntryPersistenceImpl| Constructor and Description |
|---|
AssetDisplayPageEntryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(AssetDisplayPageEntry assetDisplayPageEntry)
Caches the asset display page entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<AssetDisplayPageEntry> assetDisplayPageEntries)
Caches the asset display page entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(AssetDisplayPageEntry assetDisplayPageEntry) |
static int |
countAll()
Returns the number of asset display page entries.
|
static int |
countByAssetEntryId(long assetEntryId)
Returns the number of asset display page entries where assetEntryId = ?.
|
static int |
countByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId)
Returns the number of asset display page entries where layoutPageTemplateEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AssetDisplayPageEntry |
create(long assetDisplayPageEntryId)
Creates a new asset display page entry with the primary key.
|
static AssetDisplayPageEntry |
fetchByAssetEntryId(long assetEntryId)
Returns the asset display page entry where assetEntryId = ? or returns
null if it could not be found. |
static AssetDisplayPageEntry |
fetchByAssetEntryId(long assetEntryId,
boolean retrieveFromCache)
Returns the asset display page entry where assetEntryId = ? or returns
null if it could not be found, optionally using the finder cache. |
static AssetDisplayPageEntry |
fetchByLayoutPageTemplateEntryId_First(long layoutPageTemplateEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns the first asset display page entry in the ordered set where layoutPageTemplateEntryId = ?.
|
static AssetDisplayPageEntry |
fetchByLayoutPageTemplateEntryId_Last(long layoutPageTemplateEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns the last asset display page entry in the ordered set where layoutPageTemplateEntryId = ?.
|
static AssetDisplayPageEntry |
fetchByPrimaryKey(long assetDisplayPageEntryId)
Returns the asset display page entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,AssetDisplayPageEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<AssetDisplayPageEntry> |
findAll()
Returns all the asset display page entries.
|
static java.util.List<AssetDisplayPageEntry> |
findAll(int start,
int end)
Returns a range of all the asset display page entries.
|
static java.util.List<AssetDisplayPageEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns an ordered range of all the asset display page entries.
|
static java.util.List<AssetDisplayPageEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the asset display page entries.
|
static AssetDisplayPageEntry |
findByAssetEntryId(long assetEntryId)
Returns the asset display page entry where assetEntryId = ? or throws a
NoSuchDisplayPageEntryException if it could not be found. |
static AssetDisplayPageEntry |
findByLayoutPageTemplateEntryId_First(long layoutPageTemplateEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns the first asset display page entry in the ordered set where layoutPageTemplateEntryId = ?.
|
static AssetDisplayPageEntry |
findByLayoutPageTemplateEntryId_Last(long layoutPageTemplateEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns the last asset display page entry in the ordered set where layoutPageTemplateEntryId = ?.
|
static AssetDisplayPageEntry[] |
findByLayoutPageTemplateEntryId_PrevAndNext(long assetDisplayPageEntryId,
long layoutPageTemplateEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns the asset display page entries before and after the current asset display page entry in the ordered set where layoutPageTemplateEntryId = ?.
|
static java.util.List<AssetDisplayPageEntry> |
findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId)
Returns all the asset display page entries where layoutPageTemplateEntryId = ?.
|
static java.util.List<AssetDisplayPageEntry> |
findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId,
int start,
int end)
Returns a range of all the asset display page entries where layoutPageTemplateEntryId = ?.
|
static java.util.List<AssetDisplayPageEntry> |
findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
Returns an ordered range of all the asset display page entries where layoutPageTemplateEntryId = ?.
|
static java.util.List<AssetDisplayPageEntry> |
findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the asset display page entries where layoutPageTemplateEntryId = ?.
|
static AssetDisplayPageEntry |
findByPrimaryKey(long assetDisplayPageEntryId)
Returns the asset display page entry with the primary key or throws a
NoSuchDisplayPageEntryException if it could not be found. |
static java.util.List<AssetDisplayPageEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<AssetDisplayPageEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<AssetDisplayPageEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static AssetDisplayPageEntryPersistence |
getPersistence() |
static AssetDisplayPageEntry |
remove(long assetDisplayPageEntryId)
Removes the asset display page entry with the primary key from the database.
|
static void |
removeAll()
Removes all the asset display page entries from the database.
|
static AssetDisplayPageEntry |
removeByAssetEntryId(long assetEntryId)
Removes the asset display page entry where assetEntryId = ? from the database.
|
static void |
removeByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId)
Removes all the asset display page entries where layoutPageTemplateEntryId = ? from the database.
|
static AssetDisplayPageEntry |
update(AssetDisplayPageEntry assetDisplayPageEntry) |
static AssetDisplayPageEntry |
update(AssetDisplayPageEntry assetDisplayPageEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static AssetDisplayPageEntry |
updateImpl(AssetDisplayPageEntry assetDisplayPageEntry) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(AssetDisplayPageEntry assetDisplayPageEntry)
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.List<AssetDisplayPageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<AssetDisplayPageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<AssetDisplayPageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static AssetDisplayPageEntry update(AssetDisplayPageEntry assetDisplayPageEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static AssetDisplayPageEntry update(AssetDisplayPageEntry assetDisplayPageEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static AssetDisplayPageEntry findByAssetEntryId(long assetEntryId) throws NoSuchDisplayPageEntryException
NoSuchDisplayPageEntryException if it could not be found.assetEntryId - the asset entry IDNoSuchDisplayPageEntryException - if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry fetchByAssetEntryId(long assetEntryId)
null if it could not be found. Uses the finder cache.assetEntryId - the asset entry IDnull if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry fetchByAssetEntryId(long assetEntryId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.assetEntryId - the asset entry IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry removeByAssetEntryId(long assetEntryId) throws NoSuchDisplayPageEntryException
assetEntryId - the asset entry IDNoSuchDisplayPageEntryExceptionpublic static int countByAssetEntryId(long assetEntryId)
assetEntryId - the asset entry IDpublic static java.util.List<AssetDisplayPageEntry> findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId)
layoutPageTemplateEntryId - the layout page template entry IDpublic static java.util.List<AssetDisplayPageEntry> findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetDisplayPageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
layoutPageTemplateEntryId - the layout page template entry IDstart - the lower bound of the range of asset display page entriesend - the upper bound of the range of asset display page entries (not inclusive)public static java.util.List<AssetDisplayPageEntry> findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetDisplayPageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
layoutPageTemplateEntryId - the layout page template entry IDstart - the lower bound of the range of asset display page entriesend - the upper bound of the range of asset display page entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<AssetDisplayPageEntry> findByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetDisplayPageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
layoutPageTemplateEntryId - the layout page template entry IDstart - the lower bound of the range of asset display page entriesend - the upper bound of the range of asset display page entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static AssetDisplayPageEntry findByLayoutPageTemplateEntryId_First(long layoutPageTemplateEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator) throws NoSuchDisplayPageEntryException
layoutPageTemplateEntryId - the layout page template entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDisplayPageEntryException - if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry fetchByLayoutPageTemplateEntryId_First(long layoutPageTemplateEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
layoutPageTemplateEntryId - the layout page template entry IDorderByComparator - the comparator to order the set by (optionally null)null if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry findByLayoutPageTemplateEntryId_Last(long layoutPageTemplateEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator) throws NoSuchDisplayPageEntryException
layoutPageTemplateEntryId - the layout page template entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDisplayPageEntryException - if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry fetchByLayoutPageTemplateEntryId_Last(long layoutPageTemplateEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator)
layoutPageTemplateEntryId - the layout page template entry IDorderByComparator - the comparator to order the set by (optionally null)null if a matching asset display page entry could not be foundpublic static AssetDisplayPageEntry[] findByLayoutPageTemplateEntryId_PrevAndNext(long assetDisplayPageEntryId, long layoutPageTemplateEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator) throws NoSuchDisplayPageEntryException
assetDisplayPageEntryId - the primary key of the current asset display page entrylayoutPageTemplateEntryId - the layout page template entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDisplayPageEntryException - if a asset display page entry with the primary key could not be foundpublic static void removeByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId)
layoutPageTemplateEntryId - the layout page template entry IDpublic static int countByLayoutPageTemplateEntryId(long layoutPageTemplateEntryId)
layoutPageTemplateEntryId - the layout page template entry IDpublic static void cacheResult(AssetDisplayPageEntry assetDisplayPageEntry)
assetDisplayPageEntry - the asset display page entrypublic static void cacheResult(java.util.List<AssetDisplayPageEntry> assetDisplayPageEntries)
assetDisplayPageEntries - the asset display page entriespublic static AssetDisplayPageEntry create(long assetDisplayPageEntryId)
assetDisplayPageEntryId - the primary key for the new asset display page entrypublic static AssetDisplayPageEntry remove(long assetDisplayPageEntryId) throws NoSuchDisplayPageEntryException
assetDisplayPageEntryId - the primary key of the asset display page entryNoSuchDisplayPageEntryException - if a asset display page entry with the primary key could not be foundpublic static AssetDisplayPageEntry updateImpl(AssetDisplayPageEntry assetDisplayPageEntry)
public static AssetDisplayPageEntry findByPrimaryKey(long assetDisplayPageEntryId) throws NoSuchDisplayPageEntryException
NoSuchDisplayPageEntryException if it could not be found.assetDisplayPageEntryId - the primary key of the asset display page entryNoSuchDisplayPageEntryException - if a asset display page entry with the primary key could not be foundpublic static AssetDisplayPageEntry fetchByPrimaryKey(long assetDisplayPageEntryId)
null if it could not be found.assetDisplayPageEntryId - the primary key of the asset display page entrynull if a asset display page entry with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,AssetDisplayPageEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<AssetDisplayPageEntry> findAll()
public static java.util.List<AssetDisplayPageEntry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetDisplayPageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset display page entriesend - the upper bound of the range of asset display page entries (not inclusive)public static java.util.List<AssetDisplayPageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetDisplayPageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset display page entriesend - the upper bound of the range of asset display page entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<AssetDisplayPageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetDisplayPageEntry> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from AssetDisplayPageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of asset display page entriesend - the upper bound of the range of asset display page entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static AssetDisplayPageEntryPersistence getPersistence()