Liferay 6.0.5

com.liferay.portlet.tasks.service.persistence
Class TasksProposalUtil

java.lang.Object
  extended by com.liferay.portlet.tasks.service.persistence.TasksProposalUtil

public class TasksProposalUtil
extends Object

The persistence utility for the tasks proposal service. This utility wraps TasksProposalPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
TasksProposalPersistence, TasksProposalPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
TasksProposalUtil()
           
 
Method Summary
static void cacheResult(List<TasksProposal> tasksProposals)
          Caches the tasks proposals in the entity cache if it is enabled.
static void cacheResult(TasksProposal tasksProposal)
          Caches the tasks proposal in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(TasksProposal tasksProposal)
           
static int countAll()
          Counts all the tasks proposals.
static int countByC_C(long classNameId, String classPK)
          Counts all the tasks proposals where classNameId = ? and classPK = ?.
static int countByG_U(long groupId, long userId)
          Counts all the tasks proposals where groupId = ? and userId = ?.
static int countByGroupId(long groupId)
          Counts all the tasks proposals where groupId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static TasksProposal create(long proposalId)
          Creates a new tasks proposal with the primary key.
static TasksProposal fetchByC_C(long classNameId, String classPK)
          Finds the tasks proposal where classNameId = ? and classPK = ? or returns null if it could not be found.
static TasksProposal fetchByC_C(long classNameId, String classPK, boolean retrieveFromCache)
          Finds the tasks proposal where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
static TasksProposal fetchByPrimaryKey(long proposalId)
          Finds the tasks proposal with the primary key or returns null if it could not be found.
static int filterCountByG_U(long groupId, long userId)
          Filters by the user's permissions and counts all the tasks proposals where groupId = ? and userId = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the tasks proposals where groupId = ?.
static List<TasksProposal> filterFindByG_U(long groupId, long userId)
          Filters by the user's permissions and finds all the tasks proposals where groupId = ? and userId = ?.
static List<TasksProposal> filterFindByG_U(long groupId, long userId, int start, int end)
          Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ? and userId = ?.
static List<TasksProposal> filterFindByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ? and userId = ?.
static List<TasksProposal> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the tasks proposals where groupId = ?.
static List<TasksProposal> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ?.
static List<TasksProposal> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ?.
static List<TasksProposal> findAll()
          Finds all the tasks proposals.
static List<TasksProposal> findAll(int start, int end)
          Finds a range of all the tasks proposals.
static List<TasksProposal> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks proposals.
static TasksProposal findByC_C(long classNameId, String classPK)
          Finds the tasks proposal where classNameId = ? and classPK = ? or throws a NoSuchProposalException if it could not be found.
static TasksProposal findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the first tasks proposal in the ordered set where groupId = ? and userId = ?.
static TasksProposal findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the last tasks proposal in the ordered set where groupId = ? and userId = ?.
static TasksProposal[] findByG_U_PrevAndNext(long proposalId, long groupId, long userId, OrderByComparator orderByComparator)
          Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ? and userId = ?.
static List<TasksProposal> findByG_U(long groupId, long userId)
          Finds all the tasks proposals where groupId = ? and userId = ?.
static List<TasksProposal> findByG_U(long groupId, long userId, int start, int end)
          Finds a range of all the tasks proposals where groupId = ? and userId = ?.
static List<TasksProposal> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks proposals where groupId = ? and userId = ?.
static TasksProposal findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first tasks proposal in the ordered set where groupId = ?.
static TasksProposal findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last tasks proposal in the ordered set where groupId = ?.
static TasksProposal[] findByGroupId_PrevAndNext(long proposalId, long groupId, OrderByComparator orderByComparator)
          Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ?.
static List<TasksProposal> findByGroupId(long groupId)
          Finds all the tasks proposals where groupId = ?.
static List<TasksProposal> findByGroupId(long groupId, int start, int end)
          Finds a range of all the tasks proposals where groupId = ?.
static List<TasksProposal> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks proposals where groupId = ?.
static TasksProposal findByPrimaryKey(long proposalId)
          Finds the tasks proposal with the primary key or throws a NoSuchProposalException if it could not be found.
static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static TasksProposalPersistence getPersistence()
           
static TasksProposal remove(long proposalId)
          Removes the tasks proposal with the primary key from the database.
static TasksProposal remove(TasksProposal tasksProposal)
           
static void removeAll()
          Removes all the tasks proposals from the database.
