|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletItemPersistence
The persistence interface for the portlet item service.
Caching information and settings can be found in portal.properties
PortletItemPersistenceImpl
,
PortletItemUtil
Method Summary | |
---|---|
void |
cacheResult(List<PortletItem> portletItems)
Caches the portlet items in the entity cache if it is enabled. |
void |
cacheResult(PortletItem portletItem)
Caches the portlet item in the entity cache if it is enabled. |
int |
countAll()
Returns the number of portlet items. |
int |
countByG_C(long groupId,
long classNameId)
Returns the number of portlet items where groupId = ? and classNameId = ?. |
int |
countByG_N_P_C(long groupId,
String name,
String portletId,
long classNameId)
Returns the number of portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?. |
int |
countByG_P_C(long groupId,
String portletId,
long classNameId)
Returns the number of portlet items where groupId = ? and portletId = ? and classNameId = ?. |
PortletItem |
create(long portletItemId)
Creates a new portlet item with the primary key. |
PortletItem |
fetchByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?. |
PortletItem |
fetchByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?. |
PortletItem |
fetchByG_N_P_C(long groupId,
String name,
String portletId,
long classNameId)
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns null if it could not be found. |
PortletItem |
fetchByG_N_P_C(long groupId,
String name,
String portletId,
long classNameId,
boolean retrieveFromCache)
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns null if it could not be found, optionally using the finder cache. |
PortletItem |
fetchByG_P_C_First(long groupId,
String portletId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. |
PortletItem |
fetchByG_P_C_Last(long groupId,
String portletId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. |
PortletItem |
fetchByPrimaryKey(long portletItemId)
Returns the portlet item with the primary key or returns null if it could not be found. |
List<PortletItem> |
findAll()
Returns all the portlet items. |
List<PortletItem> |
findAll(int start,
int end)
Returns a range of all the portlet items. |
List<PortletItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the portlet items. |
PortletItem |
findByG_C_First(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?. |
PortletItem |
findByG_C_Last(long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?. |
PortletItem[] |
findByG_C_PrevAndNext(long portletItemId,
long groupId,
long classNameId,
OrderByComparator orderByComparator)
Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and classNameId = ?. |
List<PortletItem> |
findByG_C(long groupId,
long classNameId)
Returns all the portlet items where groupId = ? and classNameId = ?. |
List<PortletItem> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the portlet items where groupId = ? and classNameId = ?. |
List<PortletItem> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?. |
PortletItem |
findByG_N_P_C(long groupId,
String name,
String portletId,
long classNameId)
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or throws a NoSuchPortletItemException if it could not be found. |
PortletItem |
findByG_P_C_First(long groupId,
String portletId,
long classNameId,
OrderByComparator orderByComparator)
Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. |
PortletItem |
findByG_P_C_Last(long groupId,
String portletId,
long classNameId,
OrderByComparator orderByComparator)
Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. |
PortletItem[] |
findByG_P_C_PrevAndNext(long portletItemId,
long groupId,
String portletId,
long classNameId,
OrderByComparator orderByComparator)
Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?. |
List<PortletItem> |
findByG_P_C(long groupId,
String portletId,
long classNameId)
Returns all the portlet items where groupId = ? and portletId = ? and classNameId = ?. |
List<PortletItem> |
findByG_P_C(long groupId,
String portletId,
long classNameId,
int start,
int end)
Returns a range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?. |
List<PortletItem> |
findByG_P_C(long groupId,
String portletId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?. |
PortletItem |
findByPrimaryKey(long portletItemId)
Returns the portlet item with the primary key or throws a NoSuchPortletItemException if it could not be found. |
PortletItem |
remove(long portletItemId)
Removes the portlet item with the primary key from the database. |
void |
removeAll()
Removes all the portlet items from the database. |
void |
removeByG_C(long groupId,
long classNameId)
Removes all the portlet items where groupId = ? and classNameId = ? from the database. |
PortletItem |
removeByG_N_P_C(long groupId,
String name,
String portletId,
long classNameId)
Removes the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? from the database. |
void |
removeByG_P_C(long groupId,
String portletId,
long classNameId)
Removes all the portlet items where groupId = ? and portletId = ? and classNameId = ? from the database. |
PortletItem |
updateImpl(PortletItem portletItem,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(PortletItem portletItem)
portletItem
- the portlet itemvoid cacheResult(List<PortletItem> portletItems)
portletItems
- the portlet itemsPortletItem create(long portletItemId)
portletItemId
- the primary key for the new portlet item
PortletItem remove(long portletItemId) throws NoSuchPortletItemException, SystemException
portletItemId
- the primary key of the portlet item
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
SystemException
- if a system exception occurredPortletItem updateImpl(PortletItem portletItem, boolean merge) throws SystemException
SystemException
PortletItem findByPrimaryKey(long portletItemId) throws NoSuchPortletItemException, SystemException
NoSuchPortletItemException
if it could not be found.
portletItemId
- the primary key of the portlet item
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
SystemException
- if a system exception occurredPortletItem fetchByPrimaryKey(long portletItemId) throws SystemException
null
if it could not be found.
portletItemId
- the primary key of the portlet item
null
if a portlet item with the primary key could not be found
SystemException
- if a system exception occurredList<PortletItem> findByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredList<PortletItem> findByG_C(long groupId, long classNameId, 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 IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)
SystemException
- if a system exception occurredList<PortletItem> findByG_C(long groupId, long classNameId, 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 IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredPortletItem findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws NoSuchPortletItemException, SystemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchPortletItemException
- if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws NoSuchPortletItemException, SystemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchPortletItemException
- if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem[] findByG_C_PrevAndNext(long portletItemId, long groupId, long classNameId, OrderByComparator orderByComparator) throws NoSuchPortletItemException, SystemException
portletItemId
- the primary key of the current portlet itemgroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
SystemException
- if a system exception occurredList<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId) throws SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name ID
SystemException
- if a system exception occurredList<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, 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 IDportletId
- the portlet IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)
SystemException
- if a system exception occurredList<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, 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 IDportletId
- the portlet IDclassNameId
- the class name IDstart
- the lower bound of the range of portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredPortletItem findByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator orderByComparator) throws NoSuchPortletItemException, SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchPortletItemException
- if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem fetchByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem findByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator orderByComparator) throws NoSuchPortletItemException, SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchPortletItemException
- if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem fetchByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem[] findByG_P_C_PrevAndNext(long portletItemId, long groupId, String portletId, long classNameId, OrderByComparator orderByComparator) throws NoSuchPortletItemException, SystemException
portletItemId
- the primary key of the current portlet itemgroupId
- the group IDportletId
- the portlet IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchPortletItemException
- if a portlet item with the primary key could not be found
SystemException
- if a system exception occurredPortletItem findByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws NoSuchPortletItemException, SystemException
NoSuchPortletItemException
if it could not be found.
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID
NoSuchPortletItemException
- if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID
null
if a matching portlet item could not be found
SystemException
- if a system exception occurredPortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name IDretrieveFromCache
- whether to use the finder cache
null
if a matching portlet item could not be found
SystemException
- if a system exception occurredList<PortletItem> findAll() throws SystemException
SystemException
- if a system exception occurredList<PortletItem> 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 portlet itemsend
- the upper bound of the range of portlet items (not inclusive)
SystemException
- if a system exception occurredList<PortletItem> 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 portlet itemsend
- the upper bound of the range of portlet items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredvoid removeByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredvoid removeByG_P_C(long groupId, String portletId, long classNameId) throws SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name ID
SystemException
- if a system exception occurredPortletItem removeByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws NoSuchPortletItemException, SystemException
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID
SystemException
- if a system exception occurred
NoSuchPortletItemException
void removeAll() throws SystemException
SystemException
- if a system exception occurredint countByG_C(long groupId, long classNameId) throws SystemException
groupId
- the group IDclassNameId
- the class name ID
SystemException
- if a system exception occurredint countByG_P_C(long groupId, String portletId, long classNameId) throws SystemException
groupId
- the group IDportletId
- the portlet IDclassNameId
- the class name ID
SystemException
- if a system exception occurredint countByG_N_P_C(long groupId, String name, String portletId, long classNameId) throws SystemException
groupId
- the group IDname
- the nameportletId
- the portlet IDclassNameId
- the class name ID
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |