Class RepositoryPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
com.liferay.portal.service.persistence.impl.RepositoryPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Repository>, com.liferay.portal.kernel.service.persistence.RepositoryPersistence

public class RepositoryPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository> implements com.liferay.portal.kernel.service.persistence.RepositoryPersistence
The persistence implementation for the repository 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 repository persistence.
    void
    cacheResult(com.liferay.portal.kernel.model.Repository repository)
    Caches the repository in the entity cache if it is enabled.
    void
    cacheResult(List<com.liferay.portal.kernel.model.Repository> repositories)
    Caches the repositories in the entity cache if it is enabled.
    protected void
     
    void
    Clears the cache for all repositories.
    void
    clearCache(com.liferay.portal.kernel.model.Repository repository)
    Clears the cache for the repository.
    void
    clearCache(List<com.liferay.portal.kernel.model.Repository> repositories)
     
    void
    clearCache(Set<Serializable> primaryKeys)
     
    int
    Returns the number of repositories.
    int
    countByERC_G(String externalReferenceCode, long groupId)
    Returns the number of repositories where externalReferenceCode = ? and groupId = ?.
    int
    countByG_N_P(long groupId, String name, String portletId)
    Returns the number of repositories where groupId = ? and name = ? and portletId = ?.
    int
    countByGroupId(long groupId)
    Returns the number of repositories where groupId = ?.
    int
    Returns the number of repositories where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of repositories where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of repositories where uuid = ? and groupId = ?.
    com.liferay.portal.kernel.model.Repository
    create(long repositoryId)
    Creates a new repository with the primary key.
    void
     
    com.liferay.portal.kernel.model.Repository
    fetchByERC_G(String externalReferenceCode, long groupId)
    Returns the repository where externalReferenceCode = ? and groupId = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.Repository
    fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
    Returns the repository where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.Repository
    fetchByG_N_P(long groupId, String name, String portletId)
    Returns the repository where groupId = ? and name = ? and portletId = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.Repository
    fetchByG_N_P(long groupId, String name, String portletId, boolean useFinderCache)
    Returns the repository where groupId = ? and name = ? and portletId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.Repository
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the first repository in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Repository
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the last repository in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Repository
    fetchByPrimaryKey(long repositoryId)
    Returns the repository with the primary key or returns null if it could not be found.
    com.liferay.portal.kernel.model.Repository
    Returns the repository with the primary key or returns null if it could not be found.
    Map<Serializable,com.liferay.portal.kernel.model.Repository>
     
    com.liferay.portal.kernel.model.Repository
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the first repository in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Repository
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the last repository in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Repository
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the first repository in the ordered set where uuid = ?.
    com.liferay.portal.kernel.model.Repository
    fetchByUUID_G(String uuid, long groupId)
    Returns the repository where uuid = ? and groupId = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.Repository
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the repository where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.Repository
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the last repository in the ordered set where uuid = ?.
    List<com.liferay.portal.kernel.model.Repository>
    Returns all the repositories.
    List<com.liferay.portal.kernel.model.Repository>
    findAll(int start, int end)
    Returns a range of all the repositories.
    List<com.liferay.portal.kernel.model.Repository>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns an ordered range of all the repositories.
    List<com.liferay.portal.kernel.model.Repository>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the repositories.
    com.liferay.portal.kernel.model.Repository
    findByERC_G(String externalReferenceCode, long groupId)
    Returns the repository where externalReferenceCode = ? and groupId = ? or throws a NoSuchRepositoryException if it could not be found.
    com.liferay.portal.kernel.model.Repository
    findByG_N_P(long groupId, String name, String portletId)
    Returns the repository where groupId = ? and name = ? and portletId = ? or throws a NoSuchRepositoryException if it could not be found.
    List<com.liferay.portal.kernel.model.Repository>
    findByGroupId(long groupId)
    Returns all the repositories where groupId = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the repositories where groupId = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns an ordered range of all the repositories where groupId = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the repositories where groupId = ?.
    com.liferay.portal.kernel.model.Repository
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the first repository in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Repository
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the last repository in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Repository[]
    findByGroupId_PrevAndNext(long repositoryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the repositories before and after the current repository in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Repository
    findByPrimaryKey(long repositoryId)
    Returns the repository with the primary key or throws a NoSuchRepositoryException if it could not be found.
    com.liferay.portal.kernel.model.Repository
    Returns the repository with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
    List<com.liferay.portal.kernel.model.Repository>
    Returns all the repositories where uuid = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the repositories where uuid = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns an ordered range of all the repositories where uuid = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the repositories where uuid = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid_C(String uuid, long companyId)
    Returns all the repositories where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the repositories where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns an ordered range of all the repositories where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.Repository>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the repositories where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Repository
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the first repository in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Repository
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the last repository in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Repository[]
    findByUuid_C_PrevAndNext(long repositoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the repositories before and after the current repository in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Repository
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the first repository in the ordered set where uuid = ?.
    com.liferay.portal.kernel.model.Repository
    findByUUID_G(String uuid, long groupId)
    Returns the repository where uuid = ? and groupId = ? or throws a NoSuchRepositoryException if it could not be found.
    com.liferay.portal.kernel.model.Repository
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the last repository in the ordered set where uuid = ?.
    com.liferay.portal.kernel.model.Repository[]
    findByUuid_PrevAndNext(long repositoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
    Returns the repositories before and after the current repository in the ordered set where uuid = ?.
     
    protected com.liferay.portal.kernel.model.Repository
    getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Repository repository, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.Repository
    getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Repository repository, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.Repository
    getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Repository repository, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean previous)
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.portal.kernel.model.Repository
    remove(long repositoryId)
    Removes the repository with the primary key from the database.
    com.liferay.portal.kernel.model.Repository
    remove(Serializable primaryKey)
    Removes the repository with the primary key from the database.
    void
    Removes all the repositories from the database.
    com.liferay.portal.kernel.model.Repository
    removeByERC_G(String externalReferenceCode, long groupId)
    Removes the repository where externalReferenceCode = ? and groupId = ? from the database.
    com.liferay.portal.kernel.model.Repository
    removeByG_N_P(long groupId, String name, String portletId)
    Removes the repository where groupId = ? and name = ? and portletId = ? from the database.
    void
    removeByGroupId(long groupId)
    Removes all the repositories where groupId = ? from the database.
    void
    Removes all the repositories where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the repositories where uuid = ? and companyId = ? from the database.
    com.liferay.portal.kernel.model.Repository
    removeByUUID_G(String uuid, long groupId)
    Removes the repository where uuid = ? and groupId = ? from the database.
    protected com.liferay.portal.kernel.model.Repository
    removeImpl(com.liferay.portal.kernel.model.Repository repository)
     
    com.liferay.portal.kernel.model.Repository
    updateImpl(com.liferay.portal.kernel.model.Repository repository)
     

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

    appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, 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

    closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, 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
  • Constructor Details

    • RepositoryPersistenceImpl

      public RepositoryPersistenceImpl()
  • Method Details

    • findByUuid

      public List<com.liferay.portal.kernel.model.Repository> findByUuid(String uuid)
      Returns all the repositories where uuid = ?.
      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the matching repositories
    • findByUuid

      public List<com.liferay.portal.kernel.model.Repository> findByUuid(String uuid, int start, int end)
      Returns a range of all the repositories 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 RepositoryModelImpl.

      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      Returns:
      the range of matching repositories
    • findByUuid

      public List<com.liferay.portal.kernel.model.Repository> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
      Returns an ordered range of all the repositories 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 RepositoryModelImpl.

      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching repositories
    • findByUuid

      public List<com.liferay.portal.kernel.model.Repository> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the repositories 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 RepositoryModelImpl.

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

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

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

      public com.liferay.portal.kernel.model.Repository findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the last repository in the ordered set where uuid = ?.
      Specified by:
      findByUuid_Last in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a matching repository could not be found
    • fetchByUuid_Last

      public com.liferay.portal.kernel.model.Repository fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
      Returns the last repository in the ordered set where uuid = ?.
      Specified by:
      fetchByUuid_Last in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching repository, or null if a matching repository could not be found
    • findByUuid_PrevAndNext

      public com.liferay.portal.kernel.model.Repository[] findByUuid_PrevAndNext(long repositoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the repositories before and after the current repository in the ordered set where uuid = ?.
      Specified by:
      findByUuid_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key of the current repository
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • getByUuid_PrevAndNext

      protected com.liferay.portal.kernel.model.Repository getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Repository repository, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean previous)
    • removeByUuid

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

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

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

      public com.liferay.portal.kernel.model.Repository fetchByUUID_G(String uuid, long groupId)
      Returns the repository where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByUUID_G in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching repository, or null if a matching repository could not be found
    • fetchByUUID_G

      public com.liferay.portal.kernel.model.Repository fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the repository 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.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching repository, or null if a matching repository could not be found
    • removeByUUID_G

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

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

      public List<com.liferay.portal.kernel.model.Repository> findByUuid_C(String uuid, long companyId)
      Returns all the repositories where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching repositories
    • findByUuid_C

      public List<com.liferay.portal.kernel.model.Repository> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the repositories 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 RepositoryModelImpl.

      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      Returns:
      the range of matching repositories
    • findByUuid_C

      public List<com.liferay.portal.kernel.model.Repository> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
      Returns an ordered range of all the repositories 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 RepositoryModelImpl.

      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching repositories
    • findByUuid_C

      public List<com.liferay.portal.kernel.model.Repository> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the repositories 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 RepositoryModelImpl.

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

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

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

      public com.liferay.portal.kernel.model.Repository findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the last repository in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_Last in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a matching repository could not be found
    • fetchByUuid_C_Last

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

      public com.liferay.portal.kernel.model.Repository[] findByUuid_C_PrevAndNext(long repositoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the repositories before and after the current repository in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key of the current repository
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • getByUuid_C_PrevAndNext

      protected com.liferay.portal.kernel.model.Repository getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Repository repository, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean previous)
    • removeByUuid_C

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

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

      public List<com.liferay.portal.kernel.model.Repository> findByGroupId(long groupId)
      Returns all the repositories where groupId = ?.
      Specified by:
      findByGroupId in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the matching repositories
    • findByGroupId

      public List<com.liferay.portal.kernel.model.Repository> findByGroupId(long groupId, int start, int end)
      Returns a range of all the repositories 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 RepositoryModelImpl.

      Specified by:
      findByGroupId in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      Returns:
      the range of matching repositories
    • findByGroupId

      public List<com.liferay.portal.kernel.model.Repository> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
      Returns an ordered range of all the repositories 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 RepositoryModelImpl.

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

      public List<com.liferay.portal.kernel.model.Repository> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the repositories 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 RepositoryModelImpl.

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

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

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

      public com.liferay.portal.kernel.model.Repository findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the last repository in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_Last in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a matching repository could not be found
    • fetchByGroupId_Last

      public com.liferay.portal.kernel.model.Repository fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
      Returns the last repository in the ordered set where groupId = ?.
      Specified by:
      fetchByGroupId_Last in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching repository, or null if a matching repository could not be found
    • findByGroupId_PrevAndNext

      public com.liferay.portal.kernel.model.Repository[] findByGroupId_PrevAndNext(long repositoryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the repositories before and after the current repository in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key of the current repository
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • getByGroupId_PrevAndNext

      protected com.liferay.portal.kernel.model.Repository getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Repository repository, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean previous)
    • removeByGroupId

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

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

      public com.liferay.portal.kernel.model.Repository findByG_N_P(long groupId, String name, String portletId) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the repository where groupId = ? and name = ? and portletId = ? or throws a NoSuchRepositoryException if it could not be found.
      Specified by:
      findByG_N_P in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      name - the name
      portletId - the portlet ID
      Returns:
      the matching repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a matching repository could not be found
    • fetchByG_N_P

      public com.liferay.portal.kernel.model.Repository fetchByG_N_P(long groupId, String name, String portletId)
      Returns the repository where groupId = ? and name = ? and portletId = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByG_N_P in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      name - the name
      portletId - the portlet ID
      Returns:
      the matching repository, or null if a matching repository could not be found
    • fetchByG_N_P

      public com.liferay.portal.kernel.model.Repository fetchByG_N_P(long groupId, String name, String portletId, boolean useFinderCache)
      Returns the repository where groupId = ? and name = ? and portletId = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByG_N_P in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      name - the name
      portletId - the portlet ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching repository, or null if a matching repository could not be found
    • removeByG_N_P

      public com.liferay.portal.kernel.model.Repository removeByG_N_P(long groupId, String name, String portletId) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Removes the repository where groupId = ? and name = ? and portletId = ? from the database.
      Specified by:
      removeByG_N_P in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      name - the name
      portletId - the portlet ID
      Returns:
      the repository that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException
    • countByG_N_P

      public int countByG_N_P(long groupId, String name, String portletId)
      Returns the number of repositories where groupId = ? and name = ? and portletId = ?.
      Specified by:
      countByG_N_P in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      groupId - the group ID
      name - the name
      portletId - the portlet ID
      Returns:
      the number of matching repositories
    • findByERC_G

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

      public com.liferay.portal.kernel.model.Repository fetchByERC_G(String externalReferenceCode, long groupId)
      Returns the repository where externalReferenceCode = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByERC_G in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching repository, or null if a matching repository could not be found
    • fetchByERC_G

      public com.liferay.portal.kernel.model.Repository fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the repository 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.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching repository, or null if a matching repository could not be found
    • removeByERC_G

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

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

      public void cacheResult(com.liferay.portal.kernel.model.Repository repository)
      Caches the repository in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Overrides:
      cacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
      Parameters:
      repository - the repository
    • cacheResult

      public void cacheResult(List<com.liferay.portal.kernel.model.Repository> repositories)
      Caches the repositories in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositories - the repositories
    • clearCache

      public void clearCache()
      Clears the cache for all repositories.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • clearCache

      public void clearCache(com.liferay.portal.kernel.model.Repository repository)
      Clears the cache for the repository.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • clearCache

      public void clearCache(List<com.liferay.portal.kernel.model.Repository> repositories)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • clearCache

      public void clearCache(Set<Serializable> primaryKeys)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
    • cacheUniqueFindersCache

      protected void cacheUniqueFindersCache(RepositoryModelImpl repositoryModelImpl)
    • create

      public com.liferay.portal.kernel.model.Repository create(long repositoryId)
      Creates a new repository with the primary key. Does not add the repository to the database.
      Specified by:
      create in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key for the new repository
      Returns:
      the new repository
    • remove

      public com.liferay.portal.kernel.model.Repository remove(long repositoryId) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Removes the repository with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key of the repository
      Returns:
      the repository that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • remove

      public com.liferay.portal.kernel.model.Repository remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Removes the repository with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
      Parameters:
      primaryKey - the primary key of the repository
      Returns:
      the repository that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • removeImpl

      protected com.liferay.portal.kernel.model.Repository removeImpl(com.liferay.portal.kernel.model.Repository repository)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • updateImpl

      public com.liferay.portal.kernel.model.Repository updateImpl(com.liferay.portal.kernel.model.Repository repository)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.Repository findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the repository with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
      Parameters:
      primaryKey - the primary key of the repository
      Returns:
      the repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.Repository findByPrimaryKey(long repositoryId) throws com.liferay.portal.kernel.exception.NoSuchRepositoryException
      Returns the repository with the primary key or throws a NoSuchRepositoryException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key of the repository
      Returns:
      the repository
      Throws:
      com.liferay.portal.kernel.exception.NoSuchRepositoryException - if a repository with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.Repository fetchByPrimaryKey(Serializable primaryKey)
      Returns the repository with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
      Parameters:
      primaryKey - the primary key of the repository
      Returns:
      the repository, or null if a repository with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.Repository fetchByPrimaryKey(long repositoryId)
      Returns the repository with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      repositoryId - the primary key of the repository
      Returns:
      the repository, or null if a repository with the primary key could not be found
    • fetchByPrimaryKeys

      public Map<Serializable,com.liferay.portal.kernel.model.Repository> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      Specified by:
      fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Repository>
      Overrides:
      fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • findAll

      public List<com.liferay.portal.kernel.model.Repository> findAll()
      Returns all the repositories.
      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Returns:
      the repositories
    • findAll

      public List<com.liferay.portal.kernel.model.Repository> findAll(int start, int end)
      Returns a range of all the repositories.

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

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      Returns:
      the range of repositories
    • findAll

      public List<com.liferay.portal.kernel.model.Repository> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator)
      Returns an ordered range of all the repositories.

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

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of repositories
    • findAll

      public List<com.liferay.portal.kernel.model.Repository> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Repository> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the repositories.

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

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Parameters:
      start - the lower bound of the range of repositories
      end - the upper bound of the range of repositories (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of repositories
    • removeAll

      public void removeAll()
      Removes all the repositories from the database.
      Specified by:
      removeAll in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
    • countAll

      public int countAll()
      Returns the number of repositories.
      Specified by:
      countAll in interface com.liferay.portal.kernel.service.persistence.RepositoryPersistence
      Returns:
      the number of repositories
    • getBadColumnNames

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

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

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Repository>
    • getSelectSQL

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

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

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

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Repository>
    • getUniqueIndexColumnNames

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

      public void afterPropertiesSet()
      Initializes the repository 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.portal.kernel.model.Repository>