Interface ServiceComponentPersistence

All Superinterfaces:
BasePersistence<ServiceComponent>

@ProviderType public interface ServiceComponentPersistence extends BasePersistence<ServiceComponent>
The persistence interface for the service component service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • findByBuildNamespace

      List<ServiceComponent> findByBuildNamespace(String buildNamespace)
      Returns all the service components where buildNamespace = ?.
      Parameters:
      buildNamespace - the build namespace
      Returns:
      the matching service components
    • findByBuildNamespace

      List<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end)
      Returns a range of all the service components where buildNamespace = ?.

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

      Parameters:
      buildNamespace - the build namespace
      start - the lower bound of the range of service components
      end - the upper bound of the range of service components (not inclusive)
      Returns:
      the range of matching service components
    • findByBuildNamespace

      List<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end, OrderByComparator<ServiceComponent> orderByComparator)
      Returns an ordered range of all the service components where buildNamespace = ?.

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

      Parameters:
      buildNamespace - the build namespace
      start - the lower bound of the range of service components
      end - the upper bound of the range of service components (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching service components
    • findByBuildNamespace

      List<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end, OrderByComparator<ServiceComponent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the service components where buildNamespace = ?.

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

      Parameters:
      buildNamespace - the build namespace
      start - the lower bound of the range of service components
      end - the upper bound of the range of service components (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 service components
    • findByBuildNamespace_First

      ServiceComponent findByBuildNamespace_First(String buildNamespace, OrderByComparator<ServiceComponent> orderByComparator) throws NoSuchServiceComponentException
      Returns the first service component in the ordered set where buildNamespace = ?.
      Parameters:
      buildNamespace - the build namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching service component
      Throws:
      NoSuchServiceComponentException - if a matching service component could not be found
    • fetchByBuildNamespace_First

      ServiceComponent fetchByBuildNamespace_First(String buildNamespace, OrderByComparator<ServiceComponent> orderByComparator)
      Returns the first service component in the ordered set where buildNamespace = ?.
      Parameters:
      buildNamespace - the build namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching service component, or null if a matching service component could not be found
    • findByBuildNamespace_Last

      ServiceComponent findByBuildNamespace_Last(String buildNamespace, OrderByComparator<ServiceComponent> orderByComparator) throws NoSuchServiceComponentException
      Returns the last service component in the ordered set where buildNamespace = ?.
      Parameters:
      buildNamespace - the build namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching service component
      Throws:
      NoSuchServiceComponentException - if a matching service component could not be found
    • fetchByBuildNamespace_Last

      ServiceComponent fetchByBuildNamespace_Last(String buildNamespace, OrderByComparator<ServiceComponent> orderByComparator)
      Returns the last service component in the ordered set where buildNamespace = ?.
      Parameters:
      buildNamespace - the build namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching service component, or null if a matching service component could not be found
    • findByBuildNamespace_PrevAndNext

      ServiceComponent[] findByBuildNamespace_PrevAndNext(long serviceComponentId, String buildNamespace, OrderByComparator<ServiceComponent> orderByComparator) throws NoSuchServiceComponentException
      Returns the service components before and after the current service component in the ordered set where buildNamespace = ?.
      Parameters:
      serviceComponentId - the primary key of the current service component
      buildNamespace - the build namespace
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next service component
      Throws:
      NoSuchServiceComponentException - if a service component with the primary key could not be found
    • removeByBuildNamespace

      void removeByBuildNamespace(String buildNamespace)
      Removes all the service components where buildNamespace = ? from the database.
      Parameters:
      buildNamespace - the build namespace
    • countByBuildNamespace

      int countByBuildNamespace(String buildNamespace)
      Returns the number of service components where buildNamespace = ?.
      Parameters:
      buildNamespace - the build namespace
      Returns:
      the number of matching service components
    • findByBNS_BNU

      ServiceComponent findByBNS_BNU(String buildNamespace, long buildNumber) throws NoSuchServiceComponentException
      Returns the service component where buildNamespace = ? and buildNumber = ? or throws a NoSuchServiceComponentException if it could not be found.
      Parameters:
      buildNamespace - the build namespace
      buildNumber - the build number
      Returns:
      the matching service component
      Throws:
      NoSuchServiceComponentException - if a matching service component could not be found
    • fetchByBNS_BNU

      ServiceComponent fetchByBNS_BNU(String buildNamespace, long buildNumber)
      Returns the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      buildNamespace - the build namespace
      buildNumber - the build number
      Returns:
      the matching service component, or null if a matching service component could not be found
    • fetchByBNS_BNU

      ServiceComponent fetchByBNS_BNU(String buildNamespace, long buildNumber, boolean useFinderCache)
      Returns the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      buildNamespace - the build namespace
      buildNumber - the build number
      useFinderCache - whether to use the finder cache
      Returns:
      the matching service component, or null if a matching service component could not be found
    • removeByBNS_BNU

      ServiceComponent removeByBNS_BNU(String buildNamespace, long buildNumber) throws NoSuchServiceComponentException
      Removes the service component where buildNamespace = ? and buildNumber = ? from the database.
      Parameters:
      buildNamespace - the build namespace
      buildNumber - the build number
      Returns:
      the service component that was removed
      Throws:
      NoSuchServiceComponentException
    • countByBNS_BNU

      int countByBNS_BNU(String buildNamespace, long buildNumber)
      Returns the number of service components where buildNamespace = ? and buildNumber = ?.
      Parameters:
      buildNamespace - the build namespace
      buildNumber - the build number
      Returns:
      the number of matching service components
    • cacheResult

      void cacheResult(ServiceComponent serviceComponent)
      Caches the service component in the entity cache if it is enabled.
      Parameters:
      serviceComponent - the service component
    • cacheResult

      void cacheResult(List<ServiceComponent> serviceComponents)
      Caches the service components in the entity cache if it is enabled.
      Parameters:
      serviceComponents - the service components
    • create

      ServiceComponent create(long serviceComponentId)
      Creates a new service component with the primary key. Does not add the service component to the database.
      Parameters:
      serviceComponentId - the primary key for the new service component
      Returns:
      the new service component
    • remove

      ServiceComponent remove(long serviceComponentId) throws NoSuchServiceComponentException
      Removes the service component with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      serviceComponentId - the primary key of the service component
      Returns:
      the service component that was removed
      Throws:
      NoSuchServiceComponentException - if a service component with the primary key could not be found
    • updateImpl

      ServiceComponent updateImpl(ServiceComponent serviceComponent)
    • findByPrimaryKey

      ServiceComponent findByPrimaryKey(long serviceComponentId) throws NoSuchServiceComponentException
      Returns the service component with the primary key or throws a NoSuchServiceComponentException if it could not be found.
      Parameters:
      serviceComponentId - the primary key of the service component
      Returns:
      the service component
      Throws:
      NoSuchServiceComponentException - if a service component with the primary key could not be found
    • fetchByPrimaryKey

      ServiceComponent fetchByPrimaryKey(long serviceComponentId)
      Returns the service component with the primary key or returns null if it could not be found.
      Parameters:
      serviceComponentId - the primary key of the service component
      Returns:
      the service component, or null if a service component with the primary key could not be found
    • findAll

      Returns all the service components.
      Returns:
      the service components
    • findAll

      List<ServiceComponent> findAll(int start, int end)
      Returns a range of all the service components.

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

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

      List<ServiceComponent> findAll(int start, int end, OrderByComparator<ServiceComponent> orderByComparator)
      Returns an ordered range of all the service components.

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

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

      List<ServiceComponent> findAll(int start, int end, OrderByComparator<ServiceComponent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the service components.

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

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

      void removeAll()
      Removes all the service components from the database.
    • countAll

      int countAll()
      Returns the number of service components.
      Returns:
      the number of service components