Liferay 6.0.5

com.liferay.portal.service.persistence
Class PortletItemUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.PortletItemUtil

public class PortletItemUtil
extends Object

The persistence utility for the portlet item service. This utility wraps PortletItemPersistenceImpl 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

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

Constructor Summary
PortletItemUtil()
           
 
Method Summary
static void cacheResult(List<PortletItem> portletItems)
          Caches the portlet items in the entity cache if it is enabled.
static void cacheResult(PortletItem portletItem)
          Caches the portlet item in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(PortletItem portletItem)
           
static int countAll()
          Counts all the portlet items.
static int countByG_C(long groupId, long classNameId)
          Counts all the portlet items where groupId = ? and classNameId = ?.
static int countByG_N_P_C(long groupId, String name, String portletId, long classNameId)
          Counts all the portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?.
static int countByG_P_C(long groupId, String portletId, long classNameId)
          Counts all the portlet items where groupId = ? and portletId = ? and classNameId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static PortletItem create(long portletItemId)
          Creates a new portlet item with the primary key.
static PortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId)
          Finds the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or returns null if it could not be found.
static PortletItem fetchByG_N_P_C(long groupId, String name, String portletId, long classNameId, boolean retrieveFromCache)
          Finds 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.
static PortletItem fetchByPrimaryKey(long portletItemId)
          Finds the portlet item with the primary key or returns null if it could not be found.
static List<PortletItem> findAll()
          Finds all the portlet items.
static List<PortletItem> findAll(int start, int end)
          Finds a range of all the portlet items.
static List<PortletItem> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the portlet items.
static PortletItem findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Finds the first portlet item in the ordered set where groupId = ? and classNameId = ?.
static PortletItem findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Finds the last portlet item in the ordered set where groupId = ? and classNameId = ?.
static PortletItem[] findByG_C_PrevAndNext(long portletItemId, long groupId, long classNameId, OrderByComparator orderByComparator)
          Finds the portlet items before and after the current portlet item in the ordered set where groupId = ? and classNameId = ?.
static List<PortletItem> findByG_C(long groupId, long classNameId)
          Finds all the portlet items where groupId = ? and classNameId = ?.
static List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end)
          Finds a range of all the portlet items where groupId = ? and classNameId = ?.
static List<PortletItem> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the portlet items where groupId = ? and classNameId = ?.
static PortletItem findByG_N_P_C(long groupId, String name, String portletId, long classNameId)
          Finds the portlet item where groupId = ? and name = ? and portletId = ? and classNameId = ? or throws a NoSuchPortletItemException if it could not be found.
static PortletItem findByG_P_C_First(long groupId, String portletId, long classNameId, OrderByComparator orderByComparator)
          Finds the first portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.
static PortletItem findByG_P_C_Last(long groupId, String portletId, long classNameId, OrderByComparator orderByComparator)
          Finds the last portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.
static PortletItem[] findByG_P_C_PrevAndNext(long portletItemId, long groupId, String portletId, long classNameId, OrderByComparator orderByComparator)
          Finds the portlet items before and after the current portlet item in the ordered set where groupId = ? and portletId = ? and classNameId = ?.
static List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId)
          Finds all the portlet items where groupId = ? and portletId = ? and classNameId = ?.
static List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end)
          Finds a range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.
