diff options
author | James Moger <james.moger@gmail.com> | 2011-08-11 14:04:01 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-11 14:04:01 -0400 |
commit | 0333ed4cf0b5db3f9ffcb0da31787f6e44139af5 (patch) | |
tree | a0c0c57e38dd5e8e48e03b2aa4ad8a2c39bff189 /src/com/iciql/Define.java | |
parent | f3faeb5d1ea631b0074441f97080e1f2a9145f4b (diff) | |
download | iciql-0333ed4cf0b5db3f9ffcb0da31787f6e44139af5.tar.gz iciql-0333ed4cf0b5db3f9ffcb0da31787f6e44139af5.zip |
Added support for HSQL database. Revised dialects some more.
Moved CREATE TABLE and CREATE INDEX statement generation to the dialect.
Added DECIMAL(length, scale) support.
Improved automatic dialect detection.
Unspecified length string is now CLOB instead of TEXT.
Boolean now maps to BOOLEAN instead of BIT.
Expressions on unmapped fields will throw an IciqlException.
Improved exception reporting.
Diffstat (limited to 'src/com/iciql/Define.java')
-rw-r--r-- | src/com/iciql/Define.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/iciql/Define.java b/src/com/iciql/Define.java index d7b42ba..5e969e1 100644 --- a/src/com/iciql/Define.java +++ b/src/com/iciql/Define.java @@ -61,7 +61,12 @@ public class Define { public static void length(Object column, int length) {
checkInDefine();
- currentTableDefinition.setMaxLength(column, length);
+ currentTableDefinition.setLength(column, length);
+ }
+
+ public static void scale(Object column, int scale) {
+ checkInDefine();
+ currentTableDefinition.setScale(column, scale);
}
public static void tableName(String tableName) {
|