1
14
15 package com.liferay.portlet.expando.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ExpandoRowLocalService {
50 public com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
51 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
55 long rowId);
56
57 public void deleteExpandoRow(long rowId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteExpandoRow(
62 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 @SuppressWarnings("unchecked")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 @SuppressWarnings("unchecked")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException;
74
75 @SuppressWarnings("unchecked")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.kernel.exception.SystemException;
81
82 public long dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
88 long rowId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
94 int start, int end)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public int getExpandoRowsCount()
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
102 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
106 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
110 long classPK)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void deleteRow(long rowId)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 public void deleteRow(long tableId, long classPK)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 public void deleteRow(long companyId, long classNameId,
123 java.lang.String tableName, long classPK)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void deleteRow(long companyId, java.lang.String className,
128 java.lang.String tableName, long classPK)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
134 long companyId, long classNameId, int start, int end)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
139 long companyId, java.lang.String className, int start, int end)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public int getDefaultTableRowsCount(long companyId, long classNameId)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public int getDefaultTableRowsCount(long companyId,
148 java.lang.String className)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
158 long classPK)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
164 long classNameId, java.lang.String tableName, long classPK)
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
169 java.lang.String className, java.lang.String tableName, long classPK)
170 throws com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
174 long tableId, int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
179 long companyId, long classNameId, java.lang.String tableName,
180 int start, int end)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
185 long companyId, java.lang.String className, java.lang.String tableName,
186 int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public int getRowsCount(long tableId)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public int getRowsCount(long companyId, long classNameId,
195 java.lang.String tableName)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getRowsCount(long companyId, java.lang.String className,
200 java.lang.String tableName)
201 throws com.liferay.portal.kernel.exception.SystemException;
202 }