com.liferay.portlet.ratings.service.persistence
Interface RatingsEntryPersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface RatingsEntryPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByC_C(long classNameId,
long classPK)
|
int |
countByU_C_C(long userId,
long classNameId,
long classPK)
|
RatingsEntry |
create(long entryId)
|
RatingsEntry |
fetchByPrimaryKey(long entryId)
|
RatingsEntry |
fetchByU_C_C(long userId,
long classNameId,
long classPK)
|
java.util.List<RatingsEntry> |
findAll()
|
java.util.List<RatingsEntry> |
findAll(int start,
int end)
|
java.util.List<RatingsEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
RatingsEntry |
findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
RatingsEntry |
findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
RatingsEntry[] |
findByC_C_PrevAndNext(long entryId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<RatingsEntry> |
findByC_C(long classNameId,
long classPK)
|
java.util.List<RatingsEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
|
java.util.List<RatingsEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
RatingsEntry |
findByPrimaryKey(long entryId)
|
RatingsEntry |
findByU_C_C(long userId,
long classNameId,
long classPK)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
RatingsEntry |
remove(long entryId)
|
RatingsEntry |
remove(RatingsEntry ratingsEntry)
|
void |
removeAll()
|
void |
removeByC_C(long classNameId,
long classPK)
|
void |
removeByU_C_C(long userId,
long classNameId,
long classPK)
|
RatingsEntry |
update(RatingsEntry ratingsEntry)
Deprecated. Use update(RatingsEntry ratingsEntry, boolean merge) . |
RatingsEntry |
update(RatingsEntry ratingsEntry,
boolean merge)
Add, update, or merge, the entity. |
RatingsEntry |
updateImpl(RatingsEntry ratingsEntry,
boolean merge)
|
create
RatingsEntry create(long entryId)
remove
RatingsEntry remove(long entryId)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
remove
RatingsEntry remove(RatingsEntry ratingsEntry)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
RatingsEntry update(RatingsEntry ratingsEntry)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(RatingsEntry ratingsEntry, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
RatingsEntry update(RatingsEntry ratingsEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
ratingsEntry
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when ratingsEntry is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
RatingsEntry updateImpl(RatingsEntry ratingsEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
RatingsEntry findByPrimaryKey(long entryId)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
fetchByPrimaryKey
RatingsEntry fetchByPrimaryKey(long entryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<RatingsEntry> findByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<RatingsEntry> findByC_C(long classNameId,
long classPK,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<RatingsEntry> findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
RatingsEntry findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByC_C_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
RatingsEntry findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByC_C_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
RatingsEntry[] findByC_C_PrevAndNext(long entryId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
findByU_C_C
@Transactional(propagation=SUPPORTS,
readOnly=true)
RatingsEntry findByU_C_C(long userId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
fetchByU_C_C
RatingsEntry fetchByU_C_C(long userId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<RatingsEntry> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<RatingsEntry> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<RatingsEntry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_C
void removeByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_C_C
void removeByU_C_C(long userId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException,
NoSuchEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchEntryException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_C
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByC_C(long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_C_C
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByU_C_C(long userId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException