com.liferay.dynamic.data.mapping.service.base.DDMStructureLinkServiceBaseImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.dynamic.data.mapping.service Show documentation
Show all versions of com.liferay.dynamic.data.mapping.service Show documentation
Liferay Dynamic Data Mapping Service
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.dynamic.data.mapping.service.base;
import com.liferay.dynamic.data.mapping.model.DDMStructureLink;
import com.liferay.dynamic.data.mapping.service.DDMStructureLinkService;
import com.liferay.dynamic.data.mapping.service.persistence.DDMStructureLinkFinder;
import com.liferay.dynamic.data.mapping.service.persistence.DDMStructureLinkPersistence;
import com.liferay.portal.aop.AopService;
import com.liferay.portal.kernel.dao.db.DB;
import com.liferay.portal.kernel.dao.db.DBManagerUtil;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
import com.liferay.portal.kernel.service.BaseServiceImpl;
import com.liferay.portal.kernel.util.PortalUtil;
import javax.sql.DataSource;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
/**
* Provides the base implementation for the ddm structure link remote service.
*
*
* 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.dynamic.data.mapping.service.impl.DDMStructureLinkServiceImpl}.
*
*
* @author Brian Wing Shun Chan
* @see com.liferay.dynamic.data.mapping.service.impl.DDMStructureLinkServiceImpl
* @generated
*/
public abstract class DDMStructureLinkServiceBaseImpl
extends BaseServiceImpl
implements AopService, DDMStructureLinkService, IdentifiableOSGiService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. Use DDMStructureLinkService
via injection or a org.osgi.util.tracker.ServiceTracker
or use com.liferay.dynamic.data.mapping.service.DDMStructureLinkServiceUtil
.
*/
@Deactivate
protected void deactivate() {
}
@Override
public Class>[] getAopInterfaces() {
return new Class>[] {
DDMStructureLinkService.class, IdentifiableOSGiService.class
};
}
@Override
public void setAopProxy(Object aopProxy) {
ddmStructureLinkService = (DDMStructureLinkService)aopProxy;
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
@Override
public String getOSGiServiceIdentifier() {
return DDMStructureLinkService.class.getName();
}
protected Class> getModelClass() {
return DDMStructureLink.class;
}
protected String getModelClassName() {
return DDMStructureLink.class.getName();
}
/**
* Performs a SQL query.
*
* @param sql the sql query
*/
protected void runSQL(String sql) {
try {
DataSource dataSource = ddmStructureLinkPersistence.getDataSource();
DB db = DBManagerUtil.getDB();
sql = db.buildSQL(sql);
sql = PortalUtil.transformSQL(sql);
SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(
dataSource, sql);
sqlUpdate.update();
}
catch (Exception exception) {
throw new SystemException(exception);
}
}
@Reference
protected
com.liferay.dynamic.data.mapping.service.DDMStructureLinkLocalService
ddmStructureLinkLocalService;
protected DDMStructureLinkService ddmStructureLinkService;
@Reference
protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
@Reference
protected DDMStructureLinkFinder ddmStructureLinkFinder;
@Reference
protected com.liferay.counter.kernel.service.CounterLocalService
counterLocalService;
private static final Log _log = LogFactoryUtil.getLog(
DDMStructureLinkServiceBaseImpl.class);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy