Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0001706: Expanded out MSQLSever builders, ddlDataTypes, and platforms…
… for versions 2000, 2005, 2008, and 2012.
- Loading branch information
Showing
20 changed files
with
206 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
symmetric-db/src/main/java/org/jumpmind/db/platform/mssql/MsSql2005DdlBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jumpmind.db.platform.mssql; | ||
|
||
import org.jumpmind.db.platform.DatabaseNamesConstants; | ||
|
||
public class MsSql2005DdlBuilder extends MsSql2000DdlBuilder { | ||
|
||
public MsSql2005DdlBuilder() { | ||
super(DatabaseNamesConstants.MSSQL2005); | ||
} | ||
|
||
public MsSql2005DdlBuilder(String databaseName) { | ||
super(databaseName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
symmetric-jdbc/src/main/java/org/jumpmind/db/platform/mssql/MsSql2005DatabasePlatform.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.jumpmind.db.platform.mssql; | ||
|
||
import javax.sql.DataSource; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
import org.jumpmind.db.platform.DatabaseNamesConstants; | ||
import org.jumpmind.db.sql.SqlTemplateSettings; | ||
|
||
/* | ||
* The platform implementation for the Microsoft SQL Server 2005 database. | ||
*/ | ||
public class MsSql2005DatabasePlatform extends MsSql2000DatabasePlatform { | ||
|
||
/* | ||
* Creates a new platform instance. | ||
*/ | ||
public MsSql2005DatabasePlatform(DataSource dataSource, SqlTemplateSettings settings) { | ||
super(dataSource, settings); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return DatabaseNamesConstants.MSSQL2005; | ||
} | ||
|
||
@Override | ||
public String getDefaultSchema() { | ||
if (StringUtils.isBlank(defaultSchema)) { | ||
defaultSchema = (String) getSqlTemplate().queryForObject("select SCHEMA_NAME()", | ||
String.class); | ||
} | ||
return defaultSchema; | ||
} | ||
} |
Oops, something went wrong.