List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:com.tahir.motogplusservice.service.base.KhaliqLocalServiceBaseImpl.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 = khaliqPersistence.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.todolist.service.base.TodoListLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w ww . j av a 2s. co m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = todoListPersistence.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.xtivia.book.portlet.service.base.EntryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w . ja v a2 s. co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = entryPersistence.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:de.iisys.service.base.CamundaServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w w w . java 2 s . c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = camundaPersistence.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:de.ki.sbam.service.base.CategoryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww . j ava 2 s. com * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = categoryPersistence.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:de.ki.sbam.service.base.DifficultyLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w .ja v a 2 s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = difficultyPersistence.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:de.ki.sbam.service.base.HighscoreLocalServiceBaseImpl.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 = highscorePersistence.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:de.ki.sbam.service.base.QuestionLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww . jav a2s. c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = questionPersistence.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:de.ki.sbam.service.base.QuestionStatisticsLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w w w . j ava 2 s.co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = questionStatisticsPersistence.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:de.ki.sbam.service.base.UserStatisticsLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w w w . java 2 s. co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = userStatisticsPersistence.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); } }