Class AssetTagPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
com.liferay.portlet.asset.service.persistence.impl.AssetTagPersistenceImpl
All Implemented Interfaces:
com.liferay.asset.kernel.service.persistence.AssetTagPersistence, com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>

public class AssetTagPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException> implements com.liferay.asset.kernel.service.persistence.AssetTagPersistence
The persistence implementation for the asset tag service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.liferay.asset.kernel.service.persistence.AssetEntryPersistence
     
    protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.model.AssetEntry>
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addAssetEntries(long pk, long[] assetEntryPKs)
    Adds an association between the asset tag and the asset entries.
    boolean
    addAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries)
    Adds an association between the asset tag and the asset entries.
    boolean
    addAssetEntry(long pk, long assetEntryPK)
    Adds an association between the asset tag and the asset entry.
    boolean
    addAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry)
    Adds an association between the asset tag and the asset entry.
    void
    Initializes the asset tag persistence.
    void
    Clears all associations between the asset tag and its asset entries.
    boolean
    Returns true if the asset tag has any asset entries associated with it.
    boolean
    containsAssetEntry(long pk, long assetEntryPK)
    Returns true if the asset entry is associated with the asset tag.
    int
    countByERC_G(String externalReferenceCode, long groupId)
    Returns the number of asset tags where externalReferenceCode = ? and groupId = ?.
    int
    countByG_LikeN(long[] groupIds, String name)
    Returns the number of asset tags where groupId = any ? and name LIKE ?.
    int
    countByG_LikeN(long groupId, String name)
    Returns the number of asset tags where groupId = ? and name LIKE ?.
    int
    countByG_N(long groupId, String name)
    Returns the number of asset tags where groupId = ? and name = ?.
    int
    countByGroupId(long groupId)
    Returns the number of asset tags where groupId = ?.
    int
    countByGroupId(long[] groupIds)
    Returns the number of asset tags where groupId = any ?.
    int
    Returns the number of asset tags where name = ?.
    int
    Returns the number of asset tags where name = any ?.
    int
    Returns the number of asset tags where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of asset tags where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of asset tags where uuid = ? and groupId = ?.
    com.liferay.asset.kernel.model.AssetTag
    create(long tagId)
    Creates a new asset tag with the primary key.
    void
     
    com.liferay.asset.kernel.model.AssetTag
    fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
    Returns the asset tag where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.asset.kernel.model.AssetTag
    fetchByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.
    com.liferay.asset.kernel.model.AssetTag
    fetchByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where groupId = ? and name = ?.
    com.liferay.asset.kernel.model.AssetTag
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where groupId = ?.
    com.liferay.asset.kernel.model.AssetTag
    fetchByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where name = ?.
    com.liferay.asset.kernel.model.AssetTag
    fetchByPrimaryKey(long tagId)
    Returns the asset tag with the primary key or returns null if it could not be found.
    com.liferay.asset.kernel.model.AssetTag
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.
    com.liferay.asset.kernel.model.AssetTag
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where uuid = ?.
    com.liferay.asset.kernel.model.AssetTag
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the asset tag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.asset.kernel.model.AssetTag
    findByERC_G(String externalReferenceCode, long groupId)
    Returns the asset tag where externalReferenceCode = ? and groupId = ? or throws a NoSuchTagException if it could not be found.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long[] groupIds, String name)
    Returns all the asset tags where groupId = any ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long[] groupIds, String name, int start, int end)
    Returns a range of all the asset tags where groupId = any ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns an ordered range of all the asset tags where groupId = any ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long groupId, String name)
    Returns all the asset tags where groupId = ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long groupId, String name, int start, int end)
    Returns a range of all the asset tags where groupId = ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.
    com.liferay.asset.kernel.model.AssetTag
    findByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where groupId = ? and name = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where groupId = ? and name = ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where groupId = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where groupId = ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByName(String[] names, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where name = ?, optionally using the finder cache.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByName(String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where name = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where name = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByPrimaryKey(long tagId)
    Returns the asset tag with the primary key or throws a NoSuchTagException if it could not be found.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where uuid = ?.
    List<com.liferay.asset.kernel.model.AssetTag>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the asset tags where uuid = ? and companyId = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
    Returns the first asset tag in the ordered set where uuid = ?.
    com.liferay.asset.kernel.model.AssetTag
    findByUUID_G(String uuid, long groupId)
    Returns the asset tag where uuid = ? and groupId = ? or throws a NoSuchTagException if it could not be found.
    List<com.liferay.asset.kernel.model.AssetEntry>
    getAssetEntries(long pk)
    Returns all the asset entries associated with the asset tag.
    List<com.liferay.asset.kernel.model.AssetEntry>
    getAssetEntries(long pk, int start, int end)
    Returns a range of all the asset entries associated with the asset tag.
    List<com.liferay.asset.kernel.model.AssetEntry>
    getAssetEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator)
    Returns an ordered range of all the asset entries associated with the asset tag.
    int
    Returns the number of asset entries associated with the asset tag.
    long[]
    Returns the primaryKeys of asset entries associated with the asset tag.
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.asset.kernel.model.AssetTag
    remove(long tagId)
    Removes the asset tag with the primary key from the database.
    void
    removeAssetEntries(long pk, long[] assetEntryPKs)
    Removes the association between the asset tag and the asset entries.
    void
    removeAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries)
    Removes the association between the asset tag and the asset entries.
    void
    removeAssetEntry(long pk, long assetEntryPK)
    Removes the association between the asset tag and the asset entry.
    void
    removeAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry)
    Removes the association between the asset tag and the asset entry.
    com.liferay.asset.kernel.model.AssetTag
    removeByERC_G(String externalReferenceCode, long groupId)
    Removes the asset tag where externalReferenceCode = ? and groupId = ? from the database.
    void
    removeByG_LikeN(long groupId, String name)
    Removes all the asset tags where groupId = ? and name LIKE ? from the database.
    void
    removeByG_N(long groupId, String name)
    Removes all the asset tags where groupId = ? and name = ? from the database.
    void
    removeByGroupId(long groupId)
    Removes all the asset tags where groupId = ? from the database.
    void
    Removes all the asset tags where name = ? from the database.
    void
    Removes all the asset tags where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the asset tags where uuid = ? and companyId = ? from the database.
    com.liferay.asset.kernel.model.AssetTag
    removeByUUID_G(String uuid, long groupId)
    Removes the asset tag where uuid = ? and groupId = ? from the database.
    protected com.liferay.asset.kernel.model.AssetTag
    removeImpl(com.liferay.asset.kernel.model.AssetTag assetTag)
     
    void
    setAssetEntries(long pk, long[] assetEntryPKs)
    Sets the asset entries associated with the asset tag, removing and adding associations as necessary.
    void
    setAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries)
    Sets the asset entries associated with the asset tag, removing and adding associations as necessary.
    com.liferay.asset.kernel.model.AssetTag
    updateImpl(com.liferay.asset.kernel.model.AssetTag assetTag)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence

    fetchByERC_G, fetchByUUID_G, findByG_N, findByG_N, findByG_N, findByGroupId, findByGroupId, findByGroupId, findByGroupId, findByGroupId, findByGroupId, findByName, findByName, findByName, findByName, findByName, findByName, findByUuid, findByUuid, findByUuid, findByUuid_C, findByUuid_C, findByUuid_C

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Field Details

    • 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
    • assetEntryPersistence

      @BeanReference(type=com.liferay.asset.kernel.service.persistence.AssetEntryPersistence.class) protected com.liferay.asset.kernel.service.persistence.AssetEntryPersistence assetEntryPersistence
    • assetTagToAssetEntryTableMapper

      protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.model.AssetEntry> assetTagToAssetEntryTableMapper
  • Constructor Details

    • AssetTagPersistenceImpl

      public AssetTagPersistenceImpl()
  • Method Details

    • findByUuid

      public List<com.liferay.asset.kernel.model.AssetTag> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where uuid = ?.

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

      Specified by:
      findByUuid in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • findByUuid_First

      public com.liferay.asset.kernel.model.AssetTag findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the first asset tag in the ordered set where uuid = ?.
      Specified by:
      findByUuid_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByUuid_First

      public com.liferay.asset.kernel.model.AssetTag fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns the first asset tag in the ordered set where uuid = ?.
      Specified by:
      fetchByUuid_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag, or null if a matching asset tag could not be found
    • removeByUuid

      public void removeByUuid(String uuid)
      Removes all the asset tags where uuid = ? from the database.
      Specified by:
      removeByUuid in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
    • countByUuid

      public int countByUuid(String uuid)
      Returns the number of asset tags where uuid = ?.
      Specified by:
      countByUuid in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching asset tags
    • findByUUID_G

      public com.liferay.asset.kernel.model.AssetTag findByUUID_G(String uuid, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the asset tag where uuid = ? and groupId = ? or throws a NoSuchTagException if it could not be found.
      Specified by:
      findByUUID_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByUUID_G

      public com.liferay.asset.kernel.model.AssetTag fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the asset tag where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByUUID_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching asset tag, or null if a matching asset tag could not be found
    • removeByUUID_G

      public com.liferay.asset.kernel.model.AssetTag removeByUUID_G(String uuid, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Removes the asset tag where uuid = ? and groupId = ? from the database.
      Specified by:
      removeByUUID_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the asset tag that was removed
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException
    • countByUUID_G

      public int countByUUID_G(String uuid, long groupId)
      Returns the number of asset tags where uuid = ? and groupId = ?.
      Specified by:
      countByUUID_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching asset tags
    • findByUuid_C

      public List<com.liferay.asset.kernel.model.AssetTag> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where uuid = ? and 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, then the query will include the default ORDER BY logic from AssetTagModelImpl.

      Specified by:
      findByUuid_C in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • findByUuid_C_First

      public com.liferay.asset.kernel.model.AssetTag findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByUuid_C_First

      public com.liferay.asset.kernel.model.AssetTag fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns the first asset tag in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      fetchByUuid_C_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag, or null if a matching asset tag could not be found
    • removeByUuid_C

      public void removeByUuid_C(String uuid, long companyId)
      Removes all the asset tags where uuid = ? and companyId = ? from the database.
      Specified by:
      removeByUuid_C in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public int countByUuid_C(String uuid, long companyId)
      Returns the number of asset tags where uuid = ? and companyId = ?.
      Specified by:
      countByUuid_C in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching asset tags
    • findByGroupId

      public List<com.liferay.asset.kernel.model.AssetTag> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags 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, then the query will include the default ORDER BY logic from AssetTagModelImpl.

      Specified by:
      findByGroupId in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • findByGroupId_First

      public com.liferay.asset.kernel.model.AssetTag findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the first asset tag in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByGroupId_First

      public com.liferay.asset.kernel.model.AssetTag fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns the first asset tag in the ordered set where groupId = ?.
      Specified by:
      fetchByGroupId_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag, or null if a matching asset tag could not be found
    • findByGroupId

      public List<com.liferay.asset.kernel.model.AssetTag> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where groupId = ?, optionally using the finder cache.

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

      Specified by:
      findByGroupId in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • removeByGroupId

      public void removeByGroupId(long groupId)
      Removes all the asset tags where groupId = ? from the database.
      Specified by:
      removeByGroupId in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
    • countByGroupId

      public int countByGroupId(long groupId)
      Returns the number of asset tags where groupId = ?.
      Specified by:
      countByGroupId in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching asset tags
    • countByGroupId

      public int countByGroupId(long[] groupIds)
      Returns the number of asset tags where groupId = any ?.
      Specified by:
      countByGroupId in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      Returns:
      the number of matching asset tags
    • findByName

      public List<com.liferay.asset.kernel.model.AssetTag> findByName(String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where name = ?.

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

      Specified by:
      findByName in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • findByName_First

      public com.liferay.asset.kernel.model.AssetTag findByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the first asset tag in the ordered set where name = ?.
      Specified by:
      findByName_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByName_First

      public com.liferay.asset.kernel.model.AssetTag fetchByName_First(String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns the first asset tag in the ordered set where name = ?.
      Specified by:
      fetchByName_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag, or null if a matching asset tag could not be found
    • findByName

      public List<com.liferay.asset.kernel.model.AssetTag> findByName(String[] names, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where name = ?, optionally using the finder cache.

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

      Specified by:
      findByName in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      names - the names
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • removeByName

      public void removeByName(String name)
      Removes all the asset tags where name = ? from the database.
      Specified by:
      removeByName in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      name - the name
    • countByName

      public int countByName(String name)
      Returns the number of asset tags where name = ?.
      Specified by:
      countByName in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      name - the name
      Returns:
      the number of matching asset tags
    • countByName

      public int countByName(String[] names)
      Returns the number of asset tags where name = any ?.
      Specified by:
      countByName in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      names - the names
      Returns:
      the number of matching asset tags
    • findByG_N

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_N(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where groupId = ? and name = ?.

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

      Specified by:
      findByG_N in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • findByG_N_First

      public com.liferay.asset.kernel.model.AssetTag findByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the first asset tag in the ordered set where groupId = ? and name = ?.
      Specified by:
      findByG_N_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByG_N_First

      public com.liferay.asset.kernel.model.AssetTag fetchByG_N_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns the first asset tag in the ordered set where groupId = ? and name = ?.
      Specified by:
      fetchByG_N_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag, or null if a matching asset tag could not be found
    • removeByG_N

      public void removeByG_N(long groupId, String name)
      Removes all the asset tags where groupId = ? and name = ? from the database.
      Specified by:
      removeByG_N in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
    • countByG_N

      public int countByG_N(long groupId, String name)
      Returns the number of asset tags where groupId = ? and name = ?.
      Specified by:
      countByG_N in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the number of matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name)
      Returns all the asset tags where groupId = ? and name LIKE ?.
      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name, int start, int end)
      Returns a range of all the asset tags where groupId = ? and name LIKE ?.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      Returns:
      the range of matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • findByG_LikeN_First

      public com.liferay.asset.kernel.model.AssetTag findByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.
      Specified by:
      findByG_LikeN_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByG_LikeN_First

      public com.liferay.asset.kernel.model.AssetTag fetchByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns the first asset tag in the ordered set where groupId = ? and name LIKE ?.
      Specified by:
      fetchByG_LikeN_First in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching asset tag, or null if a matching asset tag could not be found
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name)
      Returns all the asset tags where groupId = any ? and name LIKE ?.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      name - the name
      Returns:
      the matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end)
      Returns a range of all the asset tags where groupId = any ? and name LIKE ?.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      Returns:
      the range of matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator)
      Returns an ordered range of all the asset tags where groupId = any ? and name LIKE ?.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching asset tags
    • findByG_LikeN

      public List<com.liferay.asset.kernel.model.AssetTag> findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the asset tags where groupId = ? and name LIKE ?, optionally using the finder cache.

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

      Specified by:
      findByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      name - the name
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (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 tags
    • removeByG_LikeN

      public void removeByG_LikeN(long groupId, String name)
      Removes all the asset tags where groupId = ? and name LIKE ? from the database.
      Specified by:
      removeByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
    • countByG_LikeN

      public int countByG_LikeN(long groupId, String name)
      Returns the number of asset tags where groupId = ? and name LIKE ?.
      Specified by:
      countByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the number of matching asset tags
    • countByG_LikeN

      public int countByG_LikeN(long[] groupIds, String name)
      Returns the number of asset tags where groupId = any ? and name LIKE ?.
      Specified by:
      countByG_LikeN in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      groupIds - the group IDs
      name - the name
      Returns:
      the number of matching asset tags
    • findByERC_G

      public com.liferay.asset.kernel.model.AssetTag findByERC_G(String externalReferenceCode, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the asset tag where externalReferenceCode = ? and groupId = ? or throws a NoSuchTagException if it could not be found.
      Specified by:
      findByERC_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a matching asset tag could not be found
    • fetchByERC_G

      public com.liferay.asset.kernel.model.AssetTag fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the asset tag where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByERC_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching asset tag, or null if a matching asset tag could not be found
    • removeByERC_G

      public com.liferay.asset.kernel.model.AssetTag removeByERC_G(String externalReferenceCode, long groupId) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Removes the asset tag where externalReferenceCode = ? and groupId = ? from the database.
      Specified by:
      removeByERC_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the asset tag that was removed
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException
    • countByERC_G

      public int countByERC_G(String externalReferenceCode, long groupId)
      Returns the number of asset tags where externalReferenceCode = ? and groupId = ?.
      Specified by:
      countByERC_G in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the number of matching asset tags
    • create

      public com.liferay.asset.kernel.model.AssetTag create(long tagId)
      Creates a new asset tag with the primary key. Does not add the asset tag to the database.
      Specified by:
      create in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      tagId - the primary key for the new asset tag
      Returns:
      the new asset tag
    • remove

      public com.liferay.asset.kernel.model.AssetTag remove(long tagId) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      tagId - the primary key of the asset tag
      Returns:
      the asset tag that was removed
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a asset tag with the primary key could not be found
    • removeImpl

      protected com.liferay.asset.kernel.model.AssetTag removeImpl(com.liferay.asset.kernel.model.AssetTag assetTag)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • updateImpl

      public com.liferay.asset.kernel.model.AssetTag updateImpl(com.liferay.asset.kernel.model.AssetTag assetTag)
      Specified by:
      updateImpl in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • findByPrimaryKey

      public com.liferay.asset.kernel.model.AssetTag findByPrimaryKey(long tagId) throws com.liferay.asset.kernel.exception.NoSuchTagException
      Returns the asset tag with the primary key or throws a NoSuchTagException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      tagId - the primary key of the asset tag
      Returns:
      the asset tag
      Throws:
      com.liferay.asset.kernel.exception.NoSuchTagException - if a asset tag with the primary key could not be found
    • getCTPersistenceHelper

      protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()
      Overrides:
      getCTPersistenceHelper in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • fetchByPrimaryKey

      public com.liferay.asset.kernel.model.AssetTag fetchByPrimaryKey(long tagId)
      Returns the asset tag with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      tagId - the primary key of the asset tag
      Returns:
      the asset tag, or null if a asset tag with the primary key could not be found
    • getAssetEntryPrimaryKeys

      public long[] getAssetEntryPrimaryKeys(long pk)
      Returns the primaryKeys of asset entries associated with the asset tag.
      Specified by:
      getAssetEntryPrimaryKeys in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      Returns:
      long[] of the primaryKeys of asset entries associated with the asset tag
    • getAssetEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(long pk)
      Returns all the asset entries associated with the asset tag.
      Specified by:
      getAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      Returns:
      the asset entries associated with the asset tag
    • getAssetEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(long pk, int start, int end)
      Returns a range of all the asset entries associated with the asset tag.

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

      Specified by:
      getAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      Returns:
      the range of asset entries associated with the asset tag
    • getAssetEntries

      public List<com.liferay.asset.kernel.model.AssetEntry> getAssetEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetEntry> orderByComparator)
      Returns an ordered range of all the asset entries associated with the asset tag.

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

      Specified by:
      getAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of asset entries associated with the asset tag
    • getAssetEntriesSize

      public int getAssetEntriesSize(long pk)
      Returns the number of asset entries associated with the asset tag.
      Specified by:
      getAssetEntriesSize in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      Returns:
      the number of asset entries associated with the asset tag
    • containsAssetEntry

      public boolean containsAssetEntry(long pk, long assetEntryPK)
      Returns true if the asset entry is associated with the asset tag.
      Specified by:
      containsAssetEntry in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntryPK - the primary key of the asset entry
      Returns:
      true if the asset entry is associated with the asset tag; false otherwise
    • containsAssetEntries

      public boolean containsAssetEntries(long pk)
      Returns true if the asset tag has any asset entries associated with it.
      Specified by:
      containsAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag to check for associations with asset entries
      Returns:
      true if the asset tag has any asset entries associated with it; false otherwise
    • addAssetEntry

      public boolean addAssetEntry(long pk, long assetEntryPK)
      Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      addAssetEntry in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntryPK - the primary key of the asset entry
      Returns:
      true if an association between the asset tag and the asset entry was added; false if they were already associated
    • addAssetEntry

      public boolean addAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry)
      Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      addAssetEntry in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntry - the asset entry
      Returns:
      true if an association between the asset tag and the asset entry was added; false if they were already associated
    • addAssetEntries

      public boolean addAssetEntries(long pk, long[] assetEntryPKs)
      Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      addAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntryPKs - the primary keys of the asset entries
      Returns:
      true if at least one association between the asset tag and the asset entries was added; false if they were all already associated
    • addAssetEntries

      public boolean addAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries)
      Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      addAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntries - the asset entries
      Returns:
      true if at least one association between the asset tag and the asset entries was added; false if they were all already associated
    • clearAssetEntries

      public void clearAssetEntries(long pk)
      Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      clearAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag to clear the associated asset entries from
    • removeAssetEntry

      public void removeAssetEntry(long pk, long assetEntryPK)
      Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      removeAssetEntry in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntryPK - the primary key of the asset entry
    • removeAssetEntry

      public void removeAssetEntry(long pk, com.liferay.asset.kernel.model.AssetEntry assetEntry)
      Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      removeAssetEntry in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntry - the asset entry
    • removeAssetEntries

      public void removeAssetEntries(long pk, long[] assetEntryPKs)
      Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      removeAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntryPKs - the primary keys of the asset entries
    • removeAssetEntries

      public void removeAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries)
      Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      removeAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntries - the asset entries
    • setAssetEntries

      public void setAssetEntries(long pk, long[] assetEntryPKs)
      Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      setAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntryPKs - the primary keys of the asset entries to be associated with the asset tag
    • setAssetEntries

      public void setAssetEntries(long pk, List<com.liferay.asset.kernel.model.AssetEntry> assetEntries)
      Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      setAssetEntries in interface com.liferay.asset.kernel.service.persistence.AssetTagPersistence
      Parameters:
      pk - the primary key of the asset tag
      assetEntries - the asset entries to be associated with the asset tag
    • getBadColumnNames

      public Set<String> getBadColumnNames()
      Specified by:
      getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag>
      Overrides:
      getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • getCTColumnNames

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
      Overrides:
      getTableName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the asset tag persistence.
    • destroy

      public void destroy()
    • getFinderCache

      protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
      Overrides:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.asset.kernel.model.AssetTag,com.liferay.asset.kernel.exception.NoSuchTagException>