public class FirebirdDialect extends SqlDialect
DataObject
BOOLEAN_FALSE_INT, BOOLEAN_TRUE_INT, dataObject, timestampFormat
Constructor and Description |
---|
FirebirdDialect() |
Modifier and Type | Method and Description |
---|---|
protected void |
extendCreateStatement(java.lang.StringBuilder createStatement,
AbstractAttribute attribute) |
protected void |
extendInsertStatementWithValues(int i,
java.sql.PreparedStatement statementForInsertion,
java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
java.lang.String columnName,
int columnType,
int columnScale,
java.lang.String columnNameOfRecordingDate,
java.lang.String columnNameOfRecordingUser,
java.lang.String recordingUser) |
protected int |
extendUpdatePhrase(int countUpdateColumns,
java.lang.StringBuilder updateStatement,
java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
java.lang.String columnName,
int columnType,
int columnScale) |
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.
|
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.
|
protected void |
initColumn(java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
java.lang.String columnName,
int columnType,
int columnScale) |
protected void |
loadColumn(java.sql.ResultSet rs,
java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
java.lang.String columnName,
int columnType,
int columnScale) |
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, extendToLength, fillInsertStatementWithValues, getCreateStatement, getCreateStatement, getCreateStatement, getIntDateValue, getLimitationFragment, getRowBoolean, getRowBoolean, getRowDate, getRowDate, getRowDouble, getRowDouble, getRowFloat, getRowFloat, getRowInt, getRowInt, getRowLong, getRowLong, getRowString, getRowString, getRowTime, getRowTime, getRowTimestamp, getSqlCompareString, getSQLFormat, getUpdatePhrase, initRow, isKnownAsBoolean, isPartOfUniqueIndex, loadRow, setAttributes, setDataObject, sqlSecure, supportsForeignKey, supportsPrimaryKey, transformStringWhenSaving
protected void initColumn(java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, java.lang.String columnName, int columnType, int columnScale)
initColumn
in class SqlDialect
protected void loadColumn(java.sql.ResultSet rs, java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, java.lang.String columnName, int columnType, int columnScale)
loadColumn
in class SqlDialect
protected void extendInsertStatementWithValues(int i, java.sql.PreparedStatement statementForInsertion, java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, java.lang.String columnName, int columnType, int columnScale, java.lang.String columnNameOfRecordingDate, java.lang.String columnNameOfRecordingUser, java.lang.String recordingUser) throws java.sql.SQLException
extendInsertStatementWithValues
in class SqlDialect
java.sql.SQLException
protected int extendUpdatePhrase(int countUpdateColumns, java.lang.StringBuilder updateStatement, java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, java.lang.String columnName, int columnType, int columnScale)
extendUpdatePhrase
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 getSqlCompareString(boolean b)
SqlDialect
getSqlCompareString
in class SqlDialect
b
- the boolean 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 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 void extendCreateStatement(java.lang.StringBuilder createStatement, AbstractAttribute attribute)
extendCreateStatement
in class SqlDialect
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de