Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<TasksProposal>
      extended by com.liferay.portlet.tasks.service.persistence.TasksProposalPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<TasksProposal>, TasksProposalPersistence

public class TasksProposalPersistenceImpl
extends BasePersistenceImpl<TasksProposal>
implements TasksProposalPersistence

The persistence implementation for the tasks proposal service.

Never modify or reference this class directly. Always use TasksProposalUtil to access the tasks proposal persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_FETCH_BY_C_C
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_G_U
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  TasksProposalPersistence tasksProposalPersistence
           
protected  TasksReviewPersistence tasksReviewPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, 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
TasksProposalPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the tasks proposal persistence.
 void cacheResult(List<TasksProposal> tasksProposals)
          Caches the tasks proposals in the entity cache if it is enabled.
 void cacheResult(TasksProposal tasksProposal)
          Caches the tasks proposal in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all tasks proposals.
 void clearCache(TasksProposal tasksProposal)
          Clears the cache for the tasks proposal.
 int countAll()
          Counts all the tasks proposals.
 int countByC_C(long classNameId, String classPK)
          Counts all the tasks proposals where classNameId = ? and classPK = ?.
 int countByG_U(long groupId, long userId)
          Counts all the tasks proposals where groupId = ? and userId = ?.
 int countByGroupId(long groupId)
          Counts all the tasks proposals where groupId = ?.
 TasksProposal create(long proposalId)
          Creates a new tasks proposal with the primary key.
 TasksProposal fetchByC_C(long classNameId, String classPK)
          Finds the tasks proposal where classNameId = ? and classPK = ? or returns null if it could not be found.
 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.
 TasksProposal fetchByPrimaryKey(long proposalId)
          Finds the tasks proposal with the primary key or returns null if it could not be found.
 TasksProposal fetchByPrimaryKey(Serializable primaryKey)
          Finds the tasks proposal with the primary key or returns null if it could not be found.
 int filterCountByG_U(long groupId, long userId)
          Filters by the user's permissions and counts all the tasks proposals where groupId = ? and userId = ?.
 int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the tasks proposals where groupId = ?.
 List<TasksProposal> filterFindByG_U(long groupId, long userId)
          Filters by the user's permissions and finds all the tasks proposals where groupId = ? and userId = ?.
 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 = ?.
 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 = ?.
 List<TasksProposal> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the tasks proposals where groupId = ?.
 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 = ?.
 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 = ?.
 List<TasksProposal> findAll()
          Finds all the tasks proposals.
 List<TasksProposal> findAll(int start, int end)
          Finds a range of all the tasks proposals.
 List<TasksProposal> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks proposals.
 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.
 TasksProposal findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the first tasks proposal in the ordered set where groupId = ? and userId = ?.
 TasksProposal findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the last tasks proposal in the ordered set where groupId = ? and userId = ?.
 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 = ?.
 List<TasksProposal> findByG_U(long groupId, long userId)
          Finds all the tasks proposals where groupId = ? and userId = ?.
 List<TasksProposal> findByG_U(long groupId, long userId, int start, int end)
          Finds a range of all the tasks proposals where groupId = ? and userId = ?.
 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 = ?.
 TasksProposal findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first tasks proposal in the ordered set where groupId = ?.
 TasksProposal findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last tasks proposal in the ordered set where groupId = ?.
 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 = ?.
 List<TasksProposal> findByGroupId(long groupId)
          Finds all the tasks proposals where groupId = ?.
 List<TasksProposal> findByGroupId(long groupId, int start, int end)
          Finds a range of all the tasks proposals where groupId = ?.
 List<TasksProposal> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the tasks proposals where groupId = ?.
 TasksProposal findByPrimaryKey(long proposalId)
          Finds the tasks proposal with the primary key or throws a NoSuchProposalException if it could not be found.
 TasksProposal findByPrimaryKey(Serializable primaryKey)
          Finds the tasks proposal with the primary key or throws a NoSuchModelException if it could not be found.
