summaryrefslogtreecommitdiffstats
path: root/src/com/iciql/Define.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-11 14:04:01 -0400
committerJames Moger <james.moger@gmail.com>2011-08-11 14:04:01 -0400
commit0333ed4cf0b5db3f9ffcb0da31787f6e44139af5 (patch)
treea0c0c57e38dd5e8e48e03b2aa4ad8a2c39bff189 /src/com/iciql/Define.java
parentf3faeb5d1ea631b0074441f97080e1f2a9145f4b (diff)
downloadiciql-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.java7
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) {