com.liferay.portal.service.persistence
Class PortletPreferencesPersistenceImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
com.liferay.portal.service.persistence.BasePersistence
com.liferay.portal.service.persistence.PortletPreferencesPersistenceImpl
- All Implemented Interfaces:
- com.liferay.portal.service.persistence.PortletPreferencesPersistence, org.springframework.beans.factory.InitializingBean
public class PortletPreferencesPersistenceImpl
- extends BasePersistence
- implements com.liferay.portal.service.persistence.PortletPreferencesPersistence
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
int |
countAll()
|
int |
countByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
int |
countByO_O_P(long ownerId,
int ownerType,
long plid)
|
int |
countByP_P(long plid,
java.lang.String portletId)
|
int |
countByPlid(long plid)
|
com.liferay.portal.model.PortletPreferences |
create(long portletPreferencesId)
|
com.liferay.portal.model.PortletPreferences |
fetchByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
com.liferay.portal.model.PortletPreferences |
fetchByPrimaryKey(long portletPreferencesId)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findAll()
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findAll(int begin,
int end)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByO_O_P_First(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByO_O_P_Last(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
com.liferay.portal.model.PortletPreferences[] |
findByO_O_P_PrevAndNext(long portletPreferencesId,
long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByO_O_P(long ownerId,
int ownerType,
long plid)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByO_O_P(long ownerId,
int ownerType,
long plid,
int begin,
int end)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByO_O_P(long ownerId,
int ownerType,
long plid,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByP_P_First(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByP_P_Last(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences[] |
findByP_P_PrevAndNext(long portletPreferencesId,
long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByP_P(long plid,
java.lang.String portletId)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByP_P(long plid,
java.lang.String portletId,
int begin,
int end)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByP_P(long plid,
java.lang.String portletId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByPlid_First(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByPlid_Last(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences[] |
findByPlid_PrevAndNext(long portletPreferencesId,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByPlid(long plid)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByPlid(long plid,
int begin,
int end)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findByPlid(long plid,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
com.liferay.portal.model.PortletPreferences |
findByPrimaryKey(long portletPreferencesId)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
java.util.List<com.liferay.portal.model.PortletPreferences> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
protected void |
initDao()
|
com.liferay.portal.model.PortletPreferences |
remove(long portletPreferencesId)
|
com.liferay.portal.model.PortletPreferences |
remove(com.liferay.portal.model.PortletPreferences portletPreferences)
|
void |
removeAll()
|
void |
removeByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
|
void |
removeByO_O_P(long ownerId,
int ownerType,
long plid)
|
void |
removeByP_P(long plid,
java.lang.String portletId)
|
void |
removeByPlid(long plid)
|
protected com.liferay.portal.model.PortletPreferences |
removeImpl(com.liferay.portal.model.PortletPreferences portletPreferences)
|
com.liferay.portal.model.PortletPreferences |
update(com.liferay.portal.model.PortletPreferences portletPreferences)
Deprecated. Use update(PortletPreferences portletPreferences, boolean merge) . |
com.liferay.portal.model.PortletPreferences |
update(com.liferay.portal.model.PortletPreferences portletPreferences,
boolean merge)
Add, update, or merge, the entity. |
com.liferay.portal.model.PortletPreferences |
updateImpl(com.liferay.portal.model.PortletPreferences portletPreferences,
boolean merge)
|
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletPreferencesPersistenceImpl
public PortletPreferencesPersistenceImpl()
create
public com.liferay.portal.model.PortletPreferences create(long portletPreferencesId)
- Specified by:
create
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
remove
public com.liferay.portal.model.PortletPreferences remove(long portletPreferencesId)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
remove
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
remove
public com.liferay.portal.model.PortletPreferences remove(com.liferay.portal.model.PortletPreferences portletPreferences)
throws com.liferay.portal.SystemException
- Specified by:
remove
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
removeImpl
protected com.liferay.portal.model.PortletPreferences removeImpl(com.liferay.portal.model.PortletPreferences portletPreferences)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portal.model.PortletPreferences update(com.liferay.portal.model.PortletPreferences portletPreferences)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(PortletPreferences portletPreferences, boolean merge)
.
- Specified by:
update
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
update
public com.liferay.portal.model.PortletPreferences update(com.liferay.portal.model.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.
- Specified by:
update
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- 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 com.liferay.portal.model.PortletPreferences updateImpl(com.liferay.portal.model.PortletPreferences portletPreferences,
boolean merge)
throws com.liferay.portal.SystemException
- Specified by:
updateImpl
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public com.liferay.portal.model.PortletPreferences findByPrimaryKey(long portletPreferencesId)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByPrimaryKey
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
fetchByPrimaryKey
public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(long portletPreferencesId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByPrimaryKey
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByPlid
public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(long plid)
throws com.liferay.portal.SystemException
- Specified by:
findByPlid
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByPlid
public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(long plid,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByPlid
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByPlid
public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(long plid,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByPlid
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByPlid_First
public com.liferay.portal.model.PortletPreferences findByPlid_First(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByPlid_First
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByPlid_Last
public com.liferay.portal.model.PortletPreferences findByPlid_Last(long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByPlid_Last
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByPlid_PrevAndNext
public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(long portletPreferencesId,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByPlid_PrevAndNext
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByP_P
public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Specified by:
findByP_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByP_P
public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(long plid,
java.lang.String portletId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByP_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByP_P
public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(long plid,
java.lang.String portletId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByP_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByP_P_First
public com.liferay.portal.model.PortletPreferences findByP_P_First(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByP_P_First
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByP_P_Last
public com.liferay.portal.model.PortletPreferences findByP_P_Last(long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByP_P_Last
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByP_P_PrevAndNext
public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(long portletPreferencesId,
long plid,
java.lang.String portletId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByP_P_PrevAndNext
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P
public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(long ownerId,
int ownerType,
long plid)
throws com.liferay.portal.SystemException
- Specified by:
findByO_O_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByO_O_P
public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(long ownerId,
int ownerType,
long plid,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findByO_O_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByO_O_P
public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(long ownerId,
int ownerType,
long plid,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByO_O_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findByO_O_P_First
public com.liferay.portal.model.PortletPreferences findByO_O_P_First(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByO_O_P_First
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P_Last
public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByO_O_P_Last
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P_PrevAndNext
public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(long portletPreferencesId,
long ownerId,
int ownerType,
long plid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByO_O_P_PrevAndNext
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
findByO_O_P_P
public com.liferay.portal.model.PortletPreferences findByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
findByO_O_P_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
fetchByO_O_P_P
public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Specified by:
fetchByO_O_P_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List<com.liferay.portal.model.PortletPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Specified by:
findWithDynamicQuery
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List<com.liferay.portal.model.PortletPreferences> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findWithDynamicQuery
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findAll
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
removeByPlid
public void removeByPlid(long plid)
throws com.liferay.portal.SystemException
- Specified by:
removeByPlid
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
removeByP_P
public void removeByP_P(long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Specified by:
removeByP_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
removeByO_O_P
public void removeByO_O_P(long ownerId,
int ownerType,
long plid)
throws com.liferay.portal.SystemException
- Specified by:
removeByO_O_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
removeByO_O_P_P
public void removeByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
throws com.liferay.portal.NoSuchPortletPreferencesException,
com.liferay.portal.SystemException
- Specified by:
removeByO_O_P_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.NoSuchPortletPreferencesException
com.liferay.portal.SystemException
removeAll
public void removeAll()
throws com.liferay.portal.SystemException
- Specified by:
removeAll
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
countByPlid
public int countByPlid(long plid)
throws com.liferay.portal.SystemException
- Specified by:
countByPlid
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
countByP_P
public int countByP_P(long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Specified by:
countByP_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
countByO_O_P
public int countByO_O_P(long ownerId,
int ownerType,
long plid)
throws com.liferay.portal.SystemException
- Specified by:
countByO_O_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
countByO_O_P_P
public int countByO_O_P_P(long ownerId,
int ownerType,
long plid,
java.lang.String portletId)
throws com.liferay.portal.SystemException
- Specified by:
countByO_O_P_P
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
countAll
public int countAll()
throws com.liferay.portal.SystemException
- Specified by:
countAll
in interface com.liferay.portal.service.persistence.PortletPreferencesPersistence
- Throws:
com.liferay.portal.SystemException
initDao
protected void initDao()
- Overrides:
initDao
in class org.springframework.dao.support.DaoSupport