1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface PortletPersistence {
32 public com.liferay.portal.model.Portlet create(long id);
33
34 public com.liferay.portal.model.Portlet remove(long id)
35 throws com.liferay.portal.NoSuchPortletException,
36 com.liferay.portal.SystemException;
37
38 public com.liferay.portal.model.Portlet remove(
39 com.liferay.portal.model.Portlet portlet)
40 throws com.liferay.portal.SystemException;
41
42
45 public com.liferay.portal.model.Portlet update(
46 com.liferay.portal.model.Portlet portlet)
47 throws com.liferay.portal.SystemException;
48
49
62 public com.liferay.portal.model.Portlet update(
63 com.liferay.portal.model.Portlet portlet, boolean merge)
64 throws com.liferay.portal.SystemException;
65
66 public com.liferay.portal.model.Portlet updateImpl(
67 com.liferay.portal.model.Portlet portlet, boolean merge)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
71 throws com.liferay.portal.NoSuchPortletException,
72 com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
78 long companyId) throws com.liferay.portal.SystemException;
79
80 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
81 long companyId, int start, int end)
82 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 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException;
88
89 public com.liferay.portal.model.Portlet findByCompanyId_First(
90 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.NoSuchPortletException,
92 com.liferay.portal.SystemException;
93
94 public com.liferay.portal.model.Portlet findByCompanyId_Last(
95 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.NoSuchPortletException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
100 long id, long companyId,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.NoSuchPortletException,
103 com.liferay.portal.SystemException;
104
105 public com.liferay.portal.model.Portlet findByC_P(long companyId,
106 java.lang.String portletId)
107 throws com.liferay.portal.NoSuchPortletException,
108 com.liferay.portal.SystemException;
109
110 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
111 java.lang.String portletId) throws com.liferay.portal.SystemException;
112
113 public java.util.List<Object> findWithDynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
115 throws com.liferay.portal.SystemException;
116
117 public java.util.List<Object> findWithDynamicQuery(
118 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119 int end) throws com.liferay.portal.SystemException;
120
121 public java.util.List<com.liferay.portal.model.Portlet> findAll()
122 throws com.liferay.portal.SystemException;
123
124 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
125 int end) throws com.liferay.portal.SystemException;
126
127 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
128 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException;
130
131 public void removeByCompanyId(long companyId)
132 throws com.liferay.portal.SystemException;
133
134 public void removeByC_P(long companyId, java.lang.String portletId)
135 throws com.liferay.portal.NoSuchPortletException,
136 com.liferay.portal.SystemException;
137
138 public void removeAll() throws com.liferay.portal.SystemException;
139
140 public int countByCompanyId(long companyId)
141 throws com.liferay.portal.SystemException;
142
143 public int countByC_P(long companyId, java.lang.String portletId)
144 throws com.liferay.portal.SystemException;
145
146 public int countAll() throws com.liferay.portal.SystemException;
147
148 public void registerListener(
149 com.liferay.portal.model.ModelListener listener);
150
151 public void unregisterListener(
152 com.liferay.portal.model.ModelListener listener);
153 }