001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Portlet;
018
019
025 public interface PortletPersistence extends BasePersistence<Portlet> {
026 public void cacheResult(com.liferay.portal.model.Portlet portlet);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.Portlet> portlets);
030
031 public com.liferay.portal.model.Portlet create(long id);
032
033 public com.liferay.portal.model.Portlet remove(long id)
034 throws com.liferay.portal.NoSuchPortletException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.Portlet updateImpl(
038 com.liferay.portal.model.Portlet portlet, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
042 throws com.liferay.portal.NoSuchPortletException,
043 com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
046 throws com.liferay.portal.kernel.exception.SystemException;
047
048 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
049 long companyId)
050 throws com.liferay.portal.kernel.exception.SystemException;
051
052 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
053 long companyId, int start, int end)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
057 long companyId, int start, int end,
058 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 public com.liferay.portal.model.Portlet findByCompanyId_First(
062 long companyId,
063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064 throws com.liferay.portal.NoSuchPortletException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public com.liferay.portal.model.Portlet findByCompanyId_Last(
068 long companyId,
069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070 throws com.liferay.portal.NoSuchPortletException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
074 long id, long companyId,
075 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076 throws com.liferay.portal.NoSuchPortletException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 public com.liferay.portal.model.Portlet findByC_P(long companyId,
080 java.lang.String portletId)
081 throws com.liferay.portal.NoSuchPortletException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
085 java.lang.String portletId)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
089 java.lang.String portletId, boolean retrieveFromCache)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public java.util.List<com.liferay.portal.model.Portlet> findAll()
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
096 int end) throws com.liferay.portal.kernel.exception.SystemException;
097
098 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
099 int end,
100 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public void removeByCompanyId(long companyId)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public void removeByC_P(long companyId, java.lang.String portletId)
107 throws com.liferay.portal.NoSuchPortletException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 public void removeAll()
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public int countByCompanyId(long companyId)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public int countByC_P(long companyId, java.lang.String portletId)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public int countAll()
120 throws com.liferay.portal.kernel.exception.SystemException;
121 }