Interface OrgLaborPersistence
- All Superinterfaces:
BasePersistence<OrgLabor>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByOrganizationId(long organizationId) Returns the number of org labors where organizationId = ?.create(long orgLaborId) Creates a new org labor with the primary key.fetchByOrganizationId_First(long organizationId, OrderByComparator<OrgLabor> orderByComparator) Returns the first org labor in the ordered set where organizationId = ?.fetchByPrimaryKey(long orgLaborId) Returns the org labor with the primary key or returnsnullif it could not be found.findByOrganizationId(long organizationId) Returns all the org labors where organizationId = ?.findByOrganizationId(long organizationId, int start, int end) Returns a range of all the org labors where organizationId = ?.findByOrganizationId(long organizationId, int start, int end, OrderByComparator<OrgLabor> orderByComparator) Returns an ordered range of all the org labors where organizationId = ?.findByOrganizationId(long organizationId, int start, int end, OrderByComparator<OrgLabor> orderByComparator, boolean useFinderCache) Returns an ordered range of all the org labors where organizationId = ?.findByOrganizationId_First(long organizationId, OrderByComparator<OrgLabor> orderByComparator) Returns the first org labor in the ordered set where organizationId = ?.findByPrimaryKey(long orgLaborId) Returns the org labor with the primary key or throws aNoSuchOrgLaborExceptionif it could not be found.remove(long orgLaborId) Removes the org labor with the primary key from the database.voidremoveByOrganizationId(long organizationId) Removes all the org labors where organizationId = ? from the database.updateImpl(OrgLabor orgLabor) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.OrgLaborModelImpl.- Parameters:
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 (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching org labor, or
nullif a matching org labor 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
-
create
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
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
-
findByPrimaryKey
Returns the org labor with the primary key or throws aNoSuchOrgLaborExceptionif 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
Returns the org labor with the primary key or returnsnullif it could not be found.- Parameters:
orgLaborId- the primary key of the org labor- Returns:
- the org labor, or
nullif a org labor with the primary key could not be found
-
findByOrganizationId
Returns all the org labors where organizationId = ?.- Parameters:
organizationId- the organization ID- Returns:
- the matching org labors
-
findByOrganizationId
Returns a range of all the org labors where organizationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.OrgLaborModelImpl.- Parameters:
organizationId- the organization IDstart- the lower bound of the range of org laborsend- the upper bound of the range of org labors (not inclusive)- Returns:
- the range of matching org labors
-
findByOrganizationId
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.OrgLaborModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching org labors
-