Examples of BeginEndQuote


Examples of org.jitterbit.integration.database.BeginEndQuote

    private void updateBeginEndQuote(BeginEndQuote quote,
                                     String beginProperty,
                                     String endProperty,
                                     String compoundProperty) {
        BeginEndQuote oldIndividualValue;
        BeginEndQuote oldEffectiveValue;
        BeginEndQuote newEffectiveValue;
        synchronized (getDataLock()) {
            oldIndividualValue = getBeginEndQuoteImpl(beginProperty, endProperty);
            oldEffectiveValue = getBeginEndQuote();
            String begin = (quote != null ? quote.begin : null);
            String end = (quote != null ? quote.end : null);
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

     * <code>BeginEndQuote</code> is returned.
     *
     */
    public BeginEndQuote getBeginEndQuote() {
        synchronized (getDataLock()) {
            BeginEndQuote q = getDriverBeginEndQuote();
            if (q == null) {
                q = getDbBeginEndQuote();
                if (q == null) {
                    q = BeginEndQuote.BLANK;
                }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

     * @param driver
     *            a <code>DriverDescriptor</code> representing the database driver.
     */
    public void setDriver(DriverDescriptor driver) {
        DriverDescriptor old;
        BeginEndQuote oldQuotes;
        BeginEndQuote newQuotes;
        synchronized (getDataLock()) {
            old = getDriver();
            oldQuotes = getDriverBeginEndQuote();
            if (driver != null) {
                driver.accept(new DriverPropertySetter());
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

*/
final class BeginEndQuoteGuesser {

    public static BeginEndQuote guess(DatabaseObject[] tables) {
        for (DatabaseObject table : tables) {
            BeginEndQuote quote = guess(table);
            if (quote != null) {
                return quote;
            }
        }
        return BeginEndQuote.BLANK;
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    }

    @Test
    public void ensureGetAndSetBeginEndQuoteWorks() {
        assertEquals(BeginEndQuote.BLANK, loc.getBeginEndQuote());
        BeginEndQuote singleQuote = BeginEndQuote.fromStrings("'", "'");
        loc.setDatabaseBeginEndQuote(singleQuote);
        assertEquals(singleQuote, loc.getBeginEndQuote());
        BeginEndQuote doubleQuote = BeginEndQuote.fromStrings("\"", "\"");
        loc.setDriverBeginEndQuote(doubleQuote);
        assertEquals(doubleQuote, loc.getBeginEndQuote());
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            DatabaseObjectContainer[] ret = new DatabaseObjectContainer[itemTypes.size()];
            int index = 0;
            for (DatabaseObjectType type : itemTypes) {
                ret[index++] = createContainer(type, searchString);
            }
            callback.objectsRetrieved(ret, new BeginEndQuote("\"", "\""));
        } catch (IntegrationServerException e) {
            callback.caught(e);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

        DriverDescriptorPersistor.persist(driver, p);
        p.store(file);
    }

    private void testPersistOdbc() throws Exception {
        BeginEndQuote quotes = new BeginEndQuote("\"");
        DriverDescriptor driver = OdbcDriverDescriptorFactory.createDescriptor("Postgresql", quotes);
        persist(driver, ODBC_FILE);
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

        persist(driver, ODBC_FILE);
    }

    private void testPersistJdbc() throws Exception {
        DriverDescriptor driver = new JdbcDriverDescriptor("Postgresql", "jdbc:postgresql://%s/%s",
                        "org.postgresql.Driver", new BeginEndQuote("\""));
        persist(driver, JDBC_FILE);
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            printCommonData(driver);
        }

        private void printCommonData(DriverDescriptor driver) {
            System.out.println("Name: " + driver.getName());
            BeginEndQuote quotes = driver.getBeginEndQuotes();
            System.out.println("Begin-End Quotes: " + (quotes != null ? quotes : "[none]"));
        }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            String[] typeNames = Utils.getTypeNames(searchFilter, DriverType.ODBC);
            WsDatabaseInfo dbInfoHolder = dbInfo.getDatabaseObjects(userName, password,
                    params.getDriverName(), params.getConnectionString(),
                    toString(sourceId), toString(targetId), typeNames, searchFilter.getSearchString());
            DatabaseObjectContainer[] containers = convertObjectInfo(dbInfoHolder);
            BeginEndQuote quotes = new BeginEndQuote(dbInfoHolder.getQuoteBegin(), dbInfoHolder.getQuoteEnd());
            callback.objectsRetrieved(containers, quotes);
        } catch (RemoteException e) {
            callback.caught(convert(e));
        } catch (IntegrationServerException e) {
            callback.caught(new IntegrationServerException("Server exception: " + e.getMessage(), e));
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.