Hitachi

ノンストップデータベース HiRDB Version 10 UAP開発ガイド


16.13.8 DatabaseMetaDataクラス

DatabaseMetaDataクラスのJDBC1.0規格で定義されているメソッドの制限事項又は返却内容を次の表に示します。

なお,各メソッドが返却する値は,常にJDBCドライバのバージョンと同一のバージョンのHiRDBサーバに関する情報です。

表16‒30 DatabaseMetaDataクラスのJDBC1.0規格で定義されているメソッドの制限事項

JDBC1.0規格で定義されているメソッド

制限事項又は返却内容

allProceduresAreCallable

falseを返却します。

allTablesAreSelectable

falseを返却します。

getURL

接続しているデータベースのJDBC URLを返却します。

getUserName

データベースに接続する際に使用した認可識別子を返却します。

isReadOnly

アクセスモードを変更できないため,無条件にfalseを返却します。

nullsAreSortedHigh

trueを返却します。

nullsAreSortedLow

falseを返却します。

nullsAreSortedAtStart

falseを返却します。

nullsAreSortedAtEnd

無条件にfalseを返却します。

getDatabaseProductName

'HiRDB'を返却します。

getDatabaseProductVersion

nullを返却します。

getDriverName

'HiRDB_for_JDBC'を返却します。

getDriverVersion

08.05.0000を返却します。

getDriverMajorVersion

8です。

getDriverMinorVersion

5です。

usesLocalFiles

無条件にfalseを返却します。

usesLocalFilePerTable

無条件にfalseを返却します。

supportsMixedCaseIdentifiers

無条件にfalseを返却します。

storesUpperCaseIdentifiers

trueを返却します。

storesLowerCaseIdentifiers

無条件にfalseを返却します。

storesMixedCaseIdentifiers

falseを返却します。

supportsMixedCaseQuotedIdentifiers

trueを返却します。

storesUpperCaseQuotedIdentifiers

falseを返却します。

storesLowerCaseQuotedIdentifiers

無条件にfalseを返却します。

storesMixedCaseQuotedIdentifiers

trueを返却します。

getIdentifierQuoteString

無条件に引用符を返却します。

getSQLKeywords

HiRDB固有のSQLキーワードを返却します。

getNumericFunctions

数学関数のリストを返却します。

getStringFunctions

文字列関数のリストを返却します。

getSystemFunctions

システム関数のリストを返却します。

getTimeDateFunctions

時間関数と日付関数のリストを返却します。

getSearchStringEscape

'\'を返却します。

getExtraNameCharacters

SQL識別名に使用できる特殊文字を返却します。

supportsAlterTableWithAddColumn

trueを返却します。

supportsAlterTableWithDropColumn

supportsColumnAliasing

nullPlusNonNullIsNull

supportsConvert(引数なし)

trueを返却します。

supportsConvert(引数あり)

引数で指定したデータ型の組み合わせによって,true又はfalseのどちらかを返却します。

supportsTableCorrelationNames

trueを返却します。

supportsDifferentTableCorrelationNames

supportsExpressionsInOrderBy

falseを返却します。

supportsOrderByUnrelated

trueを返却します。

supportsGroupBy

supportsGroupByUnrelated

supportsGroupByBeyondSelect

supportsLikeEscapeClause

supportsMultipleResultSets

無条件にtrueを返却します。

supportsMultipleTransactions

supportsNonNullableColumns

trueを返却します。

supportsMinimumSQLGrammar

無条件にtrueを返却します。

supportsCoreSQLGrammar

supportsExtendedSQLGrammar

falseを返却します。

supportsANSI92EntryLevelSQL

無条件にtrueを返却します。

supportsANSI92IntermediateSQL

無条件にfalseを返却します。

supportsANSI92FullSQL

supportsIntegrityEnhancementFacility

falseを返却します。

supportsOuterJoins

trueを返却します。

supportsFullOuterJoins

falseを返却します。

supportsLimitedOuterJoins

trueを返却します。

getSchemaTerm

'schema'を返却します。

getProcedureTerm

'procedure'を返却します。

getCatalogTerm

nullを返却します。

isCatalogAtStart

falseを返却します。

getCatalogSeparator

nullを返却します。

supportsSchemasInDataManipulation

無条件にtrueを返却します。

supportsSchemasInProcedureCalls

trueを返却します。

supportsSchemasInTableDefinitions

supportsSchemasInIndexDefinitions

supportsSchemasInPrivilegeDefinitions

supportsCatalogsInDataManipulation

falseを返却します。

supportsCatalogsInProcedureCalls

supportsCatalogsInTableDefinitions

supportsCatalogsInIndexDefinitions

無条件にfalseを返却します。

supportsCatalogsInPrivilegeDefinitions

supportsPositionedDelete

supportsPositionedUpdate

supportsSelectForUpdate

supportsStoredProcedures

trueを返却します。

supportsSubqueriesInComparisons

supportsSubqueriesInExists

supportsSubqueriesInIns

supportsSubqueriesInQuantifieds

supportsCorrelatedSubqueries

supportsUnion

supportsUnionAll

supportsOpenCursorsAcrossCommit

次のどれかの値がPRESERVEの場合,trueを返却します。

  • URLでのCOMMIT_BEHAVIORの設定

  • Properties infoでのCOMMIT_BEHAVIORの設定

  • setCommit_Behaviorメソッド実行時の引数

supportsOpenCursorsAcrossRollback

無条件にfalseを返却します。

supportsOpenStatementsAcrossCommit

次のどれかの値がPRESERVE又はCLOSEの場合,trueを返却します。

  • URLでのCOMMIT_BEHAVIORの設定

  • Properties infoでのCOMMIT_BEHAVIORの設定

  • setCommit_Behaviorメソッド実行時の引数

supportsOpenStatementsAcrossRollback

無条件にfalseを返却します。

getMaxBinaryLiteralLength

64000を返却します。

getMaxCharLiteralLength

32000を返却します。

getMaxColumnNameLength

30を返却します。

getMaxColumnsInGroupBy

255を返却します。

getMaxColumnsInIndex

16を返却します。

getMaxColumnsInOrderBy

255を返却します。

getMaxColumnsInSelect

30000を返却します。

getMaxColumnsInTable

getMaxConnections

0を返却します。

getMaxCursorNameLength

30を返却します。

getMaxIndexLength

4036を返却します。

getMaxSchemaNameLength

8を返却します。

getMaxProcedureNameLength

30を返却します。

getMaxCatalogNameLength

0を返却します。

getMaxRowSize

doesMaxRowSizeIncludeBlobs

falseを返却します。

getMaxStatementLength

2000000を返却します。

getMaxStatements

64を返却します。

getMaxTableNameLength

30を返却します。

getMaxTablesInSelect

64を返却します。

getMaxUserNameLength

8を返却します。

getDefaultTransactionIsolation

無条件にTRANSACTION_REPEATABLE_READを返却します。

supportsTransactions

無条件にtrueを返却します。

supportsTransactionIsolationLevel

与えられたトランザクションアイソレーションレベルが次のどれかの場合,trueを返却します。

  • TRANSACTION_READ_COMMITTED

  • TRANSACTION_READ_UNCOMMITTED

  • TRANSACTION_REPEATABLE_READ

supportsDataDefinitionAndDataManipulationTransactions

falseを返却します。

supportsDataManipulationTransactionsOnly

falseを返却します。

dataDefinitionCausesTransactionCommit

trueを返却します。

dataDefinitionIgnoredInTransactions

無条件にfalseを返却します。

getProcedures

Javaストアドルーチン関する記述を返却します。

getProcedureColumns

Javaストアドルーチンのパラメタに関する記述を返却します。

getTables

表に関する記述を返却します。組み込む表の型のリスト(types)に指定できるのは,getTableTypesで返却する表の型だけです。

getSchemas

スキーマ名称に関する記述を返却します。

getCatalogs

返却する結果は常に0件です。

getTableTypes

表の型に関する記述を返却します。返却する内容を次に示します。

"SYSTEM TABLE":システム表

"BASE TABLE":実表

"VIEW":ビュー表

"READ ONLY VIEW":読み込み専用ビュー表

getColumns

列に関する記述を返却します。

getColumnPrivileges

列の権限に関する記述を返却します。

getTablePrivileges

表の権限に関する記述を返却します。

getBestRowIdentifier

返却する結果は常に0件です。

getVersionColumns

getPrimaryKeys

主キーの列に関する記述を返却します(返却する結果は常に0件です)。

getImportedKeys

返却する結果は常に0件です。

getExportedKeys

主キーの列を参照する外部キーの列に関する記述を返却します(返却する結果は常に0件です)。

getCrossReference

主キーの表の主キー列を参照する,外部キーの表の外部キー列に関する記述を返却します(返却する結果は常に0件です)。

getTypeInfo

データベースで使用できる標準SQLタイプに関する記述を返却します。

getIndexInfo

インデクスに関する記述を返却します。

DatabaseMetaDataクラスのJDBC2.0基本規格で追加されたメソッドの制限事項又は返却内容を次の表に示します。

なお,各メソッドが返却する値は,常にJDBCドライバのバージョンと同一のバージョンのHiRDBサーバに関する情報です。

表16‒31 DatabaseMetaDataクラスのJDBC2.0基本規格で追加されたメソッドの制限事項

JDBC2.0基本規格で追加されたメソッド

制限事項又は返却内容

supportsResultSetType

結果セットタイプがTYPE_FORWARD_ONLY又はTYPE_SCROLL_INSENSITIVEの場合,trueを返却します。

supportsResultSetConcurrency

結果セットタイプがTYPE_FORWARD_ONLY又はTYPE_SCROLL_INSENSITIVEで,並行処理タイプがCONCUR_READ_ONLYの場合,trueを返却します。

ownUpdatesAreVisible

無条件にfalseを返却します。

ownDeletesAreVisible

ownInsertsAreVisible

othersUpdatesAreVisible

othersDeletesAreVisible

othersInsertsAreVisible

updatesAreDetected

deletesAreDetected

insertsAreDetected

supportsBatchUpdates

無条件にtrueを返却します。

getUDTs

返却する結果は常に0件です。

getConnection

DatabaseMetaDataインスタンスの生成元であるConnectionインスタンスを返却します。