public class DerbyDialect extends SqlDialect
DataObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOOLEAN_FALSE_STRING |
static java.lang.String |
BOOLEAN_TRUE_STRING |
BOOLEAN_FALSE_INT, BOOLEAN_TRUE_INT, dataObject, timestampFormat
Constructor and Description |
---|
DerbyDialect() |
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) |
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(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) |
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, getBoolean, getCreateStatement, getCreateStatement, getCreateStatement, getIntDateValue, getLimitationFragment, getRowBoolean, getRowBoolean, getRowDate, getRowDate, getRowDouble, getRowDouble, getRowFloat, getRowFloat, getRowInt, getRowInt, getRowLong, getRowLong, getRowString, getRowString, getRowTime, getRowTime, getRowTimestamp, getSqlCompareString, getSqlCompareString, getSQLFormat, getUpdatePhrase, initRow, isKnownAsBoolean, isPartOfUniqueIndex, loadRow, setAttributes, setBoolean, setDataObject, sqlSecure, supportsForeignKey, supportsPrimaryKey, transformStringWhenSaving
public static final java.lang.String BOOLEAN_TRUE_STRING
public static final java.lang.String BOOLEAN_FALSE_STRING
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 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 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 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