public class DbaseDialect extends SqlDialect
DataObject
BOOLEAN_FALSE_INT, BOOLEAN_TRUE_INT, dataObject, timestampFormat
Constructor and Description |
---|
DbaseDialect() |
Modifier and Type | Method and Description |
---|---|
void |
fillInsertStatementWithValues(java.sql.PreparedStatement statementForInsertion,
java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
int columnCount,
java.lang.String[] columnNames,
int[] columnType,
int[] columnScale,
java.lang.String columnNameOfRecordingDate,
java.lang.String columnNameOfRecordingUser,
java.lang.String recordingUser) |
boolean |
getBoolean(java.lang.String columnName,
java.util.HashMap<java.lang.String,java.lang.Object> original)
Returns the value of a column as boolean.
|
java.lang.String |
getCreateStatement(java.lang.String tableName,
AbstractAttribute[] attributes,
Index[] indices)
Returns the specific create statement string of the specified table
|
static java.lang.String |
getDbExpression(java.sql.Date sqlDate) |
protected java.lang.String |
getRowString(java.sql.ResultSet rs,
java.lang.String columnName)
Returns the String value of the specified column.
|
protected java.sql.Time |
getRowTime(java.sql.ResultSet rs,
int columnNbr)
Returns the time 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 |
getUpdatePhrase(java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
java.lang.String entity,
int columnCount,
java.lang.String[] columnNames,
int[] columnType,
int[] columnScale)
Returns the update statement string.
|
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 |
initRow(java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
int columnCount,
java.lang.String[] columnNames,
int[] columnType,
int[] columnScale)
Initializes a row.
|
void |
loadRow(java.sql.ResultSet rs,
java.util.HashMap<java.lang.String,java.lang.Object> original,
java.util.HashMap<java.lang.String,java.lang.Object> workedOn,
int columnCount,
java.lang.String[] columnNames,
int[] columnType,
int[] columnScale)
Loads the row's values into buffers for random access.
|
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.
|
boolean |
supportsPrimaryKey() |
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, extendCreateStatement, extendInsertStatementWithValues, extendToLength, extendUpdatePhrase, getCreateStatement, getCreateStatement, getIntDateValue, getLimitationFragment, getRowBoolean, getRowBoolean, getRowDate, getRowDate, getRowDouble, getRowDouble, getRowFloat, getRowFloat, getRowInt, getRowInt, getRowLong, getRowLong, getRowString, getRowTime, getRowTimestamp, getSqlCompareString, getSQLFormat, initColumn, isKnownAsBoolean, isPartOfUniqueIndex, loadColumn, setAttributes, setDataObject, sqlSecure, supportsForeignKey, transformStringWhenSaving
public boolean supportsPrimaryKey()
supportsPrimaryKey
in class SqlDialect
public void initRow(java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, int columnCount, java.lang.String[] columnNames, int[] columnType, int[] columnScale)
initRow
in class SqlDialect
original
- the buffer of original values (before changing values)workedOn
- the buffer of worked on values (after changing values)columnCount
- the number of the regarded columnscolumnNames
- the names of the regarded columnscolumnType
- the types of the regarded columnscolumnScale
- the scales of the regarded columnspublic void loadRow(java.sql.ResultSet rs, java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, int columnCount, java.lang.String[] columnNames, int[] columnType, int[] columnScale)
loadRow
in class SqlDialect
rs
- the used result setoriginal
- the buffer of original values (before changing values)workedOn
- the buffer of worked on values (after changing values)columnCount
- the number of the regarded columnscolumnNames
- the names of the regarded columnscolumnType
- the types of the regarded columnscolumnScale
- the scales of the regarded columnspublic void fillInsertStatementWithValues(java.sql.PreparedStatement statementForInsertion, java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, int columnCount, java.lang.String[] columnNames, int[] columnType, int[] columnScale, java.lang.String columnNameOfRecordingDate, java.lang.String columnNameOfRecordingUser, java.lang.String recordingUser) throws java.sql.SQLException
fillInsertStatementWithValues
in class SqlDialect
java.sql.SQLException
public java.lang.String getUpdatePhrase(java.util.HashMap<java.lang.String,java.lang.Object> original, java.util.HashMap<java.lang.String,java.lang.Object> workedOn, java.lang.String entity, int columnCount, java.lang.String[] columnNames, int[] columnType, int[] columnScale)
getUpdatePhrase
in class SqlDialect
original
- the buffer of original values (before changing values)workedOn
- the buffer of worked on values (after changing values)entity
- the table namecolumnCount
- the number of the regarded columnscolumnNames
- the names of the regarded columnscolumnType
- the types of the regarded columnscolumnScale
- the scales of the regarded columnspublic static java.lang.String getDbExpression(java.sql.Date sqlDate)
sqlDate
- the date to be formattedpublic java.lang.String unifyTableName(java.lang.String tableName)
unifyTableName
in class SqlDialect
tableName
- the table name to unifypublic java.lang.String unifyColumnName(java.lang.String columnName)
unifyColumnName
in class SqlDialect
columnName
- the column name to unifypublic java.lang.String getSqlCompareString(DateString dateString)
getSqlCompareString
in class SqlDialect
dateString
- the DateString to be preparedpublic java.lang.String getSqlCompareString(java.sql.Date date)
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)
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)
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 rowpublic java.lang.String getCreateStatement(java.lang.String tableName, AbstractAttribute[] attributes, Index[] indices)
getCreateStatement
in class SqlDialect
tableName
- the name of the table to be createdattributes
- the attribute of the table to be createdindices
- the indices to be createdprotected 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 columnSqlDialect.getRowString(ResultSet, String)
protected java.sql.Time getRowTime(java.sql.ResultSet rs, int columnNbr)
SqlDialect
getRowTime
in class SqlDialect
rs
- the result setcolumnNbr
- the number of the columnSqlDialect.getRowTime(ResultSet, int)
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de