Examples of findTable()


Examples of org.apache.ddlutils.model.Database.findTable()

     
      // this will perform the database changes
      CreationParameters cp = new CreationParameters();
      // to search, it requires MyISAM
      cp.addParameter(database.findTable("discoveries_search"), "ENGINE", "MyISAM");
      cp.addParameter(database.findTable("discoveries_search2"), "ENGINE", "MyISAM");

      platform.alterTables(connection, database, cp, true);
       
      connection.close();
     
View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

     */
    public void testColumnConstraints() throws Exception
    {
        Database testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);

        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);

        getPlatform().setSqlCommentsOn(false);
        getPlatform().getSqlBuilder().createTables(testDb, true);

View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

    public void testColumnConstraints() throws Exception
    {
        Database testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);

        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);

        getPlatform().setSqlCommentsOn(false);
        getPlatform().getSqlBuilder().createTables(testDb, true);

        assertEqualsIgnoringWhitespaces(
View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

     */
    public void testCreationParameters1() throws Exception
    {
        Database testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);

        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);

        CreationParameters params = new CreationParameters();

        params.addParameter(testDb.getTable(0),
View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

    public void testCreationParameters1() throws Exception
    {
        Database testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);

        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);

        CreationParameters params = new CreationParameters();

        params.addParameter(testDb.getTable(0),
                            "ROW_FORMAT",
View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

     * Tests the column constraints.
     */
    public void testColumnConstraints() throws Exception
    {
        Database           testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);
        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);

        getPlatform().setSqlCommentsOn(false);
        getPlatform().getSqlBuilder().createTables(testDb, true);

View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

     */
    public void testColumnConstraints() throws Exception
    {
        Database           testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);
        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);

        getPlatform().setSqlCommentsOn(false);
        getPlatform().getSqlBuilder().createTables(testDb, true);

        assertEqualsIgnoringWhitespaces(
View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

     * Tests the usage of creation parameters.
     */
    public void testCreationParameters1() throws Exception
    {
        Database           testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);
        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);
        CreationParameters params = new CreationParameters();

        params.addParameter(testDb.getTable(0),
                            "ROW_FORMAT",
View Full Code Here

Examples of org.apache.ddlutils.model.Database.findTable()

     */
    public void testCreationParameters1() throws Exception
    {
        Database           testDb = parseDatabaseFromString(COLUMN_CONSTRAINT_TEST_SCHEMA);
        testDb.findTable("constraints").findColumn("COL_AUTO_INCR").setAutoIncrement(false);
        testDb.findTable("constraints").findColumn("COL_PK_AUTO_INCR").setAutoIncrement(false);
        CreationParameters params = new CreationParameters();

        params.addParameter(testDb.getTable(0),
                            "ROW_FORMAT",
                            "COMPRESSED");
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.SchemaGroup.findTable()

            given = given.substring(dotIdx + 1);
        }

        // look for named table using full name and findTable, which allows
        // the dynamic schema factory to create the table if needed
        Table table = group.findTable(fullName);
        if (table != null)
            return table;
        if (!adapt)
            throw new MetaDataException(_loc.get("bad-table", given, context));
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.