diff options
author | James Moger <james.moger@gmail.com> | 2011-08-11 14:38:02 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-11 14:38:02 -0400 |
commit | 5c70dc9c2562f40211d51b35854c50a626c9c163 (patch) | |
tree | 1ff18cf9deb85862d3bcf0c911da249c1b913207 /src/com/iciql/SQLDialectDefault.java | |
parent | 64184c246a552024dda12f5ee0830ec5b3c6161f (diff) | |
download | iciql-5c70dc9c2562f40211d51b35854c50a626c9c163.tar.gz iciql-5c70dc9c2562f40211d51b35854c50a626c9c163.zip |
Documentation. Added another unmapped field case.
Diffstat (limited to 'src/com/iciql/SQLDialectDefault.java')
-rw-r--r-- | src/com/iciql/SQLDialectDefault.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/iciql/SQLDialectDefault.java b/src/com/iciql/SQLDialectDefault.java index 3fd2067..7786829 100644 --- a/src/com/iciql/SQLDialectDefault.java +++ b/src/com/iciql/SQLDialectDefault.java @@ -100,7 +100,7 @@ public class SQLDialectDefault implements SQLDialect { buff.appendExceptFirst(", ");
buff.append(prepareColumnName(field.columnName)).append(' ');
String dataType = field.dataType;
- if (dataType.equals("VARCHAR")) {
+ if (dataType.equals("VARCHAR")) {
// check to see if we should use VARCHAR or CLOB
if (field.length <= 0) {
dataType = "CLOB";
@@ -111,7 +111,7 @@ public class SQLDialectDefault implements SQLDialect { }
} else if (dataType.equals("DECIMAL")) {
// DECIMAL(precision,scale)
- buff.append(convertSqlType(dataType));
+ buff.append(convertSqlType(dataType));
if (field.length > 0) {
buff.append('(').append(field.length);
if (field.scale > 0) {
@@ -173,13 +173,13 @@ public class SQLDialectDefault implements SQLDialect { @Override
public void prepareCreateIndex(SQLStatement stat, String schemaName, String tableName,
IndexDefinition index) {
- throw new IciqlException("Dialect does not support index creation!");
+ throw new IciqlException("{0} does not support index creation!", getClass().getSimpleName());
}
@Override
public <T> void prepareMerge(SQLStatement stat, String schemaName, String tableName,
TableDefinition<T> def, Object obj) {
- throw new IciqlException("Dialect does not support merge statements!");
+ throw new IciqlException("{0} does not support merge statements!", getClass().getSimpleName());
}
@Override
|