List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:com.sky.skyseries.apm.service.base.FloorLocalServiceBaseImpl.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 = floorPersistence.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.sky.skyseries.apm.service.base.LegalEntityLocalServiceBaseImpl.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 = legalEntityPersistence.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.sky.skyseries.apm.service.base.RoomLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w.j a va2s .co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = roomPersistence.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.sky.skyseries.apm.service.base.RoomStatusLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//ww w . ja v a2 s. co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = roomStatusPersistence.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.sky.skyseries.apm.service.base.RoomTypeLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww .j a v a 2 s.c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = roomTypePersistence.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.sohlman.liferay.bffss.service.base.FileDataLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* ww w .j a v a 2s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = fileDataPersistence.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.sohlman.liferay.bffss.service.base.FileInfoLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* ww w . j ava2 s. c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = fileInfoPersistence.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.sohlman.liferay.perm.integ.service.base.IntegrationInfoLocalServiceBaseImpl.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 = integrationInfoPersistence.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.tahir.liferaypractice.service.base.TestServiceModuleLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w. ja va2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = testServiceModulePersistence.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.tahir.meeting.service.base.HimalayaLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w . j ava 2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = himalayaPersistence.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); } }