public class OracleDialect extends AbstractDialect
Oracle Dialect.
Dialect.Keyworldlogger, UPDATE_STRINGDEFAULT_LIMIT, LIMIT_PARAM_NAME, START_PARAM_NAME| 构造器和说明 |
|---|
OracleDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
buildInsertBatchSql(java.lang.String tableName,
java.lang.String[] columnNames,
int insertAmount)
dialect for database supports batch insert.
|
java.lang.String |
convertValueToSql(java.lang.Object value,
int sqlType)
转换值为字符串
.
|
java.lang.String |
getFkCheck(boolean check)
返回设值外检检查SQL语句
.
|
java.lang.String |
getPaginationSql(java.lang.String sql,
int start,
int limit)
转换普通sql为带分页的sql
.
|
java.lang.Object[] |
getPaginationSqlParameter(java.lang.Object[] params,
int start,
int limit)
返回分页参数的数组
.
|
java.lang.String |
getParamNamedPaginationSql(java.lang.String sql,
int start,
int limit)
转换普通命名sql为带分页的sql,此sql为带命名参数sql, 如select * from user where user_name =
:username
.
|
protected java.lang.String |
getPrimaryKeyDDL(Table table)
Gets the primary key DDL.
|
java.lang.String |
getWrapSign()
Gets the wrap sign.
|
java.lang.String |
wrapName(java.lang.String name)
包装名称,避免关键字问题
.
|
buildAlterTableAddColumnDDL, buildAlterTableDropColumnDDL, buildAlterTableDropColumnDDL, buildAlterTableModifyColumnDDL, buildCreateTableDDL, getAutoIncrement, getColumnComment, getColumnDDL, getColumnNotNull, getColumnTypeDDL, getColumnTypeDDL, getColumnTypeName, getDefaultValue, getKeywords, getPaginationSqlParameter, getTableColumnsDDL, getTableComment, isForUpdate, isKeywordsUppercase, isTableAndColumnNameUppercase, setKeywordsUppercase, setTableAndColumnNameUppercase, valueToSqlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildAlterTableAddColumnDDL, buildAlterTableDDL, buildAlterTableDDL, buildAlterTableDropColumnDDL, buildAlterTableModifyColumnDDL, buildColumnSql, buildColumnSql, buildColumnSql, buildColumnSql, buildColumnSql, buildColumnSql, buildColumnSql, buildCreateDataBaseDDL, buildCreateTableDDL, buildDropDataBaseDDL, buildDropDataBaseDDL, buildDropIndexDDL, buildDropIndexDDL, buildDropTableDDL, buildDropTableDDL, buildDropTableDDL, buildDropTableDDL, buildDropViewDDL, buildDropViewDDL, buildTableSql, buildTableSql, buildTableSql, convertTableOrColumnName, getFunction, getKeyword, getKeyword, getKeyword, isAutoGenerateKeyBatch, isInsertBatchpublic java.lang.Object[] getPaginationSqlParameter(java.lang.Object[] params,
int start,
int limit)
返回分页参数的数组
.getPaginationSqlParameter 在接口中 DialectgetPaginationSqlParameter 在类中 AbstractDialectparams - 参数数组start - 起始数limit - 数量public java.lang.String getPaginationSql(java.lang.String sql,
int start,
int limit)
转换普通sql为带分页的sql
.sql - 带转换的sqlstart - 起始数limit - 数量public java.lang.String getParamNamedPaginationSql(java.lang.String sql,
int start,
int limit)
转换普通命名sql为带分页的sql,此sql为带命名参数sql, 如select * from user where user_name = :username
.sql - 带转换的sqlstart - 起始数limit - 数量public java.lang.String convertValueToSql(java.lang.Object value,
int sqlType)
转换值为字符串
.convertValueToSql 在类中 AbstractDialectvalue - valuesqlType - sqlTypepublic java.lang.String wrapName(java.lang.String name)
包装名称,避免关键字问题
.name - 名称(列明,表名等)public java.lang.String getFkCheck(boolean check)
返回设值外检检查SQL语句
.check - 是否检查外检public java.lang.String getWrapSign()
protected java.lang.String getPrimaryKeyDDL(Table table)
getPrimaryKeyDDL 在类中 AbstractDialecttable - the tablepublic java.lang.String buildInsertBatchSql(java.lang.String tableName,
java.lang.String[] columnNames,
int insertAmount)
tableName - the table namecolumnNames - the column namesinsertAmount - the insert amount