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.SystemException,
36 com.liferay.portal.NoSuchPortletException;
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.SystemException,
72 com.liferay.portal.NoSuchPortletException;
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 begin, int end)
82 throws com.liferay.portal.SystemException;
83
84 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
85 long companyId, int begin, 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.SystemException,
92 com.liferay.portal.NoSuchPortletException;
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.SystemException,
97 com.liferay.portal.NoSuchPortletException;
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.SystemException,
103 com.liferay.portal.NoSuchPortletException;
104
105 public com.liferay.portal.model.Portlet findByC_P(long companyId,
106 java.lang.String portletId)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portal.NoSuchPortletException;
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<com.liferay.portal.model.Portlet> findWithDynamicQuery(
114 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
115 throws com.liferay.portal.SystemException;
116
117 public java.util.List<com.liferay.portal.model.Portlet> findWithDynamicQuery(
118 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
119 int begin, 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 begin,
125 int end) throws com.liferay.portal.SystemException;
126
127 public java.util.List<com.liferay.portal.model.Portlet> findAll(int begin,
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.SystemException,
136 com.liferay.portal.NoSuchPortletException;
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 }