1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public interface PortletPersistence extends BasePersistence {
29 public void cacheResult(com.liferay.portal.model.Portlet portlet);
30
31 public void cacheResult(
32 java.util.List<com.liferay.portal.model.Portlet> portlets);
33
34 public void clearCache();
35
36 public com.liferay.portal.model.Portlet create(long id);
37
38 public com.liferay.portal.model.Portlet remove(long id)
39 throws com.liferay.portal.NoSuchPortletException,
40 com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Portlet remove(
43 com.liferay.portal.model.Portlet portlet)
44 throws com.liferay.portal.SystemException;
45
46
49 public com.liferay.portal.model.Portlet update(
50 com.liferay.portal.model.Portlet portlet)
51 throws com.liferay.portal.SystemException;
52
53
66 public com.liferay.portal.model.Portlet update(
67 com.liferay.portal.model.Portlet portlet, boolean merge)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portal.model.Portlet updateImpl(
71 com.liferay.portal.model.Portlet portlet, boolean merge)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
75 throws com.liferay.portal.NoSuchPortletException,
76 com.liferay.portal.SystemException;
77
78 public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
79 throws com.liferay.portal.SystemException;
80
81 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
82 long companyId) throws com.liferay.portal.SystemException;
83
84 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
85 long companyId, int start, int end)
86 throws com.liferay.portal.SystemException;
87
88 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
89 long companyId, int start, int end,
90 com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.SystemException;
92
93 public com.liferay.portal.model.Portlet findByCompanyId_First(
94 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.NoSuchPortletException,
96 com.liferay.portal.SystemException;
97
98 public com.liferay.portal.model.Portlet findByCompanyId_Last(
99 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.NoSuchPortletException,
101 com.liferay.portal.SystemException;
102
103 public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
104 long id, long companyId,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.NoSuchPortletException,
107 com.liferay.portal.SystemException;
108
109 public com.liferay.portal.model.Portlet findByC_P(long companyId,
110 java.lang.String portletId)
111 throws com.liferay.portal.NoSuchPortletException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
115 java.lang.String portletId) throws com.liferay.portal.SystemException;
116
117 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
118 java.lang.String portletId, boolean retrieveFromCache)
119 throws com.liferay.portal.SystemException;
120
121 public java.util.List<Object> findWithDynamicQuery(
122 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
123 throws com.liferay.portal.SystemException;
124
125 public java.util.List<Object> findWithDynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.SystemException;
128
129 public java.util.List<com.liferay.portal.model.Portlet> findAll()
130 throws com.liferay.portal.SystemException;
131
132 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
133 int end) throws com.liferay.portal.SystemException;
134
135 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
136 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException;
138
139 public void removeByCompanyId(long companyId)
140 throws com.liferay.portal.SystemException;
141
142 public void removeByC_P(long companyId, java.lang.String portletId)
143 throws com.liferay.portal.NoSuchPortletException,
144 com.liferay.portal.SystemException;
145
146 public void removeAll() throws com.liferay.portal.SystemException;
147
148 public int countByCompanyId(long companyId)
149 throws com.liferay.portal.SystemException;
150
151 public int countByC_P(long companyId, java.lang.String portletId)
152 throws com.liferay.portal.SystemException;
153
154 public int countAll() throws com.liferay.portal.SystemException;
155 }