List of usage examples for com.liferay.portal.kernel.util PortalUtil transformSQL
public static String transformSQL(String sql)
From source file:com.liferay.gs.hack.service.base.TimesheetTaskDurationLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww.j a va2 s . c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = timesheetTaskDurationPersistence.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.liferay.gs.hack.service.base.TimesheetTaskLocalServiceBaseImpl.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 = timesheetTaskPersistence.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.liferay.ide.utils.library.listener.service.base.LibraryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.// w ww . j a va 2 s . c om * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = libraryPersistence.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.liferay.ide.utils.library.listener.service.base.RepositoryLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//w w w. ja v a 2 s. co m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = repositoryPersistence.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.liferay.invitation.invite.members.service.base.MemberRequestLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from ww w . j a va 2 s.c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = memberRequestPersistence.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.liferay.journal.service.base.JournalArticleLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from w ww .j ava 2 s . c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = journalArticlePersistence.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.liferay.journal.service.base.JournalArticleResourceLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query.//from ww w .j a v a2 s. c o m * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = journalArticleResourcePersistence.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.liferay.journal.service.base.JournalContentSearchLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from www . j a v a2 s .com*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = journalContentSearchPersistence.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.liferay.journal.service.base.JournalFeedLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./*from w w w . j a v a2 s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = journalFeedPersistence.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.liferay.journal.service.base.JournalFolderLocalServiceBaseImpl.java
License:Open Source License
/** * Performs a SQL query./* w ww . j a va 2s . c o m*/ * * @param sql the sql query */ protected void runSQL(String sql) { try { DataSource dataSource = journalFolderPersistence.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); } }