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