001
014
015 package com.liferay.portlet.expando.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ExpandoRowLocalService {
043 public com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
044 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
048 long rowId);
049
050 public void deleteExpandoRow(long rowId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteExpandoRow(
055 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
081 long rowId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getExpandoRowsCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
095 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
099 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
103 long classPK)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public void deleteRow(long rowId)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void deleteRow(long tableId, long classPK)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void deleteRow(long companyId, long classNameId,
116 java.lang.String tableName, long classPK)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void deleteRow(long companyId, java.lang.String className,
121 java.lang.String tableName, long classPK)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
127 long companyId, long classNameId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
132 long companyId, java.lang.String className, int start, int end)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public int getDefaultTableRowsCount(long companyId, long classNameId)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public int getDefaultTableRowsCount(long companyId,
141 java.lang.String className)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
151 long classPK)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
157 long classNameId, java.lang.String tableName, long classPK)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
162 java.lang.String className, java.lang.String tableName, long classPK)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
167 long tableId, int start, int end)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
172 long companyId, long classNameId, java.lang.String tableName,
173 int start, int end)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
178 long companyId, java.lang.String className, java.lang.String tableName,
179 int start, int end)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
187 java.lang.String className, java.lang.String tableName, int start,
188 int end) throws com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getRowsCount(long tableId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public int getRowsCount(long companyId, long classNameId,
196 java.lang.String tableName)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public int getRowsCount(long companyId, java.lang.String className,
201 java.lang.String tableName)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int getRowsCount(java.lang.String className,
209 java.lang.String tableName)
210 throws com.liferay.portal.kernel.exception.SystemException;
211 }