クラス SqlServerRdbAdapter
java.lang.Object
org.iplass.mtp.impl.rdb.adapter.RdbAdapter
org.iplass.mtp.impl.rdb.sqlserver.SqlServerRdbAdapter
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidappendSortSpecExpression(StringBuilder sb, CharSequence sortValue, SortSpec.SortType sortType, SortSpec.NullOrderingSpec nullOrderingSpec) cast(int fromSqlType, int toSqlType, CharSequence valExpr, Integer lengthOrPrecision, Integer scale) String[]String[]timezoneを変更したtimestampを取得する関数。createBinaryViewColumnSql(int colNo, String colName, String lobIdSuffix) Binary型のビューカラムのSQLを作成します。createLocalTemporaryTable(String tableName, String baseTableName, String[] baseColumnName) ローカルなTemporaryTableを作成する。createLongTextViewColumnSql(int colNo, String colName, String lobIdSuffix) LongText型のビューカラムのSQLを作成します。createRowLockSql(String sql) 行ロックのSQLを作成します。createViewColumnSql(int colNo, String colName) ビューカラムのSQLを作成します。deleteTemporaryTable(String tableName) TemporaryTableを削除(global temporary tableの場合はデータを削除する)するSQLを生成。dual()escape()Likeのエスケープ文字指定構文。intバッチ更新利用する際の推奨バッチサイズ。getDataTypeOf(int sqlType, Integer lengthOrPrecision, Integer scale) intLIMIT句のための省略時のOrderBy句を取得します。intintintintintビュー名の最大長を取得します。String[]String[]getTableNames(String tableNamePattern, Connection con) int複数の更新(追加)を一括で処理する際の、PrepareStatementを利用するか否かを判断するための閾値。ビューのサブクエリエイリアスを取得します。initBlob()booleanEQLをSQLに変換する際、常にバインド変数化するか否か。booleanbooleanbooleanbooleanbindヒント句を有効化するか否かbooleanbooleanbooleanUPDATE文の表名にエイリアスを使用する場合はFROM句が必要かを判別します。booleanbooleanglobal temporary tableをサポートしている場合はtruebooleanbooleanisSupportGroupingExtention(GroupBy.RollType rollType) booleanbooleanboolean行値構成子(行値式)をサポートしているかを判別します。booleanbooleanbooleanlikePattern(String str) EQLのLikeのパターン文字列で、 %、_、\を\でエスケープされているEQLでの文字列を、RDBネイティブなエスケープ構文に変換する。rollUpEnd(GroupBy.RollType rollType) rollUpStart(GroupBy.RollType rollType) seqNextSelectSql(String sequenceName, int tenantId, String entityDefId) voidsetAddMonthsFunction(String addMonthsFunction) voidsetAlwaysBind(boolean alwaysBind) voidsetBatchSize(int batchSize) voidsetDefaultFetchSize(int defaultFetchSize) voidsetDefaultQueryTimeout(int defaultQueryTimeout) voidsetEnableBindHint(boolean enableBindHint) voidsetLockTimeout(int lockTimeout) voidsetMaxFetchSize(int maxFetchSize) voidsetMaxViewNameLength(int length) voidsetMonthsBetweenFunction(String monthsBetweenFunction) voidsetOptimizerHint(String optimizerHint) voidsetThresholdCountOfUsePrepareStatement(int thresholdCountOfUsePrepareStatement) voidsetTimestampFunction(String timestampFunction) voidsetTimeZoneMap(Map<String, String> timeZoneMap) voidsetUseSubQueryForIndexJoin(boolean isUseSubQueryForIndexJoin) voidsetViewSubQueryAlias(String alias) tableAlias(String selectSql) toCreateViewDDL(String viewName, String selectSql, boolean withDropView) 指定のSELECT文をビュー作成DDLにします。toDateExpression(Date date) toLimitSql(String selectSql, int limitCount, int offset, boolean asBind) Object[]toLimitSqlBindValue(int limitCount, int offset) toTimeExpression(Time time) クラスから継承されたメソッド org.iplass.mtp.impl.rdb.adapter.RdbAdapter
addAggregateFunction, addFunction, aggregateFunctionName, countQuery, getConnection, getConnection, getListaggDefaultSeparator, getMultiTableTrickClauseForUpdate, getQuerySqlCreator, getRdbTimeZone, getRdbTypeAdapter, getRdbTypeAdapter, getUpdateSqlCreator, isNeedMultiTableTrick, isSupportBlobType, javaCalendar, rdbCalendar, rdbTimeZone, resolveAggregateFunction, resolveFunction, sanitize, sanitizeForLike, setListaggDefaultSeparator, setParameter, setRdbTimeZone, toLimitSql, toSqlExp, upperFunctionName, windowRankFunctionName
-
フィールド詳細
-
dateMin
long dateMin -
dateMax
long dateMax
-
-
コンストラクタの詳細
-
SqlServerRdbAdapter
public SqlServerRdbAdapter()
-
-
メソッドの詳細
-
getDefaultQueryTimeout
public int getDefaultQueryTimeout()- 定義:
getDefaultQueryTimeoutクラス内RdbAdapter
-
setDefaultQueryTimeout
public void setDefaultQueryTimeout(int defaultQueryTimeout) -
getDefaultFetchSize
public int getDefaultFetchSize()- 定義:
getDefaultFetchSizeクラス内RdbAdapter
-
setDefaultFetchSize
public void setDefaultFetchSize(int defaultFetchSize) -
getMaxFetchSize
public int getMaxFetchSize()- 定義:
getMaxFetchSizeクラス内RdbAdapter
-
setMaxFetchSize
public void setMaxFetchSize(int maxFetchSize) -
getOptimizerHintPlace
- 定義:
getOptimizerHintPlaceクラス内RdbAdapter
-
getOptimizerHintBracket
- 定義:
getOptimizerHintBracketクラス内RdbAdapter
-
getOptimizerHint
- 定義:
getOptimizerHintクラス内RdbAdapter
-
setOptimizerHint
-
getAddMonthsFunction
-
setAddMonthsFunction
-
getMonthsBetweenFunction
-
setMonthsBetweenFunction
-
getTimestampFunction
-
setTimestampFunction
-
setLockTimeout
public void setLockTimeout(int lockTimeout) -
getLockTimeout
public int getLockTimeout() -
toDateExpression
- 定義:
toDateExpressionクラス内RdbAdapter
-
toTimeExpression
- 定義:
toTimeExpressionクラス内RdbAdapter
-
toTimeStampExpression
- 定義:
toTimeStampExpressionクラス内RdbAdapter
-
systimestamp
- 定義:
systimestampクラス内RdbAdapter
-
castExp
- オーバーライド:
castExpクラス内RdbAdapter
-
cast
public CharSequence cast(int fromSqlType, int toSqlType, CharSequence valExpr, Integer lengthOrPrecision, Integer scale) - オーバーライド:
castクラス内RdbAdapter
-
createMultiInsertContext
- 定義:
createMultiInsertContextクラス内RdbAdapter
-
getDataTypeOf
- 定義:
getDataTypeOfクラス内RdbAdapter
-
dual
- 定義:
dualクラス内RdbAdapter
-
rowLockExpression
- 定義:
rowLockExpressionクラス内RdbAdapter
-
toLimitSql
- 定義:
toLimitSqlクラス内RdbAdapter
-
toLimitSqlBindValue
- 定義:
toLimitSqlBindValueクラス内RdbAdapter
-
isDuplicateValueException
- 定義:
isDuplicateValueExceptionクラス内RdbAdapter
-
isDeadLock
- 定義:
isDeadLockクラス内RdbAdapter
-
isLockFailed
- 定義:
isLockFailedクラス内RdbAdapter
-
isCastFailed
- 定義:
isCastFailedクラス内RdbAdapter
-
addDate
- 定義:
addDateクラス内RdbAdapter
-
checkStatusQuery
- 定義:
checkStatusQueryクラス内RdbAdapter
-
escape
クラスからコピーされた説明:RdbAdapterLikeのエスケープ文字指定構文。- 定義:
escapeクラス内RdbAdapter- 戻り値:
-
tableAlias
- 定義:
tableAliasクラス内RdbAdapter
-
isSupportGroupingExtention
- 定義:
isSupportGroupingExtentionクラス内RdbAdapter
-
rollUpStart
- 定義:
rollUpStartクラス内RdbAdapter
-
rollUpEnd
- 定義:
rollUpEndクラス内RdbAdapter
-
seqNextSelectSql
- 定義:
seqNextSelectSqlクラス内RdbAdapter
-
likePattern
クラスからコピーされた説明:RdbAdapterEQLのLikeのパターン文字列で、 %、_、\を\でエスケープされているEQLでの文字列を、RDBネイティブなエスケープ構文に変換する。- 定義:
likePatternクラス内RdbAdapter- パラメータ:
str-- 戻り値:
-
initBlob
- 定義:
initBlobクラス内RdbAdapter
-
isUseSubQueryForIndexJoin
public boolean isUseSubQueryForIndexJoin()- 定義:
isUseSubQueryForIndexJoinクラス内RdbAdapter
-
setUseSubQueryForIndexJoin
public void setUseSubQueryForIndexJoin(boolean isUseSubQueryForIndexJoin) -
appendSortSpecExpression
public void appendSortSpecExpression(StringBuilder sb, CharSequence sortValue, SortSpec.SortType sortType, SortSpec.NullOrderingSpec nullOrderingSpec) - 定義:
appendSortSpecExpressionクラス内RdbAdapter
-
convertTZ
クラスからコピーされた説明:RdbAdaptertimezoneを変更したtimestampを取得する関数。 変換前のtimestampはデフォルトタイムゾーン(DBのタイムゾーンもしくはDBセッションのタイムゾーン)と同一である想定。- 定義:
convertTZクラス内RdbAdapter- パラメータ:
to-- 戻り値:
- [0]がpre文字列、[1]がpost文字列
-
isEnableInPartitioning
public boolean isEnableInPartitioning()- 定義:
isEnableInPartitioningクラス内RdbAdapter
-
getInPartitioningSize
public int getInPartitioningSize()- 定義:
getInPartitioningSizeクラス内RdbAdapter
-
deleteTemporaryTable
クラスからコピーされた説明:RdbAdapterTemporaryTableを削除(global temporary tableの場合はデータを削除する)するSQLを生成。- 定義:
deleteTemporaryTableクラス内RdbAdapter- パラメータ:
tableName-- 戻り値:
-
isSupportGlobalTemporaryTable
public boolean isSupportGlobalTemporaryTable()クラスからコピーされた説明:RdbAdapterglobal temporary tableをサポートしている場合はtrue- 定義:
isSupportGlobalTemporaryTableクラス内RdbAdapter- 戻り値:
-
createLocalTemporaryTable
public String createLocalTemporaryTable(String tableName, String baseTableName, String[] baseColumnName) クラスからコピーされた説明:RdbAdapterローカルなTemporaryTableを作成する。- 定義:
createLocalTemporaryTableクラス内RdbAdapter
-
getTemplaryTablePrefix
- オーバーライド:
getTemplaryTablePrefixクラス内RdbAdapter
-
isSupportAutoClearTemporaryTableWhenCommit
public boolean isSupportAutoClearTemporaryTableWhenCommit() -
isSupportGroupingExtentionWithOrderBy
public boolean isSupportGroupingExtentionWithOrderBy() -
isSupportGroupingExtention
public boolean isSupportGroupingExtention()- 定義:
isSupportGroupingExtentionクラス内RdbAdapter
-
isEnableBindHint
public boolean isEnableBindHint()クラスからコピーされた説明:RdbAdapterbindヒント句を有効化するか否か- 定義:
isEnableBindHintクラス内RdbAdapter- 戻り値:
-
setEnableBindHint
public void setEnableBindHint(boolean enableBindHint) -
isAlwaysBind
public boolean isAlwaysBind()クラスからコピーされた説明:RdbAdapterEQLをSQLに変換する際、常にバインド変数化するか否か。- 定義:
isAlwaysBindクラス内RdbAdapter- 戻り値:
-
setAlwaysBind
public void setAlwaysBind(boolean alwaysBind) -
getBatchSize
public int getBatchSize()クラスからコピーされた説明:RdbAdapterバッチ更新利用する際の推奨バッチサイズ。- 定義:
getBatchSizeクラス内RdbAdapter- 戻り値:
-
setBatchSize
public void setBatchSize(int batchSize) -
getThresholdCountOfUsePrepareStatement
public int getThresholdCountOfUsePrepareStatement()クラスからコピーされた説明:RdbAdapter複数の更新(追加)を一括で処理する際の、PrepareStatementを利用するか否かを判断するための閾値。- 定義:
getThresholdCountOfUsePrepareStatementクラス内RdbAdapter- 戻り値:
-
setThresholdCountOfUsePrepareStatement
public void setThresholdCountOfUsePrepareStatement(int thresholdCountOfUsePrepareStatement) -
createBulkInsertContext
- 定義:
createBulkInsertContextクラス内RdbAdapter
-
createBulkUpdateContext
- 定義:
createBulkUpdateContextクラス内RdbAdapter
-
createBulkDeleteContext
- 定義:
createBulkDeleteContextクラス内RdbAdapter
-
getMultiTableUpdateMethod
- 定義:
getMultiTableUpdateMethodクラス内RdbAdapter
-
getTableNames
- 定義:
getTableNamesクラス内RdbAdapter- 例外:
SQLException
-
isSupportWindowFunction
public boolean isSupportWindowFunction()- 定義:
isSupportWindowFunctionクラス内RdbAdapter
-
isSupportOptimizerHint
public boolean isSupportOptimizerHint()- 定義:
isSupportOptimizerHintクラス内RdbAdapter
-
isSupportTableHint
public boolean isSupportTableHint()- 定義:
isSupportTableHintクラス内RdbAdapter
-
getTableHintBracket
- 定義:
getTableHintBracketクラス内RdbAdapter
-
createRowLockSql
クラスからコピーされた説明:RdbAdapter行ロックのSQLを作成します。DMLの判別はしていません。SELECT文に対してのみ使用してください。
- オーバーライド:
createRowLockSqlクラス内RdbAdapter- パラメータ:
sql- 行ロックのSQLを作成するSQL。- 戻り値:
- 行ロックを行うSQL
-
isSupportRowValueConstructor
public boolean isSupportRowValueConstructor()クラスからコピーされた説明:RdbAdapter行値構成子(行値式)をサポートしているかを判別します。- オーバーライド:
isSupportRowValueConstructorクラス内RdbAdapter- 戻り値:
- サポートしている場合は
trueを返します。
-
isNeedFromClauseTableAliasUpdateStatement
public boolean isNeedFromClauseTableAliasUpdateStatement()クラスからコピーされた説明:RdbAdapterUPDATE文の表名にエイリアスを使用する場合はFROM句が必要かを判別します。- オーバーライド:
isNeedFromClauseTableAliasUpdateStatementクラス内RdbAdapter- 戻り値:
- FROM句が必要な場合は
trueを返します。
-
getDefaultOrderByForLimit
クラスからコピーされた説明:RdbAdapterLIMIT句のための省略時のOrderBy句を取得します。- オーバーライド:
getDefaultOrderByForLimitクラス内RdbAdapter- 戻り値:
- OrderBy句
-
getTimeZoneMap
-
setTimeZoneMap
-
getViewSubQueryAlias
クラスからコピーされた説明:RdbAdapterビューのサブクエリエイリアスを取得します。- オーバーライド:
getViewSubQueryAliasクラス内RdbAdapter- 戻り値:
- エイリアス
-
setViewSubQueryAlias
-
getMaxViewNameLength
public int getMaxViewNameLength()クラスからコピーされた説明:RdbAdapterビュー名の最大長を取得します。- オーバーライド:
getMaxViewNameLengthクラス内RdbAdapter- 戻り値:
- ビュー名の最大長。0未満の場合は無制限。
-
setMaxViewNameLength
public void setMaxViewNameLength(int length) -
createViewColumnSql
クラスからコピーされた説明:RdbAdapterビューカラムのSQLを作成します。- 定義:
createViewColumnSqlクラス内RdbAdapter- パラメータ:
colNo- カラム番号colName- カラム名- 戻り値:
- ビューカラムSQL
-
createBinaryViewColumnSql
クラスからコピーされた説明:RdbAdapterBinary型のビューカラムのSQLを作成します。- 定義:
createBinaryViewColumnSqlクラス内RdbAdapter- パラメータ:
colName- カラム名lobIdSuffix- ロブIDカラム接尾辞- 戻り値:
- ビューカラムSQL
-
createLongTextViewColumnSql
クラスからコピーされた説明:RdbAdapterLongText型のビューカラムのSQLを作成します。- 定義:
createLongTextViewColumnSqlクラス内RdbAdapter- パラメータ:
colName- カラム名lobIdSuffix- LobIDカラム接尾辞- 戻り値:
- ビューカラムSQL
-
toCreateViewDDL
クラスからコピーされた説明:RdbAdapter指定のSELECT文をビュー作成DDLにします。- 定義:
toCreateViewDDLクラス内RdbAdapter- パラメータ:
viewName- ビュー名selectSql- SELECT文withDropView- ビュー削除も含める- 戻り値:
- ビュー作成DDL
-