diff options
Diffstat (limited to 'src/main/java/com/iciql/SQLDialect.java')
-rw-r--r-- | src/main/java/com/iciql/SQLDialect.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/com/iciql/SQLDialect.java b/src/main/java/com/iciql/SQLDialect.java index 081b7e6..76450cd 100644 --- a/src/main/java/com/iciql/SQLDialect.java +++ b/src/main/java/com/iciql/SQLDialect.java @@ -20,6 +20,7 @@ package com.iciql; import com.iciql.Iciql.DataTypeAdapter; import com.iciql.TableDefinition.IndexDefinition; +import com.iciql.util.StatementBuilder; import java.sql.ResultSet; @@ -206,4 +207,18 @@ public interface SQLDialect { <T, A> void prepareBitwiseXor(SQLStatement stat, Query<T> query, A x, A y); + /** + * Specifies the syntax for a column constraint. + * + * @param isAutoIncrement + * @param isPrimaryKey + * @param isNullable + * @param fieldType + * @param dataType + * @param defaultValue + * @return the column constraint + */ + String prepareColumnConstraint(boolean isAutoIncrement, boolean isPrimaryKey, boolean isNullable, + Class<?> fieldType, String dataType, String defaultValue); + } |