List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:com.liferay.message.boards.service.base.MBThreadFlagLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w .j av a 2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = mbThreadFlagPersistence.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.micro.maintainance.analysis.service.base.AnalysisEntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w w w . jav a 2 s. c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = analysisEntryPersistence.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.micro.maintainance.analysis.service.base.AnalysisUserLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w .j av a 2 s.c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = analysisUserPersistence.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.micro.maintainance.candidate.service.base.CandidateEntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from ww w . ja v a 2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = candidateEntryPersistence.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.micro.maintainance.decision.service.base.DecisionEntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w . j a va 2s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = decisionEntryPersistence.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.micro.maintainance.task.service.base.CandidateMaintenanceLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w .jav a 2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = candidateMaintenancePersistence.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.micro.maintainance.task.service.base.TaskEntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from ww w . j a va 2 s .c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = taskEntryPersistence.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.mobile.device.rules.service.base.MDRActionLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* www . j a va 2s . c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = mdrActionPersistence.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.mobile.device.rules.service.base.MDRRuleGroupInstanceLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* w w w . j a v a 2s. c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = mdrRuleGroupInstancePersistence.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.mobile.device.rules.service.base.MDRRuleGroupLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww. j a v a 2s. com * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = mdrRuleGroupPersistence.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); } }