List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:eu.gerhards.liferay.services.angular.service.base.AngularBootstrapLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w. j av a 2s . co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularBootstrapPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularGroupLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww .ja v a 2 s . com * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularGroupPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularInstanceLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww . ja v a 2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularInstancePersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularLayoutLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w . j ava 2 s. c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularLayoutPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularLayoutSetLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w ww .j a va 2 s . co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularLayoutSetPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularOrganizationLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w.j a v a 2 s. c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularOrganizationPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularPermissionLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w. j a v a 2s . co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularPermissionPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularPortalLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w. jav a2s.co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularPortalPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularResourceBlockLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from ww w . j av a 2 s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularResourceBlockPersistence.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:eu.gerhards.liferay.services.angular.service.base.AngularResourcePermissionLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// ww w. j a v a2 s .c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = angularResourcePermissionPersistence.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); } }