diff options
author | James Moger <james.moger@gitblit.com> | 2014-11-03 08:15:00 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-11-03 12:51:16 -0500 |
commit | 3529ae168b78dd699c3036ebc8a2ccfd268083bc (patch) | |
tree | ec4ba694ae3a31b12a06ef81f26f5a3de1119018 /src/main/java/com/iciql/SQLDialect.java | |
parent | 0fd12a7004a40d8dd1f1857e791c23d31267ac1f (diff) | |
download | iciql-3529ae168b78dd699c3036ebc8a2ccfd268083bc.tar.gz iciql-3529ae168b78dd699c3036ebc8a2ccfd268083bc.zip |
Move constraint definitions into CREATE TABLE instead of ALTER TABLE
Diffstat (limited to 'src/main/java/com/iciql/SQLDialect.java')
-rw-r--r-- | src/main/java/com/iciql/SQLDialect.java | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/src/main/java/com/iciql/SQLDialect.java b/src/main/java/com/iciql/SQLDialect.java index 5d3522a..33c5369 100644 --- a/src/main/java/com/iciql/SQLDialect.java +++ b/src/main/java/com/iciql/SQLDialect.java @@ -18,11 +18,7 @@ package com.iciql; -import java.sql.DatabaseMetaData; - import com.iciql.Iciql.DataTypeAdapter; -import com.iciql.TableDefinition.ConstraintForeignKeyDefinition; -import com.iciql.TableDefinition.ConstraintUniqueDefinition; import com.iciql.TableDefinition.IndexDefinition; /** @@ -65,12 +61,11 @@ public interface SQLDialect { Object deserialize(Object value, Class<? extends DataTypeAdapter<?>> typeAdapter); /** - * Configure the dialect from the database metadata. + * Configure the dialect. * - * @param databaseName - * @param data + * @param db */ - void configureDialect(String databaseName, DatabaseMetaData data); + void configureDialect(Db db); /** * Returns true if savepoints are supported. @@ -170,35 +165,6 @@ public interface SQLDialect { void prepareCreateIndex(SQLStatement stat, String schemaName, String tableName, IndexDefinition index); /** - * Get the ALTER statement. - * - * @param stat - * return the SQL statement - * @param schemaName - * the schema name - * @param tableName - * the table name - * @param constraint - * the constraint definition - */ - void prepareCreateConstraintForeignKey(SQLStatement stat, String schemaName, String tableName, ConstraintForeignKeyDefinition constraint); - - /** - * Get the ALTER statement. - * - * @param stat - * return the SQL statement - * @param schemaName - * the schema name - * @param tableName - * the table name - * @param constraint - * the constraint definition - * return the SQL statement - */ - void prepareCreateConstraintUnique(SQLStatement stat, String schemaName, String tableName, ConstraintUniqueDefinition constraint); - - /** * Get a MERGE or REPLACE INTO statement. * * @param stat |