Skip to content

Commit

Permalink
0001706: Expanded out MSQLSever builders, ddlDataTypes, and platforms…
Browse files Browse the repository at this point in the history
… for versions 2000, 2005, 2008, and 2012.
  • Loading branch information
chenson42 committed May 1, 2014
1 parent 7800766 commit 0390e87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
Expand Up @@ -44,18 +44,11 @@ public class MsSql2000DatabasePlatform extends AbstractJdbcDatabasePlatform {
*/
public MsSql2000DatabasePlatform(DataSource dataSource, SqlTemplateSettings settings) {
super(dataSource, settings);
// override the ddl builder based on the version
if (this.sqlTemplate.getDatabaseMajorVersion() >= 10) {
this.ddlBuilder = new MsSql2008DdlBuilder();
} else {
this.ddlBuilder = new MsSql2000DdlBuilder();
}

}

@Override
protected MsSql2000DdlBuilder createDdlBuilder() {
return new MsSql2000DdlBuilder();
return new MsSql2000DdlBuilder(getName());
}

@Override
Expand Down
Expand Up @@ -4,6 +4,7 @@

import org.apache.commons.lang.StringUtils;
import org.jumpmind.db.platform.DatabaseNamesConstants;
import org.jumpmind.db.platform.IDdlBuilder;
import org.jumpmind.db.sql.SqlTemplateSettings;

/*
Expand All @@ -18,6 +19,11 @@ public MsSql2005DatabasePlatform(DataSource dataSource, SqlTemplateSettings sett
super(dataSource, settings);
}

@Override
public IDdlBuilder getDdlBuilder() {
return new MsSql2005DdlBuilder(getName());
}

@Override
public String getName() {
return DatabaseNamesConstants.MSSQL2005;
Expand Down
Expand Up @@ -3,6 +3,7 @@
import javax.sql.DataSource;

import org.jumpmind.db.platform.DatabaseNamesConstants;
import org.jumpmind.db.platform.IDdlBuilder;
import org.jumpmind.db.sql.SqlTemplateSettings;

/*
Expand All @@ -17,6 +18,11 @@ public MsSql2008DatabasePlatform(DataSource dataSource, SqlTemplateSettings sett
super(dataSource, settings);
}

@Override
public IDdlBuilder getDdlBuilder() {
return new MsSql2008DdlBuilder(getName());
}

@Override
public String getName() {
return DatabaseNamesConstants.MSSQL2008;
Expand Down

0 comments on commit 0390e87

Please sign in to comment.