List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:tj.lots.winner.service.base.LotsWinnerLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w ww . j a v a 2 s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = lotsWinnerPersistence.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.module.access.service.base.AccessModuleLocalServiceBaseImpl.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 = accessModulePersistence.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.obwaja.informacija.service.base.ObwajaInformacijaLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w .ja va 2s .co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = obwajaInformacijaPersistence.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.okgz.service.base.OkgzLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// ww w .j av a 2 s. c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = okgzPersistence.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.oplachennye.zakazy.service.base.OplachennyeZakazyLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// www . ja v a 2s.c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = oplachennyeZakazyPersistence.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.organization.other.info.service.base.OrgOtherInfoLocalServiceBaseImpl.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 = orgOtherInfoPersistence.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.orgindex.service.base.OrgindexLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w w w. jav a 2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = orgindexPersistence.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.polzovateli.service.base.PolzovateliLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w ww .jav a2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = polzovateliPersistence.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.porjadok.raboty.komissii.service.base.PorjadokRabotyKomissiiLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*www. j a v a 2s .c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = porjadokRabotyKomissiiPersistence.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.postavwiki.service.base.PostavwikiLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// www .jav a 2 s .co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = postavwikiPersistence.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); } }