Package org.jitterbit.integration.database

Examples of org.jitterbit.integration.database.SqlStatementParser


    }

    private void applyAdHocFilterToManualSqlStatement(CROM rootTable, String adHocFilter, String manualSql)
                    throws ExternalDatabaseException {
        try {
            SqlStatementParser parser = new SqlStatementParser(manualSql);
            String newSql = parser.replaceFilter(adHocFilter);
            ((CROM_DB) rootTable.getExtension()).setManualSqlStatement(newSql);
        } catch (Exception ex) {
            throw new ExternalDatabaseException("Jitterbit could not modify the manual SQL statement by adding " +
                    "the filter \"" + adHocFilter + "\". This is a bug. Please report it to Jitterbit Support.", ex);
        }
View Full Code Here


        }

        private String prepareSqlStatement(DatabaseObject o) throws SQLException {
            String originalSql = o.getName();
            try {
                SqlStatementParser parser = new SqlStatementParser(originalSql);
                String processedSql = parser.insertNoneFilter();
                logger.info("Original SQL: \"" + originalSql + "\" -- Filtered SQL: \"" + processedSql + "\"");
                return processedSql;
            } catch (Exception ex) {
                throw new SQLException("Jitterbit could not create a test version of the following SQL statement: \"" +
                                originalSql + "\". This is a bug. Please report this to Jitterbit Support.");
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.database.SqlStatementParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.