com.liferay.portal.service.persistence
Class PortletPreferencesUtil
java.lang.Object
com.liferay.portal.service.persistence.PortletPreferencesUtil
public class PortletPreferencesUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
static int |
countByO_O_P(long ownerId,
int ownerType,
long plid)
|
static int |
countByP_P(long plid,
java.lang.String portletId)
|
static int |
countByPlid(long plid)
|
static PortletPreferences |
create(long portletPreferencesId)
|
static PortletPreferences |
fetchByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
static PortletPreferences |
fetchByPrimaryKey(long portletPreferencesId)
|
static java.util.List<PortletPreferences> |
findAll()
|
static java.util.List<PortletPreferences> |
findAll(int start,
int end)
|
static java.util.List<PortletPreferences> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByO_O_P_First(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByO_O_P_Last(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
static PortletPreferences[] |
findByO_O_P_PrevAndNext(long portletPreferencesId,
long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<PortletPreferences> |
findByO_O_P(long ownerId,
int ownerType,
long plid)
|
static java.util.List<PortletPreferences> |
findByO_O_P(long ownerId,
int ownerType,
long plid,
int start,
int end)
|
static java.util.List<PortletPreferences> |
findByO_O_P(long ownerId,
int ownerType,
long plid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByP_P_First(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByP_P_Last(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences[] |
findByP_P_PrevAndNext(long portletPreferencesId,
long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<PortletPreferences> |
findByP_P(long plid,
java.lang.String portletId)
|
static java.util.List<PortletPreferences> |
findByP_P(long plid,
java.lang.String portletId,
int start,
int end)
|
static java.util.List<PortletPreferences> |
findByP_P(long plid,
java.lang.String portletId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByPlid_First(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByPlid_Last(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences[] |
findByPlid_PrevAndNext(long portletPreferencesId,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<PortletPreferences> |
findByPlid(long plid)
|
static java.util.List<PortletPreferences> |
findByPlid(long plid,
int start,
int end)
|
static java.util.List<PortletPreferences> |
findByPlid(long plid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PortletPreferences |
findByPrimaryKey(long portletPreferencesId)
|
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 PortletPreferencesPersistence |
getPersistence()
|
static PortletPreferences |
remove(long portletPreferencesId)
|
static PortletPreferences |
remove(PortletPreferences portletPreferences)
|
static void |
removeAll()
|
static void |
removeByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
static void |
removeByO_O_P(long ownerId,
int ownerType,
long plid)
|
static void |
removeByP_P(long plid,
java.lang.String portletId)
|
static void |
removeByPlid(long plid)
|
void |
setPersistence(PortletPreferencesPersistence persistence)
|
static PortletPreferences |
update(PortletPreferences portletPreferences)
Deprecated. Use update(PortletPreferences portletPreferences, boolean merge) . |
static PortletPreferences |
update(PortletPreferences portletPreferences,
boolean merge)
Add, update, or merge, the entity. |
static PortletPreferences |
updateImpl(PortletPreferences portletPreferences,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletPreferencesUtil
public PortletPreferencesUtil()
create
public static PortletPreferences create(long portletPreferencesId)
remove
public static PortletPreferences remove(long portletPreferencesId)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
remove
public static PortletPreferences remove(PortletPreferences portletPreferences)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static PortletPreferences update(PortletPreferences portletPreferences)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(PortletPreferences portletPreferences, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static PortletPreferences update(PortletPreferences portletPreferences,
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:
portletPreferences
- 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 portletPreferences 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 PortletPreferences updateImpl(PortletPreferences portletPreferences,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static PortletPreferences findByPrimaryKey(long portletPreferencesId)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPlid
public static java.util.List<PortletPreferences> findByPlid(long plid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPlid
public static java.util.List<PortletPreferences> findByPlid(long plid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPlid
public static java.util.List<PortletPreferences> findByPlid(long plid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPlid_First
public static PortletPreferences findByPlid_First(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByPlid_Last
public static PortletPreferences findByPlid_Last(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByPlid_PrevAndNext
public static PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByP_P
public static java.util.List<PortletPreferences> findByP_P(long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_P
public static java.util.List<PortletPreferences> findByP_P(long plid,
java.lang.String portletId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_P
public static java.util.List<PortletPreferences> findByP_P(long plid,
java.lang.String portletId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByP_P_First
public static PortletPreferences findByP_P_First(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByP_P_Last
public static PortletPreferences findByP_P_Last(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByP_P_PrevAndNext
public static PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId,
long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P
public static java.util.List<PortletPreferences> findByO_O_P(long ownerId,
int ownerType,
long plid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByO_O_P
public static java.util.List<PortletPreferences> findByO_O_P(long ownerId,
int ownerType,
long plid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByO_O_P
public static java.util.List<PortletPreferences> findByO_O_P(long ownerId,
int ownerType,
long plid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByO_O_P_First
public static PortletPreferences findByO_O_P_First(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P_Last
public static PortletPreferences findByO_O_P_Last(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P_PrevAndNext
public static PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId,
long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P_P
public static PortletPreferences findByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
fetchByO_O_P_P
public static PortletPreferences fetchByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
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<PortletPreferences> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PortletPreferences> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PortletPreferences> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByPlid
public static void removeByPlid(long plid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByP_P
public static void removeByP_P(long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByO_O_P
public static void removeByO_O_P(long ownerId,
int ownerType,
long plid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByO_O_P_P
public static void removeByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
throws NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Throws:
NoSuchPortletPreferencesException
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByPlid
public static int countByPlid(long plid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByP_P
public static int countByP_P(long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByO_O_P
public static int countByO_O_P(long ownerId,
int ownerType,
long plid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByO_O_P_P
public static int countByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
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 PortletPreferencesPersistence getPersistence()
setPersistence
public void setPersistence(PortletPreferencesPersistence persistence)