static void removeByC_C(long classNameId, String classPK)
          Removes the tasks proposal where classNameId = ? and classPK = ? from the database.
static void removeByG_U(long groupId, long userId)
          Removes all the tasks proposals where groupId = ? and userId = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the tasks proposals where groupId = ? from the database.
 void setPersistence(TasksProposalPersistence persistence)
           
static TasksProposal update(TasksProposal tasksProposal, boolean merge)
           
static TasksProposal update(TasksProposal tasksProposal, boolean merge, ServiceContext serviceContext)
           
static TasksProposal updateImpl(TasksProposal tasksProposal, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksProposalUtil

public TasksProposalUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(TasksProposal tasksProposal)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static TasksProposal remove(TasksProposal tasksProposal)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static TasksProposal update(TasksProposal tasksProposal,
                                   boolean merge)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static TasksProposal update(TasksProposal tasksProposal,
                                   boolean merge,
                                   ServiceContext serviceContext)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(TasksProposal tasksProposal)
Caches the tasks proposal in the entity cache if it is enabled.

Parameters:
tasksProposal - the tasks proposal to cache

cacheResult

public static void cacheResult(List<TasksProposal> tasksProposals)
Caches the tasks proposals in the entity cache if it is enabled.

Parameters:
tasksProposals - the tasks proposals to cache

create

public static TasksProposal create(long proposalId)
Creates a new tasks proposal with the primary key. Does not add the tasks proposal to the database.

Parameters:
proposalId - the primary key for the new tasks proposal
Returns:
the new tasks proposal

remove

public static TasksProposal remove(long proposalId)
                            throws SystemException,
                                   NoSuchProposalException
Removes the tasks proposal with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
proposalId - the primary key of the tasks proposal to remove
Returns:
the tasks proposal that was removed
Throws:
NoSuchProposalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static TasksProposal updateImpl(TasksProposal tasksProposal,
                                       boolean merge)
                                throws SystemException
Throws:
SystemException

findByPrimaryKey

public static TasksProposal findByPrimaryKey(long proposalId)
                                      throws SystemException,
                                             NoSuchProposalException
Finds the tasks proposal with the primary key or throws a NoSuchProposalException if it could not be found.

Parameters:
proposalId - the primary key of the tasks proposal to find
Returns:
the tasks proposal
Throws:
NoSuchProposalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static TasksProposal fetchByPrimaryKey(long proposalId)
                                       throws SystemException
Finds the tasks proposal with the primary key or returns null if it could not be found.

Parameters:
proposalId - the primary key of the tasks proposal to find
Returns:
the tasks proposal, or null if a tasks proposal with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<TasksProposal> findByGroupId(long groupId)
                                         throws SystemException
Finds all the tasks proposals where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<TasksProposal> findByGroupId(long groupId,
                                                int start,
                                                int end)
                                         throws SystemException
Finds a range of all the tasks proposals where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
Returns:
the range of matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<TasksProposal> findByGroupId(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Finds an ordered range of all the tasks proposals where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static TasksProposal findByGroupId_First(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchProposalException
Finds the first tasks proposal in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks proposal
Throws:
NoSuchProposalException - if a matching tasks proposal could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static TasksProposal findByGroupId_Last(long groupId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchProposalException
Finds the last tasks proposal in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks proposal
Throws:
NoSuchProposalException - if a matching tasks proposal could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static TasksProposal[] findByGroupId_PrevAndNext(long proposalId,
                                                        long groupId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchProposalException
Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ?.

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.

Parameters:
proposalId - the primary key of the current tasks proposal
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks proposal
Throws:
NoSuchProposalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<TasksProposal> filterFindByGroupId(long groupId)
                                               throws SystemException
Filters by the user's permissions and finds all the tasks proposals where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<TasksProposal> filterFindByGroupId(long groupId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
Returns:
the range of matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<TasksProposal> filterFindByGroupId(long groupId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_U

public static List<TasksProposal> findByG_U(long groupId,
                                            long userId)
                                     throws SystemException
Finds all the tasks proposals where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByG_U

public static List<TasksProposal> findByG_U(long groupId,
                                            long userId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds a range of all the tasks proposals where groupId = ? and userId = ?.

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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
Returns:
the range of matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByG_U

public static List<TasksProposal> findByG_U(long groupId,
                                            long userId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the tasks proposals where groupId = ? and userId = ?.

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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByG_U_First

public static TasksProposal findByG_U_First(long groupId,
                                            long userId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchProposalException
Finds the first tasks proposal in the ordered set where groupId = ? and userId = ?.

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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching tasks proposal
Throws:
NoSuchProposalException - if a matching tasks proposal could not be found
SystemException - if a system exception occurred

findByG_U_Last

public static TasksProposal findByG_U_Last(long groupId,
                                           long userId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchProposalException
Finds the last tasks proposal in the ordered set where groupId = ? and userId = ?.

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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching tasks proposal
Throws:
NoSuchProposalException - if a matching tasks proposal could not be found
SystemException - if a system exception occurred

findByG_U_PrevAndNext

public static TasksProposal[] findByG_U_PrevAndNext(long proposalId,
                                                    long groupId,
                                                    long userId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchProposalException
Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ? and userId = ?.

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.

Parameters:
proposalId - the primary key of the current tasks proposal
groupId - the group id to search with
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next tasks proposal
Throws:
NoSuchProposalException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_U

public static List<TasksProposal> filterFindByG_U(long groupId,
                                                  long userId)
                                           throws SystemException
Filters by the user's permissions and finds all the tasks proposals where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U

public static List<TasksProposal> filterFindByG_U(long groupId,
                                                  long userId,
                                                  int start,
                                                  int end)
                                           throws SystemException
Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ? and userId = ?.

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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
Returns:
the range of matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U

public static List<TasksProposal> filterFindByG_U(long groupId,
                                                  long userId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ? and userId = ?.

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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByC_C

public static TasksProposal findByC_C(long classNameId,
                                      String classPK)
                               throws SystemException,
                                      NoSuchProposalException
Finds the tasks proposal where classNameId = ? and classPK = ? or throws a NoSuchProposalException if it could not be found.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching tasks proposal
Throws:
NoSuchProposalException - if a matching tasks proposal could not be found
SystemException - if a system exception occurred

fetchByC_C

public static TasksProposal fetchByC_C(long classNameId,
                                       String classPK)
                                throws SystemException
Finds the tasks proposal where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching tasks proposal, or null if a matching tasks proposal could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_C

public static TasksProposal fetchByC_C(long classNameId,
                                       String classPK,
                                       boolean retrieveFromCache)
                                throws SystemException
Finds the tasks proposal where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching tasks proposal, or null if a matching tasks proposal could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<TasksProposal> findAll()
                                   throws SystemException
Finds all the tasks proposals.

Returns:
the tasks proposals
Throws:
SystemException - if a system exception occurred

findAll

public static List<TasksProposal> findAll(int start,
                                          int end)
                                   throws SystemException
Finds a range of all the tasks proposals.

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.

Parameters:
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
Returns:
the range of tasks proposals
Throws:
SystemException - if a system exception occurred

findAll

public static List<TasksProposal> findAll(int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds an ordered range of all the tasks proposals.

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.

Parameters:
start - the lower bound of the range of tasks proposals to return
end - the upper bound of the range of tasks proposals to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of tasks proposals
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the tasks proposals where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_U

public static void removeByG_U(long groupId,
                               long userId)
                        throws SystemException
Removes all the tasks proposals where groupId = ? and userId = ? from the database.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByC_C

public static void removeByC_C(long classNameId,
                               String classPK)
                        throws SystemException,
                               NoSuchProposalException
Removes the tasks proposal where classNameId = ? and classPK = ? from the database.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred
NoSuchProposalException

removeAll

public static void removeAll()
                      throws SystemException
Removes all the tasks proposals from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the tasks proposals where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching tasks proposals
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the tasks proposals where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_U

public static int countByG_U(long groupId,
                             long userId)
                      throws SystemException
Counts all the tasks proposals where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the number of matching tasks proposals
Throws:
SystemException - if a system exception occurred

filterCountByG_U

public static int filterCountByG_U(long groupId,
                                   long userId)
                            throws SystemException
Filters by the user's permissions and counts all the tasks proposals where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the number of matching tasks proposals that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByC_C

public static int countByC_C(long classNameId,
                             String classPK)
                      throws SystemException
Counts all the tasks proposals where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the number of matching tasks proposals
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the tasks proposals.

Returns:
the number of tasks proposals
Throws:
SystemException - if a system exception occurred

getPersistence

public static TasksProposalPersistence getPersistence()

setPersistence

public void setPersistence(TasksProposalPersistence persistence)

Liferay 6.0.5