Examples of BeginEndQuote


Examples of org.jitterbit.integration.database.BeginEndQuote

        }
    }

    public DatabaseObject[] getDatabaseObjects() {
        synchronized (getDataLock()) {
            BeginEndQuote quotes = getBeginEndQuote();
            List<DatabaseObject> objs = Lists.newArrayList();
            for (Map.Entry<DatabaseObject, Integer> e : objects.entrySet()) {
                DatabaseObject o = e.getKey();
                objs.add(o);
                for (int i = 2; i <= e.getValue().intValue(); ++i) {
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

            includeSchema = false;
        } else {
            // Either the project was created in an ancient version, or
            // it was downloaded from a server. Deduce the value of the property
            // from the DbTables information.
            BeginEndQuote quotes = getBeginEndQuote();
            TableUsage tables = dbTables.getTableUsage(quotes);
            includeSchema = tables.isSchemaIncluded();
        }
        setIncludeSchemaName(includeSchema);
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

        assertEquals(tables, DbTables.fromColumnsValues(data));
    }
   
    @Test
    public void testGetTableUsage() {
        TableUsage usage = tables.getTableUsage(new BeginEndQuote("\""));
        assertEquals(1, usage.getUsageCount("TableA_3"));
        assertEquals(1, usage.getUsageCount("TableA_1_HeeHee"));
        assertEquals(1, usage.getUsageCount("TableB"));
        assertEquals(1, usage.getUsageCount("Table A"));
        assertEquals(3, usage.getUsageCount("TableA"));
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    }
    return ret;
  }

  private void defineBeginEndQuote(CROM root) {
        BeginEndQuote quotes = DbUtils.extractBeginAndEndQuoteFromJTR(root);
        beginQuote = quotes.begin;
        endQuote = quotes.end;
  }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

        }
        return s.toString();
    }
   
    public static void main(String[] args) throws Exception {
        JdbcDriverDescriptor driver = new JdbcDriverDescriptor("Postgres", "postgresql", "org.postgresql.Driver", new BeginEndQuote("\""));
        DatabaseLocation loc = new DatabaseLocation();
        loc.setServer("linuxdoc");
        loc.setDatabase("Test");
        loc.setDriver(driver);
        Connection conn = DriverManager.getConnection(loc.getConnectionString(), "user1", "kongaqapass");
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    /**
     * Creates an <code>OdbcDriverDescriptor</code> with the given properties.
     *
     */
    public static OdbcDriverDescriptor createDescriptor(String driverName, String beginQuote, String endQuote) {
        BeginEndQuote quotes = BeginEndQuote.fromStrings(beginQuote, endQuote);
        return createDescriptor(driverName, quotes);
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

                    "Neither a table name, nor a manual SQL statement has been defined. " +
                    "This is a bug. Please report it to Jitterbit Support.");
            }
            return BeginEndQuote.BLANK;
        }
        return new BeginEndQuote(tableName.substring(0, 1), tableName.substring(tableName.length() - 1));
  }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    public OdbcDriverDescriptor(String name, BeginEndQuote quotes) {
        super(name, DriverType.ODBC, quotes);
    }

    public OdbcDriverDescriptor(String name, String beginQuote, String endQuote) {
        super(name, DriverType.ODBC, new BeginEndQuote(beginQuote, endQuote));
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

    @Override
    public final int hashCode() {
        int hash = 17;
        hash = 31 * hash + getName().hashCode();
        hash = 31 * hash + getType().hashCode();
        BeginEndQuote quotes = getBeginEndQuotes();
        hash = 31 * hash + (quotes != null ? quotes.hashCode() : 0);
        return hash;
    }
View Full Code Here

Examples of org.jitterbit.integration.database.BeginEndQuote

public class BeginEndQuoteJUnitTest {

    @Test
    public void testGetSimpleName() {
        DatabaseObject table = new DatabaseTable("\"public\".\"Artists\"", "public");
        BeginEndQuote quotes = new BeginEndQuote("\"");
        assertEquals("Artists", quotes.getSimpleName(table));
        table = new DatabaseTable("Artists", "public");
        assertEquals("Artists", quotes.getSimpleName(table));
        table = new DatabaseTable("Artists", null);
        assertEquals("Artists", quotes.getSimpleName(table));
        table = new DatabaseTable("\"\".\"Artists\"", null);
        assertEquals("Artists", quotes.getSimpleName(table));
    }
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.