Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.persistence.impl
Class AssetEntryPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetEntry>
      extended by com.liferay.portlet.asset.service.persistence.impl.AssetEntryPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetEntry>, AssetEntryPersistence

@ProviderType
public class AssetEntryPersistenceImpl
extends BasePersistenceImpl<AssetEntry>
implements AssetEntryPersistence

The persistence implementation for the asset entry service.

Caching information and settings can be found in portal.properties

See Also:
AssetEntryPersistence, AssetEntryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  AssetCategoryPersistence assetCategoryPersistence
           
protected  TableMapper<AssetEntry,AssetCategory> assetEntryToAssetCategoryTableMapper
           
protected  TableMapper<AssetEntry,AssetTag> assetEntryToAssetTagTableMapper
           
protected  AssetTagPersistence assetTagPersistence
           
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_EXPIRATIONDATE
           
static FinderPath FINDER_PATH_COUNT_BY_G_CU
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_LAYOUTUUID
           
static FinderPath FINDER_PATH_COUNT_BY_PUBLISHDATE
           
static FinderPath FINDER_PATH_COUNT_BY_VISIBLE
           
static FinderPath FINDER_PATH_FETCH_BY_C_C
           
static FinderPath FINDER_PATH_FETCH_BY_G_CU
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EXPIRATIONDATE
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTUUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PUBLISHDATE
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VISIBLE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EXPIRATIONDATE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTUUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PUBLISHDATE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBLE
           
