Liferay 6.0.5

com.liferay.portal.service.persistence
Interface OrgLaborPersistence

All Superinterfaces:
BasePersistence<OrgLabor>
All Known Implementing Classes:
OrgLaborPersistenceImpl

public interface OrgLaborPersistence
extends BasePersistence<OrgLabor>

The persistence interface for the org labor service.

Never modify or reference this interface directly. Always use OrgLaborUtil to access the org labor persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
OrgLaborPersistenceImpl, OrgLaborUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(List<OrgLabor> orgLabors)
          Caches the org labors in the entity cache if it is enabled.
 void cacheResult(OrgLabor orgLabor)
          Caches the org labor in the entity cache if it is enabled.
 int countAll()
          Counts all the org labors.
 int countByOrganizationId(long organizationId)
          Counts all the org labors where organizationId = ?.
 OrgLabor create(long orgLaborId)
          Creates a new org labor with the primary key.
 OrgLabor fetchByPrimaryKey(long orgLaborId)
          Finds the org labor with the primary key or returns null if it could not be found.
 List<OrgLabor> findAll()
          Finds all the org labors.
 List<OrgLabor> findAll(int start, int end)
          Finds a range of all the org labors.
 List<OrgLabor> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the org labors.
 OrgLabor findByOrganizationId_First(long organizationId, OrderByComparator orderByComparator)
          Finds the first org labor in the ordered set where organizationId = ?.
 OrgLabor findByOrganizationId_Last(long organizationId, OrderByComparator orderByComparator)
          Finds the last org labor in the ordered set where organizationId = ?.
 OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId, long organizationId, OrderByComparator orderByComparator)
          Finds the org labors before and after the current org labor in the ordered set where organizationId = ?.
 List<OrgLabor> findByOrganizationId(long organizationId)
          Finds all the org labors where organizationId = ?.
 List<OrgLabor> findByOrganizationId(long organizationId, int start, int end)
          Finds a range of all the org labors where organizationId = ?.
 List<OrgLabor> findByOrganizationId(long organizationId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the org labors where organizationId = ?.
 OrgLabor findByPrimaryKey(long orgLaborId)
          Finds the org labor with the primary key or throws a NoSuchOrgLaborException if it could not be found.
 OrgLabor remove(long orgLaborId)
          Removes the org labor with the primary key from the database.
 void removeAll()
          Removes all the org labors from the database.
 void removeByOrganizationId(long organizationId)
          Removes all the org labors where organizationId = ? from the database.
 OrgLabor updateImpl(OrgLabor orgLabor, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
orgLabor - the org labor to cache

cacheResult

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

Parameters:
orgLabors - the org labors to cache

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,
                       SystemException
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 to remove
Returns:
the org labor that was removed
Throws:
NoSuchOrgLaborException - if a org labor with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

OrgLabor updateImpl(OrgLabor orgLabor,
                    boolean merge)
                    throws SystemException
Throws:
SystemException

findByPrimaryKey

OrgLabor findByPrimaryKey(long orgLaborId)
                          throws NoSuchOrgLaborException,
                                 SystemException
Finds 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 to find
Returns:
the org labor
Throws:
NoSuchOrgLaborException - if a org labor with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

OrgLabor fetchByPrimaryKey(long orgLaborId)
                           throws SystemException
Finds 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 to find
Returns:
the org labor, or null if a org labor with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByOrganizationId

List<OrgLabor> findByOrganizationId(long organizationId)
                                    throws SystemException
Finds all the org labors where organizationId = ?.

Parameters:
organizationId - the organization id to search with
Returns:
the matching org labors
Throws:
SystemException - if a system exception occurred

findByOrganizationId

List<OrgLabor> findByOrganizationId(long organizationId,
                                    int start,
                                    int end)
                                    throws SystemException
Finds 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.

Parameters:
organizationId - the organization id to search with
start - the lower bound of the range of org labors to return
end - the upper bound of the range of org labors to return (not inclusive)
Returns:
the range of matching org labors
Throws:
SystemException - if a system exception occurred

findByOrganizationId

List<OrgLabor> findByOrganizationId(long organizationId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Finds 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.

Parameters:
organizationId - the organization id to search with
start - the lower bound of the range of org labors to return
end - the upper bound of the range of org labors to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching org labors
Throws:
SystemException - if a system exception occurred

findByOrganizationId_First

OrgLabor findByOrganizationId_First(long organizationId,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchOrgLaborException,
                                           SystemException
Finds the first org labor in the ordered set 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.

Parameters:
organizationId - the organization id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching org labor
Throws:
NoSuchOrgLaborException - if a matching org labor could not be found
SystemException - if a system exception occurred

findByOrganizationId_Last

OrgLabor findByOrganizationId_Last(long organizationId,
                                   OrderByComparator orderByComparator)
                                   throws NoSuchOrgLaborException,
                                          SystemException
Finds the last org labor in the ordered set 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.

Parameters:
organizationId - the organization id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching org labor
Throws:
NoSuchOrgLaborException - if a matching org labor could not be found
SystemException - if a system exception occurred

findByOrganizationId_PrevAndNext

OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId,
                                            long organizationId,
                                            OrderByComparator orderByComparator)
                                            throws NoSuchOrgLaborException,
                                                   SystemException
Finds the org labors before and after the current org labor in the ordered set 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.

Parameters:
orgLaborId - the primary key of the current org labor
organizationId - the organization id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next org labor
Throws:
NoSuchOrgLaborException - if a org labor with the primary key could not be found
SystemException - if a system exception occurred

findAll

List<OrgLabor> findAll()
                       throws SystemException
Finds all the org labors.

Returns:
the org labors
Throws:
SystemException - if a system exception occurred

findAll

List<OrgLabor> findAll(int start,
                       int end)
                       throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of org labors to return
end - the upper bound of the range of org labors to return (not inclusive)
Returns:
the range of org labors
Throws:
SystemException - if a system exception occurred

findAll

List<OrgLabor> findAll(int start,
                       int end,
                       OrderByComparator orderByComparator)
                       throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of org labors to return
end - the upper bound of the range of org labors to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of org labors
Throws:
SystemException - if a system exception occurred

removeByOrganizationId

void removeByOrganizationId(long organizationId)
                            throws SystemException
Removes all the org labors where organizationId = ? from the database.

Parameters:
organizationId - the organization id to search with
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the org labors from the database.

Throws:
SystemException - if a system exception occurred

countByOrganizationId

int countByOrganizationId(long organizationId)
                          throws SystemException
Counts all the org labors where organizationId = ?.

Parameters:
organizationId - the organization id to search with
Returns:
the number of matching org labors
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the org labors.

Returns:
the number of org labors
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5