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
...
@@ -146,20 +146,19 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of tables in the database. The result set is sorted by
* Gets the list of tables in the database. The result set is sorted by
* TABLE_TYPE, TABLE_SCHEM, and TABLE_NAME.
* TABLE_TYPE, TABLE_SCHEM, and TABLE_NAME.
*
*
* <ul>
* <ol>
* <li>1 TABLE_CAT (String) table catalog </li>
* <li>TABLE_CAT (String) table catalog</li>
* <li>2 TABLE_SCHEM (String) table schema </li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>3 TABLE_NAME (String) table name </li>
* <li>TABLE_NAME (String) table name</li>
* <li>4 TABLE_TYPE (String) table type </li>
* <li>TABLE_TYPE (String) table type</li>
* <li>5 REMARKS (String) comment </li>
* <li>REMARKS (String) comment</li>
* <li>6 TYPE_CAT (String) always null </li>
* <li>TYPE_CAT (String) always null</li>
* <li>7 TYPE_SCHEM (String) always null </li>
* <li>TYPE_SCHEM (String) always null</li>
* <li>8 TYPE_NAME (String) always null </li>
* <li>TYPE_NAME (String) always null</li>
* <li>9 SELF_REFERENCING_COL_NAME (String) always null </li>
* <li>SELF_REFERENCING_COL_NAME (String) always null</li>
* <li>10 REF_GENERATION (String) always null </li>
* <li>REF_GENERATION (String) always null</li>
* <li>11 SQL (String) the create table statement or NULL for systems tables
* <li>SQL (String) the create table statement or NULL for systems tables.</li>
* </li>
* </ol>
* </ul>
*
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -265,34 +264,34 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -265,34 +264,34 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of columns. The result set is sorted by TABLE_SCHEM,
* Gets the list of columns. The result set is sorted by TABLE_SCHEM,
* TABLE_NAME, and ORDINAL_POSITION.
* TABLE_NAME, and ORDINAL_POSITION.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TABLE_CAT (String) table catalog
</li>
* <li>
TABLE_CAT (String) table catalog
</li>
* <li>
2 TABLE_SCHEM (String) table schema
</li>
* <li>
TABLE_SCHEM (String) table schema
</li>
* <li>
3 TABLE_NAME (String) table name
</li>
* <li>
TABLE_NAME (String) table name
</li>
* <li>
4 COLUMN_NAME (String) column name
</li>
* <li>
COLUMN_NAME (String) column name
</li>
* <li>
5 DATA_TYPE (short) data type (see java.sql.Types)
</li>
* <li>
DATA_TYPE (short) data type (see java.sql.Types)
</li>
* <li>
6 TYPE_NAME (String) data type name ("INTEGER", "VARCHAR",...)
</li>
* <li>
TYPE_NAME (String) data type name ("INTEGER", "VARCHAR",...)
</li>
* <li>
7
COLUMN_SIZE (int) precision
* <li>COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)</li>
* (values larger than 2 GB are returned as 2 GB)</li>
* <li>
8 BUFFER_LENGTH (int) unused
</li>
* <li>
BUFFER_LENGTH (int) unused
</li>
* <li>
9 DECIMAL_DIGITS (int) scale (0 for INTEGER and VARCHAR)
</li>
* <li>
DECIMAL_DIGITS (int) scale (0 for INTEGER and VARCHAR)
</li>
* <li>
10 NUM_PREC_RADIX (int) radix (always 10)
</li>
* <li>
NUM_PREC_RADIX (int) radix (always 10)
</li>
* <li>
11
NULLABLE (int) columnNoNulls or columnNullable</li>
* <li>NULLABLE (int) columnNoNulls or columnNullable</li>
* <li>
12 REMARKS (String) comment (always empty)
</li>
* <li>
REMARKS (String) comment (always empty)
</li>
* <li>
13 COLUMN_DEF (String) default value
</li>
* <li>
COLUMN_DEF (String) default value
</li>
* <li>
14 SQL_DATA_TYPE (int) unused
</li>
* <li>
SQL_DATA_TYPE (int) unused
</li>
* <li>
15 SQL_DATETIME_SUB (int) unused
</li>
* <li>
SQL_DATETIME_SUB (int) unused
</li>
* <li>
16 CHAR_OCTET_LENGTH (int) unused
</li>
* <li>
CHAR_OCTET_LENGTH (int) unused
</li>
* <li>
17 ORDINAL_POSITION (int) the column index (1,2,...)
</li>
* <li>
ORDINAL_POSITION (int) the column index (1,2,...)
</li>
* <li>
18 IS_NULLABLE (String) "NO" or "YES"
</li>
* <li>
IS_NULLABLE (String) "NO" or "YES"
</li>
* <li>
19 SCOPE_CATALOG (String) always null
</li>
* <li>
SCOPE_CATALOG (String) always null
</li>
* <li>
20 SCOPE_SCHEMA (String) always null
</li>
* <li>
SCOPE_SCHEMA (String) always null
</li>
* <li>
21 SCOPE_TABLE (String) always null
</li>
* <li>
SCOPE_TABLE (String) always null
</li>
* <li>
22 SOURCE_DATA_TYPE (short) null
</li>
* <li>
SOURCE_DATA_TYPE (short) null
</li>
* <li>
23 IS_AUTOINCREMENT (String) "NO" or "YES"
</li>
* <li>
IS_AUTOINCREMENT (String) "NO" or "YES"
</li>
* <li>
24
SCOPE_CATLOG (String) always null (the typo is on purpose,
* <li>SCOPE_CATLOG (String) always null (the typo is on purpose,
* for compatibility with the JDBC specification prior to 4.1)</li>
* 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 catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -436,23 +435,23 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -436,23 +435,23 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* is sorted by NON_UNIQUE ('false' first), TYPE, TABLE_SCHEM, INDEX_NAME,
* is sorted by NON_UNIQUE ('false' first), TYPE, TABLE_SCHEM, INDEX_NAME,
* and ORDINAL_POSITION.
* and ORDINAL_POSITION.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TABLE_CAT (String) table catalog
</li>
* <li>
TABLE_CAT (String) table catalog
</li>
* <li>
2 TABLE_SCHEM (String) table schema
</li>
* <li>
TABLE_SCHEM (String) table schema
</li>
* <li>
3 TABLE_NAME (String) table name
</li>
* <li>
TABLE_NAME (String) table name
</li>
* <li>
4
NON_UNIQUE (boolean) 'true' if non-unique</li>
* <li>NON_UNIQUE (boolean) 'true' if non-unique</li>
* <li>
5 INDEX_QUALIFIER (String) index catalog
</li>
* <li>
INDEX_QUALIFIER (String) index catalog
</li>
* <li>
6 INDEX_NAME (String) index name
</li>
* <li>
INDEX_NAME (String) index name
</li>
* <li>
7 TYPE (short) the index type (always tableIndexOther)
</li>
* <li>
TYPE (short) the index type (always tableIndexOther)
</li>
* <li>
8 ORDINAL_POSITION (short) column index (1, 2, ...)
</li>
* <li>
ORDINAL_POSITION (short) column index (1, 2, ...)
</li>
* <li>
9 COLUMN_NAME (String) column name
</li>
* <li>
COLUMN_NAME (String) column name
</li>
* <li>
10 ASC_OR_DESC (String) ascending or descending (always 'A')
</li>
* <li>
ASC_OR_DESC (String) ascending or descending (always 'A')
</li>
* <li>
11 CARDINALITY (int) numbers of unique values
</li>
* <li>
CARDINALITY (int) numbers of unique values
</li>
* <li>
12 PAGES (int) number of pages use (always 0)
</li>
* <li>
PAGES (int) number of pages use (always 0)
</li>
* <li>
13 FILTER_CONDITION (String) filter condition (always empty)
</li>
* <li>
FILTER_CONDITION (String) filter condition (always empty)
</li>
* <li>
14
SORT_TYPE (int) the sort type bit map: 1=DESCENDING,
* <li>SORT_TYPE (int) the sort type bit map: 1=DESCENDING,
* 2=NULLS_FIRST, 4=NULLS_LAST
</li>
* 2=NULLS_FIRST, 4=NULLS_LAST</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null or the catalog name
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -517,14 +516,14 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -517,14 +516,14 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the primary key columns for a table. The result set is sorted by
* Gets the primary key columns for a table. The result set is sorted by
* TABLE_SCHEM, and COLUMN_NAME (and not by KEY_SEQ).
* TABLE_SCHEM, and COLUMN_NAME (and not by KEY_SEQ).
*
*
* <
u
l>
* <
o
l>
* <li>
1
TABLE_CAT (String) table catalog</li>
* <li>TABLE_CAT (String) table catalog</li>
* <li>
2
TABLE_SCHEM (String) table schema</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>
3
TABLE_NAME (String) table name</li>
* <li>TABLE_NAME (String) table name</li>
* <li>
4
COLUMN_NAME (String) column name</li>
* <li>COLUMN_NAME (String) column name</li>
* <li>
5
KEY_SEQ (short) the column index of this column (1,2,...)</li>
* <li>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>
* <li>PK_NAME (String) the name of the primary key index</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null or the catalog name
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -700,18 +699,18 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -700,18 +699,18 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* procedures with the same name, each with a different number of input
* procedures with the same name, each with a different number of input
* parameters.
* parameters.
*
*
* <
u
l>
* <
o
l>
* <li>
1 PROCEDURE_CAT (String) catalog
</li>
* <li>
PROCEDURE_CAT (String) catalog
</li>
* <li>
2 PROCEDURE_SCHEM (String) schema
</li>
* <li>
PROCEDURE_SCHEM (String) schema
</li>
* <li>
3 PROCEDURE_NAME (String) name
</li>
* <li>
PROCEDURE_NAME (String) name
</li>
* <li>
4 NUM_INPUT_PARAMS (int) the number of arguments
</li>
* <li>
NUM_INPUT_PARAMS (int) the number of arguments
</li>
* <li>
5 NUM_OUTPUT_PARAMS (int) for future use, always 0
</li>
* <li>
NUM_OUTPUT_PARAMS (int) for future use, always 0
</li>
* <li>
6 NUM_RESULT_SETS (int) for future use, always 0
</li>
* <li>
NUM_RESULT_SETS (int) for future use, always 0
</li>
* <li>
7 REMARKS (String) description
</li>
* <li>
REMARKS (String) description
</li>
* <li>
8
PROCEDURE_TYPE (short) if this procedure returns a result
* <li>PROCEDURE_TYPE (short) if this procedure returns a result
* (procedureNoResult or procedureReturnsResult)
</li>
* (procedureNoResult or procedureReturnsResult)</li>
* <li>
9 SPECIFIC_NAME (String) name
</li>
* <li>
SPECIFIC_NAME (String) name
</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null or the catalog name
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -764,32 +763,32 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -764,32 +763,32 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* There are potentially multiple procedures with the same name, each with a
* There are potentially multiple procedures with the same name, each with a
* different number of input parameters.
* different number of input parameters.
*
*
* <
u
l>
* <
o
l>
* <li>
1 PROCEDURE_CAT (String) catalog
</li>
* <li>
PROCEDURE_CAT (String) catalog
</li>
* <li>
2 PROCEDURE_SCHEM (String) schema
</li>
* <li>
PROCEDURE_SCHEM (String) schema
</li>
* <li>
3 PROCEDURE_NAME (String) name
</li>
* <li>
PROCEDURE_NAME (String) name
</li>
* <li>
4 COLUMN_NAME (String) column name
</li>
* <li>
COLUMN_NAME (String) column name
</li>
* <li>
5
COLUMN_TYPE (short) column type
* <li>COLUMN_TYPE (short) column type
* (always DatabaseMetaData.procedureColumnIn)</li>
* (always DatabaseMetaData.procedureColumnIn)</li>
* <li>
6 DATA_TYPE (short) sql type
</li>
* <li>
DATA_TYPE (short) sql type
</li>
* <li>
7 TYPE_NAME (String) type name
</li>
* <li>
TYPE_NAME (String) type name
</li>
* <li>
8 PRECISION (int) precision
</li>
* <li>
PRECISION (int) precision
</li>
* <li>
9 LENGTH (int) length
</li>
* <li>
LENGTH (int) length
</li>
* <li>
10 SCALE (short) scale
</li>
* <li>
SCALE (short) scale
</li>
* <li>
11 RADIX (int) always 10
</li>
* <li>
RADIX (int) always 10
</li>
* <li>
12
NULLABLE (short) nullable
* <li>NULLABLE (short) nullable
* (DatabaseMetaData.columnNoNulls for primitive data types,
* (DatabaseMetaData.columnNoNulls for primitive data types,
* DatabaseMetaData.columnNullable otherwise)</li>
* DatabaseMetaData.columnNullable otherwise)</li>
* <li>
13 REMARKS (String) description
</li>
* <li>
REMARKS (String) description
</li>
* <li>
14 COLUMN_DEF (String) always null
</li>
* <li>
COLUMN_DEF (String) always null
</li>
* <li>
15 SQL_DATA_TYPE (int) for future use, always 0
</li>
* <li>
SQL_DATA_TYPE (int) for future use, always 0
</li>
* <li>
16 SQL_DATETIME_SUB (int) for future use, always 0
</li>
* <li>
SQL_DATETIME_SUB (int) for future use, always 0
</li>
* <li>
17 CHAR_OCTET_LENGTH (int) always null
</li>
* <li>
CHAR_OCTET_LENGTH (int) always null
</li>
* <li>
18
ORDINAL_POSITION (int) the parameter index
* <li>ORDINAL_POSITION (int) the parameter index
* starting from 1 (0 is the return value)
</li>
* starting from 1 (0 is the return value)</li>
* <li>
19 IS_NULLABLE (String) always "YES"
</li>
* <li>
IS_NULLABLE (String) always "YES"
</li>
* <li>
20 SPECIFIC_NAME (String) name
</li>
* <li>
SPECIFIC_NAME (String) name
</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null or the catalog name
* @param catalogPattern null or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -858,11 +857,11 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -858,11 +857,11 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of schemas.
* Gets the list of schemas.
* The result set is sorted by TABLE_SCHEM.
* The result set is sorted by TABLE_SCHEM.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TABLE_SCHEM (String) schema name
* <li>
TABLE_SCHEM (String) schema name</li>
* <
/li><li>2 TABLE_CATALOG (String) catalog name
* <
li>TABLE_CATALOG (String) catalog name</li>
* <
/li><li>3 IS_DEFAULT (boolean) if this is the default schema
* <
li>IS_DEFAULT (boolean) if this is the default schema</li>
* </
li></u
l>
* </
o
l>
*
*
* @return the schema list
* @return the schema list
* @throws SQLException if the connection is closed
* @throws SQLException if the connection is closed
...
@@ -889,9 +888,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -889,9 +888,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of catalogs.
* Gets the list of catalogs.
* The result set is sorted by TABLE_CAT.
* The result set is sorted by TABLE_CAT.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TABLE_CAT (String) catalog name
* <li>
TABLE_CAT (String) catalog name</li>
* </
li></u
l>
* </
o
l>
*
*
* @return the catalog list
* @return the catalog list
* @throws SQLException if the connection is closed
* @throws SQLException if the connection is closed
...
@@ -913,9 +912,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -913,9 +912,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements
/**
/**
* Gets the list of table types. This call returns a result set with five
* Gets the list of table types. This call returns a result set with five
* records: "SYSTEM TABLE", "TABLE", "VIEW", "TABLE LINK" and "EXTERNAL".
* records: "SYSTEM TABLE", "TABLE", "VIEW", "TABLE LINK" and "EXTERNAL".
* <
u
l>
* <
o
l>
* <li>
1 TABLE_TYPE (String) table type
* <li>
TABLE_TYPE (String) table type</li>
* </
li></u
l>
* </
o
l>
*
*
* @return the table types
* @return the table types
* @throws SQLException if the connection is closed
* @throws SQLException if the connection is closed
...
@@ -939,18 +938,18 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -939,18 +938,18 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of column privileges. The result set is sorted by
* Gets the list of column privileges. The result set is sorted by
* COLUMN_NAME and PRIVILEGE
* COLUMN_NAME and PRIVILEGE
*
*
* <
u
l>
* <
o
l>
* <li>
1
TABLE_CAT (String) table catalog</li>
* <li>TABLE_CAT (String) table catalog</li>
* <li>
2
TABLE_SCHEM (String) table schema</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>
3
TABLE_NAME (String) table name</li>
* <li>TABLE_NAME (String) table name</li>
* <li>
4
COLUMN_NAME (String) column name</li>
* <li>COLUMN_NAME (String) column name</li>
* <li>
5
GRANTOR (String) grantor of access</li>
* <li>GRANTOR (String) grantor of access</li>
* <li>
6
GRANTEE (String) grantee of access</li>
* <li>GRANTEE (String) grantee of access</li>
* <li>
7
PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* <li>PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* (only one per row)</li>
* (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>
* others</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -1006,17 +1005,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1006,17 +1005,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of table privileges. The result set is sorted by
* Gets the list of table privileges. The result set is sorted by
* TABLE_SCHEM, TABLE_NAME, and PRIVILEGE.
* TABLE_SCHEM, TABLE_NAME, and PRIVILEGE.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TABLE_CAT (String) table catalog
</li>
* <li>
TABLE_CAT (String) table catalog
</li>
* <li>
2 TABLE_SCHEM (String) table schema
</li>
* <li>
TABLE_SCHEM (String) table schema
</li>
* <li>
3 TABLE_NAME (String) table name
</li>
* <li>
TABLE_NAME (String) table name
</li>
* <li>
4 GRANTOR (String) grantor of access
</li>
* <li>
GRANTOR (String) grantor of access
</li>
* <li>
5 GRANTEE (String) grantee of access
</li>
* <li>
GRANTEE (String) grantee of access
</li>
* <li>
6
PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* <li>PRIVILEGE (String) SELECT, INSERT, UPDATE, DELETE or REFERENCES
* (only one per row)
</li>
* (only one per row)</li>
* <li>
7
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>
* others</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -1066,17 +1065,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1066,17 +1065,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of columns that best identifier a row in a table.
* Gets the list of columns that best identifier a row in a table.
* The list is ordered by SCOPE.
* The list is ordered by SCOPE.
*
*
* <
u
l>
* <
o
l>
* <li>
1 SCOPE (short) scope of result (always bestRowSession)
* <li>
SCOPE (short) scope of result (always bestRowSession)</li>
* <
/li><li>2 COLUMN_NAME (String) column name
* <
li>COLUMN_NAME (String) column name</li>
* <
/li><li>3 DATA_TYPE (short) SQL data type, see also java.sql.Types
* <
li>DATA_TYPE (short) SQL data type, see also java.sql.Types</li>
* <
/li><li>4 TYPE_NAME (String) type name
* <
li>TYPE_NAME (String) type name</li>
* <
/li><li>5
COLUMN_SIZE (int) precision
* <
li>
COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)
* (values larger than 2 GB are returned as 2 GB)
</li>
* <
/li><li>6 BUFFER_LENGTH (int) unused
* <
li>BUFFER_LENGTH (int) unused</li>
* <
/li><li>7 DECIMAL_DIGITS (short) scale
* <
li>DECIMAL_DIGITS (short) scale</li>
* <
/li><li>8 PSEUDO_COLUMN (short) (always bestRowNotPseudo)
* <
li>PSEUDO_COLUMN (short) (always bestRowNotPseudo)</li>
* </
li></u
l>
* </
o
l>
*
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -1137,17 +1136,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1137,17 +1136,17 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Get the list of columns that are update when any value is updated.
* Get the list of columns that are update when any value is updated.
* The result set is always empty.
* The result set is always empty.
*
*
* <
u
l>
* <
o
l>
* <li>1 SCOPE (int) not used
* <li>1 SCOPE (int) not used
</li>
* <
/li><li>2 COLUMN_NAME (String) column name
* <
li>2 COLUMN_NAME (String) column name</li>
* <
/li><li>3 DATA_TYPE (int) SQL data type - see also java.sql.Types
* <
li>3 DATA_TYPE (int) SQL data type - see also java.sql.Types</li>
* <
/li><li>4 TYPE_NAME (String) data type name
* <
li>4 TYPE_NAME (String) data type name</li>
* <
/li><
li>5 COLUMN_SIZE (int) precision
* <li>5 COLUMN_SIZE (int) precision
* (values larger than 2 GB are returned as 2 GB)
* (values larger than 2 GB are returned as 2 GB)
</li>
* <
/li><li>6 BUFFER_LENGTH (int) length (bytes)
* <
li>6 BUFFER_LENGTH (int) length (bytes)</li>
* <
/li><li>7 DECIMAL_DIGITS (int) scale
* <
li>7 DECIMAL_DIGITS (int) scale</li>
* <
/li><li>8 PSEUDO_COLUMN (int) is this column a pseudo column
* <
li>8 PSEUDO_COLUMN (int) is this column a pseudo column</li>
* </
li></u
l>
* </
o
l>
*
*
* @param catalog null (to get all objects) or the catalog name
* @param catalog null (to get all objects) or the catalog name
* @param schema null (to get all objects) or a schema name
* @param schema null (to get all objects) or a schema name
...
@@ -1188,25 +1187,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1188,25 +1187,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* result set is sorted by PKTABLE_CAT, PKTABLE_SCHEM, PKTABLE_NAME,
* result set is sorted by PKTABLE_CAT, PKTABLE_SCHEM, PKTABLE_NAME,
* FK_NAME, KEY_SEQ.
* FK_NAME, KEY_SEQ.
*
*
* <
u
l>
* <
o
l>
* <li>
1 PKTABLE_CAT (String) primary catalog
</li>
* <li>
PKTABLE_CAT (String) primary catalog
</li>
* <li>
2 PKTABLE_SCHEM (String) primary schema
</li>
* <li>
PKTABLE_SCHEM (String) primary schema
</li>
* <li>
3 PKTABLE_NAME (String) primary table
</li>
* <li>
PKTABLE_NAME (String) primary table
</li>
* <li>
4 PKCOLUMN_NAME (String) primary column
</li>
* <li>
PKCOLUMN_NAME (String) primary column
</li>
* <li>
5 FKTABLE_CAT (String) foreign catalog
</li>
* <li>
FKTABLE_CAT (String) foreign catalog
</li>
* <li>
6 FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
7 FKTABLE_NAME (String) foreign table
</li>
* <li>
FKTABLE_NAME (String) foreign table
</li>
* <li>
8 FKCOLUMN_NAME (String) foreign column
</li>
* <li>
FKCOLUMN_NAME (String) foreign column
</li>
* <li>
9 KEY_SEQ (short) sequence number (1, 2, ...)
</li>
* <li>
KEY_SEQ (short) sequence number (1, 2, ...)
</li>
* <li>
10
UPDATE_RULE (short) action on update (see
* <li>UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)
</li>
* DatabaseMetaData.importedKey...)</li>
* <li>
11
DELETE_RULE (short) action on delete (see
* <li>DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)
</li>
* DatabaseMetaData.importedKey...)</li>
* <li>
12 FK_NAME (String) foreign key name
</li>
* <li>
FK_NAME (String) foreign key name
</li>
* <li>
13 PK_NAME (String) primary key name
</li>
* <li>
PK_NAME (String) primary key name
</li>
* <li>
14
DEFERRABILITY (short) deferrable or not (always
* <li>DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)
</li>
* importedKeyNotDeferrable)</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern the schema name of the foreign table
* @param schemaPattern the schema name of the foreign table
...
@@ -1261,25 +1260,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1261,25 +1260,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* set is sorted by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, FK_NAME,
* set is sorted by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, FK_NAME,
* KEY_SEQ.
* KEY_SEQ.
*
*
* <
u
l>
* <
o
l>
* <li>
1 PKTABLE_CAT (String) primary catalog
</li>
* <li>
PKTABLE_CAT (String) primary catalog
</li>
* <li>
2 PKTABLE_SCHEM (String) primary schema
</li>
* <li>
PKTABLE_SCHEM (String) primary schema
</li>
* <li>
3 PKTABLE_NAME (String) primary table
</li>
* <li>
PKTABLE_NAME (String) primary table
</li>
* <li>
4 PKCOLUMN_NAME (String) primary column
</li>
* <li>
PKCOLUMN_NAME (String) primary column
</li>
* <li>
5 FKTABLE_CAT (String) foreign catalog
</li>
* <li>
FKTABLE_CAT (String) foreign catalog
</li>
* <li>
6 FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
7 FKTABLE_NAME (String) foreign table
</li>
* <li>
FKTABLE_NAME (String) foreign table
</li>
* <li>
8 FKCOLUMN_NAME (String) foreign column
</li>
* <li>
FKCOLUMN_NAME (String) foreign column
</li>
* <li>
9 KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>
KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>
10
UPDATE_RULE (short) action on update (see
* <li>UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)
</li>
* DatabaseMetaData.importedKey...)</li>
* <li>
11
DELETE_RULE (short) action on delete (see
* <li>DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)
</li>
* DatabaseMetaData.importedKey...)</li>
* <li>
12 FK_NAME (String) foreign key name
</li>
* <li>
FK_NAME (String) foreign key name
</li>
* <li>
13 PK_NAME (String) primary key name
</li>
* <li>
PK_NAME (String) primary key name
</li>
* <li>
14
DEFERRABILITY (short) deferrable or not (always
* <li>DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)
</li>
* importedKeyNotDeferrable)</li>
* </
u
l>
* </
o
l>
*
*
* @param catalogPattern null or the catalog name
* @param catalogPattern null or the catalog name
* @param schemaPattern the schema name of the primary table
* @param schemaPattern the schema name of the primary table
...
@@ -1335,25 +1334,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1335,25 +1334,25 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* result set is sorted by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME,
* result set is sorted by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME,
* FK_NAME, KEY_SEQ.
* FK_NAME, KEY_SEQ.
*
*
* <
u
l>
* <
o
l>
* <li>
1 PKTABLE_CAT (String) primary catalog
</li>
* <li>
PKTABLE_CAT (String) primary catalog
</li>
* <li>
2 PKTABLE_SCHEM (String) primary schema
</li>
* <li>
PKTABLE_SCHEM (String) primary schema
</li>
* <li>
3 PKTABLE_NAME (String) primary table
</li>
* <li>
PKTABLE_NAME (String) primary table
</li>
* <li>
4 PKCOLUMN_NAME (String) primary column
</li>
* <li>
PKCOLUMN_NAME (String) primary column
</li>
* <li>
5 FKTABLE_CAT (String) foreign catalog
</li>
* <li>
FKTABLE_CAT (String) foreign catalog
</li>
* <li>
6 FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
FKTABLE_SCHEM (String) foreign schema
</li>
* <li>
7 FKTABLE_NAME (String) foreign table
</li>
* <li>
FKTABLE_NAME (String) foreign table
</li>
* <li>
8 FKCOLUMN_NAME (String) foreign column
</li>
* <li>
FKCOLUMN_NAME (String) foreign column
</li>
* <li>
9 KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>
KEY_SEQ (short) sequence number (1,2,...)
</li>
* <li>
10
UPDATE_RULE (short) action on update (see
* <li>UPDATE_RULE (short) action on update (see
* DatabaseMetaData.importedKey...)
</li>
* DatabaseMetaData.importedKey...)</li>
* <li>
11
DELETE_RULE (short) action on delete (see
* <li>DELETE_RULE (short) action on delete (see
* DatabaseMetaData.importedKey...)
</li>
* DatabaseMetaData.importedKey...)</li>
* <li>
12 FK_NAME (String) foreign key name
</li>
* <li>
FK_NAME (String) foreign key name
</li>
* <li>
13 PK_NAME (String) primary key name
</li>
* <li>
PK_NAME (String) primary key name
</li>
* <li>
14
DEFERRABILITY (short) deferrable or not (always
* <li>DEFERRABILITY (short) deferrable or not (always
* importedKeyNotDeferrable)
</li>
* importedKeyNotDeferrable)</li>
* </
u
l>
* </
o
l>
*
*
* @param primaryCatalogPattern null or the catalog name
* @param primaryCatalogPattern null or the catalog name
* @param primarySchemaPattern the schema name of the primary table
* @param primarySchemaPattern the schema name of the primary table
...
@@ -1424,15 +1423,15 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1424,15 +1423,15 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of user-defined data types.
* Gets the list of user-defined data types.
* This call returns an empty result set.
* This call returns an empty result set.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TYPE_CAT (String) catalog
* <li>
TYPE_CAT (String) catalog</li>
* <
/li><li>2 TYPE_SCHEM (String) schema
* <
li>TYPE_SCHEM (String) schema</li>
* <
/li><li>3 TYPE_NAME (String) type name
* <
li>TYPE_NAME (String) type name</li>
* <
/li><li>4 CLASS_NAME (String) Java class
* <
li>CLASS_NAME (String) Java class</li>
* <
/li><li>5 DATA_TYPE (short) SQL Type - see also java.sql.Types
* <
li>DATA_TYPE (short) SQL Type - see also java.sql.Types</li>
* <
/li><li>6 REMARKS (String) description
* <
li>REMARKS (String) description</li>
* <
/li><li>7 BASE_TYPE (short) base type - see also java.sql.Types
* <
li>BASE_TYPE (short) base type - see also java.sql.Types</li>
* </
li></u
l>
* </
o
l>
*
*
* @param catalog ignored
* @param catalog ignored
* @param schemaPattern ignored
* @param schemaPattern ignored
...
@@ -1473,27 +1472,26 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -1473,27 +1472,26 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* afterwards by how closely the data type maps to the corresponding JDBC
* afterwards by how closely the data type maps to the corresponding JDBC
* SQL type (best match first).
* SQL type (best match first).
*
*
* <ul>
* <ol>
* <li>1 TYPE_NAME (String) type name </li>
* <li>TYPE_NAME (String) type name</li>
* <li>2 DATA_TYPE (short) SQL data type - see also java.sql.Types </li>
* <li>DATA_TYPE (short) SQL data type - see also java.sql.Types</li>
* <li>3 PRECISION (int) maximum precision </li>
* <li>PRECISION (int) maximum precision</li>
* <li>4 LITERAL_PREFIX (String) prefix used to quote a literal </li>
* <li>LITERAL_PREFIX (String) prefix used to quote a literal</li>
* <li>5 LITERAL_SUFFIX (String) suffix used to quote a literal </li>
* <li>LITERAL_SUFFIX (String) suffix used to quote a literal</li>
* <li>6 CREATE_PARAMS (String) parameters used (may be null) </li>
* <li>CREATE_PARAMS (String) parameters used (may be null)</li>
* <li>7 NULLABLE (short) typeNoNulls (NULL not allowed) or typeNullable
* <li>NULLABLE (short) typeNoNulls (NULL not allowed) or typeNullable</li>
* </li>
* <li>CASE_SENSITIVE (boolean) case sensitive</li>
* <li>8 CASE_SENSITIVE (boolean) case sensitive </li>
* <li>SEARCHABLE (short) typeSearchable</li>
* <li>9 SEARCHABLE (short) typeSearchable </li>
* <li>UNSIGNED_ATTRIBUTE (boolean) unsigned</li>
* <li>10 UNSIGNED_ATTRIBUTE (boolean) unsigned </li>
* <li>FIXED_PREC_SCALE (boolean) fixed precision</li>
* <li>11 FIXED_PREC_SCALE (boolean) fixed precision </li>
* <li>AUTO_INCREMENT (boolean) auto increment</li>
* <li>12 AUTO_INCREMENT (boolean) auto increment </li>
* <li>LOCAL_TYPE_NAME (String) localized version of the data type</li>
* <li>13 LOCAL_TYPE_NAME (String) localized version of the data type </li>
* <li>MINIMUM_SCALE (short) minimum scale</li>
* <li>14 MINIMUM_SCALE (short) minimum scale </li>
* <li>MAXIMUM_SCALE (short) maximum scale</li>
* <li>15 MAXIMUM_SCALE (short) maximum scale </li>
* <li>SQL_DATA_TYPE (int) unused</li>
* <li>16 SQL_DATA_TYPE (int) unused </li>
* <li>SQL_DATETIME_SUB (int) unused</li>
* <li>17 SQL_DATETIME_SUB (int) unused </li>
* <li>NUM_PREC_RADIX (int) 2 for binary, 10 for decimal</li>
* <li>18 NUM_PREC_RADIX (int) 2 for binary, 10 for decimal </li>
* </ol>
* </ul>
*
*
* @return the list of data types
* @return the list of data types
* @throws SQLException if the connection is closed
* @throws SQLException if the connection is closed
...
@@ -2946,12 +2944,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -2946,12 +2944,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements
/**
/**
* Get the list of super tables of a table. This method currently returns an
* Get the list of super tables of a table. This method currently returns an
* empty result set.
* empty result set.
* <
u
l>
* <
o
l>
* <li>
1
TABLE_CAT (String) table catalog</li>
* <li>TABLE_CAT (String) table catalog</li>
* <li>
2
TABLE_SCHEM (String) table schema</li>
* <li>TABLE_SCHEM (String) table schema</li>
* <li>
3
TABLE_NAME (String) table name</li>
* <li>TABLE_NAME (String) table name</li>
* <li>
4
SUPERTABLE_NAME (String) the name of the super table</li>
* <li>SUPERTABLE_NAME (String) the name of the super table</li>
* </
u
l>
* </
o
l>
*
*
* @param catalog null (to get all objects) or the catalog name
* @param catalog null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
@@ -3132,11 +3130,11 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -3132,11 +3130,11 @@ public class JdbcDatabaseMetaData extends TraceObject implements
* Gets the list of schemas in the database.
* Gets the list of schemas in the database.
* The result set is sorted by TABLE_SCHEM.
* The result set is sorted by TABLE_SCHEM.
*
*
* <
u
l>
* <
o
l>
* <li>
1 TABLE_SCHEM (String) schema name
* <li>
TABLE_SCHEM (String) schema name</li>
* <
/li><li>2 TABLE_CATALOG (String) catalog name
* <
li>TABLE_CATALOG (String) catalog name</li>
* <
/li><li>3 IS_DEFAULT (boolean) if this is the default schema
* <
li>IS_DEFAULT (boolean) if this is the default schema</li>
* </
li></u
l>
* </
o
l>
*
*
* @param catalogPattern null (to get all objects) or the catalog name
* @param catalogPattern null (to get all objects) or the catalog name
* @param schemaPattern null (to get all objects) or a schema name
* @param schemaPattern null (to get all objects) or a schema name
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论