|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface OrgLaborPersistence
The persistence interface for the org labor service.
Caching information and settings can be found in portal.properties
OrgLaborPersistenceImpl,
OrgLaborUtil| 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()
Returns the number of org labors. |
int |
countByOrganizationId(long organizationId)
Returns the number of org labors where organizationId = ?. |
OrgLabor |
create(long orgLaborId)
Creates a new org labor with the primary key. |
OrgLabor |
fetchByOrganizationId_First(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
Returns the first org labor in the ordered set where organizationId = ?. |
OrgLabor |
fetchByOrganizationId_Last(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
Returns the last org labor in the ordered set where organizationId = ?. |
OrgLabor |
fetchByPrimaryKey(long orgLaborId)
Returns the org labor with the primary key or returns null if it could not be found. |
Map<Serializable,OrgLabor> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
List<OrgLabor> |
findAll()
Returns all the org labors. |
List<OrgLabor> |
findAll(int start,
int end)
Returns a range of all the org labors. |
List<OrgLabor> |
findAll(int start,
int end,
OrderByComparator<OrgLabor> orderByComparator)
Returns an ordered range of all the org labors. |
List<OrgLabor> |
findAll(int start,
int end,
OrderByComparator<OrgLabor> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the org labors. |
OrgLabor |
findByOrganizationId_First(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
Returns the first org labor in the ordered set where organizationId = ?. |
OrgLabor |
findByOrganizationId_Last(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
Returns the last org labor in the ordered set where organizationId = ?. |
OrgLabor[] |
findByOrganizationId_PrevAndNext(long orgLaborId,
long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
Returns the org labors before and after the current org labor in the ordered set where organizationId = ?. |
List<OrgLabor> |
findByOrganizationId(long organizationId)
Returns all the org labors where organizationId = ?. |
List<OrgLabor> |
findByOrganizationId(long organizationId,
int start,
int end)
Returns a range of all the org labors where organizationId = ?. |
List<OrgLabor> |
findByOrganizationId(long organizationId,
int start,
int end,
OrderByComparator<OrgLabor> orderByComparator)
Returns an ordered range of all the org labors where organizationId = ?. |
List<OrgLabor> |
findByOrganizationId(long organizationId,
int start,
int end,
OrderByComparator<OrgLabor> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the org labors where organizationId = ?. |
OrgLabor |
findByPrimaryKey(long orgLaborId)
Returns 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)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<OrgLabor> findByOrganizationId(long organizationId)
organizationId - the organization ID
List<OrgLabor> findByOrganizationId(long organizationId,
int start,
int end)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OrgLaborModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
organizationId - the organization IDstart - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)
List<OrgLabor> findByOrganizationId(long organizationId,
int start,
int end,
OrderByComparator<OrgLabor> orderByComparator)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OrgLaborModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
organizationId - the organization IDstart - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
List<OrgLabor> findByOrganizationId(long organizationId,
int start,
int end,
OrderByComparator<OrgLabor> orderByComparator,
boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OrgLaborModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
organizationId - the organization IDstart - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
OrgLabor findByOrganizationId_First(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
throws NoSuchOrgLaborException
organizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgLaborException - if a matching org labor could not be found
OrgLabor fetchByOrganizationId_First(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
organizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching org labor could not be found
OrgLabor findByOrganizationId_Last(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
throws NoSuchOrgLaborException
organizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgLaborException - if a matching org labor could not be found
OrgLabor fetchByOrganizationId_Last(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
organizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching org labor could not be found
OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId,
long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
throws NoSuchOrgLaborException
orgLaborId - the primary key of the current org labororganizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgLaborException - if a org labor with the primary key could not be foundvoid removeByOrganizationId(long organizationId)
organizationId - the organization IDint countByOrganizationId(long organizationId)
organizationId - the organization ID
void cacheResult(OrgLabor orgLabor)
orgLabor - the org laborvoid cacheResult(List<OrgLabor> orgLabors)
orgLabors - the org laborsOrgLabor create(long orgLaborId)
orgLaborId - the primary key for the new org labor
OrgLabor remove(long orgLaborId)
throws NoSuchOrgLaborException
orgLaborId - the primary key of the org labor
NoSuchOrgLaborException - if a org labor with the primary key could not be foundOrgLabor updateImpl(OrgLabor orgLabor)
OrgLabor findByPrimaryKey(long orgLaborId)
throws NoSuchOrgLaborException
NoSuchOrgLaborException if it could not be found.
orgLaborId - the primary key of the org labor
NoSuchOrgLaborException - if a org labor with the primary key could not be foundOrgLabor fetchByPrimaryKey(long orgLaborId)
null if it could not be found.
orgLaborId - the primary key of the org labor
null if a org labor with the primary key could not be foundMap<Serializable,OrgLabor> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<OrgLabor>List<OrgLabor> findAll()
List<OrgLabor> findAll(int start,
int end)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OrgLaborModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)
List<OrgLabor> findAll(int start,
int end,
OrderByComparator<OrgLabor> orderByComparator)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OrgLaborModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
List<OrgLabor> findAll(int start,
int end,
OrderByComparator<OrgLabor> orderByComparator,
boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from OrgLaborModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
void removeAll()
int countAll()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||