List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:ru.dokstudio.service.base.TestItemAttemptLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w . j a v a 2 s. c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testItemAttemptPersistence.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:ru.dokstudio.service.base.TestItemQuestionLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from ww w . j a v a 2 s . com * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testItemQuestionPersistence.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:tj.balans.postavwika.service.base.BalansPostavwikaLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from ww w . j ava2 s. c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = balansPostavwikaPersistence.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:tj.balans.postavwika.service.base.SalansPostavwikaLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w . j ava 2 s. co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = salansPostavwikaPersistence.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:tj.bid.queue.service.base.BidqueueLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from www . jav a 2 s .c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = bidqueuePersistence.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:tj.commission.positions.service.base.CommissionPositionLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww . j ava 2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = commissionPositionPersistence.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:tj.criterias.service.base.CriteriaDefaultValueLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w . j ava 2 s .c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = criteriaDefaultValuePersistence.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:tj.criterias.service.base.CriteriaLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww. j a v a 2s. c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = criteriaPersistence.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:tj.criterias.service.base.CriteriasWeightLocalServiceBaseImpl.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 = criteriasWeightPersistence.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:tj.criterias.service.base.CriteriaTemplateLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w . j a va 2 s . c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = criteriaTemplatePersistence.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); } }