List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:com.bemis.portal.report.service.base.ReportRequestLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww . j av a 2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = reportRequestPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.bemis.portal.shipment.service.base.ShipmentLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w.ja v a2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = shipmentPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.bookmark.service.base.companyBookmarkLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* w w w .ja v a 2 s. c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = companyBookmarkPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.clavisit.clavisit.poc.ddl.images.service.base.ImageLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//ww w .j a v a 2 s .com * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = imagePersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.employee.service.base.EmployeeeLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w . jav a 2 s . co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = employeeePersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.hedu.groovy.scripts.portlet.service.base.GroovyScriptLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w ww. ja v a 2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = groovyScriptPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.liferay.adaptive.media.image.service.base.AdaptiveMediaImageEntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from ww w.j a v a 2 s . c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = adaptiveMediaImageEntryPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.liferay.adaptive.media.image.service.base.AMImageEntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* ww w. j a v a 2s. co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = amImageEntryPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.liferay.asset.category.property.service.base.AssetCategoryPropertyLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* w w w . ja v a 2 s . c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = assetCategoryPropertyPersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }
From source file:com.liferay.asset.display.template.service.base.AssetDisplayTemplateLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*ww w . ja v a2 s.c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = assetDisplayTemplatePersistence.getDataSource(); DB db = DBManagerUtil.getDB(); sql = db.buildSQL(sql); sql = PortalUtil.transformSQL(sql); SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, sql); sqlUpdate.update(); } catch (Exception e) { throw new SystemException(e); } }