クラス MysqlRdbAdaptor
java.lang.Object
org.iplass.mtp.impl.rdb.adapter.RdbAdapter
org.iplass.mtp.impl.rdb.mysql.MysqlRdbAdaptor
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明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を取得する関数。countQuery(Query q) 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を作成します。createViewColumnSql(int colNo, String colName) ビューカラムのSQLを作成します。deleteTemporaryTable(String tableName) TemporaryTableを削除(global temporary tableの場合はデータを削除する)するSQLを生成。dual()escape()Likeのエスケープ文字指定構文。intバッチ更新利用する際の推奨バッチサイズ。getConnection(String connectionFactoryName) protected StringgetDataTypeOf(int sqlType, Integer lengthOrPrecision, Integer scale) intintintintintビュー名の最大長を取得します。Multi-Table Trickで利用する句。String[]getRdbTypeAdapter(Object value) getRdbTypeAdapter(PropertyType propType) String[]getTableNames(String tableNamePattern, Connection con) int複数の更新(追加)を一括で処理する際の、PrepareStatementを利用するか否かを判断するための閾値。timestampMethodを取得します。ビューのサブクエリエイリアスを取得します。initBlob()booleanEQLをSQLに変換する際、常にバインド変数化するか否か。booleanbooleanbooleanbooleanbindヒント句を有効化するか否かbooleanbooleanbooleanMulti-Table Trickを利用するか否かを指定。booleanbooleanbooleanglobal temporary tableをサポートしている場合はtruebooleanbooleanisSupportGroupingExtention(GroupBy.RollType rollType) booleanbooleanbooleanbooleanbooleanbooleanlikePattern(String str) EQLのLikeのパターン文字列で、 %、_、\を\でエスケープされているEQLでの文字列を、RDBネイティブなエスケープ構文に変換する。rollUpEnd(GroupBy.RollType rollType) rollUpStart(GroupBy.RollType rollType) seqNextSelectSql(String sequenceName, int tenantId, String entityDefId) voidsetBatchSize(int batchSize) voidsetDefaultFetchSize(int defaultFetchSize) voidsetDefaultQueryTimeout(int defaultQueryTimeout) voidsetEnableBindHint(boolean enableBindHint) voidsetLocalTemporaryTableCreatedByDataSource(boolean localTemporaryTableCreatedByDataSource) ローカル一時テーブルがデータソースで作成されるかを指定します。voidsetLocalTemporaryTableManageOutsideTransaction(boolean localTemporaryTableManageOutsideTransaction) ローカル一時テーブルをトランザクションの外で管理するかを指定します。voidsetMaxFetchSize(int maxFetchSize) voidsetMaxViewNameLength(int length) voidsetMultiTableTrickClauseForUpdate(String multiTableTrickClauseForUpdate) voidsetNeedMultiTableTrick(boolean needMultiTableTrick) voidsetOptimizeCountQuery(boolean optimizeCountQuery) voidsetSupportOptimizerHint(boolean supportOptimizerHint) voidsetSupportWindowFunction(boolean supportWindowFunction) voidsetThresholdCountOfUsePrepareStatement(int thresholdCountOfUsePrepareStatement) voidsetTimestampMethod(String timestampMethod) timestampMethodを設定します。voidsetUseFractionalSecondsOnTimestamp(boolean useFractionalSecondsOnTimestamp) 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, createRowLockSql, getConnection, getDefaultOrderByForLimit, getListaggDefaultSeparator, getQuerySqlCreator, getRdbTimeZone, getTemplaryTablePrefix, getUpdateSqlCreator, isNeedFromClauseTableAliasUpdateStatement, isSupportBlobType, isSupportRowValueConstructor, javaCalendar, rdbCalendar, rdbTimeZone, resolveAggregateFunction, resolveFunction, sanitizeForLike, setListaggDefaultSeparator, setParameter, setRdbTimeZone, toLimitSql, toSqlExp, upperFunctionName, windowRankFunctionName
-
フィールド詳細
-
dateMin
long dateMin -
dateMax
long dateMax
-
-
コンストラクタの詳細
-
MysqlRdbAdaptor
public MysqlRdbAdaptor()
-
-
メソッドの詳細
-
getConnection
- オーバーライド:
getConnectionクラス内RdbAdapter- 例外:
SQLException
-
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) -
isUseFractionalSecondsOnTimestamp
public boolean isUseFractionalSecondsOnTimestamp() -
setUseFractionalSecondsOnTimestamp
public void setUseFractionalSecondsOnTimestamp(boolean useFractionalSecondsOnTimestamp) -
getTimestampMethod
timestampMethodを取得します。- 戻り値:
- timestampMethod
-
setTimestampMethod
timestampMethodを設定します。- パラメータ:
timestampMethod- timestampMethod
-
createMultiInsertContext
- 定義:
createMultiInsertContextクラス内RdbAdapter
-
dual
- 定義:
dualクラス内RdbAdapter
-
getDataTypeOf
- 定義:
getDataTypeOfクラス内RdbAdapter
-
rowLockExpression
- 定義:
rowLockExpressionクラス内RdbAdapter
-
systimestamp
- 定義:
systimestampクラス内RdbAdapter
-
toDateExpression
- 定義:
toDateExpressionクラス内RdbAdapter
-
toTimeExpression
- 定義:
toTimeExpressionクラス内RdbAdapter
-
toTimeStampExpression
- 定義:
toTimeStampExpressionクラス内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
-
likePattern
クラスからコピーされた説明:RdbAdapterEQLのLikeのパターン文字列で、 %、_、\を\でエスケープされているEQLでの文字列を、RDBネイティブなエスケープ構文に変換する。- 定義:
likePatternクラス内RdbAdapter- パラメータ:
str-- 戻り値:
-
escape
クラスからコピーされた説明:RdbAdapterLikeのエスケープ文字指定構文。- 定義:
escapeクラス内RdbAdapter- 戻り値:
-
sanitize
- オーバーライド:
sanitizeクラス内RdbAdapter
-
castExp
- オーバーライド:
castExpクラス内RdbAdapter
-
cast
public CharSequence cast(int fromSqlType, int toSqlType, CharSequence valExpr, Integer lengthOrPrecision, Integer scale) - オーバーライド:
castクラス内RdbAdapter
-
tableAlias
- 定義:
tableAliasクラス内RdbAdapter
-
isSupportGroupingExtention
- 定義:
isSupportGroupingExtentionクラス内RdbAdapter
-
rollUpStart
- 定義:
rollUpStartクラス内RdbAdapter
-
rollUpEnd
- 定義:
rollUpEndクラス内RdbAdapter
-
seqNextSelectSql
- 定義:
seqNextSelectSqlクラス内RdbAdapter
-
initBlob
- 定義:
initBlobクラス内RdbAdapter
-
isUseSubQueryForIndexJoin
public boolean isUseSubQueryForIndexJoin()- 定義:
isUseSubQueryForIndexJoinクラス内RdbAdapter
-
getOptimizerHint
- 定義:
getOptimizerHintクラス内RdbAdapter
-
getOptimizerHintPlace
- 定義:
getOptimizerHintPlaceクラス内RdbAdapter
-
getOptimizerHintBracket
- 定義:
getOptimizerHintBracketクラス内RdbAdapter
-
isSupportOptimizerHint
public boolean isSupportOptimizerHint()- 定義:
isSupportOptimizerHintクラス内RdbAdapter
-
setSupportOptimizerHint
public void setSupportOptimizerHint(boolean supportOptimizerHint) -
isSupportTableHint
public boolean isSupportTableHint()- 定義:
isSupportTableHintクラス内RdbAdapter
-
getTableHintBracket
- 定義:
getTableHintBracketクラス内RdbAdapter
-
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
-
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- 戻り値:
-
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
-
setSupportWindowFunction
public void setSupportWindowFunction(boolean supportWindowFunction) -
setLocalTemporaryTableManageOutsideTransaction
public void setLocalTemporaryTableManageOutsideTransaction(boolean localTemporaryTableManageOutsideTransaction) ローカル一時テーブルをトランザクションの外で管理するかを指定します。5.6.5から利用可能なGTIDを利用する場合trueを指定する必要があります。
但し、に無効な参照です
#setLocalTemporaryTableCreateAtDataSourcetrueを指定した場合は指定する必要はありません。- パラメータ:
localTemporaryTableManageOutsideTransaction- トランザクションの外で管理する場合はtrueを指定します。
-
setLocalTemporaryTableCreatedByDataSource
public void setLocalTemporaryTableCreatedByDataSource(boolean localTemporaryTableCreatedByDataSource) ローカル一時テーブルがデータソースで作成されるかを指定します。- パラメータ:
localTemporaryTableCreatedByDataSource- データソースで作成される場合はtrueを指定します。
-
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
-
isNeedMultiTableTrick
public boolean isNeedMultiTableTrick()クラスからコピーされた説明:RdbAdapterMulti-Table Trickを利用するか否かを指定。 MySQL用の設定項目。- オーバーライド:
isNeedMultiTableTrickクラス内RdbAdapter- 戻り値:
-
setNeedMultiTableTrick
public void setNeedMultiTableTrick(boolean needMultiTableTrick) -
getMultiTableTrickClauseForUpdate
クラスからコピーされた説明:RdbAdapterMulti-Table Trickで利用する句。 MySQL用の設定項目。- オーバーライド:
getMultiTableTrickClauseForUpdateクラス内RdbAdapter- 戻り値:
-
setMultiTableTrickClauseForUpdate
-
isOptimizeCountQuery
public boolean isOptimizeCountQuery() -
setOptimizeCountQuery
public void setOptimizeCountQuery(boolean optimizeCountQuery) -
countQuery
- オーバーライド:
countQueryクラス内RdbAdapter
-
getRdbTypeAdapter
- オーバーライド:
getRdbTypeAdapterクラス内RdbAdapter
-
getRdbTypeAdapter
- オーバーライド:
getRdbTypeAdapterクラス内RdbAdapter
-