cleanup db2 platform

This commit is contained in:
AndersHA
2013-11-20 13:54:01 +01:00
parent f62bc9a35f
commit 43853b0357
@@ -19,28 +19,14 @@ public class DB2Platform extends DatabasePlatform {
// so generally use SEQUENCE instead for H2
this.sqlLimiter = new Db2SqlLimiter();
this.dbIdentity.setSupportsGetGeneratedKeys(true);
this.dbIdentity.setIdType(IdType.IDENTITY);
this.dbIdentity.setSupportsSequence(true);
this.openQuote = "\"";
this.closeQuote = "\"";
booleanDbType = Types.INTEGER;
dbTypeMap.put(Types.BOOLEAN, new DbType("smallint default 0"));
dbTypeMap.put(Types.INTEGER, new DbType("integer"));
dbTypeMap.put(Types.BIGINT, new DbType("bigint"));
dbTypeMap.put(Types.REAL, new DbType("float"));
dbTypeMap.put(Types.DOUBLE, new DbType("float"));
dbTypeMap.put(Types.SMALLINT, new DbType("smallint"));
booleanDbType = Types.BOOLEAN;
dbTypeMap.put(Types.REAL, new DbType("real"));
dbTypeMap.put(Types.TINYINT, new DbType("smallint"));
dbTypeMap.put(Types.DECIMAL, new DbType("decimal", 15));
this.dbDdlSyntax.setIdentity("generated by default as identity");
// this.dbDdlSyntax.setDropIfExists("if exists");
// this.dbDdlSyntax.setDisableReferentialIntegrity("SET REFERENTIAL_INTEGRITY FALSE");
// this.dbDdlSyntax.setEnableReferentialIntegrity("SET REFERENTIAL_INTEGRITY TRUE");
// this.dbDdlSyntax.setForeignKeySuffix("on delete restrict on update restrict");
}
/**