public class OracleDialect extends SqlDialect
DataObject
BOOLEAN_FALSE_INT, BOOLEAN_TRUE_INT, dataObject, timestampFormat
Constructor and Description |
---|
OracleDialect() |
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.
|
static java.lang.String |
getCreateIndexStatement(java.lang.String tableName,
Index index,
java.lang.String indexName)
Returns the specific create index statement string of the specified table
|
java.lang.String |
getCreateStatement(EntityInfo entityInfo)
Returns the specific create statement string of the specified table
|
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 |
getLimitationFragment(int limit,
int offset)
Returns the limitation fragment of the SQL statement.
|
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.
|
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.
|
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, getIntDateValue, getRowBoolean, getRowBoolean, getRowDate, getRowDate, getRowDouble, getRowDouble, getRowFloat, getRowFloat, getRowInt, getRowInt, getRowLong, getRowLong, getRowString, getRowString, getRowTime, getRowTime, getRowTimestamp, getSqlCompareString, getSQLFormat, initColumn, isKnownAsBoolean, isPartOfUniqueIndex, loadColumn, setAttributes, setDataObject, sqlSecure, supportsForeignKey, supportsPrimaryKey, transformStringWhenSaving
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)
SqlDialect
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)
SqlDialect
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 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 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 rowpublic 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)
SqlDialect
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)
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 java.lang.String getCreateStatement(EntityInfo entityInfo)
SqlDialect
getCreateStatement
in class SqlDialect
entityInfo
- informations about the table to be createdpublic 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 createdpublic static java.lang.String getCreateIndexStatement(java.lang.String tableName, Index index, java.lang.String indexName)
tableName
- the name of the table to be indexedindex
- the index to be createdprotected java.lang.String getLimitationFragment(int limit, int offset)
getLimitationFragment
in class SqlDialect
limit
- maximum of entries to be put into the result setoffset
- the number of records that don't have to be read anymoreCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de