1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Portlet;
18
19
32 public interface PortletPersistence extends BasePersistence<Portlet> {
33 public void cacheResult(com.liferay.portal.model.Portlet portlet);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.Portlet> portlets);
37
38 public com.liferay.portal.model.Portlet create(long id);
39
40 public com.liferay.portal.model.Portlet remove(long id)
41 throws com.liferay.portal.NoSuchPortletException,
42 com.liferay.portal.SystemException;
43
44
47 public com.liferay.portal.model.Portlet update(
48 com.liferay.portal.model.Portlet portlet)
49 throws com.liferay.portal.SystemException;
50
51 public com.liferay.portal.model.Portlet updateImpl(
52 com.liferay.portal.model.Portlet portlet, boolean merge)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portal.model.Portlet findByPrimaryKey(long id)
56 throws com.liferay.portal.NoSuchPortletException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Portlet fetchByPrimaryKey(long id)
60 throws com.liferay.portal.SystemException;
61
62 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
63 long companyId) throws com.liferay.portal.SystemException;
64
65 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
66 long companyId, int start, int end)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portal.model.Portlet> findByCompanyId(
70 long companyId, int start, int end,
71 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Portlet findByCompanyId_First(
75 long companyId,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.NoSuchPortletException,
78 com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Portlet findByCompanyId_Last(
81 long companyId,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.NoSuchPortletException,
84 com.liferay.portal.SystemException;
85
86 public com.liferay.portal.model.Portlet[] findByCompanyId_PrevAndNext(
87 long id, long companyId,
88 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89 throws com.liferay.portal.NoSuchPortletException,
90 com.liferay.portal.SystemException;
91
92 public com.liferay.portal.model.Portlet findByC_P(long companyId,
93 java.lang.String portletId)
94 throws com.liferay.portal.NoSuchPortletException,
95 com.liferay.portal.SystemException;
96
97 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
98 java.lang.String portletId) throws com.liferay.portal.SystemException;
99
100 public com.liferay.portal.model.Portlet fetchByC_P(long companyId,
101 java.lang.String portletId, boolean retrieveFromCache)
102 throws com.liferay.portal.SystemException;
103
104 public java.util.List<com.liferay.portal.model.Portlet> findAll()
105 throws com.liferay.portal.SystemException;
106
107 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
108 int end) throws com.liferay.portal.SystemException;
109
110 public java.util.List<com.liferay.portal.model.Portlet> findAll(int start,
111 int end,
112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113 throws com.liferay.portal.SystemException;
114
115 public void removeByCompanyId(long companyId)
116 throws com.liferay.portal.SystemException;
117
118 public void removeByC_P(long companyId, java.lang.String portletId)
119 throws com.liferay.portal.NoSuchPortletException,
120 com.liferay.portal.SystemException;
121
122 public void removeAll() throws com.liferay.portal.SystemException;
123
124 public int countByCompanyId(long companyId)
125 throws com.liferay.portal.SystemException;
126
127 public int countByC_P(long companyId, java.lang.String portletId)
128 throws com.liferay.portal.SystemException;
129
130 public int countAll() throws com.liferay.portal.SystemException;
131 }