protected void runSQL ( String sql ) { try { DataSource dataSource = commerceWarehousePersistence . 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 ) ; } }
Performs a SQL query .