List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:priv.barrow.service.base.TeacherUserLinkLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from www . j a v a 2 s. co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = teacherUserLinkPersistence.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.dokstrudio.med.srv.service.base.ApplicationAccountLocalServiceBaseImpl.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 = applicationAccountPersistence.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.dokstrudio.med.srv.service.base.ApplicationUsageLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from www.j av a2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = applicationUsagePersistence.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.dokstrudio.med.srv.service.base.TestUnitAnswerLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w . j a v a2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testUnitAnswerPersistence.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.dokstrudio.med.srv.service.base.TestUnitAttemptLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// ww w.j a v a 2 s. co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testUnitAttemptPersistence.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.dokstrudio.med.srv.service.base.TestUnitLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* ww w . ja v a 2 s. c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testUnitPersistence.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.dokstrudio.med.srv.service.base.TestUnitSpecializationLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from www . j av a 2 s. co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testUnitSpecializationPersistence.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.dokstrudio.med.srv.service.base.UserAccountLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w w w .j a va2 s. c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = userAccountPersistence.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.dokstrudio.med.srv.service.base.UserDeviceLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w . ja v a2 s .c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = userDevicePersistence.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.TestItemAnswerLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from ww w. j a v a 2 s .c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testItemAnswerPersistence.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); } }