Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2bb8b6e3
提交
2bb8b6e3
authored
3月 26, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use ordered lists in javadoc of JdbcDatabaseMetaData
上级
3b852936
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
250 行增加
和
252 行删除
+250
-252
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+250
-252
没有找到文件。
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
2bb8b6e3
...
...
@@ -146,20 +146,19 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of tables in the database. The result set is sorted by
* TABLE_TYPE, TABLE_SCHEM, and TABLE_NAME.
*
* <ul>
* <li>1 TABLE_CAT (String) table catalog </li>
* <li>2 TABLE_SCHEM (String) table schema </li>
* <li>3 TABLE_NAME (String) table name </li>
* <li>4 TABLE_TYPE (String) table type </li>
* <li>5 REMARKS (String) comment </li>
* <li>6 TYPE_CAT (String) always null </li>
* <li>7 TYPE_SCHEM (String) always null </li>
* <li>8 TYPE_NAME (String) always null </li>
* <li>9 SELF_REFERENCING_COL_NAME (String) always null </li>
* <li>10 REF_GENERATION (String) always null </li>
* <li>11 SQL (String) the create table statement or NULL for systems tables
* </li>
* </ul>
* <ol>
* <li>TABLE_CAT (String) table catalog</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>TABLE_NAME (String) table name</li>
* <li>TABLE_TYPE (String) table type</li>
* <li>REMARKS (String) comment</li>
* <li>TYPE_CAT (String) always null</li>
* <li>TYPE_SCHEM (String) always null</li>
* <li>TYPE_NAME (String) always null</li>
* <li>SELF_REFERENCING_COL_NAME (String) always null</li>
* <li>REF_GENERATION (String) always null</li>
* <li>SQL (String) the create table statement or NULL for systems tables.</li>
* </ol>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -265,34 +264,34 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of columns. The result set is sorted by TABLE_SCHEM,
* TABLE_NAME, and ORDINAL_POSITION.
*
* <
u
l>
* <li>
1 TABLE_CAT (String) table catalog
</li>
* <li>
2 TABLE_SCHEM (String) table schema
</li>
* <li>
3 TABLE_NAME (String) table name
</li>
* <li>
4 COLUMN_NAME (String) column name
</li>
* <li>
5 DATA_TYPE (short) data type (see java.sql.Types)
</li>
* <li>
6 TYPE_NAME (String) data type name ("INTEGER", "VARCHAR",...)
</li>
* <li>
7
COLUMN_SIZE (int) precision
* <
o
l>
* <li>
TABLE_CAT (String) table catalog
</li>
* <li>
TABLE_SCHEM (String) table schema
</li>
* <li>
TABLE_NAME (String) table name
</li>
* <li>
COLUMN_NAME (String) column name
</li>
* <li>
DATA_TYPE (short) data type (see java.sql.Types)
</li>
* <li>
TYPE_NAME (String) data type name ("INTEGER", "VARCHAR",...)
</li>
* <li>COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)</li>
* <li>
8 BUFFER_LENGTH (int) unused
</li>
* <li>
9 DECIMAL_DIGITS (int) scale (0 for INTEGER and VARCHAR)
</li>
* <li>
10 NUM_PREC_RADIX (int) radix (always 10)
</li>
* <li>
11
NULLABLE (int) columnNoNulls or columnNullable</li>
* <li>
12 REMARKS (String) comment (always empty)
</li>
* <li>
13 COLUMN_DEF (String) default value
</li>
* <li>
14 SQL_DATA_TYPE (int) unused
</li>
* <li>
15 SQL_DATETIME_SUB (int) unused
</li>
* <li>
16 CHAR_OCTET_LENGTH (int) unused
</li>
* <li>
17 ORDINAL_POSITION (int) the column index (1,2,...)
</li>
* <li>
18 IS_NULLABLE (String) "NO" or "YES"
</li>
* <li>
19 SCOPE_CATALOG (String) always null
</li>
* <li>
20 SCOPE_SCHEMA (String) always null
</li>
* <li>
21 SCOPE_TABLE (String) always null
</li>
* <li>
22 SOURCE_DATA_TYPE (short) null
</li>
* <li>
23 IS_AUTOINCREMENT (String) "NO" or "YES"
</li>
* <li>
24
SCOPE_CATLOG (String) always null (the typo is on purpose,
* <li>
BUFFER_LENGTH (int) unused
</li>
* <li>
DECIMAL_DIGITS (int) scale (0 for INTEGER and VARCHAR)
</li>
* <li>
NUM_PREC_RADIX (int) radix (always 10)
</li>
* <li>NULLABLE (int) columnNoNulls or columnNullable</li>
* <li>
REMARKS (String) comment (always empty)
</li>
* <li>
COLUMN_DEF (String) default value
</li>
* <li>
SQL_DATA_TYPE (int) unused
</li>
* <li>
SQL_DATETIME_SUB (int) unused
</li>
* <li>
CHAR_OCTET_LENGTH (int) unused
</li>
* <li>
ORDINAL_POSITION (int) the column index (1,2,...)
</li>
* <li>
IS_NULLABLE (String) "NO" or "YES"
</li>
* <li>
SCOPE_CATALOG (String) always null
</li>
* <li>
SCOPE_SCHEMA (String) always null
</li>
* <li>
SCOPE_TABLE (String) always null
</li>
* <li>
SOURCE_DATA_TYPE (short) null
</li>
* <li>
IS_AUTOINCREMENT (String) "NO" or "YES"
</li>
* <li>SCOPE_CATLOG (String) always null (the typo is on purpose,
* for compatibility with the JDBC specification prior to 4.1)</li>
* </
u
l>
* </
o
l>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -436,23 +435,23 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* is sorted by NON_UNIQUE ('false' first), TYPE, TABLE_SCHEM, INDEX_NAME,
* and ORDINAL_POSITION.
*
* <
u
l>
* <li>
1 TABLE_CAT (String) table catalog
</li>
* <li>
2 TABLE_SCHEM (String) table schema
</li>
* <li>
3 TABLE_NAME (String) table name
</li>
* <li>
4
NON_UNIQUE (boolean) 'true' if non-unique</li>
* <li>
5 INDEX_QUALIFIER (String) index catalog
</li>
* <li>
6 INDEX_NAME (String) index name
</li>
* <li>
7 TYPE (short) the index type (always tableIndexOther)
</li>
* <li>
8 ORDINAL_POSITION (short) column index (1, 2, ...)
</li>
* <li>
9 COLUMN_NAME (String) column name
</li>
* <li>
10 ASC_OR_DESC (String) ascending or descending (always 'A')
</li>
* <li>
11 CARDINALITY (int) numbers of unique values
</li>
* <li>
12 PAGES (int) number of pages use (always 0)
</li>
* <li>
13 FILTER_CONDITION (String) filter condition (always empty)
</li>
* <li>
14
SORT_TYPE (int) the sort type bit map: 1=DESCENDING,
* 2=NULLS_FIRST, 4=NULLS_LAST
</li>
* </
u
l>
* <
o
l>
* <li>
TABLE_CAT (String) table catalog
</li>
* <li>
TABLE_SCHEM (String) table schema
</li>
* <li>
TABLE_NAME (String) table name
</li>
* <li>NON_UNIQUE (boolean) 'true' if non-unique</li>
* <li>
INDEX_QUALIFIER (String) index catalog
</li>
* <li>
INDEX_NAME (String) index name
</li>
* <li>
TYPE (short) the index type (always tableIndexOther)
</li>
* <li>
ORDINAL_POSITION (short) column index (1, 2, ...)
</li>
* <li>
COLUMN_NAME (String) column name
</li>
* <li>
ASC_OR_DESC (String) ascending or descending (always 'A')
</li>
* <li>
CARDINALITY (int) numbers of unique values
</li>
* <li>
PAGES (int) number of pages use (always 0)
</li>
* <li>
FILTER_CONDITION (String) filter condition (always empty)
</li>
* <li>SORT_TYPE (int) the sort type bit map: 1=DESCENDING,
* 2=NULLS_FIRST, 4=NULLS_LAST</li>
* </
o
l>
*
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -517,14 +516,14 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the primary key columns for a table. The result set is sorted by
* TABLE_SCHEM, and COLUMN_NAME (and not by KEY_SEQ).
*
* <
u
l>
* <li>
1
TABLE_CAT (String) table catalog</li>
* <li>
2
TABLE_SCHEM (String) table schema</li>
* <li>
3
TABLE_NAME (String) table name</li>
* <li>
4
COLUMN_NAME (String) column name</li>
* <li>
5
KEY_SEQ (short) the column index of this column (1,2,...)</li>
* <li>
6
PK_NAME (String) the name of the primary key index</li>
* </
u
l>
* <
o
l>
* <li>TABLE_CAT (String) table catalog</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>TABLE_NAME (String) table name</li>
* <li>COLUMN_NAME (String) column name</li>
* <li>KEY_SEQ (short) the column index of this column (1,2,...)</li>
* <li>PK_NAME (String) the name of the primary key index</li>
* </
o
l>
*
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -700,18 +699,18 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* procedures with the same name, each with a different number of input
* parameters.
*
* <
u
l>
* <li>
1 PROCEDURE_CAT (String) catalog
</li>
* <li>
2 PROCEDURE_SCHEM (String) schema
</li>
* <li>
3 PROCEDURE_NAME (String) name
</li>
* <li>
4 NUM_INPUT_PARAMS (int) the number of arguments
</li>
* <li>
5 NUM_OUTPUT_PARAMS (int) for future use, always 0
</li>
* <li>
6 NUM_RESULT_SETS (int) for future use, always 0
</li>
* <li>
7 REMARKS (String) description
</li>
* <li>
8
PROCEDURE_TYPE (short) if this procedure returns a result
* (procedureNoResult or procedureReturnsResult)
</li>
* <li>
9 SPECIFIC_NAME (String) name
</li>
* </
u
l>
* <
o
l>
* <li>
PROCEDURE_CAT (String) catalog
</li>
* <li>
PROCEDURE_SCHEM (String) schema
</li>
* <li>
PROCEDURE_NAME (String) name
</li>
* <li>
NUM_INPUT_PARAMS (int) the number of arguments
</li>
* <li>
NUM_OUTPUT_PARAMS (int) for future use, always 0
</li>
* <li>
NUM_RESULT_SETS (int) for future use, always 0
</li>
* <li>
REMARKS (String) description
</li>
* <li>PROCEDURE_TYPE (short) if this procedure returns a result
* (procedureNoResult or procedureReturnsResult)</li>
* <li>
SPECIFIC_NAME (String) name
</li>
* </
o
l>
*
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -764,32 +763,32 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* There are potentially multiple procedures with the same name, each with a
* different number of input parameters.
*
* <
u
l>
* <li>
1 PROCEDURE_CAT (String) catalog
</li>
* <li>
2 PROCEDURE_SCHEM (String) schema
</li>
* <li>
3 PROCEDURE_NAME (String) name
</li>
* <li>
4 COLUMN_NAME (String) column name
</li>
* <li>
5
COLUMN_TYPE (short) column type
* <
o
l>
* <li>
PROCEDURE_CAT (String) catalog
</li>
* <li>
PROCEDURE_SCHEM (String) schema
</li>
* <li>
PROCEDURE_NAME (String) name
</li>
* <li>
COLUMN_NAME (String) column name
</li>
* <li>COLUMN_TYPE (short) column type
* (always DatabaseMetaData.procedureColumnIn)</li>
* <li>
6 DATA_TYPE (short) sql type
</li>
* <li>
7 TYPE_NAME (String) type name
</li>
* <li>
8 PRECISION (int) precision
</li>
* <li>
9 LENGTH (int) length
</li>
* <li>
10 SCALE (short) scale
</li>
* <li>
11 RADIX (int) always 10
</li>
* <li>
12
NULLABLE (short) nullable
* <li>
DATA_TYPE (short) sql type
</li>
* <li>
TYPE_NAME (String) type name
</li>
* <li>
PRECISION (int) precision
</li>
* <li>
LENGTH (int) length
</li>
* <li>
SCALE (short) scale
</li>
* <li>
RADIX (int) always 10
</li>
* <li>NULLABLE (short) nullable
* (DatabaseMetaData.columnNoNulls for primitive data types,
* DatabaseMetaData.columnNullable otherwise)</li>
* <li>
13 REMARKS (String) description
</li>
* <li>
14 COLUMN_DEF (String) always null
</li>
* <li>
15 SQL_DATA_TYPE (int) for future use, always 0
</li>
* <li>
16 SQL_DATETIME_SUB (int) for future use, always 0
</li>
* <li>
17 CHAR_OCTET_LENGTH (int) always null
</li>
* <li>
18
ORDINAL_POSITION (int) the parameter index
* starting from 1 (0 is the return value)
</li>
* <li>
19 IS_NULLABLE (String) always "YES"
</li>
* <li>
20 SPECIFIC_NAME (String) name
</li>
* </
u
l>
* <li>
REMARKS (String) description
</li>
* <li>
COLUMN_DEF (String) always null
</li>
* <li>
SQL_DATA_TYPE (int) for future use, always 0
</li>
* <li>
SQL_DATETIME_SUB (int) for future use, always 0
</li>
* <li>
CHAR_OCTET_LENGTH (int) always null
</li>
* <li>ORDINAL_POSITION (int) the parameter index
* starting from 1 (0 is the return value)</li>
* <li>
IS_NULLABLE (String) always "YES"
</li>
* <li>
SPECIFIC_NAME (String) name
</li>
* </
o
l>
*
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -858,11 +857,11 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of schemas.
* The result set is sorted by TABLE_SCHEM.
*
* <
u
l>
* <li>
1 TABLE_SCHEM (String) schema name
* <
/li><li>2 TABLE_CATALOG (String) catalog name
* <
/li><li>3 IS_DEFAULT (boolean) if this is the default schema
* </
li></u
l>
* <
o
l>
* <li>
TABLE_SCHEM (String) schema name</li>
* <
li>TABLE_CATALOG (String) catalog name</li>
* <
li>IS_DEFAULT (boolean) if this is the default schema</li>
* </
o
l>
*
* @return the schema list
* @throws SQLException if the connection is closed
...
...
@@ -889,9 +888,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of catalogs.
* The result set is sorted by TABLE_CAT.
*
* <
u
l>
* <li>
1 TABLE_CAT (String) catalog name
* </
li></u
l>
* <
o
l>
* <li>
TABLE_CAT (String) catalog name</li>
* </
o
l>
*
* @return the catalog list
* @throws SQLException if the connection is closed
...
...
@@ -913,9 +912,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements
/**
* Gets the list of table types. This call returns a result set with five
* records: "SYSTEM TABLE", "TABLE", "VIEW", "TABLE LINK" and "EXTERNAL".
* <
u
l>
* <li>
1 TABLE_TYPE (String) table type
* </
li></u
l>
* <
o
l>
* <li>
TABLE_TYPE (String) table type</li>
* </
o
l>
*
* @return the table types
* @throws SQLException if the connection is closed
...
...
@@ -939,18 +938,18 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of column privileges. The result set is sorted by
* COLUMN_NAME and PRIVILEGE
*
* <
u
l>
* <li>
1
TABLE_CAT (String) table catalog</li>
* <li>
2
TABLE_SCHEM (String) table schema</li>
* <li>
3
TABLE_NAME (String) table name</li>
* <li>
4
COLUMN_NAME (String) column name</li>
* <li>
5
GRANTOR (String) grantor of access</li>
* <li>
6
GRANTEE (String) grantee of access</li>
* <li>
7
PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* <
o
l>
* <li>TABLE_CAT (String) table catalog</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>TABLE_NAME (String) table name</li>
* <li>COLUMN_NAME (String) column name</li>
* <li>GRANTOR (String) grantor of access</li>
* <li>GRANTEE (String) grantee of access</li>
* <li>PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* (only one per row)</li>
* <li>
8
IS_GRANTABLE (String) YES means the grantee can grant access to
* <li>IS_GRANTABLE (String) YES means the grantee can grant access to
* others</li>
* </
u
l>
* </
o
l>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -1006,17 +1005,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of table privileges. The result set is sorted by
* TABLE_SCHEM, TABLE_NAME, and PRIVILEGE.
*
* <
u
l>
* <li>
1 TABLE_CAT (String) table catalog
</li>
* <li>
2 TABLE_SCHEM (String) table schema
</li>
* <li>
3 TABLE_NAME (String) table name
</li>
* <li>
4 GRANTOR (String) grantor of access
</li>
* <li>
5 GRANTEE (String) grantee of access
</li>
* <li>
6
PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* (only one per row)
</li>
* <li>
7
IS_GRANTABLE (String) YES means the grantee can grant access to
* others
</li>
* </
u
l>
* <
o
l>
* <li>
TABLE_CAT (String) table catalog
</li>
* <li>
TABLE_SCHEM (String) table schema
</li>
* <li>
TABLE_NAME (String) table name
</li>
* <li>
GRANTOR (String) grantor of access
</li>
* <li>
GRANTEE (String) grantee of access
</li>
* <li>PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* (only one per row)</li>
* <li>IS_GRANTABLE (String) YES means the grantee can grant access to
* others</li>
* </
o
l>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -1066,17 +1065,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of columns that best identifier a row in a table.
* The list is ordered by SCOPE.
*
* <
u
l>
* <li>
1 SCOPE (short) scope of result (always bestRowSession)
* <
/li><li>2 COLUMN_NAME (String) column name
* <
/li><li>3 DATA_TYPE (short) SQL data type, see also java.sql.Types
* <
/li><li>4 TYPE_NAME (String) type name
* <
/li><li>5
COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)
* <
/li><li>6 BUFFER_LENGTH (int) unused
* <
/li><li>7 DECIMAL_DIGITS (short) scale
* <
/li><li>8 PSEUDO_COLUMN (short) (always bestRowNotPseudo)
* </
li></u
l>
* <
o
l>
* <li>
SCOPE (short) scope of result (always bestRowSession)</li>
* <
li>COLUMN_NAME (String) column name</li>
* <
li>DATA_TYPE (short) SQL data type, see also java.sql.Types</li>
* <
li>TYPE_NAME (String) type name</li>
* <
li>
COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)
</li>
* <
li>BUFFER_LENGTH (int) unused</li>
* <
li>DECIMAL_DIGITS (short) scale</li>
* <
li>PSEUDO_COLUMN (short) (always bestRowNotPseudo)</li>
* </
o
l>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -1137,17 +1136,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Get the list of columns that are update when any value is updated.
* The result set is always empty.
*
* <
u
l>
* <li>1 SCOPE (int) not used
* <
/li><li>2 COLUMN_NAME (String) column name
* <
/li><li>3 DATA_TYPE (int) SQL data type - see also java.sql.Types
* <
/li><li>4 TYPE_NAME (String) data type name
* <
/li><
li>5 COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)
* <
/li><li>6 BUFFER_LENGTH (int) length (bytes)
* <
/li><li>7 DECIMAL_DIGITS (int) scale
* <
/li><li>8 PSEUDO_COLUMN (int) is this column a pseudo column
* </
li></u
l>
* <
o
l>
* <li>1 SCOPE (int) not used
</li>
* <
li>2 COLUMN_NAME (String) column name</li>
* <
li>3 DATA_TYPE (int) SQL data type - see also java.sql.Types</li>
* <
li>4 TYPE_NAME (String) data type name</li>
* <li>5 COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)
</li>
* <
li>6 BUFFER_LENGTH (int) length (bytes)</li>
* <
li>7 DECIMAL_DIGITS (int) scale</li>
* <
li>8 PSEUDO_COLUMN (int) is this column a pseudo column</li>
* </
o
l>
*
* @param catalog null (to get all objects) or the catalog name
* @param schema null (to get all objects) or a schema name
...
...
@@ -1188,25 +1187,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* result set is sorted by PKTABLE_CAT, PKTABLE_SCHEM, PKTABLE_NAME,
* FK_NAME, KEY_SEQ.
*
* <
u
l>
* <li>
1 PKTABLE_CAT (String) primary catalog
</li>
* <li>
2 PKTABLE_SCHEM (String) primary schema
</li>
* <li>
3 PKTABLE_NAME (String) primary table
</li>
* <li>
4 PKCOLUMN_NAME (String) primary column
</li>
* <li>
5 FKTABLE_CAT (String) foreign catalog
</li>
* <li>
6 FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
7 FKTABLE_NAME (String) foreign table
</li>
* <li>
8 FKCOLUMN_NAME (String) foreign column
</li>
* <li>
9 KEY_SEQ (short) sequence number (1, 2, ...)
</li>
* <li>
10
UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)
</li>
* <li>
11
DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)
</li>
* <li>
12 FK_NAME (String) foreign key name
</li>
* <li>
13 PK_NAME (String) primary key name
</li>
* <li>
14
DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)
</li>
* </
u
l>
* <
o
l>
* <li>
PKTABLE_CAT (String) primary catalog
</li>
* <li>
PKTABLE_SCHEM (String) primary schema
</li>
* <li>
PKTABLE_NAME (String) primary table
</li>
* <li>
PKCOLUMN_NAME (String) primary column
</li>
* <li>
FKTABLE_CAT (String) foreign catalog
</li>
* <li>
FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
FKTABLE_NAME (String) foreign table
</li>
* <li>
FKCOLUMN_NAME (String) foreign column
</li>
* <li>
KEY_SEQ (short) sequence number (1, 2, ...)
</li>
* <li>UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)</li>
* <li>DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)</li>
* <li>
FK_NAME (String) foreign key name
</li>
* <li>
PK_NAME (String) primary key name
</li>
* <li>DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)</li>
* </
o
l>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern the schema name of the foreign table
...
...
@@ -1261,25 +1260,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* set is sorted by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, FK_NAME,
* KEY_SEQ.
*
* <
u
l>
* <li>
1 PKTABLE_CAT (String) primary catalog
</li>
* <li>
2 PKTABLE_SCHEM (String) primary schema
</li>
* <li>
3 PKTABLE_NAME (String) primary table
</li>
* <li>
4 PKCOLUMN_NAME (String) primary column
</li>
* <li>
5 FKTABLE_CAT (String) foreign catalog
</li>
* <li>
6 FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
7 FKTABLE_NAME (String) foreign table
</li>
* <li>
8 FKCOLUMN_NAME (String) foreign column
</li>
* <li>
9 KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>
10
UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)
</li>
* <li>
11
DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)
</li>
* <li>
12 FK_NAME (String) foreign key name
</li>
* <li>
13 PK_NAME (String) primary key name
</li>
* <li>
14
DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)
</li>
* </
u
l>
* <
o
l>
* <li>
PKTABLE_CAT (String) primary catalog
</li>
* <li>
PKTABLE_SCHEM (String) primary schema
</li>
* <li>
PKTABLE_NAME (String) primary table
</li>
* <li>
PKCOLUMN_NAME (String) primary column
</li>
* <li>
FKTABLE_CAT (String) foreign catalog
</li>
* <li>
FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
FKTABLE_NAME (String) foreign table
</li>
* <li>
FKCOLUMN_NAME (String) foreign column
</li>
* <li>
KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)</li>
* <li>DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)</li>
* <li>
FK_NAME (String) foreign key name
</li>
* <li>
PK_NAME (String) primary key name
</li>
* <li>DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)</li>
* </
o
l>
*
* @param catalogPattern null or the catalog name
* @param schemaPattern the schema name of the primary table
...
...
@@ -1335,25 +1334,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* result set is sorted by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME,
* FK_NAME, KEY_SEQ.
*
* <
u
l>
* <li>
1 PKTABLE_CAT (String) primary catalog
</li>
* <li>
2 PKTABLE_SCHEM (String) primary schema
</li>
* <li>
3 PKTABLE_NAME (String) primary table
</li>
* <li>
4 PKCOLUMN_NAME (String) primary column
</li>
* <li>
5 FKTABLE_CAT (String) foreign catalog
</li>
* <li>
6 FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
7 FKTABLE_NAME (String) foreign table
</li>
* <li>
8 FKCOLUMN_NAME (String) foreign column
</li>
* <li>
9 KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>
10
UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)
</li>
* <li>
11
DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)
</li>
* <li>
12 FK_NAME (String) foreign key name
</li>
* <li>
13 PK_NAME (String) primary key name
</li>
* <li>
14
DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)
</li>
* </
u
l>
* <
o
l>
* <li>
PKTABLE_CAT (String) primary catalog
</li>
* <li>
PKTABLE_SCHEM (String) primary schema
</li>
* <li>
PKTABLE_NAME (String) primary table
</li>
* <li>
PKCOLUMN_NAME (String) primary column
</li>
* <li>
FKTABLE_CAT (String) foreign catalog
</li>
* <li>
FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
FKTABLE_NAME (String) foreign table
</li>
* <li>
FKCOLUMN_NAME (String) foreign column
</li>
* <li>
KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)</li>
* <li>DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)</li>
* <li>
FK_NAME (String) foreign key name
</li>
* <li>
PK_NAME (String) primary key name
</li>
* <li>DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)</li>
* </
o
l>
*
* @param primaryCatalogPattern null or the catalog name
* @param primarySchemaPattern the schema name of the primary table
...
...
@@ -1424,15 +1423,15 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of user-defined data types.
* This call returns an empty result set.
*
* <
u
l>
* <li>
1 TYPE_CAT (String) catalog
* <
/li><li>2 TYPE_SCHEM (String) schema
* <
/li><li>3 TYPE_NAME (String) type name
* <
/li><li>4 CLASS_NAME (String) Java class
* <
/li><li>5 DATA_TYPE (short) SQL Type - see also java.sql.Types
* <
/li><li>6 REMARKS (String) description
* <
/li><li>7 BASE_TYPE (short) base type - see also java.sql.Types
* </
li></u
l>
* <
o
l>
* <li>
TYPE_CAT (String) catalog</li>
* <
li>TYPE_SCHEM (String) schema</li>
* <
li>TYPE_NAME (String) type name</li>
* <
li>CLASS_NAME (String) Java class</li>
* <
li>DATA_TYPE (short) SQL Type - see also java.sql.Types</li>
* <
li>REMARKS (String) description</li>
* <
li>BASE_TYPE (short) base type - see also java.sql.Types</li>
* </
o
l>
*
* @param catalog ignored
* @param schemaPattern ignored
...
...
@@ -1473,27 +1472,26 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* afterwards by how closely the data type maps to the corresponding JDBC
* SQL type (best match first).
*
* <ul>
* <li>1 TYPE_NAME (String) type name </li>
* <li>2 DATA_TYPE (short) SQL data type - see also java.sql.Types </li>
* <li>3 PRECISION (int) maximum precision </li>
* <li>4 LITERAL_PREFIX (String) prefix used to quote a literal </li>
* <li>5 LITERAL_SUFFIX (String) suffix used to quote a literal </li>
* <li>6 CREATE_PARAMS (String) parameters used (may be null) </li>
* <li>7 NULLABLE (short) typeNoNulls (NULL not allowed) or typeNullable
* </li>
* <li>8 CASE_SENSITIVE (boolean) case sensitive </li>
* <li>9 SEARCHABLE (short) typeSearchable </li>
* <li>10 UNSIGNED_ATTRIBUTE (boolean) unsigned </li>
* <li>11 FIXED_PREC_SCALE (boolean) fixed precision </li>
* <li>12 AUTO_INCREMENT (boolean) auto increment </li>
* <li>13 LOCAL_TYPE_NAME (String) localized version of the data type </li>
* <li>14 MINIMUM_SCALE (short) minimum scale </li>
* <li>15 MAXIMUM_SCALE (short) maximum scale </li>
* <li>16 SQL_DATA_TYPE (int) unused </li>
* <li>17 SQL_DATETIME_SUB (int) unused </li>
* <li>18 NUM_PREC_RADIX (int) 2 for binary, 10 for decimal </li>
* </ul>
* <ol>
* <li>TYPE_NAME (String) type name</li>
* <li>DATA_TYPE (short) SQL data type - see also java.sql.Types</li>
* <li>PRECISION (int) maximum precision</li>
* <li>LITERAL_PREFIX (String) prefix used to quote a literal</li>
* <li>LITERAL_SUFFIX (String) suffix used to quote a literal</li>
* <li>CREATE_PARAMS (String) parameters used (may be null)</li>
* <li>NULLABLE (short) typeNoNulls (NULL not allowed) or typeNullable</li>
* <li>CASE_SENSITIVE (boolean) case sensitive</li>
* <li>SEARCHABLE (short) typeSearchable</li>
* <li>UNSIGNED_ATTRIBUTE (boolean) unsigned</li>
* <li>FIXED_PREC_SCALE (boolean) fixed precision</li>
* <li>AUTO_INCREMENT (boolean) auto increment</li>
* <li>LOCAL_TYPE_NAME (String) localized version of the data type</li>
* <li>MINIMUM_SCALE (short) minimum scale</li>
* <li>MAXIMUM_SCALE (short) maximum scale</li>
* <li>SQL_DATA_TYPE (int) unused</li>
* <li>SQL_DATETIME_SUB (int) unused</li>
* <li>NUM_PREC_RADIX (int) 2 for binary, 10 for decimal</li>
* </ol>
*
* @return the list of data types
* @throws SQLException if the connection is closed
...
...
@@ -2946,12 +2944,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements
/**
* Get the list of super tables of a table. This method currently returns an
* empty result set.
* <
u
l>
* <li>
1
TABLE_CAT (String) table catalog</li>
* <li>
2
TABLE_SCHEM (String) table schema</li>
* <li>
3
TABLE_NAME (String) table name</li>
* <li>
4
SUPERTABLE_NAME (String) the name of the super table</li>
* </
u
l>
* <
o
l>
* <li>TABLE_CAT (String) table catalog</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>TABLE_NAME (String) table name</li>
* <li>SUPERTABLE_NAME (String) the name of the super table</li>
* </
o
l>
*
* @param catalog null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
@@ -3132,11 +3130,11 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of schemas in the database.
* The result set is sorted by TABLE_SCHEM.
*
* <
u
l>
* <li>
1 TABLE_SCHEM (String) schema name
* <
/li><li>2 TABLE_CATALOG (String) catalog name
* <
/li><li>3 IS_DEFAULT (boolean) if this is the default schema
* </
li></u
l>
* <
o
l>
* <li>
TABLE_SCHEM (String) schema name</li>
* <
li>TABLE_CATALOG (String) catalog name</li>
* <
li>IS_DEFAULT (boolean) if this is the default schema</li>
* </
o
l>
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论