|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<OrgLabor>
com.liferay.portal.service.persistence.impl.OrgLaborPersistenceImpl
@ProviderType public class OrgLaborPersistenceImpl
The persistence implementation for the org labor service.
Caching information and settings can be found in portal.properties
OrgLaborPersistence,
OrgLaborUtil| Field Summary | |
|---|---|
protected CompanyProvider |
companyProvider
|
protected EntityCache |
entityCache
|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
|
static String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_ORGANIZATIONID
|
static FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL
|
static FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_ORGANIZATIONID
|
static FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
|
static FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ORGANIZATIONID
|
protected FinderCache |
finderCache
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
OrgLaborPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the org labor persistence. |
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. |
void |
clearCache()
Clears the cache for all org labors. |
void |
clearCache(List<OrgLabor> orgLabors)
Clears the cache for a List instances of this model. |
void |
clearCache(OrgLabor orgLabor)
Clears the cache for the org labor. |
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. |
void |
destroy()
|
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. |
OrgLabor |
fetchByPrimaryKey(Serializable primaryKey)
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 |
findByPrimaryKey(Serializable primaryKey)
Returns the org labor with the primary key or throws a NoSuchModelException if it could not be found. |
protected OrgLabor |
getByOrganizationId_PrevAndNext(Session session,
OrgLabor orgLabor,
long organizationId,
OrderByComparator<OrgLabor> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
OrgLabor |
remove(long orgLaborId)
Removes the org labor with the primary key from the database. |
OrgLabor |
remove(Serializable primaryKey)
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. |
protected OrgLabor |
removeImpl(OrgLabor orgLabor)
Removes the model instance from the database. |
protected OrgLabor |
toUnwrappedModel(OrgLabor orgLabor)
|
OrgLabor |
updateImpl(OrgLabor orgLabor)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ORGANIZATIONID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ORGANIZATIONID
public static final FinderPath FINDER_PATH_COUNT_BY_ORGANIZATIONID
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public OrgLaborPersistenceImpl()
| Method Detail |
|---|
public List<OrgLabor> findByOrganizationId(long organizationId)
findByOrganizationId in interface OrgLaborPersistenceorganizationId - the organization ID
public 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.
findByOrganizationId in interface OrgLaborPersistenceorganizationId - the organization IDstart - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)
public 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.
findByOrganizationId in interface OrgLaborPersistenceorganizationId - 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)
public 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.
findByOrganizationId in interface OrgLaborPersistenceorganizationId - 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
public OrgLabor findByOrganizationId_First(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
throws NoSuchOrgLaborException
findByOrganizationId_First in interface OrgLaborPersistenceorganizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgLaborException - if a matching org labor could not be found
public OrgLabor fetchByOrganizationId_First(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
fetchByOrganizationId_First in interface OrgLaborPersistenceorganizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching org labor could not be found
public OrgLabor findByOrganizationId_Last(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
throws NoSuchOrgLaborException
findByOrganizationId_Last in interface OrgLaborPersistenceorganizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgLaborException - if a matching org labor could not be found
public OrgLabor fetchByOrganizationId_Last(long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
fetchByOrganizationId_Last in interface OrgLaborPersistenceorganizationId - the organization IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching org labor could not be found
public OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId,
long organizationId,
OrderByComparator<OrgLabor> orderByComparator)
throws NoSuchOrgLaborException
findByOrganizationId_PrevAndNext in interface OrgLaborPersistenceorgLaborId - 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 found
protected OrgLabor getByOrganizationId_PrevAndNext(Session session,
OrgLabor orgLabor,
long organizationId,
OrderByComparator<OrgLabor> orderByComparator,
boolean previous)
public void removeByOrganizationId(long organizationId)
removeByOrganizationId in interface OrgLaborPersistenceorganizationId - the organization IDpublic int countByOrganizationId(long organizationId)
countByOrganizationId in interface OrgLaborPersistenceorganizationId - the organization ID
public void cacheResult(OrgLabor orgLabor)
cacheResult in interface OrgLaborPersistenceorgLabor - the org laborpublic void cacheResult(List<OrgLabor> orgLabors)
cacheResult in interface OrgLaborPersistenceorgLabors - the org laborspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<OrgLabor>clearCache in class BasePersistenceImpl<OrgLabor>public void clearCache(OrgLabor orgLabor)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<OrgLabor>clearCache in class BasePersistenceImpl<OrgLabor>orgLabor - the instance of this model to clear the cache forpublic void clearCache(List<OrgLabor> orgLabors)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<OrgLabor>clearCache in class BasePersistenceImpl<OrgLabor>orgLabors - the List instances of this model to clear the cache forpublic OrgLabor create(long orgLaborId)
create in interface OrgLaborPersistenceorgLaborId - the primary key for the new org labor
public OrgLabor remove(long orgLaborId)
throws NoSuchOrgLaborException
remove in interface OrgLaborPersistenceorgLaborId - the primary key of the org labor
NoSuchOrgLaborException - if a org labor with the primary key could not be found
public OrgLabor remove(Serializable primaryKey)
throws NoSuchOrgLaborException
remove in interface BasePersistence<OrgLabor>remove in class BasePersistenceImpl<OrgLabor>primaryKey - the primary key of the org labor
NoSuchOrgLaborException - if a org labor with the primary key could not be foundprotected OrgLabor removeImpl(OrgLabor orgLabor)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<OrgLabor>orgLabor - the model instance to remove
public OrgLabor updateImpl(OrgLabor orgLabor)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface OrgLaborPersistenceupdateImpl in class BasePersistenceImpl<OrgLabor>orgLabor - the model instance to update
protected OrgLabor toUnwrappedModel(OrgLabor orgLabor)
public OrgLabor findByPrimaryKey(Serializable primaryKey)
throws NoSuchOrgLaborException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<OrgLabor>findByPrimaryKey in class BasePersistenceImpl<OrgLabor>primaryKey - the primary key of the org labor
NoSuchOrgLaborException - if a org labor with the primary key could not be found
public OrgLabor findByPrimaryKey(long orgLaborId)
throws NoSuchOrgLaborException
NoSuchOrgLaborException if it could not be found.
findByPrimaryKey in interface OrgLaborPersistenceorgLaborId - the primary key of the org labor
NoSuchOrgLaborException - if a org labor with the primary key could not be foundpublic OrgLabor fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<OrgLabor>fetchByPrimaryKey in class BasePersistenceImpl<OrgLabor>primaryKey - the primary key of the org labor
null if a org labor with the primary key could not be foundpublic OrgLabor fetchByPrimaryKey(long orgLaborId)
null if it could not be found.
fetchByPrimaryKey in interface OrgLaborPersistenceorgLaborId - the primary key of the org labor
null if a org labor with the primary key could not be foundpublic Map<Serializable,OrgLabor> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<OrgLabor>fetchByPrimaryKeys in interface OrgLaborPersistencefetchByPrimaryKeys in class BasePersistenceImpl<OrgLabor>public List<OrgLabor> findAll()
findAll in interface OrgLaborPersistence
public 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.
findAll in interface OrgLaborPersistencestart - the lower bound of the range of org laborsend - the upper bound of the range of org labors (not inclusive)
public 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.
findAll in interface OrgLaborPersistencestart - 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)
public 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.
findAll in interface OrgLaborPersistencestart - 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
public void removeAll()
removeAll in interface OrgLaborPersistencepublic int countAll()
countAll in interface OrgLaborPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<OrgLabor>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||