com.liferay.portal.service.persistence
Class PortletItemUtil
java.lang.Object
com.liferay.portal.service.persistence.PortletItemUtil
public class PortletItemUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByG_C(long groupId,
long classNameId)
|
static int |
countByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
|
static int |
countByG_P_C(long groupId,
java.lang.String portletId,
long classNameId)
|
static PortletItem |
create(long portletItemId)
|
static PortletItem |
fetchByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
|
static PortletItem |
fetchByPrimaryKey(long portletItemId)
|
static java.util.List<PortletItem> |
findAll()
|
static java.util.List<PortletItem> |
findAll(int start,
int end)
|
static java.util.List<PortletItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem |
findByG_C_First(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem |
findByG_C_Last(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem[] |
findByG_C_PrevAndNext(long portletItemId,
long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<PortletItem> |
findByG_C(long groupId,
long classNameId)
|
static java.util.List<PortletItem> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
|
static java.util.List<PortletItem> |
findByG_C(long groupId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem |
findByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
|
static PortletItem |
findByG_P_C_First(long groupId,
java.lang.String portletId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem |
findByG_P_C_Last(long groupId,
java.lang.String portletId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem[] |
findByG_P_C_PrevAndNext(long portletItemId,
long groupId,
java.lang.String portletId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<PortletItem> |
findByG_P_C(long groupId,
java.lang.String portletId,
long classNameId)
|
static java.util.List<PortletItem> |
findByG_P_C(long groupId,
java.lang.String portletId,
long classNameId,
int start,
int end)
|
static java.util.List<PortletItem> |
findByG_P_C(long groupId,
java.lang.String portletId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletItem |
findByPrimaryKey(long portletItemId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static PortletItemPersistence |
getPersistence()
|
static PortletItem |
remove(long portletItemId)
|
static PortletItem |
remove(PortletItem portletItem)
|
static void |
removeAll()
|
static void |
removeByG_C(long groupId,
long classNameId)
|
static void |
removeByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
|
static void |
removeByG_P_C(long groupId,
java.lang.String portletId,
long classNameId)
|
void |
setPersistence(PortletItemPersistence persistence)
|
static PortletItem |
update(PortletItem portletItem)
Deprecated. Use update(PortletItem portletItem, boolean merge) . |
static PortletItem |
update(PortletItem portletItem,
boolean merge)
Add, update, or merge, the entity. |
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 |
PortletItemUtil
public PortletItemUtil()
create
public static PortletItem create(long portletItemId)
remove
public static PortletItem remove(long portletItemId)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
remove
public static PortletItem remove(PortletItem portletItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static PortletItem update(PortletItem portletItem)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(PortletItem portletItem, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static PortletItem update(PortletItem portletItem,
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:
portletItem
- 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 portletItem 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
public static PortletItem updateImpl(PortletItem portletItem,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static PortletItem findByPrimaryKey(long portletItemId)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static PortletItem fetchByPrimaryKey(long portletItemId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_C
public static java.util.List<PortletItem> findByG_C(long groupId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_C
public static java.util.List<PortletItem> findByG_C(long groupId,
long classNameId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_C
public static java.util.List<PortletItem> findByG_C(long groupId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_C_First
public static PortletItem findByG_C_First(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
findByG_C_Last
public static PortletItem findByG_C_Last(long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
findByG_C_PrevAndNext
public static PortletItem[] findByG_C_PrevAndNext(long portletItemId,
long groupId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
findByG_P_C
public static java.util.List<PortletItem> findByG_P_C(long groupId,
java.lang.String portletId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_P_C
public static java.util.List<PortletItem> findByG_P_C(long groupId,
java.lang.String portletId,
long classNameId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_P_C
public static java.util.List<PortletItem> findByG_P_C(long groupId,
java.lang.String portletId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_P_C_First
public static PortletItem findByG_P_C_First(long groupId,
java.lang.String portletId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
findByG_P_C_Last
public static PortletItem findByG_P_C_Last(long groupId,
java.lang.String portletId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
findByG_P_C_PrevAndNext
public static PortletItem[] findByG_P_C_PrevAndNext(long portletItemId,
long groupId,
java.lang.String portletId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
findByG_N_P_C
public static PortletItem findByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
fetchByG_N_P_C
public static PortletItem fetchByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static 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
public static 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
public static java.util.List<PortletItem> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PortletItem> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PortletItem> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_C
public static void removeByG_C(long groupId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_P_C
public static void removeByG_P_C(long groupId,
java.lang.String portletId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_N_P_C
public static void removeByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
throws NoSuchPortletItemException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletItemException
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_C
public static int countByG_C(long groupId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_P_C
public static int countByG_P_C(long groupId,
java.lang.String portletId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_N_P_C
public static int countByG_N_P_C(long groupId,
java.lang.String name,
java.lang.String portletId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static PortletItemPersistence getPersistence()
setPersistence
public void setPersistence(PortletItemPersistence persistence)