Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Interface PortletItemPersistence

All Superinterfaces:
BasePersistence<PortletItem>

@ProviderType
public interface PortletItemPersistence
extends BasePersistence<PortletItem>

The persistence interface for the portlet item service.

Caching information and settings can be found in portal.properties

See Also:
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)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByG_C

List<PortletItem> findByG_C(long groupId,
                            long classNameId)
                            throws SystemException
Returns all the portlet items where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_C

List<PortletItem> findByG_C(long groupId,
                            long classNameId,
                            int start,
                            int end)
                            throws SystemException
Returns a range of all the portlet items where groupId = ? and classNameId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of portlet items
end - the upper bound of the range of portlet items (not inclusive)
Returns:
the range of matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_C

List<PortletItem> findByG_C(long groupId,
                            long classNameId,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the portlet items where groupId = ? and classNameId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of portlet items
end - the upper bound of the range of portlet items (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_C_First

PortletItem findByG_C_First(long groupId,
                            long classNameId,
                            OrderByComparator orderByComparator)
                            throws NoSuchPortletItemException,
                                   SystemException
Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet item
Throws:
NoSuchPortletItemException - if a matching portlet item could not be found
SystemException - if a system exception occurred

fetchByG_C_First

PortletItem fetchByG_C_First(long groupId,
                             long classNameId,
                             OrderByComparator orderByComparator)
                             throws SystemException
Returns the first portlet item in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_Last

PortletItem findByG_C_Last(long groupId,
                           long classNameId,
                           OrderByComparator orderByComparator)
                           throws NoSuchPortletItemException,
                                  SystemException
Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet item
Throws:
NoSuchPortletItemException - if a matching portlet item could not be found
SystemException - if a system exception occurred

fetchByG_C_Last

PortletItem fetchByG_C_Last(long groupId,
                            long classNameId,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns the last portlet item in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_PrevAndNext

PortletItem[] findByG_C_PrevAndNext(long portletItemId,
                                    long groupId,
                                    long classNameId,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchPortletItemException,
                                           SystemException
Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and classNameId = ?.

Parameters:
portletItemId - the primary key of the current portlet item
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet item
Throws:
NoSuchPortletItemException - if a portlet item with the primary key could not be found
SystemException - if a system exception occurred

removeByG_C

void removeByG_C(long groupId,
                 long classNameId)
                 throws SystemException
Removes all the portlet items where groupId = ? and classNameId = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_C

int countByG_C(long groupId,
               long classNameId)
               throws SystemException
Returns the number of portlet items where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the number of matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_P_C

List<PortletItem> findByG_P_C(long groupId,
                              String portletId,
                              long classNameId)
                              throws SystemException
Returns all the portlet items where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
Returns:
the matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_P_C

List<PortletItem> findByG_P_C(long groupId,
                              String portletId,
                              long classNameId,
                              int start,
                              int end)
                              throws SystemException
Returns a range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
start - the lower bound of the range of portlet items
end - the upper bound of the range of portlet items (not inclusive)
Returns:
the range of matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_P_C

List<PortletItem> findByG_P_C(long groupId,
                              String portletId,
                              long classNameId,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
start - the lower bound of the range of portlet items
end - the upper bound of the range of portlet items (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_P_C_First

PortletItem findByG_P_C_First(long groupId,
                              String portletId,
                              long classNameId,
                              OrderByComparator orderByComparator)
                              throws NoSuchPortletItemException,
                                     SystemException
Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet item
Throws:
NoSuchPortletItemException - if a matching portlet item could not be found
SystemException - if a system exception occurred

fetchByG_P_C_First

PortletItem fetchByG_P_C_First(long groupId,
                               String portletId,
                               long classNameId,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_C_Last

PortletItem findByG_P_C_Last(long groupId,
                             String portletId,
                             long classNameId,
                             OrderByComparator orderByComparator)
                             throws NoSuchPortletItemException,
                                    SystemException
Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet item
Throws:
NoSuchPortletItemException - if a matching portlet item could not be found
SystemException - if a system exception occurred

fetchByG_P_C_Last

PortletItem fetchByG_P_C_Last(long groupId,
                              String portletId,
                              long classNameId,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_C_PrevAndNext

PortletItem[] findByG_P_C_PrevAndNext(long portletItemId,
                                      long groupId,
                                      String portletId,
                                      long classNameId,
                                      OrderByComparator orderByComparator)
                                      throws NoSuchPortletItemException,
                                             SystemException
Returns the portlet items before and after the current portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
portletItemId - the primary key of the current portlet item
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next portlet item
Throws:
NoSuchPortletItemException - if a portlet item with the primary key could not be found
SystemException - if a system exception occurred

removeByG_P_C

void removeByG_P_C(long groupId,
                   String portletId,
                   long classNameId)
                   throws SystemException
Removes all the portlet items where groupId = ? and portletId = ? and classNameId = ? from the database.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_P_C

int countByG_P_C(long groupId,
                 String portletId,
                 long classNameId)
                 throws SystemException
Returns the number of portlet items where groupId = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
portletId - the portlet ID
classNameId - the class name ID
Returns:
the number of matching portlet items
Throws:
SystemException - if a system exception occurred

findByG_N_P_C

PortletItem findByG_N_P_C(long groupId,
                          String name,
                          String portletId,
                          long classNameId)
                          throws NoSuchPortletItemException,
                                 SystemException
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or throws a NoSuchPortletItemException if it could not be found.

Parameters:
groupId - the group ID
name - the name
portletId - the portlet ID
classNameId - the class name ID
Returns:
the matching portlet item
Throws:
NoSuchPortletItemException - if a matching portlet item could not be found
SystemException - if a system exception occurred

fetchByG_N_P_C

PortletItem fetchByG_N_P_C(long groupId,
                           String name,
                           String portletId,
                           long classNameId)
                           throws SystemException
Returns the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
name - the name
portletId - the portlet ID
classNameId - the class name ID
Returns:
the matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_N_P_C

PortletItem fetchByG_N_P_C(long groupId,
                           String name,
                           String portletId,
                           long classNameId,
                           boolean retrieveFromCache)
                           throws SystemException
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.

Parameters:
groupId - the group ID
name - the name
portletId - the portlet ID
classNameId - the class name ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

removeByG_N_P_C

PortletItem removeByG_N_P_C(long groupId,
                            String name,
                            String portletId,
                            long classNameId)
                            throws NoSuchPortletItemException,
                                   SystemException
Removes the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? from the database.

Parameters:
groupId - the group ID
name - the name
portletId - the portlet ID
classNameId - the class name ID
Returns:
the portlet item that was removed
Throws:
SystemException - if a system exception occurred
NoSuchPortletItemException

countByG_N_P_C

int countByG_N_P_C(long groupId,
                   String name,
                   String portletId,
                   long classNameId)
                   throws SystemException
Returns the number of portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?.

Parameters:
groupId - the group ID
name - the name
portletId - the portlet ID
classNameId - the class name ID
Returns:
the number of matching portlet items
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(PortletItem portletItem)
Caches the portlet item in the entity cache if it is enabled.

Parameters:
portletItem - the portlet item

cacheResult

void cacheResult(List<PortletItem> portletItems)
Caches the portlet items in the entity cache if it is enabled.

Parameters:
portletItems - the portlet items

create

PortletItem create(long portletItemId)
Creates a new portlet item with the primary key. Does not add the portlet item to the database.

Parameters:
portletItemId - the primary key for the new portlet item
Returns:
the new portlet item

remove

PortletItem remove(long portletItemId)
                   throws NoSuchPortletItemException,
                          SystemException
Removes the portlet item with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
portletItemId - the primary key of the portlet item
Returns:
the portlet item that was removed
Throws:
NoSuchPortletItemException - if a portlet item with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

PortletItem updateImpl(PortletItem portletItem)
                       throws SystemException
Throws:
SystemException

findByPrimaryKey

PortletItem findByPrimaryKey(long portletItemId)
                             throws NoSuchPortletItemException,
                                    SystemException
Returns the portlet item with the primary key or throws a NoSuchPortletItemException if it could not be found.

Parameters:
portletItemId - the primary key of the portlet item
Returns:
the portlet item
Throws:
NoSuchPortletItemException - if a portlet item with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

PortletItem fetchByPrimaryKey(long portletItemId)
                              throws SystemException
Returns the portlet item with the primary key or returns null if it could not be found.

Parameters:
portletItemId - the primary key of the portlet item
Returns:
the portlet item, or null if a portlet item with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<PortletItem> findAll()
                          throws SystemException
Returns all the portlet items.

Returns:
the portlet items
Throws:
SystemException - if a system exception occurred

findAll

List<PortletItem> findAll(int start,
                          int end)
                          throws SystemException
Returns a range of all the portlet items.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of portlet items
end - the upper bound of the range of portlet items (not inclusive)
Returns:
the range of portlet items
Throws:
SystemException - if a system exception occurred

findAll

List<PortletItem> findAll(int start,
                          int end,
                          OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the portlet items.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PortletItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

removeAll

void removeAll()
               throws SystemException
Removes all the portlet items from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of portlet items.

Returns:
the number of portlet items
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5