public class MSSQLServerDialect extends SqlDialect
DataObject
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
dataTypeToUse |
BOOLEAN_FALSE_INT, BOOLEAN_TRUE_INT, dataObject, timestampFormat
Constructor and Description |
---|
MSSQLServerDialect() |
Modifier and Type | Method and Description |
---|---|
protected void |
extendCreateStatement(java.lang.StringBuilder createStatement,
AbstractAttribute attribute) |
boolean |
getBoolean(java.lang.String columnName,
java.util.HashMap<java.lang.String,java.lang.Object> original)
Returns the value of a column as boolean.
|
static java.lang.String |
getDbExpression(java.sql.Date sqlDate) |
static java.lang.String |
getDbExpression(java.sql.Timestamp timeStamp)
Returns the database specific expression of the timestamp as specified.
|
protected java.lang.String |
getRowString(java.sql.ResultSet rs,
java.lang.String columnName)
Returns the String value of the specified column.
|
java.lang.String |
getSqlCompareString(boolean b)
Returns the specific variant how boolean values are compared.
|
java.lang.String |
getSqlCompareString(java.sql.Date date)
Returns the specific variant how date values are compared.
|
java.lang.String |
getSqlCompareString(DateString dateString)
Returns the specific variant how date values are compared.
|
java.lang.String |
getWhereConditionFragementForExactDateComparison(java.lang.String columnName,
java.sql.Date date)
Returns the compare fragment for exact date comparison regardless their time parts in where conditions.
|
boolean |
getWorkedOnBoolean(java.lang.String columnName,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn)
Returns the value of a column as boolean in a worked on state -
it might already been modified and differ from the original value.
|
void |
setBoolean(java.lang.String columnName,
boolean boolValue,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn)
Sets the value of the specified column.
|
java.lang.String |
unifyColumnName(java.lang.String columnName)
Unifies the column name.
|
java.lang.String |
unifyTableName(java.lang.String tableName)
Unifies the table name.
|
compress, extendInsertStatementWithValues, extendToLength, extendUpdatePhrase, fillInsertStatementWithValues, getCreateStatement, getCreateStatement, getCreateStatement, getIntDateValue, getLimitationFragment, getRowBoolean, getRowBoolean, getRowDate, getRowDate, getRowDouble, getRowDouble, getRowFloat, getRowFloat, getRowInt, getRowInt, getRowLong, getRowLong, getRowString, getRowTime, getRowTime, getRowTimestamp, getSqlCompareString, getSQLFormat, getUpdatePhrase, initColumn, initRow, isKnownAsBoolean, isPartOfUniqueIndex, loadColumn, loadRow, setAttributes, setDataObject, sqlSecure, supportsForeignKey, supportsPrimaryKey, transformStringWhenSaving
protected void extendCreateStatement(java.lang.StringBuilder createStatement, AbstractAttribute attribute)
extendCreateStatement
in class SqlDialect
public static java.lang.String getDbExpression(java.sql.Date sqlDate)
sqlDate
- the date to be formattedpublic static java.lang.String getDbExpression(java.sql.Timestamp timeStamp)
timeStamp
- the time stamp to be formattedpublic java.lang.String unifyTableName(java.lang.String tableName)
SqlDialect
unifyTableName
in class SqlDialect
tableName
- the table name to unifypublic java.lang.String unifyColumnName(java.lang.String columnName)
SqlDialect
unifyColumnName
in class SqlDialect
columnName
- the column name to unifypublic java.lang.String getSqlCompareString(DateString dateString)
SqlDialect
getSqlCompareString
in class SqlDialect
dateString
- the DateString to be preparedpublic java.lang.String getSqlCompareString(java.sql.Date date)
SqlDialect
getSqlCompareString
in class SqlDialect
date
- the date value to be preparedpublic java.lang.String getWhereConditionFragementForExactDateComparison(java.lang.String columnName, java.sql.Date date)
SqlDialect
getWhereConditionFragementForExactDateComparison
in class SqlDialect
columnName
- the name of the column containing the date value (which may include time parts!)date
- the date to compare topublic java.lang.String getSqlCompareString(boolean b)
SqlDialect
getSqlCompareString
in class SqlDialect
b
- the boolean value to be preparedpublic boolean getBoolean(java.lang.String columnName, java.util.HashMap<java.lang.String,java.lang.Object> original)
SqlDialect
getBoolean
in class SqlDialect
columnName
- the name of the columnoriginal
- the buffer of original values of the rowpublic boolean getWorkedOnBoolean(java.lang.String columnName, java.util.HashMap<java.lang.String,java.lang.Object> workedOn)
columnName
- the name of the columnworkedOn
- the buffer of worked on values of the rowpublic void setBoolean(java.lang.String columnName, boolean boolValue, java.util.HashMap<java.lang.String,java.lang.Object> workedOn)
SqlDialect
setBoolean
in class SqlDialect
columnName
- the name of the column to be setboolValue
- the value the column shall be set toworkedOn
- the buffer of worked on values of the rowprotected java.lang.String getRowString(java.sql.ResultSet rs, java.lang.String columnName)
SqlDialect
getRowString
in class SqlDialect
rs
- the result setcolumnName
- the name of the columnCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de