com.liferay.portal.service.persistence
Interface OrgLaborPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface OrgLaborPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByOrganizationId(long organizationId)
           
 OrgLabor create(long orgLaborId)
           
 OrgLabor fetchByPrimaryKey(long orgLaborId)
           
 java.util.List<OrgLabor> findAll()
           
 java.util.List<OrgLabor> findAll(int start, int end)
           
 java.util.List<OrgLabor> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgLabor findByOrganizationId_First(long organizationId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgLabor findByOrganizationId_Last(long organizationId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId, long organizationId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<OrgLabor> findByOrganizationId(long organizationId)
           
 java.util.List<OrgLabor> findByOrganizationId(long organizationId, int start, int end)
           
 java.util.List<OrgLabor> findByOrganizationId(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgLabor findByPrimaryKey(long orgLaborId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 OrgLabor remove(long orgLaborId)
           
 OrgLabor remove(OrgLabor orgLabor)
           
 void removeAll()
           
 void removeByOrganizationId(long organizationId)
           
 OrgLabor update(OrgLabor orgLabor)
          Deprecated. Use update(OrgLabor orgLabor, boolean merge).
 OrgLabor update(OrgLabor orgLabor, boolean merge)
          Add, update, or merge, the entity.
 OrgLabor updateImpl(OrgLabor orgLabor, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

OrgLabor create(long orgLaborId)

remove

OrgLabor remove(long orgLaborId)
                throws NoSuchOrgLaborException,
                       com.liferay.portal.SystemException
Throws:
NoSuchOrgLaborException
com.liferay.portal.SystemException

remove

OrgLabor remove(OrgLabor orgLabor)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

OrgLabor update(OrgLabor orgLabor)
                throws com.liferay.portal.SystemException
Deprecated. Use update(OrgLabor orgLabor, boolean merge).

Throws:
com.liferay.portal.SystemException

update

OrgLabor update(OrgLabor orgLabor,
                boolean merge)
                throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
orgLabor - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when orgLabor is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

OrgLabor updateImpl(OrgLabor orgLabor,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
OrgLabor findByPrimaryKey(long orgLaborId)
                          throws NoSuchOrgLaborException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchOrgLaborException
com.liferay.portal.SystemException

fetchByPrimaryKey

OrgLabor fetchByPrimaryKey(long orgLaborId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrganizationId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgLabor> findByOrganizationId(long organizationId)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrganizationId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgLabor> findByOrganizationId(long organizationId,
                                                            int start,
                                                            int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrganizationId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgLabor> findByOrganizationId(long organizationId,
                                                            int start,
                                                            int end,
                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrganizationId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
OrgLabor findByOrganizationId_First(long organizationId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws NoSuchOrgLaborException,
                                           com.liferay.portal.SystemException
Throws:
NoSuchOrgLaborException
com.liferay.portal.SystemException

findByOrganizationId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
OrgLabor findByOrganizationId_Last(long organizationId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws NoSuchOrgLaborException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchOrgLaborException
com.liferay.portal.SystemException

findByOrganizationId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
OrgLabor[] findByOrganizationId_PrevAndNext(long orgLaborId,
                                                          long organizationId,
                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws NoSuchOrgLaborException,
                                                   com.liferay.portal.SystemException
Throws:
NoSuchOrgLaborException
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgLabor> findAll()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgLabor> findAll(int start,
                                               int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgLabor> findAll(int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByOrganizationId

void removeByOrganizationId(long organizationId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByOrganizationId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByOrganizationId(long organizationId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException