Examples of BeginEndQuote


Examples of org.jitterbit.integration.database.BeginEndQuote

     }

    public MappingTreeStructure convert(DatabaseStructure dbStruct, CallbackResult callback) {
      MappingTreeStructure structure=null;
      try {
            BeginEndQuote quotes = dbStruct.getBeginEndQuote();
            log("Begin/End quotes: " + quotes);
          beginQuote=quotes.begin;
          endQuote=quotes.end;
          // get update keys for each table in the target database
          map_UpdateKeys.clear();
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

      return beginQuote+name+endQuote;
    }

    public MappingTreeStructure updateProperties(DatabaseStructure dbStruct, CROM root)
    {
        BeginEndQuote quotes = dbStruct.getBeginEndQuote();
      beginQuote = quotes.begin;
      endQuote = quotes.end;

      initMaps(dbStruct);
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    public static DriverDescriptor restore(Persistor persistor) {
        int type = persistor.getInteger(TYPE);
        String name = persistor.getString(NAME);
        String beginQuote = persistor.getString(BEGIN_QUOTE);
        String endQuote = persistor.getString(END_QUOTE);
        BeginEndQuote quotes = BeginEndQuote.fromStrings(beginQuote, endQuote);
        DriverDescriptor driver = null;
        if (type == ODBC_TYPE) {
            driver = OdbcDriverDescriptorFactory.createDescriptor(name, quotes);
        } else if (type == JDBC_TYPE) {
            driver = new JdbcDriverDesriptorBuilder()
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            persistor.putInteger(TYPE, ODBC_TYPE);
        }

        private void persistCommonData(DriverDescriptor driver) {
            persistor.putString(NAME, driver.getName());
            BeginEndQuote quotes = driver.getBeginEndQuotes();
            if (quotes != null) {
                persistor.putString(BEGIN_QUOTE, quotes.begin);
                persistor.putString(END_QUOTE, quotes.end);
            }
        }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            WsConnectionParams wsConnParams = createConnectionParams(params);
            String[] typeNames = Utils.getTypeNames(searchFilter, DriverType.JDBC);
            WsJdbcDatabaseInfo info = provider.getDatabaseObjects(user, password, wsConnParams, params.getDriverName(),
                            toString(sourceId), toString(targetId), typeNames, searchFilter.getSearchString());
            DatabaseObjectContainer[] containers = convertObjectInfo(info);
            BeginEndQuote quotes = new BeginEndQuote(info.getQuotes().getBeginQuote(), info.getQuotes().getEndQuote());
            if (Thread.currentThread().isInterrupted()) {
                callback.cancelled();
                return;
            }
            callback.objectsRetrieved(containers, quotes);
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            // should be included in a questionable way in the Transformation Wizard.
            if (!struct.getIncludeSchemaName()) {
                return incoming;
            }
            List<DatabaseObject> outgoing = Lists.newArrayList();
            BeginEndQuote quotes = struct.getBeginEndQuote();
            for (DatabaseObject in : incoming) {
                String name = in.getName();
                if (quotes.isEnclosingName(name)) {
                    String marker = quotes.end + "." + quotes.begin;
                    if (name.contains(marker)) {
                        // The table name already contains the schema name.
                        outgoing.add(in);
                        continue;
                    }
                }
                String qualName = quotes.getQualifiedName(in);
                outgoing.add(in.createCopy(qualName));
            }
            return outgoing;
        }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            return null;
        case 1:
            SqlScript existingScript = structure.getSqlScript();
            String existingWhereClause = (existingScript == null) ? "" :
                            existingScript.getWhereClause();
            BeginEndQuote quotes = structure.getBeginEndQuote();
            return new SingleTableEditorUi(objects[0], existingWhereClause, quotes);
        default:
            DbTranFilters filters = structure.getHierarchicalFilters();
            return new MultipleTableEditorUi(objects, filters);
        }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    @Override
    public void testDatabase(Target tgt, DatabaseLocation dbLoc, DatabaseConnectionCallback callback) {
        try {
            Thread.sleep(2000);
            callback.connected(new BeginEndQuote("\""));
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            callback.caught(e);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    @Override
    public void testDatabase(Source src, DatabaseLocation dbLoc, DatabaseConnectionCallback callback) {
        try {
            Thread.sleep(2000);
            callback.connected(new BeginEndQuote("\""));
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            callback.caught(e);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    @Test
    public void ensureThatTableWithoutSchemaInformationDoesNotGiveMatch() {
        String tableName = "orders";
        String schema = null;
        DatabaseTable table = new DatabaseTable(tableName, schema);
        BeginEndQuote guessed = BeginEndQuoteGuesser.guess(table);
        assertNull(guessed);
    }
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.