List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:com.liferay.wiki.service.base.WikiPageResourceLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w . j ava 2s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = wikiPageResourcePersistence.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.mimacom.service.service.base.TaskLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from www.ja v a2s. c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = taskPersistence.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.prjteam.usergroup.service.base.ProductLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from www .j ava 2 s . co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = productPersistence.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.rivetlogic.csvtemplatemailer.service.base.TemplateLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from www . ja v a2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = templatePersistence.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.rivetlogic.services.service.base.TipsOfTheDayCategoriesLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from ww w. j a va 2 s.co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = tipsOfTheDayCategoriesPersistence.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.rivetlogic.services.service.base.TipsOfTheDayUsersLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w . j av a 2s . c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = tipsOfTheDayUsersPersistence.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.rivetlogic.services.service.base.TipsOfTheDayVisitedLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* ww w . jav a2 s. c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = tipsOfTheDayVisitedPersistence.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.rivetlogic.skype.service.base.SkypeGroupLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww .j a va 2s . co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = skypeGroupPersistence.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.simple.service.base.UserViewLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from ww w . ja v a 2s . c om*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = userViewPersistence.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.BuildingLocalServiceBaseImpl.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 = buildingPersistence.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); } }