protected  TasksProposal getByG_U_PrevAndNext(Session session, TasksProposal tasksProposal, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  TasksProposal getByGroupId_PrevAndNext(Session session, TasksProposal tasksProposal, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 TasksProposal remove(long proposalId)
          Removes the tasks proposal with the primary key from the database.
 TasksProposal remove(Serializable primaryKey)
          Removes the tasks proposal with the primary key from the database.
 void removeAll()
          Removes all the tasks proposals from the database.
 void removeByC_C(long classNameId, String classPK)
          Removes the tasks proposal where classNameId = ? and classPK = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes all the tasks proposals where groupId = ? and userId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the tasks proposals where groupId = ? from the database.
protected  TasksProposal removeImpl(TasksProposal tasksProposal)
          Removes the model instance from the database.
protected  TasksProposal toUnwrappedModel(TasksProposal tasksProposal)
           
 TasksProposal updateImpl(TasksProposal tasksProposal, boolean merge)
          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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_G_U

public static final FinderPath FINDER_PATH_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_FETCH_BY_C_C

public static final FinderPath FINDER_PATH_FETCH_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

tasksProposalPersistence

@BeanReference(type=TasksProposalPersistence.class)
protected TasksProposalPersistence tasksProposalPersistence

tasksReviewPersistence

@BeanReference(type=TasksReviewPersistence.class)
protected TasksReviewPersistence tasksReviewPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence
Constructor Detail

TasksProposalPersistenceImpl

public TasksProposalPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface TasksProposalPersistence
Parameters:
tasksProposal - the tasks proposal to cache

cacheResult

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

Specified by:
cacheResult in interface TasksProposalPersistence
Parameters:
tasksProposals - the tasks proposals to cache

clearCache

public void clearCache()
Clears the cache for all tasks proposals.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TasksProposal>
Overrides:
clearCache in class BasePersistenceImpl<TasksProposal>

clearCache

public void clearCache(TasksProposal tasksProposal)
Clears the cache for the tasks proposal.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TasksProposal>
Overrides:
clearCache in class BasePersistenceImpl<TasksProposal>
Parameters:
tasksProposal - the instance of this model to clear the cache for

create

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

Specified by:
create in interface TasksProposalPersistence
Parameters:
proposalId - the primary key for the new tasks proposal
Returns:
the new tasks proposal

remove

public TasksProposal remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Removes the tasks proposal with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<TasksProposal>
Overrides:
remove in class BasePersistenceImpl<TasksProposal>
Parameters:
primaryKey - the primary key of the tasks proposal to remove
Returns:
the tasks proposal that was removed
Throws:
NoSuchModelException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface TasksProposalPersistence
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

removeImpl

protected TasksProposal removeImpl(TasksProposal tasksProposal)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<TasksProposal>
Parameters:
tasksProposal - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public TasksProposal updateImpl(TasksProposal tasksProposal,
                                boolean merge)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface TasksProposalPersistence
Overrides:
updateImpl in class BasePersistenceImpl<TasksProposal>
Parameters:
tasksProposal - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected TasksProposal toUnwrappedModel(TasksProposal tasksProposal)

findByPrimaryKey

public TasksProposal findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Finds the tasks proposal with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<TasksProposal>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<TasksProposal>
Parameters:
primaryKey - the primary key of the tasks proposal to find
Returns:
the tasks proposal
Throws:
NoSuchModelException - if a tasks proposal with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface TasksProposalPersistence
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 TasksProposal fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Finds the tasks proposal with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<TasksProposal>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<TasksProposal>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface TasksProposalPersistence
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 List<TasksProposal> findByGroupId(long groupId)
                                  throws SystemException
Finds all the tasks proposals where groupId = ?.

Specified by:
findByGroupId in interface TasksProposalPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching tasks proposals
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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.

Specified by:
findByGroupId in interface TasksProposalPersistence
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 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.

Specified by:
findByGroupId in interface TasksProposalPersistence
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 TasksProposal findByGroupId_First(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchProposalException,
                                         SystemException
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.

Specified by:
findByGroupId_First in interface TasksProposalPersistence
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 TasksProposal findByGroupId_Last(long groupId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchProposalException,
                                        SystemException
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.

Specified by:
findByGroupId_Last in interface TasksProposalPersistence
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 TasksProposal[] findByGroupId_PrevAndNext(long proposalId,
                                                 long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchProposalException,
                                                 SystemException
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.

Specified by:
findByGroupId_PrevAndNext in interface TasksProposalPersistence
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

getByGroupId_PrevAndNext

protected TasksProposal getByGroupId_PrevAndNext(Session session,
                                                 TasksProposal tasksProposal,
                                                 long groupId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface TasksProposalPersistence
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 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.

Specified by:
filterFindByGroupId in interface TasksProposalPersistence
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 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.

Specified by:
filterFindByGroupId in interface TasksProposalPersistence
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 List<TasksProposal> findByG_U(long groupId,
                                     long userId)
                              throws SystemException
Finds all the tasks proposals where groupId = ? and userId = ?.

Specified by:
findByG_U in interface TasksProposalPersistence
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 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.

Specified by:
findByG_U in interface TasksProposalPersistence
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 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.

Specified by:
findByG_U in interface TasksProposalPersistence
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 TasksProposal findByG_U_First(long groupId,
                                     long userId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchProposalException,
                                     SystemException
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.

Specified by:
findByG_U_First in interface TasksProposalPersistence
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 TasksProposal findByG_U_Last(long groupId,
                                    long userId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchProposalException,
                                    SystemException
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.

Specified by:
findByG_U_Last in interface TasksProposalPersistence
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 TasksProposal[] findByG_U_PrevAndNext(long proposalId,
                                             long groupId,
                                             long userId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchProposalException,
                                             SystemException
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.

Specified by:
findByG_U_PrevAndNext in interface TasksProposalPersistence
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

getByG_U_PrevAndNext

protected TasksProposal getByG_U_PrevAndNext(Session session,
                                             TasksProposal tasksProposal,
                                             long groupId,
                                             long userId,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByG_U

public 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 = ?.

Specified by:
filterFindByG_U in interface TasksProposalPersistence
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 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.

Specified by:
filterFindByG_U in interface TasksProposalPersistence
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 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.

Specified by:
filterFindByG_U in interface TasksProposalPersistence
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 TasksProposal findByC_C(long classNameId,
                               String classPK)
                        throws NoSuchProposalException,
                               SystemException
Finds the tasks proposal where classNameId = ? and classPK = ? or throws a NoSuchProposalException if it could not be found.

Specified by:
findByC_C in interface TasksProposalPersistence
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 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.

Specified by:
fetchByC_C in interface TasksProposalPersistence
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 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.

Specified by:
fetchByC_C in interface TasksProposalPersistence
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 List<TasksProposal> findAll()
                            throws SystemException
Finds all the tasks proposals.

Specified by:
findAll in interface TasksProposalPersistence
Returns:
the tasks proposals
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface TasksProposalPersistence
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 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.

Specified by:
findAll in interface TasksProposalPersistence
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 void removeByGroupId(long groupId)
                     throws SystemException
Removes all the tasks proposals where groupId = ? from the database.

Specified by:
removeByGroupId in interface TasksProposalPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_U

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

Specified by:
removeByG_U in interface TasksProposalPersistence
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 void removeByC_C(long classNameId,
                        String classPK)
                 throws NoSuchProposalException,
                        SystemException
Removes the tasks proposal where classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C in interface TasksProposalPersistence
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 void removeAll()
               throws SystemException
Removes all the tasks proposals from the database.

Specified by:
removeAll in interface TasksProposalPersistence
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface TasksProposalPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching tasks proposals
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

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

Specified by:
filterCountByGroupId in interface TasksProposalPersistence
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 int countByG_U(long groupId,
                      long userId)
               throws SystemException
Counts all the tasks proposals where groupId = ? and userId = ?.

Specified by:
countByG_U in interface TasksProposalPersistence
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 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 = ?.

Specified by:
filterCountByG_U in interface TasksProposalPersistence
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 int countByC_C(long classNameId,
                      String classPK)
               throws SystemException
Counts all the tasks proposals where classNameId = ? and classPK = ?.

Specified by:
countByC_C in interface TasksProposalPersistence
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 int countAll()
             throws SystemException
Counts all the tasks proposals.

Specified by:
countAll in interface TasksProposalPersistence
Returns:
the number of tasks proposals
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the tasks proposal persistence.


Liferay 6.0.5