modules/liferay-travel/liferay-travel-service/src/main/java/com/liferay/travel/service/base/StageLocalServiceBaseImpl.java
/**
	 * Performs a SQL query.
	 *
	 * @param sql the sql query
	 */
Performs a SQL query.
@param sql the sql query
Performs a SQL query . @param sql the sql query
protected void runSQL(String sql) {
		try {
			DataSource dataSource = stagePersistence.getDataSource();
			DB db = DBManagerUtil.getDB();
			sql = db.buildSQL(sql);
			sql = PortalUtil.transformSQL(sql);
			SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(
				dataSource, sql);
			sqlUpdate.update();
		}
		catch (Exception exception) {
			throw new SystemException(exception);
		}
	}
protected void runSQL ( String sql ) { try { DataSource dataSource = stagePersistence . getDataSource ( ) ; DB db = DBManagerUtil . getDB ( ) ; sql = db . buildSQL ( sql ) ; sql = PortalUtil . transformSQL ( sql ) ; SqlUpdate sqlUpdate = SqlUpdateFactoryUtil . getSqlUpdate ( dataSource , sql ) ; sqlUpdate . update ( ) ; } catch ( Exception exception ) { throw new SystemException ( exception ) ; } }
Performs a SQL query.
Performs a SQL query .