|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.tasks.service.persistence.TasksProposalUtil
public class TasksProposalUtil
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
TasksProposalPersistence
,
TasksProposalPersistenceImpl
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 |
---|
public TasksProposalUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(TasksProposal tasksProposal)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<TasksProposal> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static TasksProposal remove(TasksProposal tasksProposal) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static TasksProposal update(TasksProposal tasksProposal, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static TasksProposal update(TasksProposal tasksProposal, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(TasksProposal tasksProposal)
tasksProposal
- the tasks proposal to cachepublic static void cacheResult(List<TasksProposal> tasksProposals)
tasksProposals
- the tasks proposals to cachepublic static TasksProposal create(long proposalId)
proposalId
- the primary key for the new tasks proposal
public static TasksProposal remove(long proposalId) throws SystemException, NoSuchProposalException
proposalId
- the primary key of the tasks proposal to remove
NoSuchProposalException
- if a tasks proposal with the primary key could not be found
SystemException
- if a system exception occurredpublic static TasksProposal updateImpl(TasksProposal tasksProposal, boolean merge) throws SystemException
SystemException
public static TasksProposal findByPrimaryKey(long proposalId) throws SystemException, NoSuchProposalException
NoSuchProposalException
if it could not be found.
proposalId
- the primary key of the tasks proposal to find
NoSuchProposalException
- if a tasks proposal with the primary key could not be found
SystemException
- if a system exception occurredpublic static TasksProposal fetchByPrimaryKey(long proposalId) throws SystemException
null
if it could not be found.
proposalId
- the primary key of the tasks proposal to find
null
if a tasks proposal with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksProposal> findByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static List<TasksProposal> findByGroupId(long groupId, int start, int end) throws SystemException
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.
groupId
- the group id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksProposal> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksProposal findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchProposalException
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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchProposalException
- if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static TasksProposal findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchProposalException
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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchProposalException
- if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static TasksProposal[] findByGroupId_PrevAndNext(long proposalId, long groupId, OrderByComparator orderByComparator) throws SystemException, NoSuchProposalException
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.
proposalId
- the primary key of the current tasks proposalgroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchProposalException
- if a tasks proposal with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksProposal> filterFindByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static List<TasksProposal> filterFindByGroupId(long groupId, int start, int end) throws SystemException
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.
groupId
- the group id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksProposal> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static List<TasksProposal> findByG_U(long groupId, long userId) throws SystemException
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic static List<TasksProposal> findByG_U(long groupId, long userId, int start, int end) throws SystemException
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.
groupId
- the group id to search withuserId
- the user id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksProposal> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group id to search withuserId
- the user id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksProposal findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchProposalException
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.
groupId
- the group id to search withuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchProposalException
- if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static TasksProposal findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchProposalException
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.
groupId
- the group id to search withuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchProposalException
- if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static TasksProposal[] findByG_U_PrevAndNext(long proposalId, long groupId, long userId, OrderByComparator orderByComparator) throws SystemException, NoSuchProposalException
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.
proposalId
- the primary key of the current tasks proposalgroupId
- the group id to search withuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchProposalException
- if a tasks proposal with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<TasksProposal> filterFindByG_U(long groupId, long userId) throws SystemException
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic static List<TasksProposal> filterFindByG_U(long groupId, long userId, int start, int end) throws SystemException
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.
groupId
- the group id to search withuserId
- the user id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksProposal> filterFindByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
groupId
- the group id to search withuserId
- the user id to search withstart
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static TasksProposal findByC_C(long classNameId, String classPK) throws SystemException, NoSuchProposalException
NoSuchProposalException
if it could not be found.
classNameId
- the class name id to search withclassPK
- the class p k to search with
NoSuchProposalException
- if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static TasksProposal fetchByC_C(long classNameId, String classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
classNameId
- the class name id to search withclassPK
- the class p k to search with
null
if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static TasksProposal fetchByC_C(long classNameId, String classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
classNameId
- the class name id to search withclassPK
- the class p k to search with
null
if a matching tasks proposal could not be found
SystemException
- if a system exception occurredpublic static List<TasksProposal> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<TasksProposal> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<TasksProposal> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of tasks proposals to returnend
- the upper bound of the range of tasks proposals to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static void removeByG_U(long groupId, long userId) throws SystemException
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic static void removeByC_C(long classNameId, String classPK) throws SystemException, NoSuchProposalException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurred
NoSuchProposalException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static int filterCountByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static int countByG_U(long groupId, long userId) throws SystemException
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic static int filterCountByG_U(long groupId, long userId) throws SystemException
groupId
- the group id to search withuserId
- the user id to search with
SystemException
- if a system exception occurredpublic static int countByC_C(long classNameId, String classPK) throws SystemException
classNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static TasksProposalPersistence getPersistence()
public void setPersistence(TasksProposalPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |