クラス PostgreSQLRdbAdapter
java.lang.Object
org.iplass.mtp.impl.rdb.adapter.RdbAdapter
org.iplass.mtp.impl.rdb.postgresql.PostgreSQLRdbAdapter
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明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を作成します。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) intintintintintintビュー名の最大長を取得します。String[]getRdbTypeAdapter(Object value) getRdbTypeAdapter(PropertyType propType) String[]getTableNames(String tableNamePattern, Connection con) int複数の更新(追加)を一括で処理する際の、PrepareStatementを利用するか否かを判断するための閾値。ビューのサブクエリエイリアスを取得します。initBlob()booleanEQLをSQLに変換する際、常にバインド変数化するか否か。booleanbooleanbooleanbooleanbindヒント句を有効化するか否かbooleanbooleanbooleanbooleanbooleanBLOB型をサポートしているかを判別します。booleanglobal 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) voidsetEscapeBackslash(boolean escapeBackslash) voidsetLockTimeout(int lockTimeout) voidsetMaxFetchSize(int maxFetchSize) voidsetMaxViewNameLength(int length) voidsetSupportOptimizerHint(boolean supportOptimizerHint) voidsetTimestampFunction(String timestampFunction) voidsetUseStandardListaggFunction(boolean useStandardListaggFunction) 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, createRowLockSql, getConnection, getDefaultOrderByForLimit, getListaggDefaultSeparator, getMultiTableTrickClauseForUpdate, getQuerySqlCreator, getRdbTimeZone, getTemplaryTablePrefix, getUpdateSqlCreator, isNeedFromClauseTableAliasUpdateStatement, isNeedMultiTableTrick, isSupportRowValueConstructor, javaCalendar, rdbCalendar, rdbTimeZone, resolveAggregateFunction, resolveFunction, sanitizeForLike, setListaggDefaultSeparator, setParameter, setRdbTimeZone, toLimitSql, toSqlExp, upperFunctionName, windowRankFunctionName
-
フィールド詳細
-
dateMin
long dateMin -
dateMax
long dateMax
-
-
コンストラクタの詳細
-
PostgreSQLRdbAdapter
public PostgreSQLRdbAdapter()
-
-
メソッドの詳細
-
isUseStandardListaggFunction
public boolean isUseStandardListaggFunction() -
setUseStandardListaggFunction
public void setUseStandardListaggFunction(boolean useStandardListaggFunction) -
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) -
isEscapeBackslash
public boolean isEscapeBackslash() -
setEscapeBackslash
public void setEscapeBackslash(boolean escapeBackslash) -
setLockTimeout
public void setLockTimeout(int lockTimeout) -
getLockTimeout
public int getLockTimeout() -
getConnection
- オーバーライド:
getConnectionクラス内RdbAdapter- 例外:
SQLException
-
getOptimizerHint
- 定義:
getOptimizerHintクラス内RdbAdapter
-
getOptimizerHintPlace
- 定義:
getOptimizerHintPlaceクラス内RdbAdapter
-
getOptimizerHintBracket
- 定義:
getOptimizerHintBracketクラス内RdbAdapter
-
getTimestampFunction
-
setTimestampFunction
-
toDateExpression
- 定義:
toDateExpressionクラス内RdbAdapter
-
toTimeExpression
- 定義:
toTimeExpressionクラス内RdbAdapter
-
toTimeStampExpression
- 定義:
toTimeStampExpressionクラス内RdbAdapter
-
systimestamp
- 定義:
systimestampクラス内RdbAdapter
-
createMultiInsertContext
- 定義:
createMultiInsertContextクラス内RdbAdapter
-
castExp
- オーバーライド:
castExpクラス内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
-
likePattern
クラスからコピーされた説明:RdbAdapterEQLのLikeのパターン文字列で、 %、_、\を\でエスケープされているEQLでの文字列を、RDBネイティブなエスケープ構文に変換する。- 定義:
likePatternクラス内RdbAdapter- パラメータ:
str-- 戻り値:
-
escape
クラスからコピーされた説明:RdbAdapterLikeのエスケープ文字指定構文。- 定義:
escapeクラス内RdbAdapter- 戻り値:
-
tableAlias
- 定義:
tableAliasクラス内RdbAdapter
-
isSupportGroupingExtention
- 定義:
isSupportGroupingExtentionクラス内RdbAdapter
-
rollUpStart
- 定義:
rollUpStartクラス内RdbAdapter
-
rollUpEnd
- 定義:
rollUpEndクラス内RdbAdapter
-
seqNextSelectSql
- 定義:
seqNextSelectSqlクラス内RdbAdapter
-
sanitize
- オーバーライド:
sanitizeクラス内RdbAdapter
-
initBlob
- 定義:
initBlobクラス内RdbAdapter
-
isUseSubQueryForIndexJoin
public boolean isUseSubQueryForIndexJoin()- 定義:
isUseSubQueryForIndexJoinクラス内RdbAdapter
-
cast
public CharSequence cast(int fromSqlType, int toSqlType, CharSequence valExpr, Integer lengthOrPrecision, Integer scale) - オーバーライド:
castクラス内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- 戻り値:
-
isSupportAutoClearTemporaryTableWhenCommit
public boolean isSupportAutoClearTemporaryTableWhenCommit() -
createLocalTemporaryTable
public String createLocalTemporaryTable(String tableName, String baseTableName, String[] baseColumnName) クラスからコピーされた説明:RdbAdapterローカルなTemporaryTableを作成する。- 定義:
createLocalTemporaryTableクラス内RdbAdapter
-
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- 戻り値:
-
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
-
setSupportOptimizerHint
public void setSupportOptimizerHint(boolean supportOptimizerHint) -
isSupportTableHint
public boolean isSupportTableHint()- 定義:
isSupportTableHintクラス内RdbAdapter
-
getTableHintBracket
- 定義:
getTableHintBracketクラス内RdbAdapter
-
isSupportBlobType
public boolean isSupportBlobType()クラスからコピーされた説明:RdbAdapterBLOB型をサポートしているかを判別します。- オーバーライド:
isSupportBlobTypeクラス内RdbAdapter- 戻り値:
- サポートしている場合は
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
-
getRdbTypeAdapter
- オーバーライド:
getRdbTypeAdapterクラス内RdbAdapter
-
getRdbTypeAdapter
- オーバーライド:
getRdbTypeAdapterクラス内RdbAdapter
-