protected  FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
AssetEntryPersistenceImpl()
           
 
Method Summary
 void addAssetCategories(long pk, List<AssetCategory> assetCategories)
          Adds an association between the asset entry and the asset categories.
 void addAssetCategories(long pk, long[] assetCategoryPKs)
          Adds an association between the asset entry and the asset categories.
 void addAssetCategory(long pk, AssetCategory assetCategory)
          Adds an association between the asset entry and the asset category.
 void addAssetCategory(long pk, long assetCategoryPK)
          Adds an association between the asset entry and the asset category.
 void addAssetTag(long pk, AssetTag assetTag)
          Adds an association between the asset entry and the asset tag.
 void addAssetTag(long pk, long assetTagPK)
          Adds an association between the asset entry and the asset tag.
 void addAssetTags(long pk, List<AssetTag> assetTags)
          Adds an association between the asset entry and the asset tags.
 void addAssetTags(long pk, long[] assetTagPKs)
          Adds an association between the asset entry and the asset tags.
 void afterPropertiesSet()
          Initializes the asset entry persistence.
 void cacheResult(AssetEntry assetEntry)
          Caches the asset entry in the entity cache if it is enabled.
 void cacheResult(List<AssetEntry> assetEntries)
          Caches the asset entries in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(AssetEntryModelImpl assetEntryModelImpl, boolean isNew)
           
 void clearAssetCategories(long pk)
          Clears all associations between the asset entry and its asset categories.
 void clearAssetTags(long pk)
          Clears all associations between the asset entry and its asset tags.
 void clearCache()
          Clears the cache for all asset entries.
 void clearCache(AssetEntry assetEntry)
          Clears the cache for the asset entry.
 void clearCache(List<AssetEntry> assetEntries)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(AssetEntryModelImpl assetEntryModelImpl)
           
 boolean containsAssetCategories(long pk)
          Returns true if the asset entry has any asset categories associated with it.
 boolean containsAssetCategory(long pk, long assetCategoryPK)
          Returns true if the asset category is associated with the asset entry.
 boolean containsAssetTag(long pk, long assetTagPK)
          Returns true if the asset tag is associated with the asset entry.
 boolean containsAssetTags(long pk)
          Returns true if the asset entry has any asset tags associated with it.
 int countAll()
          Returns the number of asset entries.
 int countByC_C(long classNameId, long classPK)
          Returns the number of asset entries where classNameId = ? and classPK = ?.
 int countByCompanyId(long companyId)
          Returns the number of asset entries where companyId = ?.
 int countByExpirationDate(Date expirationDate)
          Returns the number of asset entries where expirationDate = ?.
 int countByG_CU(long groupId, String classUuid)
          Returns the number of asset entries where groupId = ? and classUuid = ?.
 int countByGroupId(long groupId)
          Returns the number of asset entries where groupId = ?.
 int countByLayoutUuid(String layoutUuid)
          Returns the number of asset entries where layoutUuid = ?.
 int countByPublishDate(Date publishDate)
          Returns the number of asset entries where publishDate = ?.
 int countByVisible(boolean visible)
          Returns the number of asset entries where visible = ?.
 AssetEntry create(long entryId)
          Creates a new asset entry with the primary key.
 void destroy()
           
 AssetEntry fetchByC_C(long classNameId, long classPK)
          Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found.
 AssetEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
          Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
 AssetEntry fetchByCompanyId_First(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where companyId = ?.
 AssetEntry fetchByCompanyId_Last(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where companyId = ?.
 AssetEntry fetchByExpirationDate_First(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where expirationDate = ?.
 AssetEntry fetchByExpirationDate_Last(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where expirationDate = ?.
 AssetEntry fetchByG_CU(long groupId, String classUuid)
          Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found.
 AssetEntry fetchByG_CU(long groupId, String classUuid, boolean retrieveFromCache)
          Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache.
 AssetEntry fetchByGroupId_First(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where groupId = ?.
 AssetEntry fetchByGroupId_Last(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where groupId = ?.
 AssetEntry fetchByLayoutUuid_First(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where layoutUuid = ?.
 AssetEntry fetchByLayoutUuid_Last(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where layoutUuid = ?.
 AssetEntry fetchByPrimaryKey(long entryId)
          Returns the asset entry with the primary key or returns null if it could not be found.
 AssetEntry fetchByPrimaryKey(Serializable primaryKey)
          Returns the asset entry with the primary key or returns null if it could not be found.
 Map<Serializable,AssetEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 AssetEntry fetchByPublishDate_First(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where publishDate = ?.
 AssetEntry fetchByPublishDate_Last(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where publishDate = ?.
 AssetEntry fetchByVisible_First(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where visible = ?.
 AssetEntry fetchByVisible_Last(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where visible = ?.
 List<AssetEntry> findAll()
          Returns all the asset entries.
 List<AssetEntry> findAll(int start, int end)
          Returns a range of all the asset entries.
 List<AssetEntry> findAll(int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries.
 List<AssetEntry> findAll(int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries.
 AssetEntry findByC_C(long classNameId, long classPK)
          Returns the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
 AssetEntry findByCompanyId_First(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where companyId = ?.
 AssetEntry findByCompanyId_Last(long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where companyId = ?.
 AssetEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId)
          Returns all the asset entries where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the asset entries where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where companyId = ?.
 List<AssetEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where companyId = ?.
 AssetEntry findByExpirationDate_First(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where expirationDate = ?.
 AssetEntry findByExpirationDate_Last(Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where expirationDate = ?.
 AssetEntry[] findByExpirationDate_PrevAndNext(long entryId, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.
 List<AssetEntry> findByExpirationDate(Date expirationDate)
          Returns all the asset entries where expirationDate = ?.
 List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end)
          Returns a range of all the asset entries where expirationDate = ?.
 List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where expirationDate = ?.
 List<AssetEntry> findByExpirationDate(Date expirationDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where expirationDate = ?.
 AssetEntry findByG_CU(long groupId, String classUuid)
          Returns the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.
 AssetEntry findByGroupId_First(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where groupId = ?.
 AssetEntry findByGroupId_Last(long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where groupId = ?.
 AssetEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.
 List<AssetEntry> findByGroupId(long groupId)
          Returns all the asset entries where groupId = ?.
 List<AssetEntry> findByGroupId(long groupId, int start, int end)
          Returns a range of all the asset entries where groupId = ?.
 List<AssetEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where groupId = ?.
 List<AssetEntry> findByGroupId(long groupId, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where groupId = ?.
 AssetEntry findByLayoutUuid_First(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where layoutUuid = ?.
 AssetEntry findByLayoutUuid_Last(String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where layoutUuid = ?.
 AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId, String layoutUuid, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.
 List<AssetEntry> findByLayoutUuid(String layoutUuid)
          Returns all the asset entries where layoutUuid = ?.
 List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end)
          Returns a range of all the asset entries where layoutUuid = ?.
 List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where layoutUuid = ?.
 List<AssetEntry> findByLayoutUuid(String layoutUuid, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where layoutUuid = ?.
 AssetEntry findByPrimaryKey(long entryId)
          Returns the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.
 AssetEntry findByPrimaryKey(Serializable primaryKey)
          Returns the asset entry with the primary key or throws a NoSuchModelException if it could not be found.
 AssetEntry findByPublishDate_First(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where publishDate = ?.
 AssetEntry findByPublishDate_Last(Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where publishDate = ?.
 AssetEntry[] findByPublishDate_PrevAndNext(long entryId, Date publishDate, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.
 List<AssetEntry> findByPublishDate(Date publishDate)
          Returns all the asset entries where publishDate = ?.
 List<AssetEntry> findByPublishDate(Date publishDate, int start, int end)
          Returns a range of all the asset entries where publishDate = ?.
 List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where publishDate = ?.
 List<AssetEntry> findByPublishDate(Date publishDate, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where publishDate = ?.
 AssetEntry findByVisible_First(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the first asset entry in the ordered set where visible = ?.
 AssetEntry findByVisible_Last(boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the last asset entry in the ordered set where visible = ?.
 AssetEntry[] findByVisible_PrevAndNext(long entryId, boolean visible, OrderByComparator<AssetEntry> orderByComparator)
          Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.
 List<AssetEntry> findByVisible(boolean visible)
          Returns all the asset entries where visible = ?.
 List<AssetEntry> findByVisible(boolean visible, int start, int end)
          Returns a range of all the asset entries where visible = ?.
 List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
          Returns an ordered range of all the asset entries where visible = ?.
 List<AssetEntry> findByVisible(boolean visible, int start, int end, OrderByComparator<AssetEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the asset entries where visible = ?.
 List<AssetCategory> getAssetCategories(long pk)
          Returns all the asset categories associated with the asset entry.
 List<AssetCategory> getAssetCategories(long pk, int start, int end)
          Returns a range of all the asset categories associated with the asset entry.
 List<AssetCategory> getAssetCategories(long pk, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns an ordered range of all the asset categories associated with the asset entry.
 int getAssetCategoriesSize(long pk)
          Returns the number of asset categories associated with the asset entry.
 long[] getAssetCategoryPrimaryKeys(long pk)
          Returns the primaryKeys of asset categories associated with the asset entry.
 long[] getAssetTagPrimaryKeys(long pk)
          Returns the primaryKeys of asset tags associated with the asset entry.
 List<AssetTag> getAssetTags(long pk)
          Returns all the asset tags associated with the asset entry.
 List<AssetTag> getAssetTags(long pk, int start, int end)
          Returns a range of all the asset tags associated with the asset entry.
 List<AssetTag> getAssetTags(long pk, int start, int end, OrderByComparator<AssetTag> orderByComparator)
          Returns an ordered range of all the asset tags associated with the asset entry.
 int getAssetTagsSize(long pk)
          Returns the number of asset tags associated with the asset entry.
protected  AssetEntry getByCompanyId_PrevAndNext(Session session, AssetEntry assetEntry, long companyId, OrderByComparator<AssetEntry> orderByComparator, boolean previous)
           
protected  AssetEntry getByExpirationDate_PrevAndNext(Session session, AssetEntry assetEntry, Date expirationDate, OrderByComparator<AssetEntry> orderByComparator, boolean previous)
           
protected  AssetEntry getByGroupId_PrevAndNext(Session session, AssetEntry assetEntry, long groupId, OrderByComparator<AssetEntry> orderByComparator, boolean previous)
           
protected  AssetEntry getByLayoutUuid_PrevAndNext(Session session, AssetEntry assetEntry, String layoutUuid, OrderByComparator<AssetEntry> orderByComparator, boolean previous)
           
protected  AssetEntry getByPublishDate_PrevAndNext(Session session, AssetEntry assetEntry, Date publishDate, OrderByComparator<AssetEntry> orderByComparator, boolean previous)
           
protected  AssetEntry getByVisible_PrevAndNext(Session session, AssetEntry assetEntry, boolean visible, OrderByComparator<AssetEntry> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 AssetEntry remove(long entryId)
          Removes the asset entry with the primary key from the database.
 AssetEntry remove(Serializable primaryKey)
          Removes the asset entry with the primary key from the database.
 void removeAll()
          Removes all the asset entries from the database.
 void removeAssetCategories(long pk, List<AssetCategory> assetCategories)
          Removes the association between the asset entry and the asset categories.
 void removeAssetCategories(long pk, long[] assetCategoryPKs)
          Removes the association between the asset entry and the asset categories.
 void removeAssetCategory(long pk, AssetCategory assetCategory)
          Removes the association between the asset entry and the asset category.
 void removeAssetCategory(long pk, long assetCategoryPK)
          Removes the association between the asset entry and the asset category.
 void removeAssetTag(long pk, AssetTag assetTag)
          Removes the association between the asset entry and the asset tag.
 void removeAssetTag(long pk, long assetTagPK)
          Removes the association between the asset entry and the asset tag.
 void removeAssetTags(long pk, List<AssetTag> assetTags)
          Removes the association between the asset entry and the asset tags.
 void removeAssetTags(long pk, long[] assetTagPKs)
          Removes the association between the asset entry and the asset tags.
 AssetEntry removeByC_C(long classNameId, long classPK)
          Removes the asset entry where classNameId = ? and classPK = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the asset entries where companyId = ? from the database.
 void removeByExpirationDate(Date expirationDate)
          Removes all the asset entries where expirationDate = ? from the database.
 AssetEntry removeByG_CU(long groupId, String classUuid)
          Removes the asset entry where groupId = ? and classUuid = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the asset entries where groupId = ? from the database.
 void removeByLayoutUuid(String layoutUuid)
          Removes all the asset entries where layoutUuid = ? from the database.
 void removeByPublishDate(Date publishDate)
          Removes all the asset entries where publishDate = ? from the database.
 void removeByVisible(boolean visible)
          Removes all the asset entries where visible = ? from the database.
protected  AssetEntry removeImpl(AssetEntry assetEntry)
          Removes the model instance from the database.
 void setAssetCategories(long pk, List<AssetCategory> assetCategories)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
 void setAssetCategories(long pk, long[] assetCategoryPKs)
          Sets the asset categories associated with the asset entry, removing and adding associations as necessary.
 void setAssetTags(long pk, List<AssetTag> assetTags)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
 void setAssetTags(long pk, long[] assetTagPKs)
          Sets the asset tags associated with the asset entry, removing and adding associations as necessary.
protected  AssetEntry toUnwrappedModel(AssetEntry assetEntry)
           
 AssetEntry updateImpl(AssetEntry assetEntry)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_VISIBLE

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VISIBLE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBLE

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBLE

FINDER_PATH_COUNT_BY_VISIBLE

public static final FinderPath FINDER_PATH_COUNT_BY_VISIBLE

FINDER_PATH_WITH_PAGINATION_FIND_BY_PUBLISHDATE

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PUBLISHDATE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PUBLISHDATE

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PUBLISHDATE

FINDER_PATH_COUNT_BY_PUBLISHDATE

public static final FinderPath FINDER_PATH_COUNT_BY_PUBLISHDATE

FINDER_PATH_WITH_PAGINATION_FIND_BY_EXPIRATIONDATE

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EXPIRATIONDATE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EXPIRATIONDATE

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EXPIRATIONDATE

FINDER_PATH_COUNT_BY_EXPIRATIONDATE

public static final FinderPath FINDER_PATH_COUNT_BY_EXPIRATIONDATE

FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTUUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTUUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTUUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTUUID

FINDER_PATH_COUNT_BY_LAYOUTUUID

public static final FinderPath FINDER_PATH_COUNT_BY_LAYOUTUUID

FINDER_PATH_FETCH_BY_G_CU

public static final FinderPath FINDER_PATH_FETCH_BY_G_CU

FINDER_PATH_COUNT_BY_G_CU

public static final FinderPath FINDER_PATH_COUNT_BY_G_CU

FINDER_PATH_FETCH_BY_C_C

public static final FinderPath FINDER_PATH_FETCH_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache

assetCategoryPersistence

@BeanReference(type=AssetCategoryPersistence.class)
protected AssetCategoryPersistence assetCategoryPersistence

assetEntryToAssetCategoryTableMapper

protected TableMapper<AssetEntry,AssetCategory> assetEntryToAssetCategoryTableMapper

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetEntryToAssetTagTableMapper

protected TableMapper<AssetEntry,AssetTag> assetEntryToAssetTagTableMapper
Constructor Detail

AssetEntryPersistenceImpl

public AssetEntryPersistenceImpl()
Method Detail

findByGroupId

public List<AssetEntry> findByGroupId(long groupId)
Returns all the asset entries where groupId = ?.

Specified by:
findByGroupId in interface AssetEntryPersistence
Parameters:
groupId - the group ID
Returns:
the matching asset entries

findByGroupId

public List<AssetEntry> findByGroupId(long groupId,
                                      int start,
                                      int end)
Returns a range of all the asset entries where groupId = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByGroupId in interface AssetEntryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByGroupId

public List<AssetEntry> findByGroupId(long groupId,
                                      int start,
                                      int end,
                                      OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where groupId = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByGroupId in interface AssetEntryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByGroupId

public List<AssetEntry> findByGroupId(long groupId,
                                      int start,
                                      int end,
                                      OrderByComparator<AssetEntry> orderByComparator,
                                      boolean retrieveFromCache)
Returns an ordered range of all the asset entries where groupId = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByGroupId in interface AssetEntryPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByGroupId_First

public AssetEntry findByGroupId_First(long groupId,
                                      OrderByComparator<AssetEntry> orderByComparator)
                               throws NoSuchEntryException
Returns the first asset entry in the ordered set where groupId = ?.

Specified by:
findByGroupId_First in interface AssetEntryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByGroupId_First

public AssetEntry fetchByGroupId_First(long groupId,
                                       OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface AssetEntryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByGroupId_Last

public AssetEntry findByGroupId_Last(long groupId,
                                     OrderByComparator<AssetEntry> orderByComparator)
                              throws NoSuchEntryException
Returns the last asset entry in the ordered set where groupId = ?.

Specified by:
findByGroupId_Last in interface AssetEntryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByGroupId_Last

public AssetEntry fetchByGroupId_Last(long groupId,
                                      OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface AssetEntryPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByGroupId_PrevAndNext

public AssetEntry[] findByGroupId_PrevAndNext(long entryId,
                                              long groupId,
                                              OrderByComparator<AssetEntry> orderByComparator)
                                       throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

getByGroupId_PrevAndNext

protected AssetEntry getByGroupId_PrevAndNext(Session session,
                                              AssetEntry assetEntry,
                                              long groupId,
                                              OrderByComparator<AssetEntry> orderByComparator,
                                              boolean previous)

removeByGroupId

public void removeByGroupId(long groupId)
Removes all the asset entries where groupId = ? from the database.

Specified by:
removeByGroupId in interface AssetEntryPersistence
Parameters:
groupId - the group ID

countByGroupId

public int countByGroupId(long groupId)
Returns the number of asset entries where groupId = ?.

Specified by:
countByGroupId in interface AssetEntryPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching asset entries

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId)
Returns all the asset entries where companyId = ?.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company ID
Returns:
the matching asset entries

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId,
                                        int start,
                                        int end)
Returns a range of all the asset entries where companyId = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where companyId = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByCompanyId

public List<AssetEntry> findByCompanyId(long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator<AssetEntry> orderByComparator,
                                        boolean retrieveFromCache)
Returns an ordered range of all the asset entries where companyId = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByCompanyId_First

public AssetEntry findByCompanyId_First(long companyId,
                                        OrderByComparator<AssetEntry> orderByComparator)
                                 throws NoSuchEntryException
Returns the first asset entry in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface AssetEntryPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByCompanyId_First

public AssetEntry fetchByCompanyId_First(long companyId,
                                         OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface AssetEntryPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByCompanyId_Last

public AssetEntry findByCompanyId_Last(long companyId,
                                       OrderByComparator<AssetEntry> orderByComparator)
                                throws NoSuchEntryException
Returns the last asset entry in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface AssetEntryPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByCompanyId_Last

public AssetEntry fetchByCompanyId_Last(long companyId,
                                        OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface AssetEntryPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByCompanyId_PrevAndNext

public AssetEntry[] findByCompanyId_PrevAndNext(long entryId,
                                                long companyId,
                                                OrderByComparator<AssetEntry> orderByComparator)
                                         throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

getByCompanyId_PrevAndNext

protected AssetEntry getByCompanyId_PrevAndNext(Session session,
                                                AssetEntry assetEntry,
                                                long companyId,
                                                OrderByComparator<AssetEntry> orderByComparator,
                                                boolean previous)

removeByCompanyId

public void removeByCompanyId(long companyId)
Removes all the asset entries where companyId = ? from the database.

Specified by:
removeByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company ID

countByCompanyId

public int countByCompanyId(long companyId)
Returns the number of asset entries where companyId = ?.

Specified by:
countByCompanyId in interface AssetEntryPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching asset entries

findByVisible

public List<AssetEntry> findByVisible(boolean visible)
Returns all the asset entries where visible = ?.

Specified by:
findByVisible in interface AssetEntryPersistence
Parameters:
visible - the visible
Returns:
the matching asset entries

findByVisible

public List<AssetEntry> findByVisible(boolean visible,
                                      int start,
                                      int end)
Returns a range of all the asset entries where visible = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByVisible in interface AssetEntryPersistence
Parameters:
visible - the visible
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByVisible

public List<AssetEntry> findByVisible(boolean visible,
                                      int start,
                                      int end,
                                      OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where visible = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByVisible in interface AssetEntryPersistence
Parameters:
visible - the visible
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByVisible

public List<AssetEntry> findByVisible(boolean visible,
                                      int start,
                                      int end,
                                      OrderByComparator<AssetEntry> orderByComparator,
                                      boolean retrieveFromCache)
Returns an ordered range of all the asset entries where visible = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByVisible in interface AssetEntryPersistence
Parameters:
visible - the visible
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByVisible_First

public AssetEntry findByVisible_First(boolean visible,
                                      OrderByComparator<AssetEntry> orderByComparator)
                               throws NoSuchEntryException
Returns the first asset entry in the ordered set where visible = ?.

Specified by:
findByVisible_First in interface AssetEntryPersistence
Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByVisible_First

public AssetEntry fetchByVisible_First(boolean visible,
                                       OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where visible = ?.

Specified by:
fetchByVisible_First in interface AssetEntryPersistence
Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByVisible_Last

public AssetEntry findByVisible_Last(boolean visible,
                                     OrderByComparator<AssetEntry> orderByComparator)
                              throws NoSuchEntryException
Returns the last asset entry in the ordered set where visible = ?.

Specified by:
findByVisible_Last in interface AssetEntryPersistence
Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByVisible_Last

public AssetEntry fetchByVisible_Last(boolean visible,
                                      OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where visible = ?.

Specified by:
fetchByVisible_Last in interface AssetEntryPersistence
Parameters:
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByVisible_PrevAndNext

public AssetEntry[] findByVisible_PrevAndNext(long entryId,
                                              boolean visible,
                                              OrderByComparator<AssetEntry> orderByComparator)
                                       throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where visible = ?.

Specified by:
findByVisible_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
visible - the visible
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

getByVisible_PrevAndNext

protected AssetEntry getByVisible_PrevAndNext(Session session,
                                              AssetEntry assetEntry,
                                              boolean visible,
                                              OrderByComparator<AssetEntry> orderByComparator,
                                              boolean previous)

removeByVisible

public void removeByVisible(boolean visible)
Removes all the asset entries where visible = ? from the database.

Specified by:
removeByVisible in interface AssetEntryPersistence
Parameters:
visible - the visible

countByVisible

public int countByVisible(boolean visible)
Returns the number of asset entries where visible = ?.

Specified by:
countByVisible in interface AssetEntryPersistence
Parameters:
visible - the visible
Returns:
the number of matching asset entries

findByPublishDate

public List<AssetEntry> findByPublishDate(Date publishDate)
Returns all the asset entries where publishDate = ?.

Specified by:
findByPublishDate in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
Returns:
the matching asset entries

findByPublishDate

public List<AssetEntry> findByPublishDate(Date publishDate,
                                          int start,
                                          int end)
Returns a range of all the asset entries where publishDate = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByPublishDate in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByPublishDate

public List<AssetEntry> findByPublishDate(Date publishDate,
                                          int start,
                                          int end,
                                          OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where publishDate = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByPublishDate in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByPublishDate

public List<AssetEntry> findByPublishDate(Date publishDate,
                                          int start,
                                          int end,
                                          OrderByComparator<AssetEntry> orderByComparator,
                                          boolean retrieveFromCache)
Returns an ordered range of all the asset entries where publishDate = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByPublishDate in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByPublishDate_First

public AssetEntry findByPublishDate_First(Date publishDate,
                                          OrderByComparator<AssetEntry> orderByComparator)
                                   throws NoSuchEntryException
Returns the first asset entry in the ordered set where publishDate = ?.

Specified by:
findByPublishDate_First in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByPublishDate_First

public AssetEntry fetchByPublishDate_First(Date publishDate,
                                           OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where publishDate = ?.

Specified by:
fetchByPublishDate_First in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByPublishDate_Last

public AssetEntry findByPublishDate_Last(Date publishDate,
                                         OrderByComparator<AssetEntry> orderByComparator)
                                  throws NoSuchEntryException
Returns the last asset entry in the ordered set where publishDate = ?.

Specified by:
findByPublishDate_Last in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByPublishDate_Last

public AssetEntry fetchByPublishDate_Last(Date publishDate,
                                          OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where publishDate = ?.

Specified by:
fetchByPublishDate_Last in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByPublishDate_PrevAndNext

public AssetEntry[] findByPublishDate_PrevAndNext(long entryId,
                                                  Date publishDate,
                                                  OrderByComparator<AssetEntry> orderByComparator)
                                           throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?.

Specified by:
findByPublishDate_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
publishDate - the publish date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

getByPublishDate_PrevAndNext

protected AssetEntry getByPublishDate_PrevAndNext(Session session,
                                                  AssetEntry assetEntry,
                                                  Date publishDate,
                                                  OrderByComparator<AssetEntry> orderByComparator,
                                                  boolean previous)

removeByPublishDate

public void removeByPublishDate(Date publishDate)
Removes all the asset entries where publishDate = ? from the database.

Specified by:
removeByPublishDate in interface AssetEntryPersistence
Parameters:
publishDate - the publish date

countByPublishDate

public int countByPublishDate(Date publishDate)
Returns the number of asset entries where publishDate = ?.

Specified by:
countByPublishDate in interface AssetEntryPersistence
Parameters:
publishDate - the publish date
Returns:
the number of matching asset entries

findByExpirationDate

public List<AssetEntry> findByExpirationDate(Date expirationDate)
Returns all the asset entries where expirationDate = ?.

Specified by:
findByExpirationDate in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
Returns:
the matching asset entries

findByExpirationDate

public List<AssetEntry> findByExpirationDate(Date expirationDate,
                                             int start,
                                             int end)
Returns a range of all the asset entries where expirationDate = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByExpirationDate in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByExpirationDate

public List<AssetEntry> findByExpirationDate(Date expirationDate,
                                             int start,
                                             int end,
                                             OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where expirationDate = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByExpirationDate in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByExpirationDate

public List<AssetEntry> findByExpirationDate(Date expirationDate,
                                             int start,
                                             int end,
                                             OrderByComparator<AssetEntry> orderByComparator,
                                             boolean retrieveFromCache)
Returns an ordered range of all the asset entries where expirationDate = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByExpirationDate in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByExpirationDate_First

public AssetEntry findByExpirationDate_First(Date expirationDate,
                                             OrderByComparator<AssetEntry> orderByComparator)
                                      throws NoSuchEntryException
Returns the first asset entry in the ordered set where expirationDate = ?.

Specified by:
findByExpirationDate_First in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByExpirationDate_First

public AssetEntry fetchByExpirationDate_First(Date expirationDate,
                                              OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where expirationDate = ?.

Specified by:
fetchByExpirationDate_First in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByExpirationDate_Last

public AssetEntry findByExpirationDate_Last(Date expirationDate,
                                            OrderByComparator<AssetEntry> orderByComparator)
                                     throws NoSuchEntryException
Returns the last asset entry in the ordered set where expirationDate = ?.

Specified by:
findByExpirationDate_Last in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByExpirationDate_Last

public AssetEntry fetchByExpirationDate_Last(Date expirationDate,
                                             OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where expirationDate = ?.

Specified by:
fetchByExpirationDate_Last in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByExpirationDate_PrevAndNext

public AssetEntry[] findByExpirationDate_PrevAndNext(long entryId,
                                                     Date expirationDate,
                                                     OrderByComparator<AssetEntry> orderByComparator)
                                              throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?.

Specified by:
findByExpirationDate_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
expirationDate - the expiration date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

getByExpirationDate_PrevAndNext

protected AssetEntry getByExpirationDate_PrevAndNext(Session session,
                                                     AssetEntry assetEntry,
                                                     Date expirationDate,
                                                     OrderByComparator<AssetEntry> orderByComparator,
                                                     boolean previous)

removeByExpirationDate

public void removeByExpirationDate(Date expirationDate)
Removes all the asset entries where expirationDate = ? from the database.

Specified by:
removeByExpirationDate in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date

countByExpirationDate

public int countByExpirationDate(Date expirationDate)
Returns the number of asset entries where expirationDate = ?.

Specified by:
countByExpirationDate in interface AssetEntryPersistence
Parameters:
expirationDate - the expiration date
Returns:
the number of matching asset entries

findByLayoutUuid

public List<AssetEntry> findByLayoutUuid(String layoutUuid)
Returns all the asset entries where layoutUuid = ?.

Specified by:
findByLayoutUuid in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
Returns:
the matching asset entries

findByLayoutUuid

public List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                         int start,
                                         int end)
Returns a range of all the asset entries where layoutUuid = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByLayoutUuid in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of matching asset entries

findByLayoutUuid

public List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries where layoutUuid = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByLayoutUuid in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset entries

findByLayoutUuid

public List<AssetEntry> findByLayoutUuid(String layoutUuid,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetEntry> orderByComparator,
                                         boolean retrieveFromCache)
Returns an ordered range of all the asset entries where layoutUuid = ?.

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 AssetEntryModelImpl. 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.

Specified by:
findByLayoutUuid in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching asset entries

findByLayoutUuid_First

public AssetEntry findByLayoutUuid_First(String layoutUuid,
                                         OrderByComparator<AssetEntry> orderByComparator)
                                  throws NoSuchEntryException
Returns the first asset entry in the ordered set where layoutUuid = ?.

Specified by:
findByLayoutUuid_First in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByLayoutUuid_First

public AssetEntry fetchByLayoutUuid_First(String layoutUuid,
                                          OrderByComparator<AssetEntry> orderByComparator)
Returns the first asset entry in the ordered set where layoutUuid = ?.

Specified by:
fetchByLayoutUuid_First in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset entry, or null if a matching asset entry could not be found

findByLayoutUuid_Last

public AssetEntry findByLayoutUuid_Last(String layoutUuid,
                                        OrderByComparator<AssetEntry> orderByComparator)
                                 throws NoSuchEntryException
Returns the last asset entry in the ordered set where layoutUuid = ?.

Specified by:
findByLayoutUuid_Last in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByLayoutUuid_Last

public AssetEntry fetchByLayoutUuid_Last(String layoutUuid,
                                         OrderByComparator<AssetEntry> orderByComparator)
Returns the last asset entry in the ordered set where layoutUuid = ?.

Specified by:
fetchByLayoutUuid_Last in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset entry, or null if a matching asset entry could not be found

findByLayoutUuid_PrevAndNext

public AssetEntry[] findByLayoutUuid_PrevAndNext(long entryId,
                                                 String layoutUuid,
                                                 OrderByComparator<AssetEntry> orderByComparator)
                                          throws NoSuchEntryException
Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = ?.

Specified by:
findByLayoutUuid_PrevAndNext in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the current asset entry
layoutUuid - the layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

getByLayoutUuid_PrevAndNext

protected AssetEntry getByLayoutUuid_PrevAndNext(Session session,
                                                 AssetEntry assetEntry,
                                                 String layoutUuid,
                                                 OrderByComparator<AssetEntry> orderByComparator,
                                                 boolean previous)

removeByLayoutUuid

public void removeByLayoutUuid(String layoutUuid)
Removes all the asset entries where layoutUuid = ? from the database.

Specified by:
removeByLayoutUuid in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid

countByLayoutUuid

public int countByLayoutUuid(String layoutUuid)
Returns the number of asset entries where layoutUuid = ?.

Specified by:
countByLayoutUuid in interface AssetEntryPersistence
Parameters:
layoutUuid - the layout uuid
Returns:
the number of matching asset entries

findByG_CU

public AssetEntry findByG_CU(long groupId,
                             String classUuid)
                      throws NoSuchEntryException
Returns the asset entry where groupId = ? and classUuid = ? or throws a NoSuchEntryException if it could not be found.

Specified by:
findByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByG_CU

public AssetEntry fetchByG_CU(long groupId,
                              String classUuid)
Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the matching asset entry, or null if a matching asset entry could not be found

fetchByG_CU

public AssetEntry fetchByG_CU(long groupId,
                              String classUuid,
                              boolean retrieveFromCache)
Returns the asset entry where groupId = ? and classUuid = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group ID
classUuid - the class uuid
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset entry, or null if a matching asset entry could not be found

removeByG_CU

public AssetEntry removeByG_CU(long groupId,
                               String classUuid)
                        throws NoSuchEntryException
Removes the asset entry where groupId = ? and classUuid = ? from the database.

Specified by:
removeByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException

countByG_CU

public int countByG_CU(long groupId,
                       String classUuid)
Returns the number of asset entries where groupId = ? and classUuid = ?.

Specified by:
countByG_CU in interface AssetEntryPersistence
Parameters:
groupId - the group ID
classUuid - the class uuid
Returns:
the number of matching asset entries

findByC_C

public AssetEntry findByC_C(long classNameId,
                            long classPK)
                     throws NoSuchEntryException
Returns the asset entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.

Specified by:
findByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching asset entry
Throws:
NoSuchEntryException - if a matching asset entry could not be found

fetchByC_C

public AssetEntry fetchByC_C(long classNameId,
                             long classPK)
Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching asset entry, or null if a matching asset entry could not be found

fetchByC_C

public AssetEntry fetchByC_C(long classNameId,
                             long classPK,
                             boolean retrieveFromCache)
Returns the asset entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching asset entry, or null if a matching asset entry could not be found

removeByC_C

public AssetEntry removeByC_C(long classNameId,
                              long classPK)
                       throws NoSuchEntryException
Removes the asset entry where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
Returns the number of asset entries where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface AssetEntryPersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching asset entries

cacheResult

public void cacheResult(AssetEntry assetEntry)
Caches the asset entry in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetEntryPersistence
Parameters:
assetEntry - the asset entry

cacheResult

public void cacheResult(List<AssetEntry> assetEntries)
Caches the asset entries in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetEntryPersistence
Parameters:
assetEntries - the asset entries

clearCache

public void clearCache()
Clears the cache for all asset entries.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetEntry>
Overrides:
clearCache in class BasePersistenceImpl<AssetEntry>

clearCache

public void clearCache(AssetEntry assetEntry)
Clears the cache for the asset entry.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetEntry>
Overrides:
clearCache in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntry - the instance of this model to clear the cache for

clearCache

public void clearCache(List<AssetEntry> assetEntries)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetEntry>
Overrides:
clearCache in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntries - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(AssetEntryModelImpl assetEntryModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(AssetEntryModelImpl assetEntryModelImpl)

create

public AssetEntry create(long entryId)
Creates a new asset entry with the primary key. Does not add the asset entry to the database.

Specified by:
create in interface AssetEntryPersistence
Parameters:
entryId - the primary key for the new asset entry
Returns:
the new asset entry

remove

public AssetEntry remove(long entryId)
                  throws NoSuchEntryException
Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

remove

public AssetEntry remove(Serializable primaryKey)
                  throws NoSuchEntryException
Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetEntry>
Overrides:
remove in class BasePersistenceImpl<AssetEntry>
Parameters:
primaryKey - the primary key of the asset entry
Returns:
the asset entry that was removed
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

removeImpl

protected AssetEntry removeImpl(AssetEntry assetEntry)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntry - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public AssetEntry updateImpl(AssetEntry assetEntry)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface AssetEntryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetEntry>
Parameters:
assetEntry - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected AssetEntry toUnwrappedModel(AssetEntry assetEntry)

findByPrimaryKey

public AssetEntry findByPrimaryKey(Serializable primaryKey)
                            throws NoSuchEntryException
Returns the asset entry with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetEntry>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetEntry>
Parameters:
primaryKey - the primary key of the asset entry
Returns:
the asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

findByPrimaryKey

public AssetEntry findByPrimaryKey(long entryId)
                            throws NoSuchEntryException
Returns the asset entry with the primary key or throws a NoSuchEntryException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry
Throws:
NoSuchEntryException - if a asset entry with the primary key could not be found

fetchByPrimaryKey

public AssetEntry fetchByPrimaryKey(Serializable primaryKey)
Returns the asset entry with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetEntry>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetEntry>
Parameters:
primaryKey - the primary key of the asset entry
Returns:
the asset entry, or null if a asset entry with the primary key could not be found

fetchByPrimaryKey

public AssetEntry fetchByPrimaryKey(long entryId)
Returns the asset entry with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface AssetEntryPersistence
Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry, or null if a asset entry with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,AssetEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<AssetEntry>
Specified by:
fetchByPrimaryKeys in interface AssetEntryPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<AssetEntry>

findAll

public List<AssetEntry> findAll()
Returns all the asset entries.

Specified by:
findAll in interface AssetEntryPersistence
Returns:
the asset entries

findAll

public List<AssetEntry> findAll(int start,
                                int end)
Returns a range of all the asset entries.

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 AssetEntryModelImpl. 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.

Specified by:
findAll in interface AssetEntryPersistence
Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset entries

findAll

public List<AssetEntry> findAll(int start,
                                int end,
                                OrderByComparator<AssetEntry> orderByComparator)
Returns an ordered range of all the asset entries.

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 AssetEntryModelImpl. 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.

Specified by:
findAll in interface AssetEntryPersistence
Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset entries

findAll

public List<AssetEntry> findAll(int start,
                                int end,
                                OrderByComparator<AssetEntry> orderByComparator,
                                boolean retrieveFromCache)
Returns an ordered range of all the asset entries.

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 AssetEntryModelImpl. 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.

Specified by:
findAll in interface AssetEntryPersistence
Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of asset entries

removeAll

public void removeAll()
Removes all the asset entries from the database.

Specified by:
removeAll in interface AssetEntryPersistence

countAll

public int countAll()
Returns the number of asset entries.

Specified by:
countAll in interface AssetEntryPersistence
Returns:
the number of asset entries

getAssetCategoryPrimaryKeys

public long[] getAssetCategoryPrimaryKeys(long pk)
Returns the primaryKeys of asset categories associated with the asset entry.

Specified by:
getAssetCategoryPrimaryKeys in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
Returns:
long[] of the primaryKeys of asset categories associated with the asset entry

getAssetCategories

public List<AssetCategory> getAssetCategories(long pk)
Returns all the asset categories associated with the asset entry.

Specified by:
getAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
Returns:
the asset categories associated with the asset entry

getAssetCategories

public List<AssetCategory> getAssetCategories(long pk,
                                              int start,
                                              int end)
Returns a range of all the asset categories associated with the asset entry.

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 AssetEntryModelImpl. 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.

Specified by:
getAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset categories associated with the asset entry

getAssetCategories

public List<AssetCategory> getAssetCategories(long pk,
                                              int start,
                                              int end,
                                              OrderByComparator<AssetCategory> orderByComparator)
Returns an ordered range of all the asset categories associated with the asset entry.

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 AssetEntryModelImpl. 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.

Specified by:
getAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset categories associated with the asset entry

getAssetCategoriesSize

public int getAssetCategoriesSize(long pk)
Returns the number of asset categories associated with the asset entry.

Specified by:
getAssetCategoriesSize in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
Returns:
the number of asset categories associated with the asset entry

containsAssetCategory

public boolean containsAssetCategory(long pk,
                                     long assetCategoryPK)
Returns true if the asset category is associated with the asset entry.

Specified by:
containsAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPK - the primary key of the asset category
Returns:
true if the asset category is associated with the asset entry; false otherwise

containsAssetCategories

public boolean containsAssetCategories(long pk)
Returns true if the asset entry has any asset categories associated with it.

Specified by:
containsAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to check for associations with asset categories
Returns:
true if the asset entry has any asset categories associated with it; false otherwise

addAssetCategory

public void addAssetCategory(long pk,
                             long assetCategoryPK)
Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPK - the primary key of the asset category

addAssetCategory

public void addAssetCategory(long pk,
                             AssetCategory assetCategory)
Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategory - the asset category

addAssetCategories

public void addAssetCategories(long pk,
                               long[] assetCategoryPKs)
Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories

addAssetCategories

public void addAssetCategories(long pk,
                               List<AssetCategory> assetCategories)
Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategories - the asset categories

clearAssetCategories

public void clearAssetCategories(long pk)
Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to clear the associated asset categories from

removeAssetCategory

public void removeAssetCategory(long pk,
                                long assetCategoryPK)
Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPK - the primary key of the asset category

removeAssetCategory

public void removeAssetCategory(long pk,
                                AssetCategory assetCategory)
Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategory in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategory - the asset category

removeAssetCategories

public void removeAssetCategories(long pk,
                                  long[] assetCategoryPKs)
Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories

removeAssetCategories

public void removeAssetCategories(long pk,
                                  List<AssetCategory> assetCategories)
Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategories - the asset categories

setAssetCategories

public void setAssetCategories(long pk,
                               long[] assetCategoryPKs)
Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategoryPKs - the primary keys of the asset categories to be associated with the asset entry

setAssetCategories

public void setAssetCategories(long pk,
                               List<AssetCategory> assetCategories)
Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetCategories in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetCategories - the asset categories to be associated with the asset entry

getAssetTagPrimaryKeys

public long[] getAssetTagPrimaryKeys(long pk)
Returns the primaryKeys of asset tags associated with the asset entry.

Specified by:
getAssetTagPrimaryKeys in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
Returns:
long[] of the primaryKeys of asset tags associated with the asset entry

getAssetTags

public List<AssetTag> getAssetTags(long pk)
Returns all the asset tags associated with the asset entry.

Specified by:
getAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
Returns:
the asset tags associated with the asset entry

getAssetTags

public List<AssetTag> getAssetTags(long pk,
                                   int start,
                                   int end)
Returns a range of all the asset tags associated with the asset entry.

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 AssetEntryModelImpl. 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.

Specified by:
getAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset tags associated with the asset entry

getAssetTags

public List<AssetTag> getAssetTags(long pk,
                                   int start,
                                   int end,
                                   OrderByComparator<AssetTag> orderByComparator)
Returns an ordered range of all the asset tags associated with the asset entry.

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 AssetEntryModelImpl. 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.

Specified by:
getAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset tags associated with the asset entry

getAssetTagsSize

public int getAssetTagsSize(long pk)
Returns the number of asset tags associated with the asset entry.

Specified by:
getAssetTagsSize in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
Returns:
the number of asset tags associated with the asset entry

containsAssetTag

public boolean containsAssetTag(long pk,
                                long assetTagPK)
Returns true if the asset tag is associated with the asset entry.

Specified by:
containsAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPK - the primary key of the asset tag
Returns:
true if the asset tag is associated with the asset entry; false otherwise

containsAssetTags

public boolean containsAssetTags(long pk)
Returns true if the asset entry has any asset tags associated with it.

Specified by:
containsAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to check for associations with asset tags
Returns:
true if the asset entry has any asset tags associated with it; false otherwise

addAssetTag

public void addAssetTag(long pk,
                        long assetTagPK)
Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPK - the primary key of the asset tag

addAssetTag

public void addAssetTag(long pk,
                        AssetTag assetTag)
Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTag - the asset tag

addAssetTags

public void addAssetTags(long pk,
                         long[] assetTagPKs)
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags

addAssetTags

public void addAssetTags(long pk,
                         List<AssetTag> assetTags)
Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTags - the asset tags

clearAssetTags

public void clearAssetTags(long pk)
Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry to clear the associated asset tags from

removeAssetTag

public void removeAssetTag(long pk,
                           long assetTagPK)
Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPK - the primary key of the asset tag

removeAssetTag

public void removeAssetTag(long pk,
                           AssetTag assetTag)
Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTag in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTag - the asset tag

removeAssetTags

public void removeAssetTags(long pk,
                            long[] assetTagPKs)
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags

removeAssetTags

public void removeAssetTags(long pk,
                            List<AssetTag> assetTags)
Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTags - the asset tags

setAssetTags

public void setAssetTags(long pk,
                         long[] assetTagPKs)
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTagPKs - the primary keys of the asset tags to be associated with the asset entry

setAssetTags

public void setAssetTags(long pk,
                         List<AssetTag> assetTags)
Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetTags in interface AssetEntryPersistence
Parameters:
pk - the primary key of the asset entry
assetTags - the asset tags to be associated with the asset entry

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<AssetEntry>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset entry persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4