Class AssetAutoTaggerEntryUtil

java.lang.Object
com.liferay.asset.auto.tagger.service.persistence.AssetAutoTaggerEntryUtil

public class AssetAutoTaggerEntryUtil extends Object
The persistence utility for the asset auto tagger entry service. This utility wraps com.liferay.asset.auto.tagger.service.persistence.impl.AssetAutoTaggerEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • AssetAutoTaggerEntryUtil

      public AssetAutoTaggerEntryUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(AssetAutoTaggerEntry assetAutoTaggerEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,AssetAutoTaggerEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<AssetAutoTaggerEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<AssetAutoTaggerEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<AssetAutoTaggerEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static AssetAutoTaggerEntry update(AssetAutoTaggerEntry assetAutoTaggerEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static AssetAutoTaggerEntry update(AssetAutoTaggerEntry assetAutoTaggerEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByAssetEntryId

      public static List<AssetAutoTaggerEntry> findByAssetEntryId(long assetEntryId)
      Returns all the asset auto tagger entries where assetEntryId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      Returns:
      the matching asset auto tagger entries
    • findByAssetEntryId

      public static List<AssetAutoTaggerEntry> findByAssetEntryId(long assetEntryId, int start, int end)
      Returns a range of all the asset auto tagger entries where assetEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      assetEntryId - the asset entry ID
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      Returns:
      the range of matching asset auto tagger entries
    • findByAssetEntryId

      public static List<AssetAutoTaggerEntry> findByAssetEntryId(long assetEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns an ordered range of all the asset auto tagger entries where assetEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      assetEntryId - the asset entry ID
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching asset auto tagger entries
    • findByAssetEntryId

      public static List<AssetAutoTaggerEntry> findByAssetEntryId(long assetEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset auto tagger entries where assetEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      assetEntryId - the asset entry ID
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset auto tagger entries
    • findByAssetEntryId_First

      public static AssetAutoTaggerEntry findByAssetEntryId_First(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator) throws NoSuchEntryException
      Returns the first asset auto tagger entry in the ordered set where assetEntryId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset auto tagger entry
      Throws:
      NoSuchEntryException - if a matching asset auto tagger entry could not be found
      NoSuchEntryException
    • fetchByAssetEntryId_First

      public static AssetAutoTaggerEntry fetchByAssetEntryId_First(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns the first asset auto tagger entry in the ordered set where assetEntryId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset auto tagger entry, or null if a matching asset auto tagger entry could not be found
    • findByAssetEntryId_Last

      public static AssetAutoTaggerEntry findByAssetEntryId_Last(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator) throws NoSuchEntryException
      Returns the last asset auto tagger entry in the ordered set where assetEntryId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching asset auto tagger entry
      Throws:
      NoSuchEntryException - if a matching asset auto tagger entry could not be found
      NoSuchEntryException
    • fetchByAssetEntryId_Last

      public static AssetAutoTaggerEntry fetchByAssetEntryId_Last(long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns the last asset auto tagger entry in the ordered set where assetEntryId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching asset auto tagger entry, or null if a matching asset auto tagger entry could not be found
    • findByAssetEntryId_PrevAndNext

      public static AssetAutoTaggerEntry[] findByAssetEntryId_PrevAndNext(long assetAutoTaggerEntryId, long assetEntryId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator) throws NoSuchEntryException
      Returns the asset auto tagger entries before and after the current asset auto tagger entry in the ordered set where assetEntryId = ?.
      Parameters:
      assetAutoTaggerEntryId - the primary key of the current asset auto tagger entry
      assetEntryId - the asset entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next asset auto tagger entry
      Throws:
      NoSuchEntryException - if a asset auto tagger entry with the primary key could not be found
      NoSuchEntryException
    • removeByAssetEntryId

      public static void removeByAssetEntryId(long assetEntryId)
      Removes all the asset auto tagger entries where assetEntryId = ? from the database.
      Parameters:
      assetEntryId - the asset entry ID
    • countByAssetEntryId

      public static int countByAssetEntryId(long assetEntryId)
      Returns the number of asset auto tagger entries where assetEntryId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      Returns:
      the number of matching asset auto tagger entries
    • findByAssetTagId

      public static List<AssetAutoTaggerEntry> findByAssetTagId(long assetTagId)
      Returns all the asset auto tagger entries where assetTagId = ?.
      Parameters:
      assetTagId - the asset tag ID
      Returns:
      the matching asset auto tagger entries
    • findByAssetTagId

      public static List<AssetAutoTaggerEntry> findByAssetTagId(long assetTagId, int start, int end)
      Returns a range of all the asset auto tagger entries where assetTagId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      assetTagId - the asset tag ID
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      Returns:
      the range of matching asset auto tagger entries
    • findByAssetTagId

      public static List<AssetAutoTaggerEntry> findByAssetTagId(long assetTagId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns an ordered range of all the asset auto tagger entries where assetTagId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      assetTagId - the asset tag ID
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching asset auto tagger entries
    • findByAssetTagId

      public static List<AssetAutoTaggerEntry> findByAssetTagId(long assetTagId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset auto tagger entries where assetTagId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      assetTagId - the asset tag ID
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching asset auto tagger entries
    • findByAssetTagId_First

      public static AssetAutoTaggerEntry findByAssetTagId_First(long assetTagId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator) throws NoSuchEntryException
      Returns the first asset auto tagger entry in the ordered set where assetTagId = ?.
      Parameters:
      assetTagId - the asset tag ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset auto tagger entry
      Throws:
      NoSuchEntryException - if a matching asset auto tagger entry could not be found
      NoSuchEntryException
    • fetchByAssetTagId_First

      public static AssetAutoTaggerEntry fetchByAssetTagId_First(long assetTagId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns the first asset auto tagger entry in the ordered set where assetTagId = ?.
      Parameters:
      assetTagId - the asset tag ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset auto tagger entry, or null if a matching asset auto tagger entry could not be found
    • findByAssetTagId_Last

      public static AssetAutoTaggerEntry findByAssetTagId_Last(long assetTagId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator) throws NoSuchEntryException
      Returns the last asset auto tagger entry in the ordered set where assetTagId = ?.
      Parameters:
      assetTagId - the asset tag ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching asset auto tagger entry
      Throws:
      NoSuchEntryException - if a matching asset auto tagger entry could not be found
      NoSuchEntryException
    • fetchByAssetTagId_Last

      public static AssetAutoTaggerEntry fetchByAssetTagId_Last(long assetTagId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns the last asset auto tagger entry in the ordered set where assetTagId = ?.
      Parameters:
      assetTagId - the asset tag ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching asset auto tagger entry, or null if a matching asset auto tagger entry could not be found
    • findByAssetTagId_PrevAndNext

      public static AssetAutoTaggerEntry[] findByAssetTagId_PrevAndNext(long assetAutoTaggerEntryId, long assetTagId, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator) throws NoSuchEntryException
      Returns the asset auto tagger entries before and after the current asset auto tagger entry in the ordered set where assetTagId = ?.
      Parameters:
      assetAutoTaggerEntryId - the primary key of the current asset auto tagger entry
      assetTagId - the asset tag ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next asset auto tagger entry
      Throws:
      NoSuchEntryException - if a asset auto tagger entry with the primary key could not be found
      NoSuchEntryException
    • removeByAssetTagId

      public static void removeByAssetTagId(long assetTagId)
      Removes all the asset auto tagger entries where assetTagId = ? from the database.
      Parameters:
      assetTagId - the asset tag ID
    • countByAssetTagId

      public static int countByAssetTagId(long assetTagId)
      Returns the number of asset auto tagger entries where assetTagId = ?.
      Parameters:
      assetTagId - the asset tag ID
      Returns:
      the number of matching asset auto tagger entries
    • findByA_A

      public static AssetAutoTaggerEntry findByA_A(long assetEntryId, long assetTagId) throws NoSuchEntryException
      Returns the asset auto tagger entry where assetEntryId = ? and assetTagId = ? or throws a NoSuchEntryException if it could not be found.
      Parameters:
      assetEntryId - the asset entry ID
      assetTagId - the asset tag ID
      Returns:
      the matching asset auto tagger entry
      Throws:
      NoSuchEntryException - if a matching asset auto tagger entry could not be found
      NoSuchEntryException
    • fetchByA_A

      public static AssetAutoTaggerEntry fetchByA_A(long assetEntryId, long assetTagId)
      Returns the asset auto tagger entry where assetEntryId = ? and assetTagId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      assetEntryId - the asset entry ID
      assetTagId - the asset tag ID
      Returns:
      the matching asset auto tagger entry, or null if a matching asset auto tagger entry could not be found
    • fetchByA_A

      public static AssetAutoTaggerEntry fetchByA_A(long assetEntryId, long assetTagId, boolean useFinderCache)
      Returns the asset auto tagger entry where assetEntryId = ? and assetTagId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      assetEntryId - the asset entry ID
      assetTagId - the asset tag ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching asset auto tagger entry, or null if a matching asset auto tagger entry could not be found
    • removeByA_A

      public static AssetAutoTaggerEntry removeByA_A(long assetEntryId, long assetTagId) throws NoSuchEntryException
      Removes the asset auto tagger entry where assetEntryId = ? and assetTagId = ? from the database.
      Parameters:
      assetEntryId - the asset entry ID
      assetTagId - the asset tag ID
      Returns:
      the asset auto tagger entry that was removed
      Throws:
      NoSuchEntryException
    • countByA_A

      public static int countByA_A(long assetEntryId, long assetTagId)
      Returns the number of asset auto tagger entries where assetEntryId = ? and assetTagId = ?.
      Parameters:
      assetEntryId - the asset entry ID
      assetTagId - the asset tag ID
      Returns:
      the number of matching asset auto tagger entries
    • cacheResult

      public static void cacheResult(AssetAutoTaggerEntry assetAutoTaggerEntry)
      Caches the asset auto tagger entry in the entity cache if it is enabled.
      Parameters:
      assetAutoTaggerEntry - the asset auto tagger entry
    • cacheResult

      public static void cacheResult(List<AssetAutoTaggerEntry> assetAutoTaggerEntries)
      Caches the asset auto tagger entries in the entity cache if it is enabled.
      Parameters:
      assetAutoTaggerEntries - the asset auto tagger entries
    • create

      public static AssetAutoTaggerEntry create(long assetAutoTaggerEntryId)
      Creates a new asset auto tagger entry with the primary key. Does not add the asset auto tagger entry to the database.
      Parameters:
      assetAutoTaggerEntryId - the primary key for the new asset auto tagger entry
      Returns:
      the new asset auto tagger entry
    • remove

      public static AssetAutoTaggerEntry remove(long assetAutoTaggerEntryId) throws NoSuchEntryException
      Removes the asset auto tagger entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      assetAutoTaggerEntryId - the primary key of the asset auto tagger entry
      Returns:
      the asset auto tagger entry that was removed
      Throws:
      NoSuchEntryException - if a asset auto tagger entry with the primary key could not be found
      NoSuchEntryException
    • updateImpl

      public static AssetAutoTaggerEntry updateImpl(AssetAutoTaggerEntry assetAutoTaggerEntry)
    • findByPrimaryKey

      public static AssetAutoTaggerEntry findByPrimaryKey(long assetAutoTaggerEntryId) throws NoSuchEntryException
      Returns the asset auto tagger entry with the primary key or throws a NoSuchEntryException if it could not be found.
      Parameters:
      assetAutoTaggerEntryId - the primary key of the asset auto tagger entry
      Returns:
      the asset auto tagger entry
      Throws:
      NoSuchEntryException - if a asset auto tagger entry with the primary key could not be found
      NoSuchEntryException
    • fetchByPrimaryKey

      public static AssetAutoTaggerEntry fetchByPrimaryKey(long assetAutoTaggerEntryId)
      Returns the asset auto tagger entry with the primary key or returns null if it could not be found.
      Parameters:
      assetAutoTaggerEntryId - the primary key of the asset auto tagger entry
      Returns:
      the asset auto tagger entry, or null if a asset auto tagger entry with the primary key could not be found
    • findAll

      public static List<AssetAutoTaggerEntry> findAll()
      Returns all the asset auto tagger entries.
      Returns:
      the asset auto tagger entries
    • findAll

      public static List<AssetAutoTaggerEntry> findAll(int start, int end)
      Returns a range of all the asset auto tagger 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, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      Returns:
      the range of asset auto tagger entries
    • findAll

      public static List<AssetAutoTaggerEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator)
      Returns an ordered range of all the asset auto tagger 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, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

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

      public static List<AssetAutoTaggerEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetAutoTaggerEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset auto tagger 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, then the query will include the default ORDER BY logic from AssetAutoTaggerEntryModelImpl.

      Parameters:
      start - the lower bound of the range of asset auto tagger entries
      end - the upper bound of the range of asset auto tagger entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of asset auto tagger entries
    • removeAll

      public static void removeAll()
      Removes all the asset auto tagger entries from the database.
    • countAll

      public static int countAll()
      Returns the number of asset auto tagger entries.
      Returns:
      the number of asset auto tagger entries
    • getPersistence

      public static AssetAutoTaggerEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(AssetAutoTaggerEntryPersistence persistence)