Examples of DriverDescriptor


Examples of org.jitterbit.integration.database.driver.DriverDescriptor

    private void setDriver(DriverDescriptor driver, boolean sendUndo) {
        if (equals(this.driver, driver)) {
            return;
        }
        DriverDescriptor old = this.driver;
        this.driver = driver;
        decorateDriverField(driver);
        selectionListener.handle(driver);
        if (sendUndo) {
            Edit edit = new Edit(driver, old);
View Full Code Here

Examples of org.jitterbit.integration.database.driver.DriverDescriptor

        @Override
        public boolean apply(IntegrationEntity entity) {
            if (wrappee.apply(entity)) {
                DatabaseLocation loc = (DatabaseLocation) ((Locatable) entity).getLocation();
                DriverDescriptor driver = loc.getDriver();
                return driver != null && driver.getType() == DriverType.ODBC;
            }
            return false;
        }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.DriverDescriptor

        }

        @Override
        public DriverType getValue(IntegrationEntity entity) {
            DataLocation location = ((Locatable) entity).getLocation();
            DriverDescriptor driver = ((DatabaseLocation) location).getDriver();
            return driver != null ? driver.getType() : null;
        }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.DriverDescriptor

        }

        @Override
        public String getValue(IntegrationEntity entity) {
            DataLocation location = ((Locatable) entity).getLocation();
            DriverDescriptor driver = ((DatabaseLocation) location).getDriver();
            return driver != null ? driver.getName() : null;
        }
View Full Code Here

Examples of org.jitterbit.integration.database.driver.DriverDescriptor

public final class InformixUtilsJUnitTest {

    @Test
    public void ensureIsInformixDriverWorks() {
        BeginEndQuote quotes = BeginEndQuote.fromStrings("'", "'");
        DriverDescriptor driver = new OdbcDriverDescriptor("Informix", quotes);
        assertTrue(isInformix(driver));
        driver = new OdbcDriverDescriptor("PostgreSQL", quotes);
        assertFalse(isInformix(driver));
        driver = new JdbcDriverDescriptor("Informix", "informix", "a.b.c", quotes);
        assertTrue(isInformix(driver));
View Full Code Here

Examples of org.jitterbit.integration.database.driver.DriverDescriptor

        }
    }
   
    private void validateDatabaseInputStructure(DatabaseStructure dbStruct) {
        if (dbStruct.hasManualSqlStatement()) {
            DriverDescriptor driver = dbStruct.getDbLocation().getDriver();
            if (isNotJdbc(driver)) {
                collector.addMessage("Manual SQL statements can only be used with a JDBC driver",
                                ValidationStatus.INVALID);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.