--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.cdt.service.base;
+
+import com.liferay.counter.service.CounterLocalService;
+
+import com.liferay.portal.kernel.bean.BeanReference;
+import com.liferay.portal.kernel.bean.IdentifiableBean;
+import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
+import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
+import com.liferay.portal.kernel.dao.orm.DynamicQuery;
+import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
+import com.liferay.portal.kernel.exception.PortalException;
+import com.liferay.portal.kernel.exception.SystemException;
+import com.liferay.portal.kernel.search.Indexable;
+import com.liferay.portal.kernel.search.IndexableType;
+import com.liferay.portal.kernel.util.OrderByComparator;
+import com.liferay.portal.model.PersistedModel;
+import com.liferay.portal.service.BaseLocalServiceImpl;
+import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil;
+import com.liferay.portal.service.ResourceLocalService;
+import com.liferay.portal.service.ResourceService;
+import com.liferay.portal.service.UserLocalService;
+import com.liferay.portal.service.UserService;
+import com.liferay.portal.service.persistence.ResourcePersistence;
+import com.liferay.portal.service.persistence.UserPersistence;
+
+import com.pentila.entSavoie.cdt.model.Configuration;
+import com.pentila.entSavoie.cdt.service.CDTSessionLocalService;
+import com.pentila.entSavoie.cdt.service.ConfigurationLocalService;
+import com.pentila.entSavoie.cdt.service.DailyScheduleLocalService;
+import com.pentila.entSavoie.cdt.service.HomeworkDoneLocalService;
+import com.pentila.entSavoie.cdt.service.HomeworkDropboxFolderLocalService;
+import com.pentila.entSavoie.cdt.service.HomeworkLocalService;
+import com.pentila.entSavoie.cdt.service.SchoolSubjectLocalService;
+import com.pentila.entSavoie.cdt.service.SessionStudentLocalService;
+import com.pentila.entSavoie.cdt.service.SessionTeacherLocalService;
+import com.pentila.entSavoie.cdt.service.StudentHomeworkLocalService;
+import com.pentila.entSavoie.cdt.service.SubjectLocalService;
+import com.pentila.entSavoie.cdt.service.TeacherGroupColorLocalService;
+import com.pentila.entSavoie.cdt.service.VisaLocalService;
+import com.pentila.entSavoie.cdt.service.WeeklyScheduleLocalService;
+import com.pentila.entSavoie.cdt.service.persistence.CDTSessionFinder;
+import com.pentila.entSavoie.cdt.service.persistence.CDTSessionPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.ConfigurationPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.DailySchedulePersistence;
+import com.pentila.entSavoie.cdt.service.persistence.HomeworkDonePersistence;
+import com.pentila.entSavoie.cdt.service.persistence.HomeworkDropboxFolderPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.HomeworkPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.SchoolSubjectPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.SessionStudentPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.SessionTeacherPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.StudentHomeworkPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.SubjectPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.TeacherGroupColorPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.VisaPersistence;
+import com.pentila.entSavoie.cdt.service.persistence.WeeklySchedulePersistence;
+
+import java.io.Serializable;
+
+import java.util.List;
+
+import javax.sql.DataSource;
+
+/**
+ * The base implementation of the configuration local service.
+ *
+ * <p>
+ * 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.pentila.entSavoie.cdt.service.impl.ConfigurationLocalServiceImpl}.
+ * </p>
+ *
+ * @author Cedric Lecarpentier
+ * @see com.pentila.entSavoie.cdt.service.impl.ConfigurationLocalServiceImpl
+ * @see com.pentila.entSavoie.cdt.service.ConfigurationLocalServiceUtil
+ * @generated
+ */
+public abstract class ConfigurationLocalServiceBaseImpl
+ extends BaseLocalServiceImpl implements ConfigurationLocalService,
+ IdentifiableBean {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this class directly. Always use {@link com.pentila.entSavoie.cdt.service.ConfigurationLocalServiceUtil} to access the configuration local service.
+ */
+
+ /**
+ * Adds the configuration to the database. Also notifies the appropriate model listeners.
+ *
+ * @param configuration the configuration
+ * @return the configuration that was added
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.REINDEX)
+ public Configuration addConfiguration(Configuration configuration)
+ throws SystemException {
+ configuration.setNew(true);
+
+ return configurationPersistence.update(configuration, false);
+ }
+
+ /**
+ * Creates a new configuration with the primary key. Does not add the configuration to the database.
+ *
+ * @param confId the primary key for the new configuration
+ * @return the new configuration
+ */
+ public Configuration createConfiguration(long confId) {
+ return configurationPersistence.create(confId);
+ }
+
+ /**
+ * Deletes the configuration with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param confId the primary key of the configuration
+ * @return the configuration that was removed
+ * @throws PortalException if a configuration with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.DELETE)
+ public Configuration deleteConfiguration(long confId)
+ throws PortalException, SystemException {
+ return configurationPersistence.remove(confId);
+ }
+
+ /**
+ * Deletes the configuration from the database. Also notifies the appropriate model listeners.
+ *
+ * @param configuration the configuration
+ * @return the configuration that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.DELETE)
+ public Configuration deleteConfiguration(Configuration configuration)
+ throws SystemException {
+ return configurationPersistence.remove(configuration);
+ }
+
+ public DynamicQuery dynamicQuery() {
+ Class<?> clazz = getClass();
+
+ return DynamicQueryFactoryUtil.forClass(Configuration.class,
+ clazz.getClassLoader());
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns the matching rows.
+ *
+ * @param dynamicQuery the dynamic query
+ * @return the matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public List dynamicQuery(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return configurationPersistence.findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns a range of the matching rows.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param dynamicQuery the dynamic query
+ * @param start the lower bound of the range of model instances
+ * @param end the upper bound of the range of model instances (not inclusive)
+ * @return the range of matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
+ throws SystemException {
+ return configurationPersistence.findWithDynamicQuery(dynamicQuery,
+ start, end);
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns an ordered range of the matching rows.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param dynamicQuery the dynamic query
+ * @param start the lower bound of the range of model instances
+ * @param end the upper bound of the range of model instances (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
+ OrderByComparator orderByComparator) throws SystemException {
+ return configurationPersistence.findWithDynamicQuery(dynamicQuery,
+ start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the number of rows that match the dynamic query.
+ *
+ * @param dynamicQuery the dynamic query
+ * @return the number of rows that match the dynamic query
+ * @throws SystemException if a system exception occurred
+ */
+ public long dynamicQueryCount(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return configurationPersistence.countWithDynamicQuery(dynamicQuery);
+ }
+
+ public Configuration fetchConfiguration(long confId)
+ throws SystemException {
+ return configurationPersistence.fetchByPrimaryKey(confId);
+ }
+
+ /**
+ * Returns the configuration with the primary key.
+ *
+ * @param confId the primary key of the configuration
+ * @return the configuration
+ * @throws PortalException if a configuration with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public Configuration getConfiguration(long confId)
+ throws PortalException, SystemException {
+ return configurationPersistence.findByPrimaryKey(confId);
+ }
+
+ public PersistedModel getPersistedModel(Serializable primaryKeyObj)
+ throws PortalException, SystemException {
+ return configurationPersistence.findByPrimaryKey(primaryKeyObj);
+ }
+
+ /**
+ * Returns a range of all the configurations.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param start the lower bound of the range of configurations
+ * @param end the upper bound of the range of configurations (not inclusive)
+ * @return the range of configurations
+ * @throws SystemException if a system exception occurred
+ */
+ public List<Configuration> getConfigurations(int start, int end)
+ throws SystemException {
+ return configurationPersistence.findAll(start, end);
+ }
+
+ /**
+ * Returns the number of configurations.
+ *
+ * @return the number of configurations
+ * @throws SystemException if a system exception occurred
+ */
+ public int getConfigurationsCount() throws SystemException {
+ return configurationPersistence.countAll();
+ }
+
+ /**
+ * Updates the configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param configuration the configuration
+ * @return the configuration that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.REINDEX)
+ public Configuration updateConfiguration(Configuration configuration)
+ throws SystemException {
+ return updateConfiguration(configuration, true);
+ }
+
+ /**
+ * Updates the configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param configuration the configuration
+ * @param merge whether to merge the configuration with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
+ * @return the configuration that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.REINDEX)
+ public Configuration updateConfiguration(Configuration configuration,
+ boolean merge) throws SystemException {
+ configuration.setNew(false);
+
+ return configurationPersistence.update(configuration, merge);
+ }
+
+ /**
+ * Returns the c d t session local service.
+ *
+ * @return the c d t session local service
+ */
+ public CDTSessionLocalService getCDTSessionLocalService() {
+ return cdtSessionLocalService;
+ }
+
+ /**
+ * Sets the c d t session local service.
+ *
+ * @param cdtSessionLocalService the c d t session local service
+ */
+ public void setCDTSessionLocalService(
+ CDTSessionLocalService cdtSessionLocalService) {
+ this.cdtSessionLocalService = cdtSessionLocalService;
+ }
+
+ /**
+ * Returns the c d t session persistence.
+ *
+ * @return the c d t session persistence
+ */
+ public CDTSessionPersistence getCDTSessionPersistence() {
+ return cdtSessionPersistence;
+ }
+
+ /**
+ * Sets the c d t session persistence.
+ *
+ * @param cdtSessionPersistence the c d t session persistence
+ */
+ public void setCDTSessionPersistence(
+ CDTSessionPersistence cdtSessionPersistence) {
+ this.cdtSessionPersistence = cdtSessionPersistence;
+ }
+
+ /**
+ * Returns the c d t session finder.
+ *
+ * @return the c d t session finder
+ */
+ public CDTSessionFinder getCDTSessionFinder() {
+ return cdtSessionFinder;
+ }
+
+ /**
+ * Sets the c d t session finder.
+ *
+ * @param cdtSessionFinder the c d t session finder
+ */
+ public void setCDTSessionFinder(CDTSessionFinder cdtSessionFinder) {
+ this.cdtSessionFinder = cdtSessionFinder;
+ }
+
+ /**
+ * Returns the configuration local service.
+ *
+ * @return the configuration local service
+ */
+ public ConfigurationLocalService getConfigurationLocalService() {
+ return configurationLocalService;
+ }
+
+ /**
+ * Sets the configuration local service.
+ *
+ * @param configurationLocalService the configuration local service
+ */
+ public void setConfigurationLocalService(
+ ConfigurationLocalService configurationLocalService) {
+ this.configurationLocalService = configurationLocalService;
+ }
+
+ /**
+ * Returns the configuration persistence.
+ *
+ * @return the configuration persistence
+ */
+ public ConfigurationPersistence getConfigurationPersistence() {
+ return configurationPersistence;
+ }
+
+ /**
+ * Sets the configuration persistence.
+ *
+ * @param configurationPersistence the configuration persistence
+ */
+ public void setConfigurationPersistence(
+ ConfigurationPersistence configurationPersistence) {
+ this.configurationPersistence = configurationPersistence;
+ }
+
+ /**
+ * Returns the daily schedule local service.
+ *
+ * @return the daily schedule local service
+ */
+ public DailyScheduleLocalService getDailyScheduleLocalService() {
+ return dailyScheduleLocalService;
+ }
+
+ /**
+ * Sets the daily schedule local service.
+ *
+ * @param dailyScheduleLocalService the daily schedule local service
+ */
+ public void setDailyScheduleLocalService(
+ DailyScheduleLocalService dailyScheduleLocalService) {
+ this.dailyScheduleLocalService = dailyScheduleLocalService;
+ }
+
+ /**
+ * Returns the daily schedule persistence.
+ *
+ * @return the daily schedule persistence
+ */
+ public DailySchedulePersistence getDailySchedulePersistence() {
+ return dailySchedulePersistence;
+ }
+
+ /**
+ * Sets the daily schedule persistence.
+ *
+ * @param dailySchedulePersistence the daily schedule persistence
+ */
+ public void setDailySchedulePersistence(
+ DailySchedulePersistence dailySchedulePersistence) {
+ this.dailySchedulePersistence = dailySchedulePersistence;
+ }
+
+ /**
+ * Returns the homework local service.
+ *
+ * @return the homework local service
+ */
+ public HomeworkLocalService getHomeworkLocalService() {
+ return homeworkLocalService;
+ }
+
+ /**
+ * Sets the homework local service.
+ *
+ * @param homeworkLocalService the homework local service
+ */
+ public void setHomeworkLocalService(
+ HomeworkLocalService homeworkLocalService) {
+ this.homeworkLocalService = homeworkLocalService;
+ }
+
+ /**
+ * Returns the homework persistence.
+ *
+ * @return the homework persistence
+ */
+ public HomeworkPersistence getHomeworkPersistence() {
+ return homeworkPersistence;
+ }
+
+ /**
+ * Sets the homework persistence.
+ *
+ * @param homeworkPersistence the homework persistence
+ */
+ public void setHomeworkPersistence(HomeworkPersistence homeworkPersistence) {
+ this.homeworkPersistence = homeworkPersistence;
+ }
+
+ /**
+ * Returns the homework done local service.
+ *
+ * @return the homework done local service
+ */
+ public HomeworkDoneLocalService getHomeworkDoneLocalService() {
+ return homeworkDoneLocalService;
+ }
+
+ /**
+ * Sets the homework done local service.
+ *
+ * @param homeworkDoneLocalService the homework done local service
+ */
+ public void setHomeworkDoneLocalService(
+ HomeworkDoneLocalService homeworkDoneLocalService) {
+ this.homeworkDoneLocalService = homeworkDoneLocalService;
+ }
+
+ /**
+ * Returns the homework done persistence.
+ *
+ * @return the homework done persistence
+ */
+ public HomeworkDonePersistence getHomeworkDonePersistence() {
+ return homeworkDonePersistence;
+ }
+
+ /**
+ * Sets the homework done persistence.
+ *
+ * @param homeworkDonePersistence the homework done persistence
+ */
+ public void setHomeworkDonePersistence(
+ HomeworkDonePersistence homeworkDonePersistence) {
+ this.homeworkDonePersistence = homeworkDonePersistence;
+ }
+
+ /**
+ * Returns the homework dropbox folder local service.
+ *
+ * @return the homework dropbox folder local service
+ */
+ public HomeworkDropboxFolderLocalService getHomeworkDropboxFolderLocalService() {
+ return homeworkDropboxFolderLocalService;
+ }
+
+ /**
+ * Sets the homework dropbox folder local service.
+ *
+ * @param homeworkDropboxFolderLocalService the homework dropbox folder local service
+ */
+ public void setHomeworkDropboxFolderLocalService(
+ HomeworkDropboxFolderLocalService homeworkDropboxFolderLocalService) {
+ this.homeworkDropboxFolderLocalService = homeworkDropboxFolderLocalService;
+ }
+
+ /**
+ * Returns the homework dropbox folder persistence.
+ *
+ * @return the homework dropbox folder persistence
+ */
+ public HomeworkDropboxFolderPersistence getHomeworkDropboxFolderPersistence() {
+ return homeworkDropboxFolderPersistence;
+ }
+
+ /**
+ * Sets the homework dropbox folder persistence.
+ *
+ * @param homeworkDropboxFolderPersistence the homework dropbox folder persistence
+ */
+ public void setHomeworkDropboxFolderPersistence(
+ HomeworkDropboxFolderPersistence homeworkDropboxFolderPersistence) {
+ this.homeworkDropboxFolderPersistence = homeworkDropboxFolderPersistence;
+ }
+
+ /**
+ * Returns the school subject local service.
+ *
+ * @return the school subject local service
+ */
+ public SchoolSubjectLocalService getSchoolSubjectLocalService() {
+ return schoolSubjectLocalService;
+ }
+
+ /**
+ * Sets the school subject local service.
+ *
+ * @param schoolSubjectLocalService the school subject local service
+ */
+ public void setSchoolSubjectLocalService(
+ SchoolSubjectLocalService schoolSubjectLocalService) {
+ this.schoolSubjectLocalService = schoolSubjectLocalService;
+ }
+
+ /**
+ * Returns the school subject persistence.
+ *
+ * @return the school subject persistence
+ */
+ public SchoolSubjectPersistence getSchoolSubjectPersistence() {
+ return schoolSubjectPersistence;
+ }
+
+ /**
+ * Sets the school subject persistence.
+ *
+ * @param schoolSubjectPersistence the school subject persistence
+ */
+ public void setSchoolSubjectPersistence(
+ SchoolSubjectPersistence schoolSubjectPersistence) {
+ this.schoolSubjectPersistence = schoolSubjectPersistence;
+ }
+
+ /**
+ * Returns the session student local service.
+ *
+ * @return the session student local service
+ */
+ public SessionStudentLocalService getSessionStudentLocalService() {
+ return sessionStudentLocalService;
+ }
+
+ /**
+ * Sets the session student local service.
+ *
+ * @param sessionStudentLocalService the session student local service
+ */
+ public void setSessionStudentLocalService(
+ SessionStudentLocalService sessionStudentLocalService) {
+ this.sessionStudentLocalService = sessionStudentLocalService;
+ }
+
+ /**
+ * Returns the session student persistence.
+ *
+ * @return the session student persistence
+ */
+ public SessionStudentPersistence getSessionStudentPersistence() {
+ return sessionStudentPersistence;
+ }
+
+ /**
+ * Sets the session student persistence.
+ *
+ * @param sessionStudentPersistence the session student persistence
+ */
+ public void setSessionStudentPersistence(
+ SessionStudentPersistence sessionStudentPersistence) {
+ this.sessionStudentPersistence = sessionStudentPersistence;
+ }
+
+ /**
+ * Returns the session teacher local service.
+ *
+ * @return the session teacher local service
+ */
+ public SessionTeacherLocalService getSessionTeacherLocalService() {
+ return sessionTeacherLocalService;
+ }
+
+ /**
+ * Sets the session teacher local service.
+ *
+ * @param sessionTeacherLocalService the session teacher local service
+ */
+ public void setSessionTeacherLocalService(
+ SessionTeacherLocalService sessionTeacherLocalService) {
+ this.sessionTeacherLocalService = sessionTeacherLocalService;
+ }
+
+ /**
+ * Returns the session teacher persistence.
+ *
+ * @return the session teacher persistence
+ */
+ public SessionTeacherPersistence getSessionTeacherPersistence() {
+ return sessionTeacherPersistence;
+ }
+
+ /**
+ * Sets the session teacher persistence.
+ *
+ * @param sessionTeacherPersistence the session teacher persistence
+ */
+ public void setSessionTeacherPersistence(
+ SessionTeacherPersistence sessionTeacherPersistence) {
+ this.sessionTeacherPersistence = sessionTeacherPersistence;
+ }
+
+ /**
+ * Returns the student homework local service.
+ *
+ * @return the student homework local service
+ */
+ public StudentHomeworkLocalService getStudentHomeworkLocalService() {
+ return studentHomeworkLocalService;
+ }
+
+ /**
+ * Sets the student homework local service.
+ *
+ * @param studentHomeworkLocalService the student homework local service
+ */
+ public void setStudentHomeworkLocalService(
+ StudentHomeworkLocalService studentHomeworkLocalService) {
+ this.studentHomeworkLocalService = studentHomeworkLocalService;
+ }
+
+ /**
+ * Returns the student homework persistence.
+ *
+ * @return the student homework persistence
+ */
+ public StudentHomeworkPersistence getStudentHomeworkPersistence() {
+ return studentHomeworkPersistence;
+ }
+
+ /**
+ * Sets the student homework persistence.
+ *
+ * @param studentHomeworkPersistence the student homework persistence
+ */
+ public void setStudentHomeworkPersistence(
+ StudentHomeworkPersistence studentHomeworkPersistence) {
+ this.studentHomeworkPersistence = studentHomeworkPersistence;
+ }
+
+ /**
+ * Returns the subject local service.
+ *
+ * @return the subject local service
+ */
+ public SubjectLocalService getSubjectLocalService() {
+ return subjectLocalService;
+ }
+
+ /**
+ * Sets the subject local service.
+ *
+ * @param subjectLocalService the subject local service
+ */
+ public void setSubjectLocalService(SubjectLocalService subjectLocalService) {
+ this.subjectLocalService = subjectLocalService;
+ }
+
+ /**
+ * Returns the subject persistence.
+ *
+ * @return the subject persistence
+ */
+ public SubjectPersistence getSubjectPersistence() {
+ return subjectPersistence;
+ }
+
+ /**
+ * Sets the subject persistence.
+ *
+ * @param subjectPersistence the subject persistence
+ */
+ public void setSubjectPersistence(SubjectPersistence subjectPersistence) {
+ this.subjectPersistence = subjectPersistence;
+ }
+
+ /**
+ * Returns the teacher group color local service.
+ *
+ * @return the teacher group color local service
+ */
+ public TeacherGroupColorLocalService getTeacherGroupColorLocalService() {
+ return teacherGroupColorLocalService;
+ }
+
+ /**
+ * Sets the teacher group color local service.
+ *
+ * @param teacherGroupColorLocalService the teacher group color local service
+ */
+ public void setTeacherGroupColorLocalService(
+ TeacherGroupColorLocalService teacherGroupColorLocalService) {
+ this.teacherGroupColorLocalService = teacherGroupColorLocalService;
+ }
+
+ /**
+ * Returns the teacher group color persistence.
+ *
+ * @return the teacher group color persistence
+ */
+ public TeacherGroupColorPersistence getTeacherGroupColorPersistence() {
+ return teacherGroupColorPersistence;
+ }
+
+ /**
+ * Sets the teacher group color persistence.
+ *
+ * @param teacherGroupColorPersistence the teacher group color persistence
+ */
+ public void setTeacherGroupColorPersistence(
+ TeacherGroupColorPersistence teacherGroupColorPersistence) {
+ this.teacherGroupColorPersistence = teacherGroupColorPersistence;
+ }
+
+ /**
+ * Returns the visa local service.
+ *
+ * @return the visa local service
+ */
+ public VisaLocalService getVisaLocalService() {
+ return visaLocalService;
+ }
+
+ /**
+ * Sets the visa local service.
+ *
+ * @param visaLocalService the visa local service
+ */
+ public void setVisaLocalService(VisaLocalService visaLocalService) {
+ this.visaLocalService = visaLocalService;
+ }
+
+ /**
+ * Returns the visa persistence.
+ *
+ * @return the visa persistence
+ */
+ public VisaPersistence getVisaPersistence() {
+ return visaPersistence;
+ }
+
+ /**
+ * Sets the visa persistence.
+ *
+ * @param visaPersistence the visa persistence
+ */
+ public void setVisaPersistence(VisaPersistence visaPersistence) {
+ this.visaPersistence = visaPersistence;
+ }
+
+ /**
+ * Returns the weekly schedule local service.
+ *
+ * @return the weekly schedule local service
+ */
+ public WeeklyScheduleLocalService getWeeklyScheduleLocalService() {
+ return weeklyScheduleLocalService;
+ }
+
+ /**
+ * Sets the weekly schedule local service.
+ *
+ * @param weeklyScheduleLocalService the weekly schedule local service
+ */
+ public void setWeeklyScheduleLocalService(
+ WeeklyScheduleLocalService weeklyScheduleLocalService) {
+ this.weeklyScheduleLocalService = weeklyScheduleLocalService;
+ }
+
+ /**
+ * Returns the weekly schedule persistence.
+ *
+ * @return the weekly schedule persistence
+ */
+ public WeeklySchedulePersistence getWeeklySchedulePersistence() {
+ return weeklySchedulePersistence;
+ }
+
+ /**
+ * Sets the weekly schedule persistence.
+ *
+ * @param weeklySchedulePersistence the weekly schedule persistence
+ */
+ public void setWeeklySchedulePersistence(
+ WeeklySchedulePersistence weeklySchedulePersistence) {
+ this.weeklySchedulePersistence = weeklySchedulePersistence;
+ }
+
+ /**
+ * Returns the counter local service.
+ *
+ * @return the counter local service
+ */
+ public CounterLocalService getCounterLocalService() {
+ return counterLocalService;
+ }
+
+ /**
+ * Sets the counter local service.
+ *
+ * @param counterLocalService the counter local service
+ */
+ public void setCounterLocalService(CounterLocalService counterLocalService) {
+ this.counterLocalService = counterLocalService;
+ }
+
+ /**
+ * Returns the resource local service.
+ *
+ * @return the resource local service
+ */
+ public ResourceLocalService getResourceLocalService() {
+ return resourceLocalService;
+ }
+
+ /**
+ * Sets the resource local service.
+ *
+ * @param resourceLocalService the resource local service
+ */
+ public void setResourceLocalService(
+ ResourceLocalService resourceLocalService) {
+ this.resourceLocalService = resourceLocalService;
+ }
+
+ /**
+ * Returns the resource remote service.
+ *
+ * @return the resource remote service
+ */
+ public ResourceService getResourceService() {
+ return resourceService;
+ }
+
+ /**
+ * Sets the resource remote service.
+ *
+ * @param resourceService the resource remote service
+ */
+ public void setResourceService(ResourceService resourceService) {
+ this.resourceService = resourceService;
+ }
+
+ /**
+ * Returns the resource persistence.
+ *
+ * @return the resource persistence
+ */
+ public ResourcePersistence getResourcePersistence() {
+ return resourcePersistence;
+ }
+
+ /**
+ * Sets the resource persistence.
+ *
+ * @param resourcePersistence the resource persistence
+ */
+ public void setResourcePersistence(ResourcePersistence resourcePersistence) {
+ this.resourcePersistence = resourcePersistence;
+ }
+
+ /**
+ * Returns the user local service.
+ *
+ * @return the user local service
+ */
+ public UserLocalService getUserLocalService() {
+ return userLocalService;
+ }
+
+ /**
+ * Sets the user local service.
+ *
+ * @param userLocalService the user local service
+ */
+ public void setUserLocalService(UserLocalService userLocalService) {
+ this.userLocalService = userLocalService;
+ }
+
+ /**
+ * Returns the user remote service.
+ *
+ * @return the user remote service
+ */
+ public UserService getUserService() {
+ return userService;
+ }
+
+ /**
+ * Sets the user remote service.
+ *
+ * @param userService the user remote service
+ */
+ public void setUserService(UserService userService) {
+ this.userService = userService;
+ }
+
+ /**
+ * Returns the user persistence.
+ *
+ * @return the user persistence
+ */
+ public UserPersistence getUserPersistence() {
+ return userPersistence;
+ }
+
+ /**
+ * Sets the user persistence.
+ *
+ * @param userPersistence the user persistence
+ */
+ public void setUserPersistence(UserPersistence userPersistence) {
+ this.userPersistence = userPersistence;
+ }
+
+ public void afterPropertiesSet() {
+ PersistedModelLocalServiceRegistryUtil.register("com.pentila.entSavoie.cdt.model.Configuration",
+ configurationLocalService);
+ }
+
+ public void destroy() {
+ PersistedModelLocalServiceRegistryUtil.unregister(
+ "com.pentila.entSavoie.cdt.model.Configuration");
+ }
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public String getBeanIdentifier() {
+ return _beanIdentifier;
+ }
+
+ /**
+ * Sets the Spring bean ID for this bean.
+ *
+ * @param beanIdentifier the Spring bean ID for this bean
+ */
+ public void setBeanIdentifier(String beanIdentifier) {
+ _beanIdentifier = beanIdentifier;
+ }
+
+ public Object invokeMethod(String name, String[] parameterTypes,
+ Object[] arguments) throws Throwable {
+ return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
+ }
+
+ protected Class<?> getModelClass() {
+ return Configuration.class;
+ }
+
+ protected String getModelClassName() {
+ return Configuration.class.getName();
+ }
+
+ /**
+ * Performs an SQL query.
+ *
+ * @param sql the sql query
+ */
+ protected void runSQL(String sql) throws SystemException {
+ try {
+ DataSource dataSource = configurationPersistence.getDataSource();
+
+ SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
+ sql, new int[0]);
+
+ sqlUpdate.update();
+ }
+ catch (Exception e) {
+ throw new SystemException(e);
+ }
+ }
+
+ @BeanReference(type = CDTSessionLocalService.class)
+ protected CDTSessionLocalService cdtSessionLocalService;
+ @BeanReference(type = CDTSessionPersistence.class)
+ protected CDTSessionPersistence cdtSessionPersistence;
+ @BeanReference(type = CDTSessionFinder.class)
+ protected CDTSessionFinder cdtSessionFinder;
+ @BeanReference(type = ConfigurationLocalService.class)
+ protected ConfigurationLocalService configurationLocalService;
+ @BeanReference(type = ConfigurationPersistence.class)
+ protected ConfigurationPersistence configurationPersistence;
+ @BeanReference(type = DailyScheduleLocalService.class)
+ protected DailyScheduleLocalService dailyScheduleLocalService;
+ @BeanReference(type = DailySchedulePersistence.class)
+ protected DailySchedulePersistence dailySchedulePersistence;
+ @BeanReference(type = HomeworkLocalService.class)
+ protected HomeworkLocalService homeworkLocalService;
+ @BeanReference(type = HomeworkPersistence.class)
+ protected HomeworkPersistence homeworkPersistence;
+ @BeanReference(type = HomeworkDoneLocalService.class)
+ protected HomeworkDoneLocalService homeworkDoneLocalService;
+ @BeanReference(type = HomeworkDonePersistence.class)
+ protected HomeworkDonePersistence homeworkDonePersistence;
+ @BeanReference(type = HomeworkDropboxFolderLocalService.class)
+ protected HomeworkDropboxFolderLocalService homeworkDropboxFolderLocalService;
+ @BeanReference(type = HomeworkDropboxFolderPersistence.class)
+ protected HomeworkDropboxFolderPersistence homeworkDropboxFolderPersistence;
+ @BeanReference(type = SchoolSubjectLocalService.class)
+ protected SchoolSubjectLocalService schoolSubjectLocalService;
+ @BeanReference(type = SchoolSubjectPersistence.class)
+ protected SchoolSubjectPersistence schoolSubjectPersistence;
+ @BeanReference(type = SessionStudentLocalService.class)
+ protected SessionStudentLocalService sessionStudentLocalService;
+ @BeanReference(type = SessionStudentPersistence.class)
+ protected SessionStudentPersistence sessionStudentPersistence;
+ @BeanReference(type = SessionTeacherLocalService.class)
+ protected SessionTeacherLocalService sessionTeacherLocalService;
+ @BeanReference(type = SessionTeacherPersistence.class)
+ protected SessionTeacherPersistence sessionTeacherPersistence;
+ @BeanReference(type = StudentHomeworkLocalService.class)
+ protected StudentHomeworkLocalService studentHomeworkLocalService;
+ @BeanReference(type = StudentHomeworkPersistence.class)
+ protected StudentHomeworkPersistence studentHomeworkPersistence;
+ @BeanReference(type = SubjectLocalService.class)
+ protected SubjectLocalService subjectLocalService;
+ @BeanReference(type = SubjectPersistence.class)
+ protected SubjectPersistence subjectPersistence;
+ @BeanReference(type = TeacherGroupColorLocalService.class)
+ protected TeacherGroupColorLocalService teacherGroupColorLocalService;
+ @BeanReference(type = TeacherGroupColorPersistence.class)
+ protected TeacherGroupColorPersistence teacherGroupColorPersistence;
+ @BeanReference(type = VisaLocalService.class)
+ protected VisaLocalService visaLocalService;
+ @BeanReference(type = VisaPersistence.class)
+ protected VisaPersistence visaPersistence;
+ @BeanReference(type = WeeklyScheduleLocalService.class)
+ protected WeeklyScheduleLocalService weeklyScheduleLocalService;
+ @BeanReference(type = WeeklySchedulePersistence.class)
+ protected WeeklySchedulePersistence weeklySchedulePersistence;
+ @BeanReference(type = CounterLocalService.class)
+ protected CounterLocalService counterLocalService;
+ @BeanReference(type = ResourceLocalService.class)
+ protected ResourceLocalService resourceLocalService;
+ @BeanReference(type = ResourceService.class)
+ protected ResourceService resourceService;
+ @BeanReference(type = ResourcePersistence.class)
+ protected ResourcePersistence resourcePersistence;
+ @BeanReference(type = UserLocalService.class)
+ protected UserLocalService userLocalService;
+ @BeanReference(type = UserService.class)
+ protected UserService userService;
+ @BeanReference(type = UserPersistence.class)
+ protected UserPersistence userPersistence;
+ private String _beanIdentifier;
+ private ConfigurationLocalServiceClpInvoker _clpInvoker = new ConfigurationLocalServiceClpInvoker();
+}
\ No newline at end of file