static List<PortletItem> findByG_P_C(long groupId, String portletId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the portlet items where groupId = ? and portletId = ? and classNameId = ?.
static PortletItem findByPrimaryKey(long portletItemId)
          Finds the portlet item with the primary key or throws a NoSuchPortletItemException if it could not be found.
static List<PortletItem> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<PortletItem> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<PortletItem> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static PortletItemPersistence getPersistence()
           
static PortletItem remove(long portletItemId)
          Removes the portlet item with the primary key from the database.
static PortletItem remove(PortletItem portletItem)
           
static void removeAll()
          Removes all the portlet items from the database.
static void removeByG_C(long groupId, long classNameId)
          Removes all the portlet items where groupId = ? and classNameId = ? from the database.
static void 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.
static void removeByG_P_C(long groupId, String portletId, long classNameId)
          Removes all the portlet items where groupId = ? and portletId = ? and classNameId = ? from the database.
 void setPersistence(PortletItemPersistence persistence)
           
static PortletItem update(PortletItem portletItem, boolean merge)
           
static PortletItem update(PortletItem portletItem, boolean merge, ServiceContext serviceContext)
           
static PortletItem updateImpl(PortletItem portletItem, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletItemUtil

public PortletItemUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(PortletItem portletItem)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<PortletItem> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<PortletItem> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<PortletItem> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static PortletItem remove(PortletItem portletItem)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static PortletItem update(PortletItem portletItem,
                                 boolean merge)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static PortletItem update(PortletItem portletItem,
                                 boolean merge,
                                 ServiceContext serviceContext)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

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

Parameters:
portletItem - the portlet item to cache

cacheResult

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

Parameters:
portletItems - the portlet items to cache

create

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

public static 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 to remove
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

public static PortletItem updateImpl(PortletItem portletItem,
                                     boolean merge)
                              throws SystemException
Throws:
SystemException

findByPrimaryKey

public static PortletItem findByPrimaryKey(long portletItemId)
                                    throws NoSuchPortletItemException,
                                           SystemException
Finds 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 to find
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

public static PortletItem fetchByPrimaryKey(long portletItemId)
                                     throws SystemException
Finds 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 to find
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

findByG_C

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

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

findByG_C

public static List<PortletItem> findByG_C(long groupId,
                                          long classNameId,
                                          int start,
                                          int end)
                                   throws SystemException
Finds 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.

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

findByG_C

public static List<PortletItem> findByG_C(long groupId,
                                          long classNameId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds 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.

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

findByG_C_First

public static PortletItem findByG_C_First(long groupId,
                                          long classNameId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchPortletItemException,
                                          SystemException
Finds the first portlet item in the ordered set 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.

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

findByG_C_Last

public static PortletItem findByG_C_Last(long groupId,
                                         long classNameId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchPortletItemException,
                                         SystemException
Finds the last portlet item in the ordered set 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.

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

findByG_C_PrevAndNext

public static PortletItem[] findByG_C_PrevAndNext(long portletItemId,
                                                  long groupId,
                                                  long classNameId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchPortletItemException,
                                                  SystemException
Finds the portlet items before and after the current portlet item in the ordered set 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.

Parameters:
portletItemId - the primary key of the current portlet item
groupId - the group id to search with
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
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

findByG_P_C

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

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

findByG_P_C

public static List<PortletItem> findByG_P_C(long groupId,
                                            String portletId,
                                            long classNameId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds 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.

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

findByG_P_C

public static List<PortletItem> findByG_P_C(long groupId,
                                            String portletId,
                                            long classNameId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds 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.

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

findByG_P_C_First

public static PortletItem findByG_P_C_First(long groupId,
                                            String portletId,
                                            long classNameId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchPortletItemException,
                                            SystemException
Finds the first portlet item in the ordered set 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.

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

findByG_P_C_Last

public static PortletItem findByG_P_C_Last(long groupId,
                                           String portletId,
                                           long classNameId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchPortletItemException,
                                           SystemException
Finds the last portlet item in the ordered set 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.

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

findByG_P_C_PrevAndNext

public static PortletItem[] findByG_P_C_PrevAndNext(long portletItemId,
                                                    long groupId,
                                                    String portletId,
                                                    long classNameId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchPortletItemException,
                                                    SystemException
Finds the portlet items before and after the current portlet item in the ordered set 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.

Parameters:
portletItemId - the primary key of the current portlet item
groupId - the group id to search with
portletId - the portlet id to search with
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
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

findByG_N_P_C

public static PortletItem findByG_N_P_C(long groupId,
                                        String name,
                                        String portletId,
                                        long classNameId)
                                 throws NoSuchPortletItemException,
                                        SystemException
Finds 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 to search with
name - the name to search with
portletId - the portlet id to search with
classNameId - the class name id to search with
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

public static PortletItem fetchByG_N_P_C(long groupId,
                                         String name,
                                         String portletId,
                                         long classNameId)
                                  throws SystemException
Finds 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 to search with
name - the name to search with
portletId - the portlet id to search with
classNameId - the class name id to search with
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

public static PortletItem fetchByG_N_P_C(long groupId,
                                         String name,
                                         String portletId,
                                         long classNameId,
                                         boolean retrieveFromCache)
                                  throws SystemException
Finds 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 to search with
name - the name to search with
portletId - the portlet id to search with
classNameId - the class name id to search with
Returns:
the matching portlet item, or null if a matching portlet item could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<PortletItem> findAll()
                                 throws SystemException
Finds all the portlet items.

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

findAll

public static List<PortletItem> findAll(int start,
                                        int end)
                                 throws SystemException
Finds 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.

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

findAll

public static List<PortletItem> findAll(int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds 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.

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

removeByG_C

public static 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 to search with
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred

removeByG_P_C

public static 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 to search with
portletId - the portlet id to search with
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred

removeByG_N_P_C

public static void 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 to search with
name - the name to search with
portletId - the portlet id to search with
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred
NoSuchPortletItemException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByG_C

public static int countByG_C(long groupId,
                             long classNameId)
                      throws SystemException
Counts all the portlet items where groupId = ? and classNameId = ?.

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

countByG_P_C

public static int countByG_P_C(long groupId,
                               String portletId,
                               long classNameId)
                        throws SystemException
Counts all the portlet items where groupId = ? and portletId = ? and classNameId = ?.

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

countByG_N_P_C

public static int countByG_N_P_C(long groupId,
                                 String name,
                                 String portletId,
                                 long classNameId)
                          throws SystemException
Counts all the portlet items where groupId = ? and name = ? and portletId = ? and classNameId = ?.

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

countAll

public static int countAll()
                    throws SystemException
Counts all the portlet items.

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

getPersistence

public static PortletItemPersistence getPersistence()

setPersistence

public void setPersistence(PortletItemPersistence persistence)

Liferay 6.0.5