com.liferay.portlet.tasks.service.persistence
Interface TasksProposalPersistence

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_C(long classNameId, java.lang.String classPK)
           
 int countByG_U(long groupId, long userId)
           
 int countByGroupId(long groupId)
           
 TasksProposal create(long proposalId)
           
 TasksProposal fetchByC_C(long classNameId, java.lang.String classPK)
           
 TasksProposal fetchByPrimaryKey(long proposalId)
           
 java.util.List<TasksProposal> findAll()
           
 java.util.List<TasksProposal> findAll(int start, int end)
           
 java.util.List<TasksProposal> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal findByC_C(long classNameId, java.lang.String classPK)
           
 TasksProposal findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal[] findByG_U_PrevAndNext(long proposalId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TasksProposal> findByG_U(long groupId, long userId)
           
 java.util.List<TasksProposal> findByG_U(long groupId, long userId, int start, int end)
           
 java.util.List<TasksProposal> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal[] findByGroupId_PrevAndNext(long proposalId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TasksProposal> findByGroupId(long groupId)
           
 java.util.List<TasksProposal> findByGroupId(long groupId, int start, int end)
           
 java.util.List<TasksProposal> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TasksProposal findByPrimaryKey(long proposalId)
           
 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)
           
 TasksProposal remove(long proposalId)
           
 TasksProposal remove(TasksProposal tasksProposal)
           
 void removeAll()
           
 void removeByC_C(long classNameId, java.lang.String classPK)
           
 void removeByG_U(long groupId, long userId)
           
 void removeByGroupId(long groupId)
           
 TasksProposal update(TasksProposal tasksProposal)
          Deprecated. Use update(TasksProposal tasksProposal, boolean merge).
 TasksProposal update(TasksProposal tasksProposal, boolean merge)
          Add, update, or merge, the entity.
 TasksProposal updateImpl(TasksProposal tasksProposal, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

TasksProposal create(long proposalId)

remove

TasksProposal remove(long proposalId)
                     throws com.liferay.portal.SystemException,
                            NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

remove

TasksProposal remove(TasksProposal tasksProposal)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

TasksProposal update(TasksProposal tasksProposal)
                     throws com.liferay.portal.SystemException
Deprecated. Use update(TasksProposal tasksProposal, boolean merge).

Throws:
com.liferay.portal.SystemException

update

TasksProposal update(TasksProposal tasksProposal,
                     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:
tasksProposal - 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 tasksProposal 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

TasksProposal updateImpl(TasksProposal tasksProposal,
                         boolean merge)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal findByPrimaryKey(long proposalId)
                               throws com.liferay.portal.SystemException,
                                      NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

fetchByPrimaryKey

TasksProposal fetchByPrimaryKey(long proposalId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

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

findByGroupId

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

findByGroupId

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

findByGroupId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal findByGroupId_First(long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal findByGroupId_Last(long groupId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal[] findByGroupId_PrevAndNext(long proposalId,
                                                        long groupId,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

findByG_U

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TasksProposal> findByG_U(long groupId,
                                                      long userId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TasksProposal> findByG_U(long groupId,
                                                      long userId,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U

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

findByG_U_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal findByG_U_First(long groupId,
                                            long userId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

findByG_U_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal findByG_U_Last(long groupId,
                                           long userId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

findByG_U_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal[] findByG_U_PrevAndNext(long proposalId,
                                                    long groupId,
                                                    long userId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

findByC_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TasksProposal findByC_C(long classNameId,
                                      java.lang.String classPK)
                        throws com.liferay.portal.SystemException,
                               NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

fetchByC_C

TasksProposal fetchByC_C(long classNameId,
                         java.lang.String classPK)
                         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)
                                                      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<TasksProposal> findAll()
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_U

void removeByG_U(long groupId,
                 long userId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_C

void removeByC_C(long classNameId,
                 java.lang.String classPK)
                 throws com.liferay.portal.SystemException,
                        NoSuchProposalException
Throws:
com.liferay.portal.SystemException
NoSuchProposalException

removeAll

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

countByGroupId

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

countByG_U

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

countByC_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_C(long classNameId,
                             java.lang.String classPK)
               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