Package org.openengsb.core.edbi.jdbc.sql

Examples of org.openengsb.core.edbi.jdbc.sql.Column


        @Override
        protected void onBeforeCreate(Table table, JdbcIndex<?> index) {
            super.onBeforeCreate(table, index);

            table.addElement(new Column("REV_CREATED", getTypeMap().getType(Date.class)));
            table.addElement(new Column("REV_MODIFIED", getTypeMap().getType(Date.class)));
        }
View Full Code Here


                    onMissingTypeVisit(table, field);
                    return;
                }
                ((JdbcIndexField) field).setMappedType(type);

                Column column = new Column(getColumnNameTranslator().translate(field), type);

                table.addElement(column);
                onAfterFieldVisit(table, column, field);
            }
        });
View Full Code Here

            return;
        }

        ((JdbcIndexField) field).setMappedType(type);

        Column column = new Column(getColumnNameTranslator().translate(field), type);
        table.addElement(column); // will hold the models OID

        onAfterFieldVisit(table, column, field);
    }
View Full Code Here

        jdbc = new JdbcTemplate(getDataSource());
        jdbcn = new NamedParameterJdbcTemplate(getDataSource());

        table = new Table("TEST",
            new Column("ID", new DataType("IDENTITY")),
            new Column("NAME", new DataType("VARCHAR")),
            new Column("AGE", new DataType("INT")));

        table.addElement(new PrimaryKeyConstraint("ID"));

        jdbc.execute("CREATE TABLE `TEST` (ID IDENTITY PRIMARY KEY, NAME VARCHAR, AGE INT)");
    }
View Full Code Here

        @Override
        protected void onBeforeCreate(Table table, JdbcIndex<?> index) {
            super.onBeforeCreate(table, index);

            table.addElement(new Column("REV_ID", getTypeMap().getType(Long.class), AUTO_INCREMENT));
            table.addElement(new Column("REV_COMMIT", getTypeMap().getType(UUID.class)));
            table.addElement(new Column("REV_TIMESTAMP", getTypeMap().getType(Date.class)));
            table.addElement(new Column("REV_OPERATION", getTypeMap().getType(String.class)));
            table.addElement(new Column("REV_USER", getTypeMap().getType(String.class)));
            table.addElement(new Column("REV_CONTEXTID", getTypeMap().getType(String.class)));
            table.addElement(new Column("REV_DOMAINID", getTypeMap().getType(String.class)));
            table.addElement(new Column("REV_CONNECTORID", getTypeMap().getType(String.class)));
            table.addElement(new Column("REV_INSTANCEID", getTypeMap().getType(String.class)));
        }
View Full Code Here

TOP

Related Classes of org.openengsb.core.edbi.jdbc.sql.Column

Copyright © 2018 www.massapicom. 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.