Interface OrgLaborPersistence

All Superinterfaces:
BasePersistence<OrgLabor>

@ProviderType public interface OrgLaborPersistence extends BasePersistence<OrgLabor>
The persistence interface for the org labor service.

Caching information and settings can be found in portal.properties

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

    • findByOrganizationId

      List<OrgLabor> findByOrganizationId(long organizationId)
      Returns all the org labors where organizationId = ?.
      Parameters:
      organizationId - the organization ID
      Returns:
      the matching org labors
    • findByOrganizationId

      List<OrgLabor> findByOrganizationId(long organizationId, int start, int end)
      Returns a range of all the org labors where organizationId = ?.

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

      Parameters:
      organizationId - the organization ID
      start - the lower bound of the range of org labors
      end - the upper bound of the range of org labors (not inclusive)
      Returns:
      the range of matching org labors
    • findByOrganizationId

      List<OrgLabor> findByOrganizationId(long organizationId, int start, int end, OrderByComparator<OrgLabor> orderByComparator)
      Returns an ordered range of all the org labors where organizationId = ?.

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

      Parameters:
      organizationId - the organization ID
      start - the lower bound of the range of org labors
      end - the upper bound of the range of org labors (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching org labors
    • findByOrganizationId

      List<OrgLabor> findByOrganizationId(long organizationId, int start, int end, OrderByComparator<OrgLabor> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the org labors where organizationId = ?.

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

      Parameters:
      organizationId - the organization ID
      start - the lower bound of the range of org labors
      end - the upper bound of the range of org labors (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 org labors
    • findByOrganizationId_First

      OrgLabor findByOrganizationId_First(long organizationId, OrderByComparator<OrgLabor> orderByComparator) throws NoSuchOrgLaborException
      Returns the first org labor in the ordered set where organizationId = ?.
      Parameters:
      organizationId - the organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching org labor
      Throws:
      NoSuchOrgLaborException - if a matching org labor could not be found
    • fetchByOrganizationId_First

      OrgLabor fetchByOrganizationId_First(long organizationId, OrderByComparator<OrgLabor> orderByComparator)
      Returns the first org labor in the ordered set where organizationId = ?.
      Parameters:
      organizationId - the organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching org labor, or null if a matching org labor could not be found
    • findByOrganizationId_Last

      OrgLabor findByOrganizationId_Last(long organizationId, OrderByComparator<OrgLabor> orderByComparator) throws NoSuchOrgLaborException
      Returns the last org labor in the ordered set where organizationId = ?.
      Parameters:
      organizationId - the organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching org labor
      Throws:
      NoSuchOrgLaborException - if a matching org labor could not be found
    • fetchByOrganizationId_Last

      OrgLabor fetchByOrganizationId_Last(long organizationId, OrderByComparator<OrgLabor> orderByComparator)
      Returns the last org labor in the ordered set where organizationId = ?.
      Parameters:
      organizationId - the organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching org labor, or null if a matching org labor could not be found
    • findByOrganizationId_PrevAndNext

      OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId, long organizationId, OrderByComparator<OrgLabor> orderByComparator) throws NoSuchOrgLaborException
      Returns the org labors before and after the current org labor in the ordered set where organizationId = ?.
      Parameters:
      orgLaborId - the primary key of the current org labor
      organizationId - the organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next org labor
      Throws:
      NoSuchOrgLaborException - if a org labor with the primary key could not be found
    • removeByOrganizationId

      void removeByOrganizationId(long organizationId)
      Removes all the org labors where organizationId = ? from the database.
      Parameters:
      organizationId - the organization ID
    • countByOrganizationId

      int countByOrganizationId(long organizationId)
      Returns the number of org labors where organizationId = ?.
      Parameters:
      organizationId - the organization ID
      Returns:
      the number of matching org labors
    • cacheResult

      void cacheResult(OrgLabor orgLabor)
      Caches the org labor in the entity cache if it is enabled.
      Parameters:
      orgLabor - the org labor
    • cacheResult

      void cacheResult(List<OrgLabor> orgLabors)
      Caches the org labors in the entity cache if it is enabled.
      Parameters:
      orgLabors - the org labors
    • create

      OrgLabor create(long orgLaborId)
      Creates a new org labor with the primary key. Does not add the org labor to the database.
      Parameters:
      orgLaborId - the primary key for the new org labor
      Returns:
      the new org labor
    • remove

      OrgLabor remove(long orgLaborId) throws NoSuchOrgLaborException
      Removes the org labor with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      orgLaborId - the primary key of the org labor
      Returns:
      the org labor that was removed
      Throws:
      NoSuchOrgLaborException - if a org labor with the primary key could not be found
    • updateImpl

      OrgLabor updateImpl(OrgLabor orgLabor)
    • findByPrimaryKey

      OrgLabor findByPrimaryKey(long orgLaborId) throws NoSuchOrgLaborException
      Returns the org labor with the primary key or throws a NoSuchOrgLaborException if it could not be found.
      Parameters:
      orgLaborId - the primary key of the org labor
      Returns:
      the org labor
      Throws:
      NoSuchOrgLaborException - if a org labor with the primary key could not be found
    • fetchByPrimaryKey

      OrgLabor fetchByPrimaryKey(long orgLaborId)
      Returns the org labor with the primary key or returns null if it could not be found.
      Parameters:
      orgLaborId - the primary key of the org labor
      Returns:
      the org labor, or null if a org labor with the primary key could not be found
    • findAll

      List<OrgLabor> findAll()
      Returns all the org labors.
      Returns:
      the org labors
    • findAll

      List<OrgLabor> findAll(int start, int end)
      Returns a range of all the org labors.

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

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

      List<OrgLabor> findAll(int start, int end, OrderByComparator<OrgLabor> orderByComparator)
      Returns an ordered range of all the org labors.

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

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

      List<OrgLabor> findAll(int start, int end, OrderByComparator<OrgLabor> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the org labors.

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

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

      void removeAll()
      Removes all the org labors from the database.
    • countAll

      int countAll()
      Returns the number of org labors.
      Returns:
      the number of org labors