001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.PersistedModel;
036    import com.liferay.portal.service.BaseLocalServiceImpl;
037    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
038    import com.liferay.portal.service.persistence.ClassNamePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    import com.liferay.portal.util.PortalUtil;
042    
043    import com.liferay.portlet.expando.model.ExpandoRow;
044    import com.liferay.portlet.expando.service.ExpandoRowLocalService;
045    import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
046    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
047    import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
048    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
049    
050    import java.io.Serializable;
051    
052    import java.util.List;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * Provides the base implementation for the expando row local service.
058     *
059     * <p>
060     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.expando.service.impl.ExpandoRowLocalServiceImpl}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.expando.service.impl.ExpandoRowLocalServiceImpl
065     * @see com.liferay.portlet.expando.service.ExpandoRowLocalServiceUtil
066     * @generated
067     */
068    @ProviderType
069    public abstract class ExpandoRowLocalServiceBaseImpl
070            extends BaseLocalServiceImpl implements ExpandoRowLocalService,
071                    IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.expando.service.ExpandoRowLocalServiceUtil} to access the expando row local service.
076             */
077    
078            /**
079             * Adds the expando row to the database. Also notifies the appropriate model listeners.
080             *
081             * @param expandoRow the expando row
082             * @return the expando row that was added
083             */
084            @Indexable(type = IndexableType.REINDEX)
085            @Override
086            public ExpandoRow addExpandoRow(ExpandoRow expandoRow) {
087                    expandoRow.setNew(true);
088    
089                    return expandoRowPersistence.update(expandoRow);
090            }
091    
092            /**
093             * Creates a new expando row with the primary key. Does not add the expando row to the database.
094             *
095             * @param rowId the primary key for the new expando row
096             * @return the new expando row
097             */
098            @Override
099            public ExpandoRow createExpandoRow(long rowId) {
100                    return expandoRowPersistence.create(rowId);
101            }
102    
103            /**
104             * Deletes the expando row with the primary key from the database. Also notifies the appropriate model listeners.
105             *
106             * @param rowId the primary key of the expando row
107             * @return the expando row that was removed
108             * @throws PortalException if a expando row with the primary key could not be found
109             */
110            @Indexable(type = IndexableType.DELETE)
111            @Override
112            public ExpandoRow deleteExpandoRow(long rowId) throws PortalException {
113                    return expandoRowPersistence.remove(rowId);
114            }
115    
116            /**
117             * Deletes the expando row from the database. Also notifies the appropriate model listeners.
118             *
119             * @param expandoRow the expando row
120             * @return the expando row that was removed
121             */
122            @Indexable(type = IndexableType.DELETE)
123            @Override
124            public ExpandoRow deleteExpandoRow(ExpandoRow expandoRow) {
125                    return expandoRowPersistence.remove(expandoRow);
126            }
127    
128            @Override
129            public DynamicQuery dynamicQuery() {
130                    Class<?> clazz = getClass();
131    
132                    return DynamicQueryFactoryUtil.forClass(ExpandoRow.class,
133                            clazz.getClassLoader());
134            }
135    
136            /**
137             * Performs a dynamic query on the database and returns the matching rows.
138             *
139             * @param dynamicQuery the dynamic query
140             * @return the matching rows
141             */
142            @Override
143            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
144                    return expandoRowPersistence.findWithDynamicQuery(dynamicQuery);
145            }
146    
147            /**
148             * Performs a dynamic query on the database and returns a range of the matching rows.
149             *
150             * <p>
151             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
152             * </p>
153             *
154             * @param dynamicQuery the dynamic query
155             * @param start the lower bound of the range of model instances
156             * @param end the upper bound of the range of model instances (not inclusive)
157             * @return the range of matching rows
158             */
159            @Override
160            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
161                    int end) {
162                    return expandoRowPersistence.findWithDynamicQuery(dynamicQuery, start,
163                            end);
164            }
165    
166            /**
167             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
168             *
169             * <p>
170             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
171             * </p>
172             *
173             * @param dynamicQuery the dynamic query
174             * @param start the lower bound of the range of model instances
175             * @param end the upper bound of the range of model instances (not inclusive)
176             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
177             * @return the ordered range of matching rows
178             */
179            @Override
180            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
181                    int end, OrderByComparator<T> orderByComparator) {
182                    return expandoRowPersistence.findWithDynamicQuery(dynamicQuery, start,
183                            end, orderByComparator);
184            }
185    
186            /**
187             * Returns the number of rows matching the dynamic query.
188             *
189             * @param dynamicQuery the dynamic query
190             * @return the number of rows matching the dynamic query
191             */
192            @Override
193            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
194                    return expandoRowPersistence.countWithDynamicQuery(dynamicQuery);
195            }
196    
197            /**
198             * Returns the number of rows matching the dynamic query.
199             *
200             * @param dynamicQuery the dynamic query
201             * @param projection the projection to apply to the query
202             * @return the number of rows matching the dynamic query
203             */
204            @Override
205            public long dynamicQueryCount(DynamicQuery dynamicQuery,
206                    Projection projection) {
207                    return expandoRowPersistence.countWithDynamicQuery(dynamicQuery,
208                            projection);
209            }
210    
211            @Override
212            public ExpandoRow fetchExpandoRow(long rowId) {
213                    return expandoRowPersistence.fetchByPrimaryKey(rowId);
214            }
215    
216            /**
217             * Returns the expando row with the primary key.
218             *
219             * @param rowId the primary key of the expando row
220             * @return the expando row
221             * @throws PortalException if a expando row with the primary key could not be found
222             */
223            @Override
224            public ExpandoRow getExpandoRow(long rowId) throws PortalException {
225                    return expandoRowPersistence.findByPrimaryKey(rowId);
226            }
227    
228            @Override
229            public ActionableDynamicQuery getActionableDynamicQuery() {
230                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
231    
232                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.expando.service.ExpandoRowLocalServiceUtil.getService());
233                    actionableDynamicQuery.setClass(ExpandoRow.class);
234                    actionableDynamicQuery.setClassLoader(getClassLoader());
235    
236                    actionableDynamicQuery.setPrimaryKeyPropertyName("rowId");
237    
238                    return actionableDynamicQuery;
239            }
240    
241            protected void initActionableDynamicQuery(
242                    ActionableDynamicQuery actionableDynamicQuery) {
243                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.expando.service.ExpandoRowLocalServiceUtil.getService());
244                    actionableDynamicQuery.setClass(ExpandoRow.class);
245                    actionableDynamicQuery.setClassLoader(getClassLoader());
246    
247                    actionableDynamicQuery.setPrimaryKeyPropertyName("rowId");
248            }
249    
250            /**
251             * @throws PortalException
252             */
253            @Override
254            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
255                    throws PortalException {
256                    return expandoRowLocalService.deleteExpandoRow((ExpandoRow)persistedModel);
257            }
258    
259            @Override
260            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
261                    throws PortalException {
262                    return expandoRowPersistence.findByPrimaryKey(primaryKeyObj);
263            }
264    
265            /**
266             * Returns a range of all the expando rows.
267             *
268             * <p>
269             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
270             * </p>
271             *
272             * @param start the lower bound of the range of expando rows
273             * @param end the upper bound of the range of expando rows (not inclusive)
274             * @return the range of expando rows
275             */
276            @Override
277            public List<ExpandoRow> getExpandoRows(int start, int end) {
278                    return expandoRowPersistence.findAll(start, end);
279            }
280    
281            /**
282             * Returns the number of expando rows.
283             *
284             * @return the number of expando rows
285             */
286            @Override
287            public int getExpandoRowsCount() {
288                    return expandoRowPersistence.countAll();
289            }
290    
291            /**
292             * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
293             *
294             * @param expandoRow the expando row
295             * @return the expando row that was updated
296             */
297            @Indexable(type = IndexableType.REINDEX)
298            @Override
299            public ExpandoRow updateExpandoRow(ExpandoRow expandoRow) {
300                    return expandoRowPersistence.update(expandoRow);
301            }
302    
303            /**
304             * Returns the expando column local service.
305             *
306             * @return the expando column local service
307             */
308            public com.liferay.portlet.expando.service.ExpandoColumnLocalService getExpandoColumnLocalService() {
309                    return expandoColumnLocalService;
310            }
311    
312            /**
313             * Sets the expando column local service.
314             *
315             * @param expandoColumnLocalService the expando column local service
316             */
317            public void setExpandoColumnLocalService(
318                    com.liferay.portlet.expando.service.ExpandoColumnLocalService expandoColumnLocalService) {
319                    this.expandoColumnLocalService = expandoColumnLocalService;
320            }
321    
322            /**
323             * Returns the expando column remote service.
324             *
325             * @return the expando column remote service
326             */
327            public com.liferay.portlet.expando.service.ExpandoColumnService getExpandoColumnService() {
328                    return expandoColumnService;
329            }
330    
331            /**
332             * Sets the expando column remote service.
333             *
334             * @param expandoColumnService the expando column remote service
335             */
336            public void setExpandoColumnService(
337                    com.liferay.portlet.expando.service.ExpandoColumnService expandoColumnService) {
338                    this.expandoColumnService = expandoColumnService;
339            }
340    
341            /**
342             * Returns the expando column persistence.
343             *
344             * @return the expando column persistence
345             */
346            public ExpandoColumnPersistence getExpandoColumnPersistence() {
347                    return expandoColumnPersistence;
348            }
349    
350            /**
351             * Sets the expando column persistence.
352             *
353             * @param expandoColumnPersistence the expando column persistence
354             */
355            public void setExpandoColumnPersistence(
356                    ExpandoColumnPersistence expandoColumnPersistence) {
357                    this.expandoColumnPersistence = expandoColumnPersistence;
358            }
359    
360            /**
361             * Returns the expando row local service.
362             *
363             * @return the expando row local service
364             */
365            public ExpandoRowLocalService getExpandoRowLocalService() {
366                    return expandoRowLocalService;
367            }
368    
369            /**
370             * Sets the expando row local service.
371             *
372             * @param expandoRowLocalService the expando row local service
373             */
374            public void setExpandoRowLocalService(
375                    ExpandoRowLocalService expandoRowLocalService) {
376                    this.expandoRowLocalService = expandoRowLocalService;
377            }
378    
379            /**
380             * Returns the expando row persistence.
381             *
382             * @return the expando row persistence
383             */
384            public ExpandoRowPersistence getExpandoRowPersistence() {
385                    return expandoRowPersistence;
386            }
387    
388            /**
389             * Sets the expando row persistence.
390             *
391             * @param expandoRowPersistence the expando row persistence
392             */
393            public void setExpandoRowPersistence(
394                    ExpandoRowPersistence expandoRowPersistence) {
395                    this.expandoRowPersistence = expandoRowPersistence;
396            }
397    
398            /**
399             * Returns the expando table local service.
400             *
401             * @return the expando table local service
402             */
403            public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
404                    return expandoTableLocalService;
405            }
406    
407            /**
408             * Sets the expando table local service.
409             *
410             * @param expandoTableLocalService the expando table local service
411             */
412            public void setExpandoTableLocalService(
413                    com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
414                    this.expandoTableLocalService = expandoTableLocalService;
415            }
416    
417            /**
418             * Returns the expando table persistence.
419             *
420             * @return the expando table persistence
421             */
422            public ExpandoTablePersistence getExpandoTablePersistence() {
423                    return expandoTablePersistence;
424            }
425    
426            /**
427             * Sets the expando table persistence.
428             *
429             * @param expandoTablePersistence the expando table persistence
430             */
431            public void setExpandoTablePersistence(
432                    ExpandoTablePersistence expandoTablePersistence) {
433                    this.expandoTablePersistence = expandoTablePersistence;
434            }
435    
436            /**
437             * Returns the expando value local service.
438             *
439             * @return the expando value local service
440             */
441            public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
442                    return expandoValueLocalService;
443            }
444    
445            /**
446             * Sets the expando value local service.
447             *
448             * @param expandoValueLocalService the expando value local service
449             */
450            public void setExpandoValueLocalService(
451                    com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
452                    this.expandoValueLocalService = expandoValueLocalService;
453            }
454    
455            /**
456             * Returns the expando value remote service.
457             *
458             * @return the expando value remote service
459             */
460            public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
461                    return expandoValueService;
462            }
463    
464            /**
465             * Sets the expando value remote service.
466             *
467             * @param expandoValueService the expando value remote service
468             */
469            public void setExpandoValueService(
470                    com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
471                    this.expandoValueService = expandoValueService;
472            }
473    
474            /**
475             * Returns the expando value persistence.
476             *
477             * @return the expando value persistence
478             */
479            public ExpandoValuePersistence getExpandoValuePersistence() {
480                    return expandoValuePersistence;
481            }
482    
483            /**
484             * Sets the expando value persistence.
485             *
486             * @param expandoValuePersistence the expando value persistence
487             */
488            public void setExpandoValuePersistence(
489                    ExpandoValuePersistence expandoValuePersistence) {
490                    this.expandoValuePersistence = expandoValuePersistence;
491            }
492    
493            /**
494             * Returns the counter local service.
495             *
496             * @return the counter local service
497             */
498            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
499                    return counterLocalService;
500            }
501    
502            /**
503             * Sets the counter local service.
504             *
505             * @param counterLocalService the counter local service
506             */
507            public void setCounterLocalService(
508                    com.liferay.counter.service.CounterLocalService counterLocalService) {
509                    this.counterLocalService = counterLocalService;
510            }
511    
512            /**
513             * Returns the class name local service.
514             *
515             * @return the class name local service
516             */
517            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
518                    return classNameLocalService;
519            }
520    
521            /**
522             * Sets the class name local service.
523             *
524             * @param classNameLocalService the class name local service
525             */
526            public void setClassNameLocalService(
527                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
528                    this.classNameLocalService = classNameLocalService;
529            }
530    
531            /**
532             * Returns the class name remote service.
533             *
534             * @return the class name remote service
535             */
536            public com.liferay.portal.service.ClassNameService getClassNameService() {
537                    return classNameService;
538            }
539    
540            /**
541             * Sets the class name remote service.
542             *
543             * @param classNameService the class name remote service
544             */
545            public void setClassNameService(
546                    com.liferay.portal.service.ClassNameService classNameService) {
547                    this.classNameService = classNameService;
548            }
549    
550            /**
551             * Returns the class name persistence.
552             *
553             * @return the class name persistence
554             */
555            public ClassNamePersistence getClassNamePersistence() {
556                    return classNamePersistence;
557            }
558    
559            /**
560             * Sets the class name persistence.
561             *
562             * @param classNamePersistence the class name persistence
563             */
564            public void setClassNamePersistence(
565                    ClassNamePersistence classNamePersistence) {
566                    this.classNamePersistence = classNamePersistence;
567            }
568    
569            /**
570             * Returns the resource local service.
571             *
572             * @return the resource local service
573             */
574            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
575                    return resourceLocalService;
576            }
577    
578            /**
579             * Sets the resource local service.
580             *
581             * @param resourceLocalService the resource local service
582             */
583            public void setResourceLocalService(
584                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
585                    this.resourceLocalService = resourceLocalService;
586            }
587    
588            /**
589             * Returns the user local service.
590             *
591             * @return the user local service
592             */
593            public com.liferay.portal.service.UserLocalService getUserLocalService() {
594                    return userLocalService;
595            }
596    
597            /**
598             * Sets the user local service.
599             *
600             * @param userLocalService the user local service
601             */
602            public void setUserLocalService(
603                    com.liferay.portal.service.UserLocalService userLocalService) {
604                    this.userLocalService = userLocalService;
605            }
606    
607            /**
608             * Returns the user remote service.
609             *
610             * @return the user remote service
611             */
612            public com.liferay.portal.service.UserService getUserService() {
613                    return userService;
614            }
615    
616            /**
617             * Sets the user remote service.
618             *
619             * @param userService the user remote service
620             */
621            public void setUserService(
622                    com.liferay.portal.service.UserService userService) {
623                    this.userService = userService;
624            }
625    
626            /**
627             * Returns the user persistence.
628             *
629             * @return the user persistence
630             */
631            public UserPersistence getUserPersistence() {
632                    return userPersistence;
633            }
634    
635            /**
636             * Sets the user persistence.
637             *
638             * @param userPersistence the user persistence
639             */
640            public void setUserPersistence(UserPersistence userPersistence) {
641                    this.userPersistence = userPersistence;
642            }
643    
644            /**
645             * Returns the user finder.
646             *
647             * @return the user finder
648             */
649            public UserFinder getUserFinder() {
650                    return userFinder;
651            }
652    
653            /**
654             * Sets the user finder.
655             *
656             * @param userFinder the user finder
657             */
658            public void setUserFinder(UserFinder userFinder) {
659                    this.userFinder = userFinder;
660            }
661    
662            public void afterPropertiesSet() {
663                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.expando.model.ExpandoRow",
664                            expandoRowLocalService);
665            }
666    
667            public void destroy() {
668                    persistedModelLocalServiceRegistry.unregister(
669                            "com.liferay.portlet.expando.model.ExpandoRow");
670            }
671    
672            /**
673             * Returns the Spring bean ID for this bean.
674             *
675             * @return the Spring bean ID for this bean
676             */
677            @Override
678            public String getBeanIdentifier() {
679                    return _beanIdentifier;
680            }
681    
682            /**
683             * Sets the Spring bean ID for this bean.
684             *
685             * @param beanIdentifier the Spring bean ID for this bean
686             */
687            @Override
688            public void setBeanIdentifier(String beanIdentifier) {
689                    _beanIdentifier = beanIdentifier;
690            }
691    
692            protected Class<?> getModelClass() {
693                    return ExpandoRow.class;
694            }
695    
696            protected String getModelClassName() {
697                    return ExpandoRow.class.getName();
698            }
699    
700            /**
701             * Performs a SQL query.
702             *
703             * @param sql the sql query
704             */
705            protected void runSQL(String sql) {
706                    try {
707                            DataSource dataSource = expandoRowPersistence.getDataSource();
708    
709                            DB db = DBFactoryUtil.getDB();
710    
711                            sql = db.buildSQL(sql);
712                            sql = PortalUtil.transformSQL(sql);
713    
714                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
715                                            sql, new int[0]);
716    
717                            sqlUpdate.update();
718                    }
719                    catch (Exception e) {
720                            throw new SystemException(e);
721                    }
722            }
723    
724            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoColumnLocalService.class)
725            protected com.liferay.portlet.expando.service.ExpandoColumnLocalService expandoColumnLocalService;
726            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoColumnService.class)
727            protected com.liferay.portlet.expando.service.ExpandoColumnService expandoColumnService;
728            @BeanReference(type = ExpandoColumnPersistence.class)
729            protected ExpandoColumnPersistence expandoColumnPersistence;
730            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
731            protected ExpandoRowLocalService expandoRowLocalService;
732            @BeanReference(type = ExpandoRowPersistence.class)
733            protected ExpandoRowPersistence expandoRowPersistence;
734            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
735            protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
736            @BeanReference(type = ExpandoTablePersistence.class)
737            protected ExpandoTablePersistence expandoTablePersistence;
738            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
739            protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
740            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
741            protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
742            @BeanReference(type = ExpandoValuePersistence.class)
743            protected ExpandoValuePersistence expandoValuePersistence;
744            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
745            protected com.liferay.counter.service.CounterLocalService counterLocalService;
746            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
747            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
748            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
749            protected com.liferay.portal.service.ClassNameService classNameService;
750            @BeanReference(type = ClassNamePersistence.class)
751            protected ClassNamePersistence classNamePersistence;
752            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
753            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
754            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
755            protected com.liferay.portal.service.UserLocalService userLocalService;
756            @BeanReference(type = com.liferay.portal.service.UserService.class)
757            protected com.liferay.portal.service.UserService userService;
758            @BeanReference(type = UserPersistence.class)
759            protected UserPersistence userPersistence;
760            @BeanReference(type = UserFinder.class)
761            protected UserFinder userFinder;
762            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
763            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
764            private String _beanIdentifier;
765    }