Class DLFileEntryMetadataPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryMetadataPersistenceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence, com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLFileEntryMetadata>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.document.library.kernel.model.DLFileEntryMetadata>

public class DLFileEntryMetadataPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException> implements com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
The persistence implementation for the document library file entry metadata 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
    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
    void
    Initializes the document library file entry metadata persistence.
    int
    countByD_F(long DDMStructureId, long fileVersionId)
    Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of document library file entry metadatas where externalReferenceCode = ? and companyId = ?.
    int
    countByFileEntryId(long fileEntryId)
    Returns the number of document library file entry metadatas where fileEntryId = ?.
    int
    countByFileVersionId(long fileVersionId)
    Returns the number of document library file entry metadatas where fileVersionId = ?.
    int
    Returns the number of document library file entry metadatas where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of document library file entry metadatas where uuid = ? and companyId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    create(long fileEntryMetadataId)
    Creates a new document library file entry metadata with the primary key.
    void
     
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByD_F(long DDMStructureId, long fileVersionId, boolean useFinderCache)
    Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByPrimaryKey(long fileEntryMetadataId)
    Returns the document library file entry metadata with the primary key or returns null if it could not be found.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where uuid = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByD_F(long DDMStructureId, long fileVersionId)
    Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
    List<com.liferay.document.library.kernel.model.DLFileEntryMetadata>
    findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
    List<com.liferay.document.library.kernel.model.DLFileEntryMetadata>
    findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByPrimaryKey(long fileEntryMetadataId)
    Returns the document library file entry metadata with the primary key or throws a NoSuchFileEntryMetadataException if it could not be found.
    List<com.liferay.document.library.kernel.model.DLFileEntryMetadata>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library file entry metadatas where uuid = ?.
    List<com.liferay.document.library.kernel.model.DLFileEntryMetadata>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library file entry metadatas where uuid = ? and companyId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
    Returns the first document library file entry metadata in the ordered set where uuid = ?.
     
    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.document.library.kernel.model.DLFileEntryMetadata
    remove(long fileEntryMetadataId)
    Removes the document library file entry metadata with the primary key from the database.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    removeByD_F(long DDMStructureId, long fileVersionId)
    Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database.
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the document library file entry metadata where externalReferenceCode = ? and companyId = ? from the database.
    void
    removeByFileEntryId(long fileEntryId)
    Removes all the document library file entry metadatas where fileEntryId = ? from the database.
    void
    removeByFileVersionId(long fileVersionId)
    Removes all the document library file entry metadatas where fileVersionId = ? from the database.
    void
    Removes all the document library file entry metadatas where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the document library file entry metadatas where uuid = ? and companyId = ? from the database.
    protected com.liferay.document.library.kernel.model.DLFileEntryMetadata
    removeImpl(com.liferay.document.library.kernel.model.DLFileEntryMetadata dlFileEntryMetadata)
     
    com.liferay.document.library.kernel.model.DLFileEntryMetadata
    updateImpl(com.liferay.document.library.kernel.model.DLFileEntryMetadata dlFileEntryMetadata)
     

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

    Methods inherited from interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence

    fetchByD_F, fetchByERC_C, findByFileEntryId, findByFileEntryId, findByFileEntryId, findByFileVersionId, findByFileVersionId, findByFileVersionId, findByUuid, findByUuid, findByUuid, findByUuid_C, findByUuid_C, findByUuid_C
  • 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
  • Constructor Details

    • DLFileEntryMetadataPersistenceImpl

      public DLFileEntryMetadataPersistenceImpl()
  • Method Details

    • findByUuid

      public List<com.liferay.document.library.kernel.model.DLFileEntryMetadata> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas 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 com.liferay.portal.kernel.dao.orm.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 DLFileEntryMetadataModelImpl.

      Specified by:
      findByUuid in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      uuid - the uuid
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (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 document library file entry metadatas
    • findByUuid_First

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

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

      public void removeByUuid(String uuid)
      Removes all the document library file entry metadatas where uuid = ? from the database.
      Specified by:
      removeByUuid in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      uuid - the uuid
    • countByUuid

      public int countByUuid(String uuid)
      Returns the number of document library file entry metadatas where uuid = ?.
      Specified by:
      countByUuid in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching document library file entry metadatas
    • findByUuid_C

      public List<com.liferay.document.library.kernel.model.DLFileEntryMetadata> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas 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 com.liferay.portal.kernel.dao.orm.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 DLFileEntryMetadataModelImpl.

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

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

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

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

      public int countByUuid_C(String uuid, long companyId)
      Returns the number of document library file entry metadatas where uuid = ? and companyId = ?.
      Specified by:
      countByUuid_C in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching document library file entry metadatas
    • findByFileEntryId

      public List<com.liferay.document.library.kernel.model.DLFileEntryMetadata> findByFileEntryId(long fileEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 DLFileEntryMetadataModelImpl.

      Specified by:
      findByFileEntryId in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (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 document library file entry metadatas
    • findByFileEntryId_First

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata findByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
      Specified by:
      findByFileEntryId_First in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
    • fetchByFileEntryId_First

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
      Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
      Specified by:
      fetchByFileEntryId_First in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • removeByFileEntryId

      public void removeByFileEntryId(long fileEntryId)
      Removes all the document library file entry metadatas where fileEntryId = ? from the database.
      Specified by:
      removeByFileEntryId in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryId - the file entry ID
    • countByFileEntryId

      public int countByFileEntryId(long fileEntryId)
      Returns the number of document library file entry metadatas where fileEntryId = ?.
      Specified by:
      countByFileEntryId in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryId - the file entry ID
      Returns:
      the number of matching document library file entry metadatas
    • findByFileVersionId

      public List<com.liferay.document.library.kernel.model.DLFileEntryMetadata> findByFileVersionId(long fileVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 DLFileEntryMetadataModelImpl.

      Specified by:
      findByFileVersionId in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (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 document library file entry metadatas
    • findByFileVersionId_First

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata findByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
      Specified by:
      findByFileVersionId_First in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
    • fetchByFileVersionId_First

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryMetadata> orderByComparator)
      Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
      Specified by:
      fetchByFileVersionId_First in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • removeByFileVersionId

      public void removeByFileVersionId(long fileVersionId)
      Removes all the document library file entry metadatas where fileVersionId = ? from the database.
      Specified by:
      removeByFileVersionId in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileVersionId - the file version ID
    • countByFileVersionId

      public int countByFileVersionId(long fileVersionId)
      Returns the number of document library file entry metadatas where fileVersionId = ?.
      Specified by:
      countByFileVersionId in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileVersionId - the file version ID
      Returns:
      the number of matching document library file entry metadatas
    • findByD_F

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
      Specified by:
      findByD_F in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the matching document library file entry metadata
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
    • fetchByD_F

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId, boolean useFinderCache)
      Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByD_F in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • removeByD_F

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata removeByD_F(long DDMStructureId, long fileVersionId) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database.
      Specified by:
      removeByD_F in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the document library file entry metadata that was removed
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
    • countByD_F

      public int countByD_F(long DDMStructureId, long fileVersionId)
      Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?.
      Specified by:
      countByD_F in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the number of matching document library file entry metadatas
    • findByERC_C

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata findByERC_C(String externalReferenceCode, long companyId) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
      Specified by:
      findByERC_C in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching document library file entry metadata
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
    • fetchByERC_C

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByERC_C in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • removeByERC_C

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata removeByERC_C(String externalReferenceCode, long companyId) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Removes the document library file entry metadata where externalReferenceCode = ? and companyId = ? from the database.
      Specified by:
      removeByERC_C in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the document library file entry metadata that was removed
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
    • countByERC_C

      public int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of document library file entry metadatas where externalReferenceCode = ? and companyId = ?.
      Specified by:
      countByERC_C in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching document library file entry metadatas
    • create

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata create(long fileEntryMetadataId)
      Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
      Specified by:
      create in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryMetadataId - the primary key for the new document library file entry metadata
      Returns:
      the new document library file entry metadata
    • remove

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata remove(long fileEntryMetadataId) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryMetadataId - the primary key of the document library file entry metadata
      Returns:
      the document library file entry metadata that was removed
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
    • removeImpl

      protected com.liferay.document.library.kernel.model.DLFileEntryMetadata removeImpl(com.liferay.document.library.kernel.model.DLFileEntryMetadata dlFileEntryMetadata)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
    • updateImpl

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata updateImpl(com.liferay.document.library.kernel.model.DLFileEntryMetadata dlFileEntryMetadata)
      Specified by:
      updateImpl in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
    • findByPrimaryKey

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId) throws com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException
      Returns the document library file entry metadata with the primary key or throws a NoSuchFileEntryMetadataException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryMetadataId - the primary key of the document library file entry metadata
      Returns:
      the document library file entry metadata
      Throws:
      com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException - if a document library file entry metadata 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.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
    • fetchByPrimaryKey

      public com.liferay.document.library.kernel.model.DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId)
      Returns the document library file entry metadata with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence
      Parameters:
      fileEntryMetadataId - the primary key of the document library file entry metadata
      Returns:
      the document library file entry metadata, or null if a document library file entry metadata with the primary key could not be found
    • getBadColumnNames

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

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>
    • 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.document.library.kernel.model.DLFileEntryMetadata>
    • getMappingTableNames

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

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

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

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

      public void afterPropertiesSet()
      Initializes the document library file entry metadata 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.document.library.kernel.model.DLFileEntryMetadata,com.liferay.document.library.kernel.exception.NoSuchFileEntryMetadataException>