java.lang.Object
com.liferay.portal.reports.engine.console.service.persistence.SourceUtil

public class SourceUtil extends Object
The persistence utility for the source service. This utility wraps com.liferay.portal.reports.engine.console.service.persistence.impl.SourcePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Caches the source in the entity cache if it is enabled.
    static void
    Caches the sources in the entity cache if it is enabled.
    static void
     
    static void
     
    static int
    Returns the number of sources.
    static int
    countByCompanyId(long companyId)
    Returns the number of sources where companyId = ?.
    static int
    countByGroupId(long groupId)
    Returns the number of sources where groupId = ?.
    static int
    Returns the number of sources where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of sources where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of sources where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static Source
    create(long sourceId)
    Creates a new source with the primary key.
    static Source
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where companyId = ?.
    static Source
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where companyId = ?.
    static Source
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where groupId = ?.
    static Source
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where groupId = ?.
    static Source
    fetchByPrimaryKey(long sourceId)
    Returns the source with the primary key or returns null if it could not be found.
     
    static Source
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where uuid = ? and companyId = ?.
    static Source
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where uuid = ? and companyId = ?.
    static Source
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where uuid = ?.
    static Source
    fetchByUUID_G(String uuid, long groupId)
    Returns the source where uuid = ? and groupId = ? or returns null if it could not be found.
    static Source
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the source where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    static Source
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where uuid = ?.
    static int
    filterCountByGroupId(long groupId)
    Returns the number of sources that the user has permission to view where groupId = ?.
    static List<Source>
    filterFindByGroupId(long groupId)
    Returns all the sources that the user has permission to view where groupId = ?.
    static List<Source>
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the sources that the user has permission to view where groupId = ?.
    static List<Source>
    filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns an ordered range of all the sources that the user has permissions to view where groupId = ?.
    static Source[]
    filterFindByGroupId_PrevAndNext(long sourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the sources before and after the current source in the ordered set of sources that the user has permission to view where groupId = ?.
    static List<Source>
    Returns all the sources.
    static List<Source>
    findAll(int start, int end)
    Returns a range of all the sources.
    static List<Source>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns an ordered range of all the sources.
    static List<Source>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sources.
    static List<Source>
    findByCompanyId(long companyId)
    Returns all the sources where companyId = ?.
    static List<Source>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the sources where companyId = ?.
    static List<Source>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns an ordered range of all the sources where companyId = ?.
    static List<Source>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sources where companyId = ?.
    static Source
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where companyId = ?.
    static Source
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where companyId = ?.
    static Source[]
    findByCompanyId_PrevAndNext(long sourceId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the sources before and after the current source in the ordered set where companyId = ?.
    static List<Source>
    findByGroupId(long groupId)
    Returns all the sources where groupId = ?.
    static List<Source>
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the sources where groupId = ?.
    static List<Source>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns an ordered range of all the sources where groupId = ?.
    static List<Source>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sources where groupId = ?.
    static Source
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where groupId = ?.
    static Source
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where groupId = ?.
    static Source[]
    findByGroupId_PrevAndNext(long sourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the sources before and after the current source in the ordered set where groupId = ?.
    static Source
    findByPrimaryKey(long sourceId)
    Returns the source with the primary key or throws a NoSuchSourceException if it could not be found.
    static List<Source>
    Returns all the sources where uuid = ?.
    static List<Source>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the sources where uuid = ?.
    static List<Source>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns an ordered range of all the sources where uuid = ?.
    static List<Source>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sources where uuid = ?.
    static List<Source>
    findByUuid_C(String uuid, long companyId)
    Returns all the sources where uuid = ? and companyId = ?.
    static List<Source>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the sources where uuid = ? and companyId = ?.
    static List<Source>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns an ordered range of all the sources where uuid = ? and companyId = ?.
    static List<Source>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the sources where uuid = ? and companyId = ?.
    static Source
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where uuid = ? and companyId = ?.
    static Source
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where uuid = ? and companyId = ?.
    static Source[]
    findByUuid_C_PrevAndNext(long sourceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the sources before and after the current source in the ordered set where uuid = ? and companyId = ?.
    static Source
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the first source in the ordered set where uuid = ?.
    static Source
    findByUUID_G(String uuid, long groupId)
    Returns the source where uuid = ? and groupId = ? or throws a NoSuchSourceException if it could not be found.
    static Source
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the last source in the ordered set where uuid = ?.
    static Source[]
    findByUuid_PrevAndNext(long sourceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
    Returns the sources before and after the current source in the ordered set where uuid = ?.
    static List<Source>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<Source>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<Source>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
     
     
    static Source
    remove(long sourceId)
    Removes the source with the primary key from the database.
    static void
    Removes all the sources from the database.
    static void
    removeByCompanyId(long companyId)
    Removes all the sources where companyId = ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the sources where groupId = ? from the database.
    static void
    Removes all the sources where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the sources where uuid = ? and companyId = ? from the database.
    static Source
    removeByUUID_G(String uuid, long groupId)
    Removes the source where uuid = ? and groupId = ? from the database.
    static void
     
    static Source
    update(Source source)
     
    static Source
    update(Source source, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static Source
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SourceUtil

      public SourceUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

      public static Source update(Source source, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<Source> findByUuid(String uuid)
      Returns all the sources where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching sources
    • findByUuid

      public static List<Source> findByUuid(String uuid, int start, int end)
      Returns a range of all the sources 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 SourceModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      Returns:
      the range of matching sources
    • findByUuid

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sources
    • findByUuid

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (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 sources
    • findByUuid_First

      public static Source findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the first source in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching source
    • fetchByUuid_First

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

      public static Source findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the last source in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching source
    • fetchByUuid_Last

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

      public static Source[] findByUuid_PrevAndNext(long sourceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the sources before and after the current source in the ordered set where uuid = ?.
      Parameters:
      sourceId - the primary key of the current source
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next source
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the sources where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of sources where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching sources
    • findByUUID_G

      public static Source findByUUID_G(String uuid, long groupId) throws NoSuchSourceException
      Returns the source where uuid = ? and groupId = ? or throws a NoSuchSourceException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching source
    • fetchByUUID_G

      public static Source fetchByUUID_G(String uuid, long groupId)
      Returns the source where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching source, or null if a matching source could not be found
    • fetchByUUID_G

      public static Source fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the source where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching source, or null if a matching source could not be found
    • removeByUUID_G

      public static Source removeByUUID_G(String uuid, long groupId) throws NoSuchSourceException
      Removes the source where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the source that was removed
      Throws:
      NoSuchSourceException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of sources where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching sources
    • findByUuid_C

      public static List<Source> findByUuid_C(String uuid, long companyId)
      Returns all the sources where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching sources
    • findByUuid_C

      public static List<Source> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the sources 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 SourceModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      Returns:
      the range of matching sources
    • findByUuid_C

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sources
    • findByUuid_C

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (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 sources
    • findByUuid_C_First

      public static Source findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the first source in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching source
    • fetchByUuid_C_First

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

      public static Source findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the last source in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching source
    • fetchByUuid_C_Last

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

      public static Source[] findByUuid_C_PrevAndNext(long sourceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the sources before and after the current source in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      sourceId - the primary key of the current source
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next source
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the sources where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of sources where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching sources
    • findByGroupId

      public static List<Source> findByGroupId(long groupId)
      Returns all the sources where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching sources
    • findByGroupId

      public static List<Source> findByGroupId(long groupId, int start, int end)
      Returns a range of all the sources 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 SourceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      Returns:
      the range of matching sources
    • findByGroupId

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sources
    • findByGroupId

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (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 sources
    • findByGroupId_First

      public static Source findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the first source in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching source
    • fetchByGroupId_First

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

      public static Source findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the last source in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching source
    • fetchByGroupId_Last

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

      public static Source[] findByGroupId_PrevAndNext(long sourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the sources before and after the current source in the ordered set where groupId = ?.
      Parameters:
      sourceId - the primary key of the current source
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next source
    • filterFindByGroupId

      public static List<Source> filterFindByGroupId(long groupId)
      Returns all the sources that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching sources that the user has permission to view
    • filterFindByGroupId

      public static List<Source> filterFindByGroupId(long groupId, int start, int end)
      Returns a range of all the sources that the user has permission to view 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 SourceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      Returns:
      the range of matching sources that the user has permission to view
    • filterFindByGroupId

      public static List<Source> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
      Returns an ordered range of all the sources that the user has permissions to view 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 SourceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sources that the user has permission to view
    • filterFindByGroupId_PrevAndNext

      public static Source[] filterFindByGroupId_PrevAndNext(long sourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the sources before and after the current source in the ordered set of sources that the user has permission to view where groupId = ?.
      Parameters:
      sourceId - the primary key of the current source
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next source
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the sources where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of sources where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching sources
    • filterCountByGroupId

      public static int filterCountByGroupId(long groupId)
      Returns the number of sources that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching sources that the user has permission to view
    • findByCompanyId

      public static List<Source> findByCompanyId(long companyId)
      Returns all the sources where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching sources
    • findByCompanyId

      public static List<Source> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the sources where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      Returns:
      the range of matching sources
    • findByCompanyId

      public static List<Source> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
      Returns an ordered range of all the sources where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching sources
    • findByCompanyId

      public static List<Source> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the sources where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (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 sources
    • findByCompanyId_First

      public static Source findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the first source in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching source
    • fetchByCompanyId_First

      public static Source fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
      Returns the first source in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching source, or null if a matching source could not be found
    • findByCompanyId_Last

      public static Source findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the last source in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching source
    • fetchByCompanyId_Last

      public static Source fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator)
      Returns the last source in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching source, or null if a matching source could not be found
    • findByCompanyId_PrevAndNext

      public static Source[] findByCompanyId_PrevAndNext(long sourceId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Source> orderByComparator) throws NoSuchSourceException
      Returns the sources before and after the current source in the ordered set where companyId = ?.
      Parameters:
      sourceId - the primary key of the current source
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next source
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the sources where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of sources where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching sources
    • cacheResult

      public static void cacheResult(Source source)
      Caches the source in the entity cache if it is enabled.
      Parameters:
      source - the source
    • cacheResult

      public static void cacheResult(List<Source> sources)
      Caches the sources in the entity cache if it is enabled.
      Parameters:
      sources - the sources
    • create

      public static Source create(long sourceId)
      Creates a new source with the primary key. Does not add the source to the database.
      Parameters:
      sourceId - the primary key for the new source
      Returns:
      the new source
    • remove

      public static Source remove(long sourceId) throws NoSuchSourceException
      Removes the source with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      sourceId - the primary key of the source
      Returns:
      the source that was removed
    • updateImpl

      public static Source updateImpl(Source source)
    • findByPrimaryKey

      public static Source findByPrimaryKey(long sourceId) throws NoSuchSourceException
      Returns the source with the primary key or throws a NoSuchSourceException if it could not be found.
      Parameters:
      sourceId - the primary key of the source
      Returns:
      the source
    • fetchByPrimaryKey

      public static Source fetchByPrimaryKey(long sourceId)
      Returns the source with the primary key or returns null if it could not be found.
      Parameters:
      sourceId - the primary key of the source
      Returns:
      the source, or null if a source with the primary key could not be found
    • findAll

      public static List<Source> findAll()
      Returns all the sources.
      Returns:
      the sources
    • findAll

      public static List<Source> findAll(int start, int end)
      Returns a range of all the sources.

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

      Parameters:
      start - the lower bound of the range of sources
      end - the upper bound of the range of sources (not inclusive)
      Returns:
      the range of sources
    • findAll

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

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

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

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

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

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

      public static void removeAll()
      Removes all the sources from the database.
    • countAll

      public static int countAll()
      Returns the number of sources.
      Returns:
      the number of sources
    • getPersistence

      public static SourcePersistence getPersistence()
    • setPersistence

      public static void setPersistence(SourcePersistence persistence)