Most visited

Recently visited

Added in API level 1

DatabaseMetaData

public interface DatabaseMetaData
implements Wrapper

java.sql.DatabaseMetaData


有关整个数据库的全面信息。

此接口由驱动程序供应商实施,以便让用户了解数据库管理系统(DBMS)与基于JDBC TM技术的驱动程序(“JDBC驱动程序”)结合使用的功能。 不同的关系数据库管理系统通常支持不同的功能,以不同的方式实现功能,并使用不同的数据类型。 另外,驱动程序可以在DBMS提供的功能之上实现一个功能。 此接口中的方法返回的信息适用于特定驱动程序和特定DBMS一起工作的功能。 请注意,本文档中使用的术语“数据库”一般用于指代驱动程序和DBMS。

此接口的用户通常是需要发现如何处理底层DBMS的工具。 对于打算与多个DBMS一起使用的应用程序尤其如此。 例如,一个工具可能使用方法getTypeInfo来找出可以在CREATE TABLE语句中使用哪些数据类型。 或者用户可能会调用方法supportsCorrelatedSubqueries以查看是否可以使用相关子查询或supportsBatchUpdates来查看是否可以使用批量更新。

一些DatabaseMetaData方法以ResultSet对象的形式返回信息列表。 定期ResultSet方法,例如getStringgetInt ,可以用于检索从这些数据ResultSet对象。 如果给定形式的元数据不可用,则返回空的ResultSet 除了定义为给定方法的ResultSet对象返回的列之外的其他列可以由JDBC驱动程序供应商定义,并且必须通过它们的列标签进行访问。

一些DatabaseMetaData方法使用字符串模式的参数。 这些参数都有名称,如fooPattern。 在模式字符串中,“%”表示匹配0个或更多字符的任何子字符串,“_”表示匹配任何一个字符。 仅返回与搜索模式匹配的元数据条目。 如果搜索模式参数设置为null ,则该参数的标准将从搜索中删除。

Summary

Constants

short attributeNoNulls

表示可能不允许 NULL值。

short attributeNullable

表示确实允许 NULL值。

short attributeNullableUnknown

表示是否允许 NULL值是未知的。

int bestRowNotPseudo

指示最佳行标识符不是伪列。

int bestRowPseudo

指示最佳行标识符是伪列。

int bestRowSession

指示最佳行标识符的范围是当前会话的剩余部分。

int bestRowTemporary

表示最佳行标识符的范围是非常临时的,仅在使用该行时持续。

int bestRowTransaction

指示最佳行标识符的范围是当前事务的剩余部分。

int bestRowUnknown

指示最佳行标识符可能是伪列,也可能不是伪列。

int columnNoNulls

指示该列可能不允许 NULL值。

int columnNullable

表示该列肯定允许 NULL值。

int columnNullableUnknown

指示列的可空性未知。

int functionColumnIn

指示参数或列是IN参数。

int functionColumnInOut

指示参数或列是INOUT参数。

int functionColumnOut

指示参数或列是OUT参数。

int functionColumnResult

指示参数或列是结果集中的列。

int functionColumnUnknown

指示参数或列的类型未知。

int functionNoNulls

表示不允许 NULL值。

int functionNoTable

指示函数不返回表。

int functionNullable

表示允许 NULL值。

int functionNullableUnknown

表示是否允许 NULL值未知。

int functionResultUnknown

表示不知道函数是否返回结果或表。

int functionReturn

指示参数或列是返回值。

int functionReturnsTable

指示该函数返回一个表。

int importedKeyCascade

对于列 UPDATE_RULE ,指示更新主键时,外键(导入的键)将更改为与其一致。

int importedKeyInitiallyDeferred

指示延迟。

int importedKeyInitiallyImmediate

指示延迟。

int importedKeyNoAction

UPDATE_RULEDELETE_RULE表示如果主键已导入,则不能更新或删除。

int importedKeyNotDeferrable

指示延迟。

int importedKeyRestrict

对于列 UPDATE_RULE ,指示如果主键已被另一个表导入为外键,则主键可能不会更新。

int importedKeySetDefault

对于列 UPDATE_RULEDELETE_RULE ,指示如果更新或删除主键,则将外键(导入的键)设置为默认值。

int importedKeySetNull

对于列 UPDATE_RULEDELETE_RULE ,指示更新或删除主键时,外键(导入的键)更改为 NULL

int procedureColumnIn

指示该列存储IN参数。

int procedureColumnInOut

指示该列存储INOUT参数。

int procedureColumnOut

指示该列存储OUT参数。

int procedureColumnResult

指示该列存储结果。

int procedureColumnReturn

指示该列存储返回值。

int procedureColumnUnknown

指示该列的类型未知。

int procedureNoNulls

表示不允许 NULL值。

int procedureNoResult

表示过程不返回结果。

int procedureNullable

表示允许使用 NULL值。

int procedureNullableUnknown

表示是否允许 NULL值未知。

int procedureResultUnknown

表示不知道过程是否返回结果。

int procedureReturnsResult

表示过程返回结果。

int sqlStateSQL

该方法一个可能的返回值 DatabaseMetaData.getSQLStateType这是用来指示由方法返回的值是否 SQLException.getSQLState是SQLSTATE值。

int sqlStateSQL99

该方法一个可能的返回值 DatabaseMetaData.getSQLStateType这是用来指示由方法返回的值是否 SQLException.getSQLState是一个SQL99 SQLSTATE值。

int sqlStateXOpen

方法 DatabaseMetaData.getSQLStateType可能返回值,用于指示方法 SQLException.getSQLState返回的值是X / Open(现在称为Open Group)SQL CLI SQLSTATE值。

short tableIndexClustered

指示这个表索引是一个聚集索引。

short tableIndexHashed

指示此表索引是散列索引。

short tableIndexOther

指示此表索引不是聚簇索引,散列索引或表统计信息; 它不是这些。

short tableIndexStatistic

指示此列包含与表索引描述一起返回的表统计信息。

int typeNoNulls

指示此数据类型不允许 NULL值。

int typeNullable

指示此数据类型允许使用 NULL值。

int typeNullableUnknown

表示不知道此数据类型是否允许 NULL值。

int typePredBasic

指示数据类型只能用于不使用 LIKE谓词的 WHERE搜索子句。

int typePredChar

指示数据类型只能用于使用 LIKE谓词的 WHERE搜索子句中。

int typePredNone

指示此类型不支持 WHERE搜索子句。

int typeSearchable

指示所有 WHERE搜索子句可以基于此类型。

int versionColumnNotPseudo

指示此版本列不是伪列。

int versionColumnPseudo

指示此版本列是伪列。

int versionColumnUnknown

指示此版本列可能是也可能不是伪列。

Public methods

abstract boolean allProceduresAreCallable()

检索当前用户是否可以调用方法 getProcedures返回的所有过程。

abstract boolean allTablesAreSelectable()

检索当前用户是否可以使用 SELECT语句中的方法 getTables返回的所有表。

abstract boolean autoCommitFailureClosesAllResultSets()

检索是否 SQLException当autoCommit为 true指示所有打开的ResultSets已关闭,即使那些可保持。

abstract boolean dataDefinitionCausesTransactionCommit()

检索事务中的数据定义语句是否强制事务提交。

abstract boolean dataDefinitionIgnoredInTransactions()

检索此数据库是否忽略事务内的数据定义语句。

abstract boolean deletesAreDetected(int type)

通过调用方法 ResultSet.rowDeleted来检索是否可以检测到可见行删除。

abstract boolean doesMaxRowSizeIncludeBlobs()

检索方法 getMaxRowSize的返回值是否包含SQL数据类型 LONGVARCHARLONGVARBINARY

abstract ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern)

检索给定模式和目录中可用的用户定义类型(UDT)的给定类型的给定属性的描述。

abstract ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)

检索表格唯一标识行的最佳列的描述。

abstract String getCatalogSeparator()

检索此数据库用作目录和表名称之间的分隔符的 String

abstract String getCatalogTerm()

检索数据库供应商对“目录”的首选术语。

abstract ResultSet getCatalogs()

检索此数据库中可用的目录名称。

abstract ResultSet getClientInfoProperties()

检索驱动程序支持的客户端信息属性列表。

abstract ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)

检索表格列的访问权限说明。

abstract ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)

检索指定目录中可用表格列的描述。

abstract Connection getConnection()

检索产生这个元数据对象的连接。

abstract ResultSet getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable)

检索给定外键表中引用主键或表示父表的唯一约束(可能是相同或不同表)的列的外键列的描述。

abstract int getDatabaseMajorVersion()

检索底层数据库的主要版本号。

abstract int getDatabaseMinorVersion()

检索基础数据库的次要版本号。

abstract String getDatabaseProductName()

检索此数据库产品的名称。

abstract String getDatabaseProductVersion()

检索此数据库产品的版本号。

abstract int getDefaultTransactionIsolation()

检索此数据库的默认事务隔离级别。

abstract int getDriverMajorVersion()

检索此JDBC驱动程序的主要版本号。

abstract int getDriverMinorVersion()

检索此JDBC驱动程序的次要版本号。

abstract String getDriverName()

检索此JDBC驱动程序的名称。

abstract String getDriverVersion()

String检索此JDBC驱动程序的版本号。

abstract ResultSet getExportedKeys(String catalog, String schema, String table)

检索引用给定表的主键列(由表导出的外键)的外键列的描述。

abstract String getExtraNameCharacters()

检索可用于未加引号的标识符名称(超出az,AZ,0-9和_的那些)的所有“额外”字符。

abstract ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern)

检索给定目录的系统或用户功能参数和返回类型的描述。

abstract ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern)

检索给定目录中可用的系统和用户功能的描述。

abstract String getIdentifierQuoteString()

检索用于引用SQL标识符的字符串。

abstract ResultSet getImportedKeys(String catalog, String schema, String table)

检索由给定表的外键列(由表导入的主键)引用的主键列的描述。

abstract ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)

检索给定表格的索引和统计信息的描述。

abstract int getJDBCMajorVersion()

检索此驱动程序的主要JDBC版本号。

abstract int getJDBCMinorVersion()

检索此驱动程序的次要JDBC版本号。

abstract int getMaxBinaryLiteralLength()

在内联二进制文字中检索此数据库允许的最大十六进制字符数。

abstract int getMaxCatalogNameLength()

检索此数据库在目录名称中允许的最大字符数。

abstract int getMaxCharLiteralLength()

检索此数据库允许的字符文字的最大字符数。

abstract int getMaxColumnNameLength()

检索此数据库允许列名称的最大字符数。

abstract int getMaxColumnsInGroupBy()

GROUP BY子句中检索此数据库允许的最大列数。

abstract int getMaxColumnsInIndex()

检索此数据库在索引中允许的最大列数。

abstract int getMaxColumnsInOrderBy()

ORDER BY子句中检索此数据库允许的最大列数。

abstract int getMaxColumnsInSelect()

SELECT列表中检索此数据库允许的最大列数。

abstract int getMaxColumnsInTable()

检索此数据库在表中允许的最大列数。

abstract int getMaxConnections()

检索可能的并发连接到此数据库的最大数量。

abstract int getMaxCursorNameLength()

检索此数据库在游标名称中允许的最大字符数。

abstract int getMaxIndexLength()

检索数据库允许索引的最大字节数,包括索引的所有部分。

abstract int getMaxProcedureNameLength()

在过程名称中检索此数据库允许的最大字符数。

abstract int getMaxRowSize()

检索单个数据库允许的最大字节数。

abstract int getMaxSchemaNameLength()

检索此数据库在模式名称中允许的最大字符数。

abstract int getMaxStatementLength()

检索此数据库在SQL语句中允许的最大字符数。

abstract int getMaxStatements()

检索可以同时打开的最大数量的活动语句到此数据库。

abstract int getMaxTableNameLength()

在表名中检索此数据库允许的最大字符数。

abstract int getMaxTablesInSelect()

SELECT语句中检索此数据库允许的最大表数。

abstract int getMaxUserNameLength()

在用户名中检索此数据库允许的最大字符数。

abstract String getNumericFunctions()

检索此数据库可用的数学函数的逗号分隔列表。

abstract ResultSet getPrimaryKeys(String catalog, String schema, String table)

检索给定表的主键列的描述。

abstract ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)

检索给定目录的存储过程参数和结果列的描述。

abstract String getProcedureTerm()

检索数据库供应商对“过程”的首选术语。

abstract ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern)

检索给定目录中可用的存储过程的描述。

abstract int getResultSetHoldability()

检索此数据库的 ResultSet对象的默认可保存性。

abstract RowIdLifetime getRowIdLifetime()

指示此数据源是否支持SQL ROWID类型,如果是, RowId对象保持有效的生存期。

abstract String getSQLKeywords()

检索不是SQL:2003关键字的所有此数据库的SQL关键字的逗号分隔列表。

abstract int getSQLStateType()

指示 SQLException.getSQLState返回的SQLSTATE是X / Open(现在称为Open Group)SQL CLI还是SQL:2003。

abstract String getSchemaTerm()

检索数据库供应商对“模式”的首选术语。

abstract ResultSet getSchemas(String catalog, String schemaPattern)

检索此数据库中可用的模式名称。

abstract ResultSet getSchemas()

检索此数据库中可用的模式名称。

abstract String getSearchStringEscape()

检索可用于转义通配符的字符串。

abstract String getStringFunctions()

检索此数据库可用的字符串函数的逗号分隔列表。

abstract ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern)

检索此数据库中特定模式中定义的表层次结构的描述。

abstract ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern)

检索此数据库中特定模式中定义的用户定义类型(UDT)层次结构的描述。

abstract String getSystemFunctions()

检索此数据库可用的系统函数的逗号分隔列表。

abstract ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)

检索目录中每个表的访问权限说明。

abstract ResultSet getTableTypes()

检索此数据库中可用的表类型。

abstract ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)

检索给定目录中可用表格的描述。

abstract String getTimeDateFunctions()

检索此数据库可用的时间和日期函数的逗号分隔列表。

abstract ResultSet getTypeInfo()

检索此数据库支持的所有数据类型的描述。

abstract ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)

检索特定模式中定义的用户定义类型(UDT)的描述。

abstract String getURL()

检索此DBMS的URL。

abstract String getUserName()

检索此数据库已知的用户名。

abstract ResultSet getVersionColumns(String catalog, String schema, String table)

检索在更新行中的任何值时自动更新的表格列的描述。

abstract boolean insertsAreDetected(int type)

通过调用方法 ResultSet.rowInserted来检索是否可以检测到可见的行插入。

abstract boolean isCatalogAtStart()

检索某个目录是否出现在完全限定的表名称的开头。

abstract boolean isReadOnly()

检索此数据库是否处于只读模式。

abstract boolean locatorsUpdateCopy()

指示对LOB所做的更新是在副本上还是直接对LOB进行的。

abstract boolean nullPlusNonNullIsNull()

检索此数据库是否支持 NULL与非 NULL值之间的并置 NULL

abstract boolean nullsAreSortedAtEnd()

检索 NULL值是否在最后排序,无论排序顺序如何。

abstract boolean nullsAreSortedAtStart()

检索 NULL值是否在开始时排序,而不管排序顺序如何。

abstract boolean nullsAreSortedHigh()

检索 NULL值是否排序很高。

abstract boolean nullsAreSortedLow()

检索 NULL值是否排序较低。

abstract boolean othersDeletesAreVisible(int type)

检索其他人所做的删除是否可见。

abstract boolean othersInsertsAreVisible(int type)

检索其他人所做的插入是否可见。

abstract boolean othersUpdatesAreVisible(int type)

检索其他人所做的更新是否可见。

abstract boolean ownDeletesAreVisible(int type)

检索结果集自己的删除是否可见。

abstract boolean ownInsertsAreVisible(int type)

检索结果集自己的插入是否可见。

abstract boolean ownUpdatesAreVisible(int type)

检索对于给定类型的 ResultSet对象,结果集自己的更新是否可见。

abstract boolean storesLowerCaseIdentifiers()

检索此数据库是否将大小写混写的未加引号的SQL标识符作为不区分大小写的形式处理并以小写形式存储它们。

abstract boolean storesLowerCaseQuotedIdentifiers()

检索此数据库是否将大小写混合的带引号的SQL标识符作为不区分大小写的形式处理,并以小写形式存储它们。

abstract boolean storesMixedCaseIdentifiers()

检索此数据库是否将大小写混合的未加引号的SQL标识符作为不区分大小写的形式处理,并以大小写混合形式存储它们。

abstract boolean storesMixedCaseQuotedIdentifiers()

检索此数据库是否将大小写混写的带引号的SQL标识符视为不区分大小写,并将它们以大小写混合形式存储。

abstract boolean storesUpperCaseIdentifiers()

检索此数据库是否将大小写混写的不带引号的SQL标识符视为不区分大小写,并将其以大写形式存储。

abstract boolean storesUpperCaseQuotedIdentifiers()

检索此数据库是否将大小写混合的带引号的SQL标识符视为不区分大小写,并将它们以大写形式存储。

abstract boolean supportsANSI92EntryLevelSQL()

检索此数据库是否支持ANSI92入门级SQL语法。

abstract boolean supportsANSI92FullSQL()

检索此数据库是否支持ANSI92完整SQL语法支持。

abstract boolean supportsANSI92IntermediateSQL()

检索此数据库是否支持ANSI92中间SQL语法支持。

abstract boolean supportsAlterTableWithAddColumn()

检索此数据库是否支持带添加列的 ALTER TABLE

abstract boolean supportsAlterTableWithDropColumn()

检索此数据库是否支持带删除列的 ALTER TABLE

abstract boolean supportsBatchUpdates()

检索此数据库是否支持批量更新。

abstract boolean supportsCatalogsInDataManipulation()

检索是否可以在数据操作语句中使用目录名称。

abstract boolean supportsCatalogsInIndexDefinitions()

检索是否可以在索引定义语句中使用目录名称。

abstract boolean supportsCatalogsInPrivilegeDefinitions()

检索是否可以在特权定义语句中使用目录名称。

abstract boolean supportsCatalogsInProcedureCalls()

检索过程调用语句中是否可以使用目录名称。

abstract boolean supportsCatalogsInTableDefinitions()

检索是否可以在表定义语句中使用目录名称。

abstract boolean supportsColumnAliasing()

检索此数据库是否支持列别名。

abstract boolean supportsConvert(int fromType, int toType)

检索此数据库是否支持JDBC标量函数 CONVERT ,以获取JDBC类型 fromTypetoType之间的转换。

abstract boolean supportsConvert()

检索此数据库是否支持用于将一种JDBC类型转换为另一种类型的JDBC标量函数 CONVERT

abstract boolean supportsCoreSQLGrammar()

检索此数据库是否支持ODBC Core SQL语法。

abstract boolean supportsCorrelatedSubqueries()

检索此数据库是否支持相关的子查询。

abstract boolean supportsDataDefinitionAndDataManipulationTransactions()

检索此数据库是否支持事务中的数据定义和数据操作语句。

abstract boolean supportsDataManipulationTransactionsOnly()

检索此数据库是否仅支持事务内的数据操作语句。

abstract boolean supportsDifferentTableCorrelationNames()

检索当表格相关名称被支持时,它们被限制为不同于表格的名称。

abstract boolean supportsExpressionsInOrderBy()

检索此数据库是否支持 ORDER BY列表中的表达式。

abstract boolean supportsExtendedSQLGrammar()

检索此数据库是否支持ODBC扩展SQL语法。

abstract boolean supportsFullOuterJoins()

检索此数据库是否支持完整的嵌套外连接。

abstract boolean supportsGetGeneratedKeys()

检索语句执行后是否可以检索自动生成的键

abstract boolean supportsGroupBy()

检索此数据库是否支持某种形式的 GROUP BY子句。

abstract boolean supportsGroupByBeyondSelect()

获取此数据库是否支持使用不包含在列 SELECT在一份声明中 GROUP BY条款规定,所有在列 SELECT声明都包含在在 GROUP BY条款。

abstract boolean supportsGroupByUnrelated()

检索此数据库是否支持使用不在 GROUP BY子句中的 SELECT语句中的 GROUP BY

abstract boolean supportsIntegrityEnhancementFacility()

检索此数据库是否支持SQL完整性增强工具。

abstract boolean supportsLikeEscapeClause()

检索此数据库是否支持指定 LIKE转义子句。

abstract boolean supportsLimitedOuterJoins()

检索此数据库是否为外连接提供有限的支持。

abstract boolean supportsMinimumSQLGrammar()

检索此数据库是否支持ODBC最小SQL语法。

abstract boolean supportsMixedCaseIdentifiers()

检索此数据库是否将大小写混写的未加引号的SQL标识符视为区分大小写,并将结果以大小写混合形式存储。

abstract boolean supportsMixedCaseQuotedIdentifiers()

检索此数据库是否将大小写混合的带引号的SQL标识符视为区分大小写,并将结果以大小写混合形式存储。

abstract boolean supportsMultipleOpenResults()

检索是否有可能具有多个 ResultSet从返回的对象 CallableStatement对象同时进行。

abstract boolean supportsMultipleResultSets()

检索此数据库是否支持将多个 ResultSet对象从一次调用获取到方法 execute

abstract boolean supportsMultipleTransactions()

检索此数据库是否允许同时打开多个事务(在不同的连接上)。

abstract boolean supportsNamedParameters()

检索此数据库是否支持可调用语句的命名参数。

abstract boolean supportsNonNullableColumns()

检索此数据库中的列是否可以定义为不可空。

abstract boolean supportsOpenCursorsAcrossCommit()

检索此数据库是否支持在提交时保持游标打开状态。

abstract boolean supportsOpenCursorsAcrossRollback()

检索此数据库是否支持将光标跨回滚打开。

abstract boolean supportsOpenStatementsAcrossCommit()

检索此数据库是否支持在提交时保持语句打开状态。

abstract boolean supportsOpenStatementsAcrossRollback()

检索此数据库是否支持通过回滚保持语句打开。

abstract boolean supportsOrderByUnrelated()

检索此数据库是否支持使用不在 ORDER BY子句中的 SELECT语句中的 ORDER BY

abstract boolean supportsOuterJoins()

检索此数据库是否支持某种形式的外连接。

abstract boolean supportsPositionedDelete()

检索此数据库是否支持定位的 DELETE语句。

abstract boolean supportsPositionedUpdate()

检索此数据库是否支持定位 UPDATE语句。

abstract boolean supportsResultSetConcurrency(int type, int concurrency)

检索此数据库是否支持给定的并发类型以及给定的结果集类型。

abstract boolean supportsResultSetHoldability(int holdability)

检索此数据库是否支持给定的结果集可保存性。

abstract boolean supportsResultSetType(int type)

检索此数据库是否支持给定的结果集类型。

abstract boolean supportsSavepoints()

检索此数据库是否支持保存点。

abstract boolean supportsSchemasInDataManipulation()

检索是否可以在数据操作语句中使用模式名称。

abstract boolean supportsSchemasInIndexDefinitions()

检索是否可以在索引定义语句中使用模式名称。

abstract boolean supportsSchemasInPrivilegeDefinitions()

检索特权定义语句中是否可以使用模式名称。

abstract boolean supportsSchemasInProcedureCalls()

检索过程调用语句中是否可以使用模式名称。

abstract boolean supportsSchemasInTableDefinitions()

检索是否可以在表定义语句中使用模式名称。

abstract boolean supportsSelectForUpdate()

检索此数据库是否支持 SELECT FOR UPDATE语句。

abstract boolean supportsStatementPooling()

检索此数据库是否支持语句池。

abstract boolean supportsStoredFunctionsUsingCallSyntax()

检索此数据库是否支持使用存储过程转义语法调用用户定义函数或供应商函数。

abstract boolean supportsStoredProcedures()

检索此数据库是否支持使用存储过程转义语法的存储过程调用。

abstract boolean supportsSubqueriesInComparisons()

检索此数据库是否支持比较表达式中的子查询。

abstract boolean supportsSubqueriesInExists()

检索此数据库是否支持 EXISTS表达式中的子查询。

abstract boolean supportsSubqueriesInIns()

检索此数据库是否支持 IN表达式中的子查询。

abstract boolean supportsSubqueriesInQuantifieds()

检索此数据库是否支持量化表达式中的子查询。

abstract boolean supportsTableCorrelationNames()

检索此数据库是否支持表关联名称。

abstract boolean supportsTransactionIsolationLevel(int level)

检索此数据库是否支持给定的事务隔离级别。

abstract boolean supportsTransactions()

检索此数据库是否支持事务。

abstract boolean supportsUnion()

检索此数据库是否支持SQL UNION

abstract boolean supportsUnionAll()

检索此数据库是否支持SQL UNION ALL

abstract boolean updatesAreDetected(int type)

通过调用方法 ResultSet.rowUpdated来检索是否可以检测到可见的行更新。

abstract boolean usesLocalFilePerTable()

检索此数据库是否为每个表使用文件。

abstract boolean usesLocalFiles()

检索此数据库是否将表存储在本地文件中。

Inherited methods

From interface java.sql.Wrapper

Constants

attributeNoNulls

Added in API level 1
short attributeNoNulls

表示可能不允许 NULL值。

方法 getAttributes返回的 ResultSet对象中列 NULLABLE可能值。

常量值:0(0x00000000)

attributeNullable

Added in API level 1
short attributeNullable

表示确实允许 NULL值。

方法 getAttributes返回的 ResultSet对象中列 NULLABLE可能值。

常数值:1(0x00000001)

attributeNullableUnknown

Added in API level 1
short attributeNullableUnknown

指示是否允许 NULL值是未知的。

方法 getAttributes返回的 ResultSet对象中列 NULLABLE可能值。

常量值:2(0x00000002)

bestRowNotPseudo

Added in API level 1
int bestRowNotPseudo

指示最佳行标识符不是伪列。

方法 getBestRowIdentifier返回的 ResultSet对象中列 PSEUDO_COLUMN可能值。

常数值:1(0x00000001)

bestRowPseudo

Added in API level 1
int bestRowPseudo

指示最佳行标识符是伪列。

方法 getBestRowIdentifier返回的 ResultSet对象中列 PSEUDO_COLUMN可能值。

常量值:2(0x00000002)

bestRowSession

Added in API level 1
int bestRowSession

指示最佳行标识符的范围是当前会话的剩余部分。

方法 getBestRowIdentifier返回的 ResultSet对象中列 SCOPE可能值。

常量值:2(0x00000002)

bestRowTemporary

Added in API level 1
int bestRowTemporary

表示最佳行标识符的范围是非常临时的,仅在使用该行时持续。

方法 getBestRowIdentifier返回的 ResultSet对象中列 SCOPE可能值。

常量值:0(0x00000000)

bestRowTransaction

Added in API level 1
int bestRowTransaction

指示最佳行标识符的范围是当前事务的剩余部分。

方法 getBestRowIdentifier返回的 ResultSet对象中列 SCOPE可能值。

常数值:1(0x00000001)

bestRowUnknown

Added in API level 1
int bestRowUnknown

指示最佳行标识符可能是伪列,也可能不是伪列。

方法 getBestRowIdentifier返回的 ResultSet对象中列 PSEUDO_COLUMN可能值。

常量值:0(0x00000000)

columnNoNulls

Added in API level 1
int columnNoNulls

指示该列可能不允许 NULL值。

该列的可能值 NULLABLEResultSet该方法返回 getColumns

常量值:0(0x00000000)

columnNullable

Added in API level 1
int columnNullable

表示该列肯定允许 NULL值。

该列的可能值 NULLABLEResultSet该方法返回 getColumns

常数值:1(0x00000001)

columnNullableUnknown

Added in API level 1
int columnNullableUnknown

指示列的可空性未知。

该列的可能值 NULLABLEResultSet该方法返回 getColumns

常量值:2(0x00000002)

functionColumnIn

Added in API level 9
int functionColumnIn

指示参数或列是IN参数。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getFunctionColumns

常数值:1(0x00000001)

functionColumnInOut

Added in API level 9
int functionColumnInOut

指示参数或列是INOUT参数。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getFunctionColumns

常量值:2(0x00000002)

functionColumnOut

Added in API level 9
int functionColumnOut

指示参数或列是OUT参数。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getFunctionColumns

常量值:3(0x00000003)

functionColumnResult

Added in API level 9
int functionColumnResult

指示参数或列是结果集中的列。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getFunctionColumns

常量值:5(0x00000005)

functionColumnUnknown

Added in API level 9
int functionColumnUnknown

指示参数或列的类型未知。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getFunctionColumns

常量值:0(0x00000000)

functionNoNulls

Added in API level 9
int functionNoNulls

表示不允许 NULL值。

方法 getFunctionColumns返回的 ResultSet对象中列 NULLABLE可能值。

常量值:0(0x00000000)

functionNoTable

Added in API level 9
int functionNoTable

指示函数不返回表。

方法 getFunctions返回的 ResultSet对象中列 FUNCTION_TYPE可能值。

常数值:1(0x00000001)

functionNullable

Added in API level 9
int functionNullable

表示允许使用 NULL值。

方法 getFunctionColumns返回的 ResultSet对象中列 NULLABLE可能值。

常数值:1(0x00000001)

functionNullableUnknown

Added in API level 9
int functionNullableUnknown

表示是否允许 NULL值未知。

方法 getFunctionColumns返回的 ResultSet对象中列 NULLABLE可能值。

常量值:2(0x00000002)

functionResultUnknown

Added in API level 9
int functionResultUnknown

表示不知道函数是否返回结果或表。

方法 getFunctions返回的 ResultSet对象中列 FUNCTION_TYPE可能值。

常量值:0(0x00000000)

functionReturn

Added in API level 9
int functionReturn

指示参数或列是返回值。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getFunctionColumns

常量值:4(0x00000004)

functionReturnsTable

Added in API level 9
int functionReturnsTable

指示该函数返回一个表。

方法 getFunctions返回的 ResultSet对象中列 FUNCTION_TYPE可能值。

常量值:2(0x00000002)

importedKeyCascade

Added in API level 1
int importedKeyCascade

对于列UPDATE_RULE ,指示更新主键时,外键(导入的键)将更改为与其一致。 对于列DELETE_RULE ,它表示当主键被删除时,导入该键的行将被删除。

对于各列的可能值 UPDATE_RULEDELETE_RULEResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常量值:0(0x00000000)

importedKeyInitiallyDeferred

Added in API level 1
int importedKeyInitiallyDeferred

指示延迟。 有关定义,请参阅SQL-92。

该列的可能值 DEFERRABILITYResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常量值:5(0x00000005)

importedKeyInitiallyImmediate

Added in API level 1
int importedKeyInitiallyImmediate

指示延迟。 有关定义,请参阅SQL-92。

该列的可能值 DEFERRABILITYResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常数值:6(0x00000006)

importedKeyNoAction

Added in API level 1
int importedKeyNoAction

对于列 UPDATE_RULEDELETE_RULE ,指示如果主键已导入,则不能更新或删除。

对于各列的可能值 UPDATE_RULEDELETE_RULEResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常量值:3(0x00000003)

importedKeyNotDeferrable

Added in API level 1
int importedKeyNotDeferrable

指示延迟。 有关定义,请参阅SQL-92。

该列的可能值 DEFERRABILITYResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常量值:7(0x00000007)

importedKeyRestrict

Added in API level 1
int importedKeyRestrict

对于列UPDATE_RULE ,表示如果主键已被另一个表导入为外键,则可能不会更新主键。 对于列DELETE_RULE ,表示如果主键已被另一个表导入为外键,则该主键可能不会被删除。

对于各列的可能值 UPDATE_RULEDELETE_RULEResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常数值:1(0x00000001)

importedKeySetDefault

Added in API level 1
int importedKeySetDefault

对于列 UPDATE_RULEDELETE_RULE ,指示如果更新或删除主键,则将外键(导入的键)设置为默认值。

对于各列的可能值 UPDATE_RULEDELETE_RULEResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常量值:4(0x00000004)

importedKeySetNull

Added in API level 1
int importedKeySetNull

对于列 UPDATE_RULEDELETE_RULE ,指示更新或删除主键时,外键(导入的键)更改为 NULL

对于各列的可能值 UPDATE_RULEDELETE_RULEResultSet通过所述方法返回的对象 getImportedKeysgetExportedKeys ,和 getCrossReference

常量值:2(0x00000002)

procedureColumnIn

Added in API level 1
int procedureColumnIn

指示该列存储IN参数。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getProcedureColumns

常数值:1(0x00000001)

procedureColumnInOut

Added in API level 1
int procedureColumnInOut

指示该列存储INOUT参数。

方法 getProcedureColumns返回的 COLUMN_TYPEResultSet列的可能值。

常量值:2(0x00000002)

procedureColumnOut

Added in API level 1
int procedureColumnOut

指示该列存储OUT参数。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getProcedureColumns

常量值:4(0x00000004)

procedureColumnResult

Added in API level 1
int procedureColumnResult

指示该列存储结果。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getProcedureColumns

常量值:3(0x00000003)

procedureColumnReturn

Added in API level 1
int procedureColumnReturn

指示该列存储返回值。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getProcedureColumns

常量值:5(0x00000005)

procedureColumnUnknown

Added in API level 1
int procedureColumnUnknown

指示该列的类型未知。

该列的可能值 COLUMN_TYPEResultSet该方法返回 getProcedureColumns

常量值:0(0x00000000)

procedureNoNulls

Added in API level 1
int procedureNoNulls

表示不允许 NULL值。

方法 getProcedureColumns返回的 ResultSet对象中列 NULLABLE可能值。

常量值:0(0x00000000)

procedureNoResult

Added in API level 1
int procedureNoResult

表示过程不返回结果。

方法 getProcedures返回的 ResultSet对象中列 PROCEDURE_TYPE可能值。

常数值:1(0x00000001)

procedureNullable

Added in API level 1
int procedureNullable

表示允许 NULL值。

方法 getProcedureColumns返回的 ResultSet对象中列 NULLABLE可能值。

常数值:1(0x00000001)

procedureNullableUnknown

Added in API level 1
int procedureNullableUnknown

表示是否允许 NULL值未知。

该列的可能值 NULLABLEResultSet该方法返回对象 getProcedureColumns

常量值:2(0x00000002)

procedureResultUnknown

Added in API level 1
int procedureResultUnknown

表示不知道过程是否返回结果。

方法 getProcedures返回的 ResultSet对象中列 PROCEDURE_TYPE可能值。

常量值:0(0x00000000)

procedureReturnsResult

Added in API level 1
int procedureReturnsResult

表示过程返回结果。

方法 getProcedures返回的 ResultSet对象中列 PROCEDURE_TYPE可能值。

常量值:2(0x00000002)

sqlStateSQL

Added in API level 9
int sqlStateSQL

该方法一个可能的返回值 DatabaseMetaData.getSQLStateType这是用来指示由方法返回的值是否 SQLException.getSQLState是SQLSTATE值。

常量值:2(0x00000002)

sqlStateSQL99

Added in API level 1
int sqlStateSQL99

该方法一个可能的返回值 DatabaseMetaData.getSQLStateType这是用来指示由方法返回的值是否 SQLException.getSQLState是一个SQL99 SQLSTATE值。

注意:这个常数只是出于兼容性的原因。 开发人员应该使用常数sqlStateSQL

常量值:2(0x00000002)

sqlStateXOpen

Added in API level 1
int sqlStateXOpen

方法 DatabaseMetaData.getSQLStateType可能返回值,用于指示方法 SQLException.getSQLState返回的值是X / Open(现在称为Open Group)SQL CLI SQLSTATE值。

常数值:1(0x00000001)

tableIndexClustered

Added in API level 1
short tableIndexClustered

指示这个表索引是一个聚集索引。

方法 getIndexInfo返回的 ResultSet对象中列 TYPE可能值。

常数值:1(0x00000001)

tableIndexHashed

Added in API level 1
short tableIndexHashed

指示此表索引是散列索引。

由方法 getIndexInfo返回的 ResultSet对象中列 TYPE可能值。

常量值:2(0x00000002)

tableIndexOther

Added in API level 1
short tableIndexOther

指示此表索引不是聚簇索引,散列索引或表统计信息; 它不是这些。

方法 getIndexInfo返回的 ResultSet对象中列 TYPE可能值。

常量值:3(0x00000003)

tableIndexStatistic

Added in API level 1
short tableIndexStatistic

指示此列包含与表索引描述一起返回的表统计信息。

方法 getIndexInfo返回的 ResultSet对象中列 TYPE可能值。

常量值:0(0x00000000)

typeNoNulls

Added in API level 1
int typeNoNulls

指示此数据类型不允许 NULL值。

方法 getTypeInfo返回的 ResultSet对象中列 NULLABLE可能值。

常量值:0(0x00000000)

typeNullable

Added in API level 1
int typeNullable

表示该数据类型允许 NULL值。

方法 getTypeInfo返回的 ResultSet对象中列 NULLABLE可能值。

常数值:1(0x00000001)

typeNullableUnknown

Added in API level 1
int typeNullableUnknown

表示不知道此数据类型是否允许 NULL值。

方法 getTypeInfo返回的 ResultSet对象中列 NULLABLE可能值。

常量值:2(0x00000002)

typePredBasic

Added in API level 1
int typePredBasic

指示数据类型只能用于 LIKE谓词的 WHERE搜索子句中。

方法 getTypeInfo返回的 ResultSet对象中列 SEARCHABLE可能值。

常量值:2(0x00000002)

typePredChar

Added in API level 1
int typePredChar

指示数据类型只能用于使用 LIKE谓词的 WHERE搜索子句中。

方法 getTypeInfo返回的 ResultSet对象中列 SEARCHABLE可能值。

常数值:1(0x00000001)

typePredNone

Added in API level 1
int typePredNone

表示此类型不支持 WHERE搜索子句。

方法 getTypeInfo返回的 ResultSet对象中列 SEARCHABLE可能值。

常量值:0(0x00000000)

typeSearchable

Added in API level 1
int typeSearchable

表示所有 WHERE搜索子句都可以基于此类型。

方法 getTypeInfo返回的 ResultSet对象中列 SEARCHABLE可能值。

常量值:3(0x00000003)

versionColumnNotPseudo

Added in API level 1
int versionColumnNotPseudo

指示此版本列不是伪列。

方法 getVersionColumns返回的 ResultSet对象中列 PSEUDO_COLUMN可能值。

常数值:1(0x00000001)

versionColumnPseudo

Added in API level 1
int versionColumnPseudo

指示此版本列是伪列。

方法 getVersionColumns返回的 ResultSet对象中列 PSEUDO_COLUMN可能值。

常量值:2(0x00000002)

versionColumnUnknown

Added in API level 1
int versionColumnUnknown

指示此版本列可能是也可能不是伪列。

方法 getVersionColumns返回的 ResultSet对象中列 PSEUDO_COLUMN可能值。

常量值:0(0x00000000)

Public methods

allProceduresAreCallable

Added in API level 1
boolean allProceduresAreCallable ()

检索当前用户是否可以调用方法 getProcedures返回的所有过程。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

allTablesAreSelectable

Added in API level 1
boolean allTablesAreSelectable ()

检索当前用户是否可以使用 SELECT语句中的方法 getTables返回的所有表。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

autoCommitFailureClosesAllResultSets

Added in API level 9
boolean autoCommitFailureClosesAllResultSets ()

检索SQLException而autoCommit是否为true指出所有打开的ResultSet已关闭,即使是可保留的。 当自动提交SQLException发生true ,它是供应商特定的,无论JDBC驱动程序是使用提交操作,回滚操作还是通过既不执行提交也不回滚。 这种差异的潜在结果是关于可保持的ResultSet是否关闭。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

dataDefinitionCausesTransactionCommit

Added in API level 1
boolean dataDefinitionCausesTransactionCommit ()

检索事务中的数据定义语句是否强制事务提交。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

dataDefinitionIgnoredInTransactions

Added in API level 1
boolean dataDefinitionIgnoredInTransactions ()

检索此数据库是否忽略事务内的数据定义语句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

deletesAreDetected

Added in API level 1
boolean deletesAreDetected (int type)

通过调用方法ResultSet.rowDeleted来检索是否可以检测到可见行删除。 如果方法deletesAreDetected返回false ,则表示删除的行将从结果集中删除。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if deletes are detected by the given result set type; false otherwise
Throws
SQLException if a database access error occurs

doesMaxRowSizeIncludeBlobs

Added in API level 1
boolean doesMaxRowSizeIncludeBlobs ()

检索方法 getMaxRowSize的返回值是否包含SQL数据类型 LONGVARCHARLONGVARBINARY

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

getAttributes

Added in API level 1
ResultSet getAttributes (String catalog, 
                String schemaPattern, 
                String typeNamePattern, 
                String attributeNamePattern)

检索给定模式和目录中可用的用户定义类型(UDT)的给定类型的给定属性的描述。

描述仅针对与目录,模式,类型和属性名称条件匹配的UDT的属性返回。 他们被下令TYPE_CATTYPE_SCHEMTYPE_NAMEORDINAL_POSITION 此说明不包含继承的属性。

返回的 ResultSet对象具有以下列:

  1. TYPE_CAT String => type catalog (may be null)
  2. TYPE_SCHEM String => type schema (may be null)
  3. TYPE_NAME String => type name
  4. ATTR_NAME String => attribute name
  5. DATA_TYPE int => attribute type SQL type from java.sql.Types
  6. ATTR_TYPE_NAME String => Data source dependent type name. For a UDT, the type name is fully qualified. For a REF, the type name is fully qualified and represents the target type of the reference type.
  7. ATTR_SIZE int => column size. For char or date types this is the maximum number of characters; for numeric or decimal types this is precision.
  8. DECIMAL_DIGITS int => the number of fractional digits. Null is returned for data types where DECIMAL_DIGITS is not applicable.
  9. NUM_PREC_RADIX int => Radix (typically either 10 or 2)
  10. NULLABLE int => whether NULL is allowed
    • attributeNoNulls - might not allow NULL values
    • attributeNullable - definitely allows NULL values
    • attributeNullableUnknown - nullability unknown
  11. REMARKS String => comment describing column (may be null)
  12. ATTR_DEF String => default value (may be null)
  13. SQL_DATA_TYPE int => unused
  14. SQL_DATETIME_SUB int => unused
  15. CHAR_OCTET_LENGTH int => for char types the maximum number of bytes in the column
  16. ORDINAL_POSITION int => index of the attribute in the UDT (starting at 1)
  17. IS_NULLABLE String => ISO rules are used to determine the nullability for a attribute.
    • YES --- if the attribute can include NULLs
    • NO --- if the attribute cannot include NULLs
    • empty string --- if the nullability for the attribute is unknown
  18. SCOPE_CATALOG String => catalog of table that is the scope of a reference attribute (null if DATA_TYPE isn't REF)
  19. SCOPE_SCHEMA String => schema of table that is the scope of a reference attribute (null if DATA_TYPE isn't REF)
  20. SCOPE_TABLE String => table name that is the scope of a reference attribute (null if the DATA_TYPE isn't REF)
  21. SOURCE_DATA_TYPE short => source type of a distinct type or user-generated Ref type,SQL type from java.sql.Types (null if DATA_TYPE isn't DISTINCT or user-generated REF)

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
typeNamePattern String: a type name pattern; must match the type name as it is stored in the database
attributeNamePattern String: an attribute name pattern; must match the attribute name as it is declared in the database
Returns
ResultSet a ResultSet object in which each row is an attribute description
Throws
SQLException if a database access error occurs

也可以看看:

getBestRowIdentifier

Added in API level 1
ResultSet getBestRowIdentifier (String catalog, 
                String schema, 
                String table, 
                int scope, 
                boolean nullable)

检索表格唯一标识行的最佳列的描述。 他们由SCOPE订购。

每列描述包含以下列:

  1. SCOPE short => actual scope of result
    • bestRowTemporary - very temporary, while using row
    • bestRowTransaction - valid for remainder of current transaction
    • bestRowSession - valid for remainder of current session
  2. COLUMN_NAME String => column name
  3. DATA_TYPE int => SQL data type from java.sql.Types
  4. TYPE_NAME String => Data source dependent type name, for a UDT the type name is fully qualified
  5. COLUMN_SIZE int => precision
  6. BUFFER_LENGTH int => not used
  7. DECIMAL_DIGITS short => scale - Null is returned for data types where DECIMAL_DIGITS is not applicable.
  8. PSEUDO_COLUMN short => is this a pseudo column like an Oracle ROWID
    • bestRowUnknown - may or may not be pseudo column
    • bestRowNotPseudo - is NOT a pseudo column
    • bestRowPseudo - is a pseudo column

COLUMN_SIZE列表示给定列的指定列大小。 对于数字数据,这是最高精度。 对于字符数据,这是以字符为单位的长度。 对于datetime数据类型,这是字符串表示的字符长度(假设小数秒组件的最大允许精度)。 对于二进制数据,这是以字节为单位的长度。 对于ROWID数据类型,这是以字节为单位的长度。 对于列大小不适用的数据类型返回空值。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in the database
scope int: the scope of interest; use same values as SCOPE
nullable boolean: include columns that are nullable.
Returns
ResultSet ResultSet - each row is a column description
Throws
SQLException if a database access error occurs

getCatalogSeparator

Added in API level 1
String getCatalogSeparator ()

检索此数据库用作目录和表名称之间分隔符的 String

Returns
String the separator string
Throws
SQLException if a database access error occurs

getCatalogTerm

Added in API level 1
String getCatalogTerm ()

检索数据库供应商对“目录”的首选术语。

Returns
String the vendor term for "catalog"
Throws
SQLException if a database access error occurs

getCatalogs

Added in API level 1
ResultSet getCatalogs ()

检索此数据库中可用的目录名称。 结果按目录名排序。

目录列是:

  1. TABLE_CAT String => catalog name

Returns
ResultSet a ResultSet object in which each row has a single String column that is a catalog name
Throws
SQLException if a database access error occurs

getClientInfoProperties

Added in API level 9
ResultSet getClientInfoProperties ()

检索驱动程序支持的客户端信息属性列表。 结果集包含以下列

  1. NAME String=> The name of the client info property
  2. MAX_LEN int=> The maximum length of the value for the property
  3. DEFAULT_VALUE String=> The default value of the property
  4. DESCRIPTION String=> A description of the property. This will typically contain information as to where this property is stored in the database.

ResultSet按NAME列排序

Returns
ResultSet A ResultSet object; each row is a supported client info property

Throws
SQLException if a database access error occurs

getColumnPrivileges

Added in API level 1
ResultSet getColumnPrivileges (String catalog, 
                String schema, 
                String table, 
                String columnNamePattern)

检索表格列的访问权限说明。

只有与列名称条件匹配的特权才被返回。 他们由COLUMN_NAME和PRIVILEGE订购。

每个特权描述包含以下列:

  1. TABLE_CAT String => table catalog (may be null)
  2. TABLE_SCHEM String => table schema (may be null)
  3. TABLE_NAME String => table name
  4. COLUMN_NAME String => column name
  5. GRANTOR String => grantor of access (may be null)
  6. GRANTEE String => grantee of access
  7. PRIVILEGE String => name of access (SELECT, INSERT, UPDATE, REFRENCES, ...)
  8. IS_GRANTABLE String => "YES" if grantee is permitted to grant to others; "NO" if not; null if unknown

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in the database
columnNamePattern String: a column name pattern; must match the column name as it is stored in the database
Returns
ResultSet ResultSet - each row is a column privilege description
Throws
SQLException if a database access error occurs

也可以看看:

getColumns

Added in API level 1
ResultSet getColumns (String catalog, 
                String schemaPattern, 
                String tableNamePattern, 
                String columnNamePattern)

检索指定目录中可用表格列的描述。

只返回匹配目录,模式,表和列名称条件的列描述。 他们被下令TABLE_CATTABLE_SCHEMTABLE_NAME ,并ORDINAL_POSITION

每列描述包含以下列:

  1. TABLE_CAT String => table catalog (may be null)
  2. TABLE_SCHEM String => table schema (may be null)
  3. TABLE_NAME String => table name
  4. COLUMN_NAME String => column name
  5. DATA_TYPE int => SQL type from java.sql.Types
  6. TYPE_NAME String => Data source dependent type name, for a UDT the type name is fully qualified
  7. COLUMN_SIZE int => column size.
  8. BUFFER_LENGTH is not used.
  9. DECIMAL_DIGITS int => the number of fractional digits. Null is returned for data types where DECIMAL_DIGITS is not applicable.
  10. NUM_PREC_RADIX int => Radix (typically either 10 or 2)
  11. NULLABLE int => is NULL allowed.
    • columnNoNulls - might not allow NULL values
    • columnNullable - definitely allows NULL values
    • columnNullableUnknown - nullability unknown
  12. REMARKS String => comment describing column (may be null)
  13. COLUMN_DEF String => default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be null)
  14. SQL_DATA_TYPE int => unused
  15. SQL_DATETIME_SUB int => unused
  16. CHAR_OCTET_LENGTH int => for char types the maximum number of bytes in the column
  17. ORDINAL_POSITION int => index of column in table (starting at 1)
  18. IS_NULLABLE String => ISO rules are used to determine the nullability for a column.
    • YES --- if the column can include NULLs
    • NO --- if the column cannot include NULLs
    • empty string --- if the nullability for the column is unknown
  19. SCOPE_CATALOG String => catalog of table that is the scope of a reference attribute (null if DATA_TYPE isn't REF)
  20. SCOPE_SCHEMA String => schema of table that is the scope of a reference attribute (null if the DATA_TYPE isn't REF)
  21. SCOPE_TABLE String => table name that this the scope of a reference attribute (null if the DATA_TYPE isn't REF)
  22. SOURCE_DATA_TYPE short => source type of a distinct type or user-generated Ref type, SQL type from java.sql.Types (null if DATA_TYPE isn't DISTINCT or user-generated REF)
  23. IS_AUTOINCREMENT String => Indicates whether this column is auto incremented
    • YES --- if the column is auto incremented
    • NO --- if the column is not auto incremented
    • empty string --- if it cannot be determined whether the column is auto incremented
  24. IS_GENERATEDCOLUMN String => Indicates whether this is a generated column
    • YES --- if this a generated column
    • NO --- if this not a generated column
    • empty string --- if it cannot be determined whether this is a generated column

COLUMN_SIZE列指定给定列的列大小。 对于数字数据,这是最高精度。 对于字符数据,这是以字符为单位的长度。 对于datetime数据类型,这是字符串表示的字符长度(假设小数秒组件的最大允许精度)。 对于二进制数据,这是以字节为单位的长度。 对于ROWID数据类型,这是以字节为单位的长度。 对于列大小不适用的数据类型返回空值。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
tableNamePattern String: a table name pattern; must match the table name as it is stored in the database
columnNamePattern String: a column name pattern; must match the column name as it is stored in the database
Returns
ResultSet ResultSet - each row is a column description
Throws
SQLException if a database access error occurs

也可以看看:

getConnection

Added in API level 1
Connection getConnection ()

检索产生这个元数据对象的连接。

Returns
Connection the connection that produced this metadata object
Throws
SQLException if a database access error occurs

getCrossReference

Added in API level 1
ResultSet getCrossReference (String parentCatalog, 
                String parentSchema, 
                String parentTable, 
                String foreignCatalog, 
                String foreignSchema, 
                String foreignTable)

检索给定外键表中引用主键或表示父表的唯一约束(可能是相同或不同表)的列的外键列的描述。 从父表中返回的列数必须与构成外键的列数相匹配。 它们由FKTABLE_CAT,FKTABLE_SCHEM,FKTABLE_NAME和KEY_SEQ定购。

每个外键列描述都有以下列:

  1. PKTABLE_CAT String => parent key table catalog (may be null)
  2. PKTABLE_SCHEM String => parent key table schema (may be null)
  3. PKTABLE_NAME String => parent key table name
  4. PKCOLUMN_NAME String => parent key column name
  5. FKTABLE_CAT String => foreign key table catalog (may be null) being exported (may be null)
  6. FKTABLE_SCHEM String => foreign key table schema (may be null) being exported (may be null)
  7. FKTABLE_NAME String => foreign key table name being exported
  8. FKCOLUMN_NAME String => foreign key column name being exported
  9. KEY_SEQ short => sequence number within foreign key( a value of 1 represents the first column of the foreign key, a value of 2 would represent the second column within the foreign key).
  10. UPDATE_RULE short => What happens to foreign key when parent key is updated:
    • importedNoAction - do not allow update of parent key if it has been imported
    • importedKeyCascade - change imported key to agree with parent key update
    • importedKeySetNull - change imported key to NULL if its parent key has been updated
    • importedKeySetDefault - change imported key to default values if its parent key has been updated
    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
  11. DELETE_RULE short => What happens to the foreign key when parent key is deleted.
    • importedKeyNoAction - do not allow delete of parent key if it has been imported
    • importedKeyCascade - delete rows that import a deleted key
    • importedKeySetNull - change imported key to NULL if its primary key has been deleted
    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
    • importedKeySetDefault - change imported key to default if its parent key has been deleted
  12. FK_NAME String => foreign key name (may be null)
  13. PK_NAME String => parent key name (may be null)
  14. DEFERRABILITY short => can the evaluation of foreign key constraints be deferred until commit
    • importedKeyInitiallyDeferred - see SQL92 for definition
    • importedKeyInitiallyImmediate - see SQL92 for definition
    • importedKeyNotDeferrable - see SQL92 for definition

Parameters
parentCatalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means drop catalog name from the selection criteria
parentSchema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means drop schema name from the selection criteria
parentTable String: the name of the table that exports the key; must match the table name as it is stored in the database
foreignCatalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means drop catalog name from the selection criteria
foreignSchema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means drop schema name from the selection criteria
foreignTable String: the name of the table that imports the key; must match the table name as it is stored in the database
Returns
ResultSet ResultSet - each row is a foreign key column description
Throws
SQLException if a database access error occurs

也可以看看:

getDatabaseMajorVersion

Added in API level 1
int getDatabaseMajorVersion ()

检索底层数据库的主要版本号。

Returns
int the underlying database's major version
Throws
SQLException if a database access error occurs

getDatabaseMinorVersion

Added in API level 1
int getDatabaseMinorVersion ()

检索基础数据库的次要版本号。

Returns
int underlying database's minor version
Throws
SQLException if a database access error occurs

getDatabaseProductName

Added in API level 1
String getDatabaseProductName ()

检索此数据库产品的名称。

Returns
String database product name
Throws
SQLException if a database access error occurs

getDatabaseProductVersion

Added in API level 1
String getDatabaseProductVersion ()

检索此数据库产品的版本号。

Returns
String database version number
Throws
SQLException if a database access error occurs

getDefaultTransactionIsolation

Added in API level 1
int getDefaultTransactionIsolation ()

检索此数据库的默认事务隔离级别。 可能的值在java.sql.Connection中定义。

Returns
int the default isolation level
Throws
SQLException if a database access error occurs

也可以看看:

getDriverMajorVersion

Added in API level 1
int getDriverMajorVersion ()

检索此JDBC驱动程序的主要版本号。

Returns
int JDBC driver major version

getDriverMinorVersion

Added in API level 1
int getDriverMinorVersion ()

检索此JDBC驱动程序的次要版本号。

Returns
int JDBC driver minor version number

getDriverName

Added in API level 1
String getDriverName ()

检索此JDBC驱动程序的名称。

Returns
String JDBC driver name
Throws
SQLException if a database access error occurs

getDriverVersion

Added in API level 1
String getDriverVersion ()

String检索此JDBC驱动程序的版本号。

Returns
String JDBC driver version
Throws
SQLException if a database access error occurs

getExportedKeys

Added in API level 1
ResultSet getExportedKeys (String catalog, 
                String schema, 
                String table)

检索引用给定表的主键列(由表导出的外键)的外键列的描述。 它们由FKTABLE_CAT,FKTABLE_SCHEM,FKTABLE_NAME和KEY_SEQ定购。

每个外键列描述都有以下列:

  1. PKTABLE_CAT String => primary key table catalog (may be null)
  2. PKTABLE_SCHEM String => primary key table schema (may be null)
  3. PKTABLE_NAME String => primary key table name
  4. PKCOLUMN_NAME String => primary key column name
  5. FKTABLE_CAT String => foreign key table catalog (may be null) being exported (may be null)
  6. FKTABLE_SCHEM String => foreign key table schema (may be null) being exported (may be null)
  7. FKTABLE_NAME String => foreign key table name being exported
  8. FKCOLUMN_NAME String => foreign key column name being exported
  9. KEY_SEQ short => sequence number within foreign key( a value of 1 represents the first column of the foreign key, a value of 2 would represent the second column within the foreign key).
  10. UPDATE_RULE short => What happens to foreign key when primary is updated:
    • importedNoAction - do not allow update of primary key if it has been imported
    • importedKeyCascade - change imported key to agree with primary key update
    • importedKeySetNull - change imported key to NULL if its primary key has been updated
    • importedKeySetDefault - change imported key to default values if its primary key has been updated
    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
  11. DELETE_RULE short => What happens to the foreign key when primary is deleted.
    • importedKeyNoAction - do not allow delete of primary key if it has been imported
    • importedKeyCascade - delete rows that import a deleted key
    • importedKeySetNull - change imported key to NULL if its primary key has been deleted
    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
    • importedKeySetDefault - change imported key to default if its primary key has been deleted
  12. FK_NAME String => foreign key name (may be null)
  13. PK_NAME String => primary key name (may be null)
  14. DEFERRABILITY short => can the evaluation of foreign key constraints be deferred until commit
    • importedKeyInitiallyDeferred - see SQL92 for definition
    • importedKeyInitiallyImmediate - see SQL92 for definition
    • importedKeyNotDeferrable - see SQL92 for definition

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in this database
Returns
ResultSet a ResultSet object in which each row is a foreign key column description
Throws
SQLException if a database access error occurs

也可以看看:

getExtraNameCharacters

Added in API level 1
String getExtraNameCharacters ()

检索可用于未加引号的标识符名称(超出az,AZ,0-9和_的那些)的所有“额外”字符。

Returns
String the string containing the extra characters
Throws
SQLException if a database access error occurs

getFunctionColumns

Added in API level 9
ResultSet getFunctionColumns (String catalog, 
                String schemaPattern, 
                String functionNamePattern, 
                String columnNamePattern)

检索给定目录的系统或用户功能参数和返回类型的描述。

只返回符合模式,功能和参数名称标准的描述。 他们被下令FUNCTION_CATFUNCTION_SCHEMFUNCTION_NAMESPECIFIC_ NAME 在此范围内,返回值(如果有的话)是第一个。 接下来是呼叫顺序中的参数描述。 列描述以列号顺序进行。

ResultSet中的每一行都是参数描述,列描述或返回类型描述,其中包含以下字段:

  1. FUNCTION_CAT String => function catalog (may be null)
  2. FUNCTION_SCHEM String => function schema (may be null)
  3. FUNCTION_NAME String => function name. This is the name used to invoke the function
  4. COLUMN_NAME String => column/parameter name
  5. COLUMN_TYPE Short => kind of column/parameter:
    • functionColumnUnknown - nobody knows
    • functionColumnIn - IN parameter
    • functionColumnInOut - INOUT parameter
    • functionColumnOut - OUT parameter
    • functionColumnReturn - function return value
    • functionColumnResult - Indicates that the parameter or column is a column in the ResultSet
  6. DATA_TYPE int => SQL type from java.sql.Types
  7. TYPE_NAME String => SQL type name, for a UDT type the type name is fully qualified
  8. PRECISION int => precision
  9. LENGTH int => length in bytes of data
  10. SCALE short => scale - null is returned for data types where SCALE is not applicable.
  11. RADIX short => radix
  12. NULLABLE short => can it contain NULL.
    • functionNoNulls - does not allow NULL values
    • functionNullable - allows NULL values
    • functionNullableUnknown - nullability unknown
  13. REMARKS String => comment describing column/parameter
  14. CHAR_OCTET_LENGTH int => the maximum length of binary and character based parameters or columns. For any other datatype the returned value is a NULL
  15. ORDINAL_POSITION int => the ordinal position, starting from 1, for the input and output parameters. A value of 0 is returned if this row describes the function's return value. For result set columns, it is the ordinal position of the column in the result set starting from 1.
  16. IS_NULLABLE String => ISO rules are used to determine the nullability for a parameter or column.
    • YES --- if the parameter or column can include NULLs
    • NO --- if the parameter or column cannot include NULLs
    • empty string --- if the nullability for the parameter or column is unknown
  17. SPECIFIC_NAME String => the name which uniquely identifies this function within its schema. This is a user specified, or DBMS generated, name that may be different then the FUNCTION_NAME for example with overload functions

PRECISION列表示给定参数或列的指定列大小。 对于数字数据,这是最高精度。 对于字符数据,这是以字符为单位的长度。 对于datetime数据类型,这是字符串表示的字符长度(假设小数秒组件的最大允许精度)。 对于二进制数据,这是以字节为单位的长度。 对于ROWID数据类型,这是以字节为单位的长度。 对于列大小不适用的数据类型返回空值。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
functionNamePattern String: a procedure name pattern; must match the function name as it is stored in the database
columnNamePattern String: a parameter name pattern; must match the parameter or column name as it is stored in the database
Returns
ResultSet ResultSet - each row describes a user function parameter, column or return type
Throws
SQLException if a database access error occurs

也可以看看:

getFunctions

Added in API level 9
ResultSet getFunctions (String catalog, 
                String schemaPattern, 
                String functionNamePattern)

检索给定目录中可用的系统和用户功能的描述。

只返回匹配模式和函数名称标准的系统和用户函数描述。 他们被下令FUNCTION_CATFUNCTION_SCHEMFUNCTION_NAMESPECIFIC_ NAME

每个功能说明都有以下几列:

  1. FUNCTION_CAT String => function catalog (may be null)
  2. FUNCTION_SCHEM String => function schema (may be null)
  3. FUNCTION_NAME String => function name. This is the name used to invoke the function
  4. REMARKS String => explanatory comment on the function
  5. FUNCTION_TYPE short => kind of function:
    • functionResultUnknown - Cannot determine if a return value or table will be returned
    • functionNoTable- Does not return a table
    • functionReturnsTable - Returns a table
  6. SPECIFIC_NAME String => the name which uniquely identifies this function within its schema. This is a user specified, or DBMS generated, name that may be different then the FUNCTION_NAME for example with overload functions

用户可能没有权限执行由 getFunctions返回的任何函数

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
functionNamePattern String: a function name pattern; must match the function name as it is stored in the database
Returns
ResultSet ResultSet - each row is a function description
Throws
SQLException if a database access error occurs

也可以看看:

getIdentifierQuoteString

Added in API level 1
String getIdentifierQuoteString ()

检索用于引用SQL标识符的字符串。 如果标识符引用不受支持,则此方法返回空格“”。

Returns
String the quoting string or a space if quoting is not supported
Throws
SQLException if a database access error occurs

getImportedKeys

Added in API level 1
ResultSet getImportedKeys (String catalog, 
                String schema, 
                String table)

检索由给定表的外键列(由表导入的主键)引用的主键列的描述。 它们由PKTABLE_CAT,PKTABLE_SCHEM,PKTABLE_NAME和KEY_SEQ进行排序。

每个主键列描述都有以下列:

  1. PKTABLE_CAT String => primary key table catalog being imported (may be null)
  2. PKTABLE_SCHEM String => primary key table schema being imported (may be null)
  3. PKTABLE_NAME String => primary key table name being imported
  4. PKCOLUMN_NAME String => primary key column name being imported
  5. FKTABLE_CAT String => foreign key table catalog (may be null)
  6. FKTABLE_SCHEM String => foreign key table schema (may be null)
  7. FKTABLE_NAME String => foreign key table name
  8. FKCOLUMN_NAME String => foreign key column name
  9. KEY_SEQ short => sequence number within a foreign key( a value of 1 represents the first column of the foreign key, a value of 2 would represent the second column within the foreign key).
  10. UPDATE_RULE short => What happens to a foreign key when the primary key is updated:
    • importedNoAction - do not allow update of primary key if it has been imported
    • importedKeyCascade - change imported key to agree with primary key update
    • importedKeySetNull - change imported key to NULL if its primary key has been updated
    • importedKeySetDefault - change imported key to default values if its primary key has been updated
    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
  11. DELETE_RULE short => What happens to the foreign key when primary is deleted.
    • importedKeyNoAction - do not allow delete of primary key if it has been imported
    • importedKeyCascade - delete rows that import a deleted key
    • importedKeySetNull - change imported key to NULL if its primary key has been deleted
    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
    • importedKeySetDefault - change imported key to default if its primary key has been deleted
  12. FK_NAME String => foreign key name (may be null)
  13. PK_NAME String => primary key name (may be null)
  14. DEFERRABILITY short => can the evaluation of foreign key constraints be deferred until commit
    • importedKeyInitiallyDeferred - see SQL92 for definition
    • importedKeyInitiallyImmediate - see SQL92 for definition
    • importedKeyNotDeferrable - see SQL92 for definition

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in the database
Returns
ResultSet ResultSet - each row is a primary key column description
Throws
SQLException if a database access error occurs

也可以看看:

getIndexInfo

Added in API level 1
ResultSet getIndexInfo (String catalog, 
                String schema, 
                String table, 
                boolean unique, 
                boolean approximate)

检索给定表格的索引和统计信息的描述。 它们由NON_UNIQUE,TYPE,INDEX_NAME和ORDINAL_POSITION命令。

每个索引列描述包含以下列:

  1. TABLE_CAT String => table catalog (may be null)
  2. TABLE_SCHEM String => table schema (may be null)
  3. TABLE_NAME String => table name
  4. NON_UNIQUE boolean => Can index values be non-unique. false when TYPE is tableIndexStatistic
  5. INDEX_QUALIFIER String => index catalog (may be null); null when TYPE is tableIndexStatistic
  6. INDEX_NAME String => index name; null when TYPE is tableIndexStatistic
  7. TYPE short => index type:
    • tableIndexStatistic - this identifies table statistics that are returned in conjuction with a table's index descriptions
    • tableIndexClustered - this is a clustered index
    • tableIndexHashed - this is a hashed index
    • tableIndexOther - this is some other style of index
  8. ORDINAL_POSITION short => column sequence number within index; zero when TYPE is tableIndexStatistic
  9. COLUMN_NAME String => column name; null when TYPE is tableIndexStatistic
  10. ASC_OR_DESC String => column sort sequence, "A" => ascending, "D" => descending, may be null if sort sequence is not supported; null when TYPE is tableIndexStatistic
  11. CARDINALITY int => When TYPE is tableIndexStatistic, then this is the number of rows in the table; otherwise, it is the number of unique values in the index.
  12. PAGES int => When TYPE is tableIndexStatisic then this is the number of pages used for the table, otherwise it is the number of pages used for the current index.
  13. FILTER_CONDITION String => Filter condition, if any. (may be null)

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in this database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in this database
unique boolean: when true, return only indices for unique values; when false, return indices regardless of whether unique or not
approximate boolean: when true, result is allowed to reflect approximate or out of data values; when false, results are requested to be accurate
Returns
ResultSet ResultSet - each row is an index column description
Throws
SQLException if a database access error occurs

getJDBCMajorVersion

Added in API level 1
int getJDBCMajorVersion ()

检索此驱动程序的主要JDBC版本号。

Returns
int JDBC version major number
Throws
SQLException if a database access error occurs

getJDBCMinorVersion

Added in API level 1
int getJDBCMinorVersion ()

检索此驱动程序的次要JDBC版本号。

Returns
int JDBC version minor number
Throws
SQLException if a database access error occurs

getMaxBinaryLiteralLength

Added in API level 1
int getMaxBinaryLiteralLength ()

在内联二进制文字中检索此数据库允许的最大十六进制字符数。

Returns
int max the maximum length (in hex characters) for a binary literal; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxCatalogNameLength

Added in API level 1
int getMaxCatalogNameLength ()

检索此数据库在目录名称中允许的最大字符数。

Returns
int the maximum number of characters allowed in a catalog name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxCharLiteralLength

Added in API level 1
int getMaxCharLiteralLength ()

检索此数据库允许的字符文字的最大字符数。

Returns
int the maximum number of characters allowed for a character literal; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxColumnNameLength

Added in API level 1
int getMaxColumnNameLength ()

检索此数据库允许列名称的最大字符数。

Returns
int the maximum number of characters allowed for a column name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxColumnsInGroupBy

Added in API level 1
int getMaxColumnsInGroupBy ()

GROUP BY子句中检索此数据库允许的最大列数。

Returns
int the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxColumnsInIndex

Added in API level 1
int getMaxColumnsInIndex ()

检索此数据库在索引中允许的最大列数。

Returns
int the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxColumnsInOrderBy

Added in API level 1
int getMaxColumnsInOrderBy ()

ORDER BY子句中检索此数据库允许的最大列数。

Returns
int the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxColumnsInSelect

Added in API level 1
int getMaxColumnsInSelect ()

SELECT列表中检索此数据库允许的最大列数。

Returns
int the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxColumnsInTable

Added in API level 1
int getMaxColumnsInTable ()

检索此数据库在表中允许的最大列数。

Returns
int the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxConnections

Added in API level 1
int getMaxConnections ()

检索可能的并发连接到此数据库的最大数量。

Returns
int the maximum number of active connections possible at one time; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxCursorNameLength

Added in API level 1
int getMaxCursorNameLength ()

检索此数据库在游标名称中允许的最大字符数。

Returns
int the maximum number of characters allowed in a cursor name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxIndexLength

Added in API level 1
int getMaxIndexLength ()

检索数据库允许索引的最大字节数,包括索引的所有部分。

Returns
int the maximum number of bytes allowed; this limit includes the composite of all the constituent parts of the index; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxProcedureNameLength

Added in API level 1
int getMaxProcedureNameLength ()

在过程名称中检索此数据库允许的最大字符数。

Returns
int the maximum number of characters allowed in a procedure name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxRowSize

Added in API level 1
int getMaxRowSize ()

检索单个数据库允许的最大字节数。

Returns
int the maximum number of bytes allowed for a row; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxSchemaNameLength

Added in API level 1
int getMaxSchemaNameLength ()

检索此数据库在模式名称中允许的最大字符数。

Returns
int the maximum number of characters allowed in a schema name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxStatementLength

Added in API level 1
int getMaxStatementLength ()

检索此数据库在SQL语句中允许的最大字符数。

Returns
int the maximum number of characters allowed for an SQL statement; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxStatements

Added in API level 1
int getMaxStatements ()

检索可以同时打开的最大数量的活动语句到此数据库。

Returns
int the maximum number of statements that can be open at one time; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxTableNameLength

Added in API level 1
int getMaxTableNameLength ()

在表名中检索此数据库允许的最大字符数。

Returns
int the maximum number of characters allowed for a table name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxTablesInSelect

Added in API level 1
int getMaxTablesInSelect ()

SELECT语句中检索此数据库允许的最大表数。

Returns
int the maximum number of tables allowed in a SELECT statement; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getMaxUserNameLength

Added in API level 1
int getMaxUserNameLength ()

在用户名中检索此数据库允许的最大字符数。

Returns
int the maximum number of characters allowed for a user name; a result of zero means that there is no limit or the limit is not known
Throws
SQLException if a database access error occurs

getNumericFunctions

Added in API level 1
String getNumericFunctions ()

检索此数据库可用的数学函数的逗号分隔列表。 这些是JDBC函数escape子句中使用的Open / Open CLI数学函数名称。

Returns
String the list of math functions supported by this database
Throws
SQLException if a database access error occurs

getPrimaryKeys

Added in API level 1
ResultSet getPrimaryKeys (String catalog, 
                String schema, 
                String table)

检索给定表的主键列的描述。 他们由COLUMN_NAME订购。

每个主键列描述都有以下列:

  1. TABLE_CAT String => table catalog (may be null)
  2. TABLE_SCHEM String => table schema (may be null)
  3. TABLE_NAME String => table name
  4. COLUMN_NAME String => column name
  5. KEY_SEQ short => sequence number within primary key( a value of 1 represents the first column of the primary key, a value of 2 would represent the second column within the primary key).
  6. PK_NAME String => primary key name (may be null)

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in the database
Returns
ResultSet ResultSet - each row is a primary key column description
Throws
SQLException if a database access error occurs

getProcedureColumns

Added in API level 1
ResultSet getProcedureColumns (String catalog, 
                String schemaPattern, 
                String procedureNamePattern, 
                String columnNamePattern)

检索给定目录的存储过程参数和结果列的描述。

只返回符合模式,过程和参数名称标准的描述。 它们由PROCEDURE_CAT,PROCEDURE_SCHEM,PROCEDURE_NAME和SPECIFIC_NAME进行排序。 在此范围内,返回值(如果有的话)是第一个。 接下来是呼叫顺序中的参数描述。 列描述以列号顺序进行。

ResultSet中的每一行都是带有以下字段的参数描述或列描述:

  1. PROCEDURE_CAT String => procedure catalog (may be null)
  2. PROCEDURE_SCHEM String => procedure schema (may be null)
  3. PROCEDURE_NAME String => procedure name
  4. COLUMN_NAME String => column/parameter name
  5. COLUMN_TYPE Short => kind of column/parameter:
    • procedureColumnUnknown - nobody knows
    • procedureColumnIn - IN parameter
    • procedureColumnInOut - INOUT parameter
    • procedureColumnOut - OUT parameter
    • procedureColumnReturn - procedure return value
    • procedureColumnResult - result column in ResultSet
  6. DATA_TYPE int => SQL type from java.sql.Types
  7. TYPE_NAME String => SQL type name, for a UDT type the type name is fully qualified
  8. PRECISION int => precision
  9. LENGTH int => length in bytes of data
  10. SCALE short => scale - null is returned for data types where SCALE is not applicable.
  11. RADIX short => radix
  12. NULLABLE short => can it contain NULL.
    • procedureNoNulls - does not allow NULL values
    • procedureNullable - allows NULL values
    • procedureNullableUnknown - nullability unknown
  13. REMARKS String => comment describing parameter/column
  14. COLUMN_DEF String => default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be null)
    • The string NULL (not enclosed in quotes) - if NULL was specified as the default value
    • TRUNCATE (not enclosed in quotes) - if the specified default value cannot be represented without truncation
    • NULL - if a default value was not specified
  15. SQL_DATA_TYPE int => reserved for future use
  16. SQL_DATETIME_SUB int => reserved for future use
  17. CHAR_OCTET_LENGTH int => the maximum length of binary and character based columns. For any other datatype the returned value is a NULL
  18. ORDINAL_POSITION int => the ordinal position, starting from 1, for the input and output parameters for a procedure. A value of 0 is returned if this row describes the procedure's return value. For result set columns, it is the ordinal position of the column in the result set starting from 1. If there are multiple result sets, the column ordinal positions are implementation defined.
  19. IS_NULLABLE String => ISO rules are used to determine the nullability for a column.
    • YES --- if the column can include NULLs
    • NO --- if the column cannot include NULLs
    • empty string --- if the nullability for the column is unknown
  20. SPECIFIC_NAME String => the name which uniquely identifies this procedure within its schema.

注意:有些数据库可能不会返回过程的列描述。

PRECISION列表示给定列的指定列大小。 对于数字数据,这是最高精度。 对于字符数据,这是以字符为单位的长度。 对于datetime数据类型,这是字符串表示的字符长度(假设小数秒组件的最大允许精度)。 对于二进制数据,这是以字节为单位的长度。 对于ROWID数据类型,这是以字节为单位的长度。 对于列大小不适用的数据类型返回空值。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
procedureNamePattern String: a procedure name pattern; must match the procedure name as it is stored in the database
columnNamePattern String: a column name pattern; must match the column name as it is stored in the database
Returns
ResultSet ResultSet - each row describes a stored procedure parameter or column
Throws
SQLException if a database access error occurs

也可以看看:

getProcedureTerm

Added in API level 1
String getProcedureTerm ()

检索数据库供应商对“过程”的首选术语。

Returns
String the vendor term for "procedure"
Throws
SQLException if a database access error occurs

getProcedures

Added in API level 1
ResultSet getProcedures (String catalog, 
                String schemaPattern, 
                String procedureNamePattern)

检索给定目录中可用的存储过程的描述。

只返回匹配模式和过程名称标准的过程描述。 他们被下令PROCEDURE_CATPROCEDURE_SCHEMPROCEDURE_NAMESPECIFIC_ NAME

每个程序说明都有以下列:

  1. PROCEDURE_CAT String => procedure catalog (may be null)
  2. PROCEDURE_SCHEM String => procedure schema (may be null)
  3. PROCEDURE_NAME String => procedure name
  4. reserved for future use
  5. reserved for future use
  6. reserved for future use
  7. REMARKS String => explanatory comment on the procedure
  8. PROCEDURE_TYPE short => kind of procedure:
    • procedureResultUnknown - Cannot determine if a return value will be returned
    • procedureNoResult - Does not return a return value
    • procedureReturnsResult - Returns a return value
  9. SPECIFIC_NAME String => The name which uniquely identifies this procedure within its schema.

用户可能没有权限执行由 getProcedures返回的任何过程

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
procedureNamePattern String: a procedure name pattern; must match the procedure name as it is stored in the database
Returns
ResultSet ResultSet - each row is a procedure description
Throws
SQLException if a database access error occurs

也可以看看:

getResultSetHoldability

Added in API level 1
int getResultSetHoldability ()

检索此数据库的 ResultSet对象的默认可保存性。

Returns
int the default holdability; either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
Throws
SQLException if a database access error occurs

getRowIdLifetime

Added in API level 9
RowIdLifetime getRowIdLifetime ()

指示此数据源是否支持SQL ROWID类型,如果是, RowId对象保持有效的生存期。

返回的int值具有以下关系:

     ROWID_UNSUPPORTED < ROWID_VALID_OTHER < ROWID_VALID_TRANSACTION
         < ROWID_VALID_SESSION < ROWID_VALID_FOREVER
 
so conditional logic such as
     if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION)
 
can be used. Valid Forever means valid across all Sessions, and valid for a Session means valid across all its contained Transactions.

Returns
RowIdLifetime the status indicating the lifetime of a RowId
Throws
SQLException if a database access error occurs

getSQLKeywords

Added in API level 1
String getSQLKeywords ()

检索不是SQL:2003关键字的所有此数据库的SQL关键字的逗号分隔列表。

Returns
String the list of this database's keywords that are not also SQL:2003 keywords
Throws
SQLException if a database access error occurs

getSQLStateType

Added in API level 1
int getSQLStateType ()

指示 SQLException.getSQLState返回的SQLSTATE是X / Open(现在称为Open Group)SQL CLI还是SQL:2003。

Returns
int the type of SQLSTATE; one of: sqlStateXOpen or sqlStateSQL
Throws
SQLException if a database access error occurs

getSchemaTerm

Added in API level 1
String getSchemaTerm ()

检索数据库供应商对“模式”的首选术语。

Returns
String the vendor term for "schema"
Throws
SQLException if a database access error occurs

getSchemas

Added in API level 9
ResultSet getSchemas (String catalog, 
                String schemaPattern)

检索此数据库中可用的模式名称。 结果由TABLE_CATALOGTABLE_SCHEM

模式列是:

  1. TABLE_SCHEM String => schema name
  2. TABLE_CATALOG String => catalog name (may be null)

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database;"" retrieves those without a catalog; null means catalog name should not be used to narrow down the search.
schemaPattern String: a schema name; must match the schema name as it is stored in the database; null means schema name should not be used to narrow down the search.
Returns
ResultSet a ResultSet object in which each row is a schema description
Throws
SQLException if a database access error occurs

也可以看看:

getSchemas

Added in API level 1
ResultSet getSchemas ()

检索此数据库中可用的模式名称。 结果由TABLE_CATALOGTABLE_SCHEM

模式列是:

  1. TABLE_SCHEM String => schema name
  2. TABLE_CATALOG String => catalog name (may be null)

Returns
ResultSet a ResultSet object in which each row is a schema description
Throws
SQLException if a database access error occurs

getSearchStringEscape

Added in API level 1
String getSearchStringEscape ()

检索可用于转义通配符的字符串。 这是可用于在作为模式的目录搜索参数中跳过'_'或'%'的字符串(因此使用其中一个通配符)。

'_'字符表示任何单个字符; '%'字符表示零个或多个字符的任何序列。

Returns
String the string used to escape wildcard characters
Throws
SQLException if a database access error occurs

getStringFunctions

Added in API level 1
String getStringFunctions ()

检索此数据库可用的字符串函数的逗号分隔列表。 这些是JDBC函数escape子句中使用的Open Group CLI字符串函数名称。

Returns
String the list of string functions supported by this database
Throws
SQLException if a database access error occurs

getSuperTables

Added in API level 1
ResultSet getSuperTables (String catalog, 
                String schemaPattern, 
                String tableNamePattern)

检索此数据库中特定模式中定义的表层次结构的描述。

只返回匹配目录,模式和表名称的表的超类信息。 表名参数可能是完全限定的名称,在这种情况下,catalog和schemaPattern参数将被忽略。 如果一个表没有超级表,那么这里没有列出。 超类必须在与子表相同的目录和模式中定义。 因此,类型描述不需要包含超类的这个信息。

每种类型描述都有以下列:

  1. TABLE_CAT String => the type's catalog (may be null)
  2. TABLE_SCHEM String => type's schema (may be null)
  3. TABLE_NAME String => type name
  4. SUPERTABLE_NAME String => the direct super type's name

注意:如果驱动程序不支持类型层次结构,则返回空结果集。

Parameters
catalog String: a catalog name; "" retrieves those without a catalog; null means drop catalog name from the selection criteria
schemaPattern String: a schema name pattern; "" retrieves those without a schema
tableNamePattern String: a table name pattern; may be a fully-qualified name
Returns
ResultSet a ResultSet object in which each row is a type description
Throws
SQLException if a database access error occurs

也可以看看:

getSuperTypes

Added in API level 1
ResultSet getSuperTypes (String catalog, 
                String schemaPattern, 
                String typeNamePattern)

检索此数据库中特定模式中定义的用户定义类型(UDT)层次结构的描述。 只建立直接的超类型/子类型关系。

仅返回与目录,模式和类型名称匹配的UDT的超类型信息。 类型名称参数可以是完全限定的名称。 当提供的UDT名称是完全限定名称时,将忽略catalog和schemaPattern参数。

如果UDT没有直接超类型,则不在此处列出。 此方法返回的一行ResultSet对象描述了指定的UDT和直接的超类型。 一行具有以下列:

  1. TYPE_CAT String => the UDT's catalog (may be null)
  2. TYPE_SCHEM String => UDT's schema (may be null)
  3. TYPE_NAME String => type name of the UDT
  4. SUPERTYPE_CAT String => the direct super type's catalog (may be null)
  5. SUPERTYPE_SCHEM String => the direct super type's schema (may be null)
  6. SUPERTYPE_NAME String => the direct super type's name

注意:如果驱动程序不支持类型层次结构,则返回空结果集。

Parameters
catalog String: a catalog name; "" retrieves those without a catalog; null means drop catalog name from the selection criteria
schemaPattern String: a schema name pattern; "" retrieves those without a schema
typeNamePattern String: a UDT name pattern; may be a fully-qualified name
Returns
ResultSet a ResultSet object in which a row gives information about the designated UDT
Throws
SQLException if a database access error occurs

也可以看看:

getSystemFunctions

Added in API level 1
String getSystemFunctions ()

检索此数据库可用的系统函数的逗号分隔列表。 这些是JDBC函数escape子句中使用的Open Group CLI系统函数名称。

Returns
String a list of system functions supported by this database
Throws
SQLException if a database access error occurs

getTablePrivileges

Added in API level 1
ResultSet getTablePrivileges (String catalog, 
                String schemaPattern, 
                String tableNamePattern)

检索目录中每个表的访问权限说明。 请注意,表特权适用于表中的一个或多个列。 假设这个特权适用于所有列是错误的(对某些系统来说这可能是正确的,但对所有的系统都是不正确的)。

只返回符合架构和表名称标准的权限。 他们被下令TABLE_CATTABLE_SCHEMTABLE_NAME ,并PRIVILEGE

每个特权描述包含以下列:

  1. TABLE_CAT String => table catalog (may be null)
  2. TABLE_SCHEM String => table schema (may be null)
  3. TABLE_NAME String => table name
  4. GRANTOR String => grantor of access (may be null)
  5. GRANTEE String => grantee of access
  6. PRIVILEGE String => name of access (SELECT, INSERT, UPDATE, REFRENCES, ...)
  7. IS_GRANTABLE String => "YES" if grantee is permitted to grant to others; "NO" if not; null if unknown

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
tableNamePattern String: a table name pattern; must match the table name as it is stored in the database
Returns
ResultSet ResultSet - each row is a table privilege description
Throws
SQLException if a database access error occurs

也可以看看:

getTableTypes

Added in API level 1
ResultSet getTableTypes ()

检索此数据库中可用的表类型。 结果按表格类型排序。

表格类型是:

  1. TABLE_TYPE String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".

Returns
ResultSet a ResultSet object in which each row has a single String column that is a table type
Throws
SQLException if a database access error occurs

getTables

Added in API level 1
ResultSet getTables (String catalog, 
                String schemaPattern, 
                String tableNamePattern, 
                String[] types)

检索给定目录中可用表格的描述。 仅返回与目录,模式,表名和类型标准相匹配的表格描述。 他们被下令TABLE_TYPETABLE_CATTABLE_SCHEMTABLE_NAME

每个表格描述包含以下列:

  1. TABLE_CAT String => table catalog (may be null)
  2. TABLE_SCHEM String => table schema (may be null)
  3. TABLE_NAME String => table name
  4. TABLE_TYPE String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
  5. REMARKS String => explanatory comment on the table
  6. TYPE_CAT String => the types catalog (may be null)
  7. TYPE_SCHEM String => the types schema (may be null)
  8. TYPE_NAME String => type name (may be null)
  9. SELF_REFERENCING_COL_NAME String => name of the designated "identifier" column of a typed table (may be null)
  10. REF_GENERATION String => specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may be null)

注意:某些数据库可能不会返回所有表的信息。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
tableNamePattern String: a table name pattern; must match the table name as it is stored in the database
types String: a list of table types, which must be from the list of table types returned from getTableTypes(),to include; null returns all types
Returns
ResultSet ResultSet - each row is a table description
Throws
SQLException if a database access error occurs

也可以看看:

getTimeDateFunctions

Added in API level 1
String getTimeDateFunctions ()

检索此数据库可用的时间和日期函数的逗号分隔列表。

Returns
String the list of time and date functions supported by this database
Throws
SQLException if a database access error occurs

getTypeInfo

Added in API level 1
ResultSet getTypeInfo ()

检索此数据库支持的所有数据类型的描述。 它们按DATA_TYPE排序,然后按数据类型映射到相应的JDBC SQL类型的方式进行排序。

如果数据库支持SQL不同类型,则getTypeInfo()将返回一行,其中包含DISTINCT的TYPE_NAME和Types.DISTINCT的DATA_TYPE。 如果数据库支持SQL结构化类型,那么getTypeInfo()将返回一个带有STRUCT的TYPE_NAME和Types.STRUCT的DATA_TYPE的单行。

如果支持SQL独特或结构化类型,则可以从getUDTs()方法获取关于各个类型的信息。

每种类型描述都有以下列:

  1. TYPE_NAME String => Type name
  2. DATA_TYPE int => SQL data type from java.sql.Types
  3. PRECISION int => maximum precision
  4. LITERAL_PREFIX String => prefix used to quote a literal (may be null)
  5. LITERAL_SUFFIX String => suffix used to quote a literal (may be null)
  6. CREATE_PARAMS String => parameters used in creating the type (may be null)
  7. NULLABLE short => can you use NULL for this type.
    • typeNoNulls - does not allow NULL values
    • typeNullable - allows NULL values
    • typeNullableUnknown - nullability unknown
  8. CASE_SENSITIVE boolean=> is it case sensitive.
  9. SEARCHABLE short => can you use "WHERE" based on this type:
    • typePredNone - No support
    • typePredChar - Only supported with WHERE .. LIKE
    • typePredBasic - Supported except for WHERE .. LIKE
    • typeSearchable - Supported for all WHERE ..
  10. UNSIGNED_ATTRIBUTE boolean => is it unsigned.
  11. FIXED_PREC_SCALE boolean => can it be a money value.
  12. AUTO_INCREMENT boolean => can it be used for an auto-increment value.
  13. LOCAL_TYPE_NAME String => localized version of type name (may be null)
  14. MINIMUM_SCALE short => minimum scale supported
  15. MAXIMUM_SCALE short => maximum scale supported
  16. SQL_DATA_TYPE int => unused
  17. SQL_DATETIME_SUB int => unused
  18. NUM_PREC_RADIX int => usually 2 or 10

PRECISION列表示服务器支持给定数据类型的最大列大小。 对于数字数据,这是最高精度。 对于字符数据,这是以字符为单位的长度。 对于datetime数据类型,这是字符串表示的字符长度(假设小数秒组件的最大允许精度)。 对于二进制数据,这是以字节为单位的长度。 对于ROWID数据类型,这是以字节为单位的长度。 对于列大小不适用的数据类型返回空值。

Returns
ResultSet a ResultSet object in which each row is an SQL type description
Throws
SQLException if a database access error occurs

getUDTs

Added in API level 1
ResultSet getUDTs (String catalog, 
                String schemaPattern, 
                String typeNamePattern, 
                int[] types)

检索特定模式中定义的用户定义类型(UDT)的描述。 架构特定的UDT可具有型JAVA_OBJECTSTRUCT ,或DISTINCT

仅返回与目录,模式,类型名称和类型标准匹配的类型。 他们被下令DATA_TYPETYPE_CATTYPE_SCHEMTYPE_NAME 类型名称参数可以是完全限定的名称。 在这种情况下,catalog和schemaPattern参数将被忽略。

每种类型描述都有以下列:

  1. TYPE_CAT String => the type's catalog (may be null)
  2. TYPE_SCHEM String => type's schema (may be null)
  3. TYPE_NAME String => type name
  4. CLASS_NAME String => Java class name
  5. DATA_TYPE int => type value defined in java.sql.Types. One of JAVA_OBJECT, STRUCT, or DISTINCT
  6. REMARKS String => explanatory comment on the type
  7. BASE_TYPE short => type code of the source type of a DISTINCT type or the type that implements the user-generated reference type of the SELF_REFERENCING_COLUMN of a structured type as defined in java.sql.Types (null if DATA_TYPE is not DISTINCT or not STRUCT with REFERENCE_GENERATION = USER_DEFINED)

注意:如果驱动程序不支持UDT,则返回一个空的结果集。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schemaPattern String: a schema pattern name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
typeNamePattern String: a type name pattern; must match the type name as it is stored in the database; may be a fully qualified name
types int: a list of user-defined types (JAVA_OBJECT, STRUCT, or DISTINCT) to include; null returns all types
Returns
ResultSet ResultSet object in which each row describes a UDT
Throws
SQLException if a database access error occurs

也可以看看:

getURL

Added in API level 1
String getURL ()

检索此DBMS的URL。

Returns
String the URL for this DBMS or null if it cannot be generated
Throws
SQLException if a database access error occurs

getUserName

Added in API level 1
String getUserName ()

检索此数据库已知的用户名。

Returns
String the database user name
Throws
SQLException if a database access error occurs

getVersionColumns

Added in API level 1
ResultSet getVersionColumns (String catalog, 
                String schema, 
                String table)

检索在更新行中的任何值时自动更新的表格列的描述。 他们是无序的。

每列描述包含以下列:

  1. SCOPE short => is not used
  2. COLUMN_NAME String => column name
  3. DATA_TYPE int => SQL data type from java.sql.Types
  4. TYPE_NAME String => Data source-dependent type name
  5. COLUMN_SIZE int => precision
  6. BUFFER_LENGTH int => length of column value in bytes
  7. DECIMAL_DIGITS short => scale - Null is returned for data types where DECIMAL_DIGITS is not applicable.
  8. PSEUDO_COLUMN short => whether this is pseudo column like an Oracle ROWID
    • versionColumnUnknown - may or may not be pseudo column
    • versionColumnNotPseudo - is NOT a pseudo column
    • versionColumnPseudo - is a pseudo column

COLUMN_SIZE列表示给定列的指定列大小。 对于数字数据,这是最高精度。 对于字符数据,这是以字符为单位的长度。 对于datetime数据类型,这是字符串表示的字符长度(假设小数秒组件的最大允许精度)。 对于二进制数据,这是以字节为单位的长度。 对于ROWID数据类型,这是以字节为单位的长度。 对于列大小不适用的数据类型返回空值。

Parameters
catalog String: a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
schema String: a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
table String: a table name; must match the table name as it is stored in the database
Returns
ResultSet a ResultSet object in which each row is a column description
Throws
SQLException if a database access error occurs

insertsAreDetected

Added in API level 1
boolean insertsAreDetected (int type)

通过调用方法 ResultSet.rowInserted来检索是否可以检测到可见的行插入。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if changes are detected by the specified result set type; false otherwise
Throws
SQLException if a database access error occurs

isCatalogAtStart

Added in API level 1
boolean isCatalogAtStart ()

检索某个目录是否出现在完全限定的表名称的开头。 如果没有,该目录出现在最后。

Returns
boolean true if the catalog name appears at the beginning of a fully qualified table name; false otherwise
Throws
SQLException if a database access error occurs

isReadOnly

Added in API level 1
boolean isReadOnly ()

检索此数据库是否处于只读模式。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

locatorsUpdateCopy

Added in API level 1
boolean locatorsUpdateCopy ()

指示对LOB所做的更新是在副本上还是直接对LOB进行的。

Returns
boolean true if updates are made to a copy of the LOB; false if updates are made directly to the LOB
Throws
SQLException if a database access error occurs

nullPlusNonNullIsNull

Added in API level 1
boolean nullPlusNonNullIsNull ()

检索此数据库是否支持 NULLNULL之间的连接值为 NULL

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

nullsAreSortedAtEnd

Added in API level 1
boolean nullsAreSortedAtEnd ()

检索 NULL值是否在最后排序,无论排序顺序如何。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

nullsAreSortedAtStart

Added in API level 1
boolean nullsAreSortedAtStart ()

检索 NULL值是否在开始时排序,而不管排序顺序如何。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

nullsAreSortedHigh

Added in API level 1
boolean nullsAreSortedHigh ()

检索NULL值是否排序很高。 高排序意味着NULL值排序高于域中的任何其他值。 按升序排列,如果此方法返回true ,则NULL值将显示在最后。 相反,方法nullsAreSortedAtEnd指示NULL值是否在最后排序而不管排序顺序如何。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

nullsAreSortedLow

Added in API level 1
boolean nullsAreSortedLow ()

检索NULL值是否排序较低。 低排序意味着NULL值排序低于域中的任何其他值。 按升序排列,如果此方法返回true ,则NULL值将显示在开头。 相比之下,方法nullsAreSortedAtStart指示NULL值是否在开始时排序而不管排序顺序如何。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

othersDeletesAreVisible

Added in API level 1
boolean othersDeletesAreVisible (int type)

检索其他人所做的删除是否可见。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if deletes made by others are visible for the given result set type; false otherwise
Throws
SQLException if a database access error occurs

othersInsertsAreVisible

Added in API level 1
boolean othersInsertsAreVisible (int type)

检索其他人所做的插入是否可见。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if inserts made by others are visible for the given result set type; false otherwise
Throws
SQLException if a database access error occurs

othersUpdatesAreVisible

Added in API level 1
boolean othersUpdatesAreVisible (int type)

检索其他人所做的更新是否可见。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if updates made by others are visible for the given result set type; false otherwise
Throws
SQLException if a database access error occurs

ownDeletesAreVisible

Added in API level 1
boolean ownDeletesAreVisible (int type)

检索结果集自己的删除是否可见。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if deletes are visible for the given result set type; false otherwise
Throws
SQLException if a database access error occurs

ownInsertsAreVisible

Added in API level 1
boolean ownInsertsAreVisible (int type)

检索结果集自己的插入是否可见。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if inserts are visible for the given result set type; false otherwise
Throws
SQLException if a database access error occurs

ownUpdatesAreVisible

Added in API level 1
boolean ownUpdatesAreVisible (int type)

检索对于给定类型的 ResultSet对象,结果集自己的更新是否可见。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if updates are visible for the given result set type; false otherwise
Throws
SQLException if a database access error occurs

storesLowerCaseIdentifiers

Added in API level 1
boolean storesLowerCaseIdentifiers ()

检索此数据库是否将大小写混写的未加引号的SQL标识符作为不区分大小写的形式处理并以小写形式存储它们。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

storesLowerCaseQuotedIdentifiers

Added in API level 1
boolean storesLowerCaseQuotedIdentifiers ()

检索此数据库是否将大小写混合的带引号的SQL标识符作为不区分大小写的形式处理,并以小写形式存储它们。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

storesMixedCaseIdentifiers

Added in API level 1
boolean storesMixedCaseIdentifiers ()

检索此数据库是否将大小写混合的未加引号的SQL标识符作为不区分大小写的形式处理,并以大小写混合形式存储它们。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

storesMixedCaseQuotedIdentifiers

Added in API level 1
boolean storesMixedCaseQuotedIdentifiers ()

检索此数据库是否将大小写混写的带引号的SQL标识符视为不区分大小写,并将它们以大小写混合形式存储。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

storesUpperCaseIdentifiers

Added in API level 1
boolean storesUpperCaseIdentifiers ()

检索此数据库是否将大小写混写的不带引号的SQL标识符视为不区分大小写,并将其以大写形式存储。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

storesUpperCaseQuotedIdentifiers

Added in API level 1
boolean storesUpperCaseQuotedIdentifiers ()

检索此数据库是否将大小写混合的带引号的SQL标识符视为不区分大小写,并将它们以大写形式存储。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsANSI92EntryLevelSQL

Added in API level 1
boolean supportsANSI92EntryLevelSQL ()

检索此数据库是否支持ANSI92入门级SQL语法。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsANSI92FullSQL

Added in API level 1
boolean supportsANSI92FullSQL ()

检索此数据库是否支持ANSI92完整SQL语法支持。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsANSI92IntermediateSQL

Added in API level 1
boolean supportsANSI92IntermediateSQL ()

检索此数据库是否支持ANSI92中间SQL语法支持。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsAlterTableWithAddColumn

Added in API level 1
boolean supportsAlterTableWithAddColumn ()

检索此数据库是否支持带添加列的 ALTER TABLE

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsAlterTableWithDropColumn

Added in API level 1
boolean supportsAlterTableWithDropColumn ()

检索此数据库是否支持带删除列的 ALTER TABLE

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsBatchUpdates

Added in API level 1
boolean supportsBatchUpdates ()

检索此数据库是否支持批量更新。

Returns
boolean true if this database supports batch upcates; false otherwise
Throws
SQLException if a database access error occurs

supportsCatalogsInDataManipulation

Added in API level 1
boolean supportsCatalogsInDataManipulation ()

检索是否可以在数据操作语句中使用目录名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsCatalogsInIndexDefinitions

Added in API level 1
boolean supportsCatalogsInIndexDefinitions ()

检索是否可以在索引定义语句中使用目录名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsCatalogsInPrivilegeDefinitions

Added in API level 1
boolean supportsCatalogsInPrivilegeDefinitions ()

检索是否可以在特权定义语句中使用目录名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsCatalogsInProcedureCalls

Added in API level 1
boolean supportsCatalogsInProcedureCalls ()

检索过程调用语句中是否可以使用目录名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsCatalogsInTableDefinitions

Added in API level 1
boolean supportsCatalogsInTableDefinitions ()

检索是否可以在表定义语句中使用目录名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsColumnAliasing

Added in API level 1
boolean supportsColumnAliasing ()

检索此数据库是否支持列别名。

如果是这样,则可以使用SQL AS子句为计算列提供名称或根据需要为列提供别名。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsConvert

Added in API level 1
boolean supportsConvert (int fromType, 
                int toType)

获取此数据库是否支持JDBC标量函数CONVERT的JDBC类型fromTypetoType之间的转换。 JDBC类型是java.sql.Types定义的通用SQL数据类型。

Parameters
fromType int: the type to convert from; one of the type codes from the class java.sql.Types
toType int: the type to convert to; one of the type codes from the class java.sql.Types
Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

也可以看看:

supportsConvert

Added in API level 1
boolean supportsConvert ()

检索此数据库是否支持用于将一种JDBC类型转换为另一种类型的JDBC标量函数CONVERT JDBC类型是java.sql.Types定义的通用SQL数据类型。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsCoreSQLGrammar

Added in API level 1
boolean supportsCoreSQLGrammar ()

检索此数据库是否支持ODBC Core SQL语法。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsCorrelatedSubqueries

Added in API level 1
boolean supportsCorrelatedSubqueries ()

检索此数据库是否支持相关的子查询。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsDataDefinitionAndDataManipulationTransactions

Added in API level 1
boolean supportsDataDefinitionAndDataManipulationTransactions ()

检索此数据库是否支持事务中的数据定义和数据操作语句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsDataManipulationTransactionsOnly

Added in API level 1
boolean supportsDataManipulationTransactionsOnly ()

检索此数据库是否仅支持事务内的数据操作语句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsDifferentTableCorrelationNames

Added in API level 1
boolean supportsDifferentTableCorrelationNames ()

检索当表格相关名称被支持时,它们被限制为不同于表格的名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsExpressionsInOrderBy

Added in API level 1
boolean supportsExpressionsInOrderBy ()

检索此数据库是否支持 ORDER BY列表中的表达式。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsExtendedSQLGrammar

Added in API level 1
boolean supportsExtendedSQLGrammar ()

检索此数据库是否支持ODBC扩展SQL语法。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsFullOuterJoins

Added in API level 1
boolean supportsFullOuterJoins ()

检索此数据库是否支持完整的嵌套外连接。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsGetGeneratedKeys

Added in API level 1
boolean supportsGetGeneratedKeys ()

检索语句执行后是否可以检索自动生成的键

Returns
boolean true if auto-generated keys can be retrieved after a statement has executed; false otherwise

如果返回 true ,则JDBC驱动程序必须支持为至少SQL INSERT语句返回自动生成的键

Throws
SQLException if a database access error occurs

supportsGroupBy

Added in API level 1
boolean supportsGroupBy ()

检索此数据库是否支持某种形式的 GROUP BY子句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsGroupByBeyondSelect

Added in API level 1
boolean supportsGroupByBeyondSelect ()

获取此数据库是否支持使用不包含在列 SELECT在一份声明中 GROUP BY条款规定,所有在列 SELECT声明都包含在在 GROUP BY条款。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsGroupByUnrelated

Added in API level 1
boolean supportsGroupByUnrelated ()

检索此数据库是否支持使用不在 GROUP BY子句中的 SELECT语句中的 GROUP BY

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsIntegrityEnhancementFacility

Added in API level 1
boolean supportsIntegrityEnhancementFacility ()

检索此数据库是否支持SQL完整性增强工具。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsLikeEscapeClause

Added in API level 1
boolean supportsLikeEscapeClause ()

检索此数据库是否支持指定 LIKE转义子句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsLimitedOuterJoins

Added in API level 1
boolean supportsLimitedOuterJoins ()

检索此数据库是否为外连接提供有限的支持。 (这将是true ,如果该方法supportsFullOuterJoins返回true )。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsMinimumSQLGrammar

Added in API level 1
boolean supportsMinimumSQLGrammar ()

检索此数据库是否支持ODBC最小SQL语法。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsMixedCaseIdentifiers

Added in API level 1
boolean supportsMixedCaseIdentifiers ()

检索此数据库是否将大小写混写的未加引号的SQL标识符视为区分大小写,并将结果以大小写混合形式存储。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsMixedCaseQuotedIdentifiers

Added in API level 1
boolean supportsMixedCaseQuotedIdentifiers ()

检索此数据库是否将大小写混合的带引号的SQL标识符视为区分大小写,并将结果以大小写混合形式存储。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsMultipleOpenResults

Added in API level 1
boolean supportsMultipleOpenResults ()

检索是否有可能具有多个 ResultSet从返回的对象 CallableStatement对象同时进行。

Returns
boolean true if a CallableStatement object can return multiple ResultSet objects simultaneously; false otherwise
Throws
SQLException if a datanase access error occurs

supportsMultipleResultSets

Added in API level 1
boolean supportsMultipleResultSets ()

检索此数据库是否支持将多个 ResultSet对象从一次调用获取到方法 execute

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsMultipleTransactions

Added in API level 1
boolean supportsMultipleTransactions ()

检索此数据库是否允许同时打开多个事务(在不同的连接上)。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsNamedParameters

Added in API level 1
boolean supportsNamedParameters ()

检索此数据库是否支持可调用语句的命名参数。

Returns
boolean true if named parameters are supported; false otherwise
Throws
SQLException if a database access error occurs

supportsNonNullableColumns

Added in API level 1
boolean supportsNonNullableColumns ()

检索此数据库中的列是否可以定义为不可空。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsOpenCursorsAcrossCommit

Added in API level 1
boolean supportsOpenCursorsAcrossCommit ()

检索此数据库是否支持在提交时保持游标打开状态。

Returns
boolean true if cursors always remain open; false if they might not remain open
Throws
SQLException if a database access error occurs

supportsOpenCursorsAcrossRollback

Added in API level 1
boolean supportsOpenCursorsAcrossRollback ()

检索此数据库是否支持将光标跨回滚打开。

Returns
boolean true if cursors always remain open; false if they might not remain open
Throws
SQLException if a database access error occurs

supportsOpenStatementsAcrossCommit

Added in API level 1
boolean supportsOpenStatementsAcrossCommit ()

检索此数据库是否支持在提交时保持语句打开状态。

Returns
boolean true if statements always remain open; false if they might not remain open
Throws
SQLException if a database access error occurs

supportsOpenStatementsAcrossRollback

Added in API level 1
boolean supportsOpenStatementsAcrossRollback ()

检索此数据库是否支持通过回滚保持语句打开。

Returns
boolean true if statements always remain open; false if they might not remain open
Throws
SQLException if a database access error occurs

supportsOrderByUnrelated

Added in API level 1
boolean supportsOrderByUnrelated ()

检索此数据库是否支持使用不在 ORDER BY子句中的 SELECT语句中的 ORDER BY

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsOuterJoins

Added in API level 1
boolean supportsOuterJoins ()

检索此数据库是否支持某种形式的外连接。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsPositionedDelete

Added in API level 1
boolean supportsPositionedDelete ()

检索此数据库是否支持定位 DELETE语句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsPositionedUpdate

Added in API level 1
boolean supportsPositionedUpdate ()

检索此数据库是否支持定位 UPDATE语句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsResultSetConcurrency

Added in API level 1
boolean supportsResultSetConcurrency (int type, 
                int concurrency)

检索此数据库是否支持给定的并发类型以及给定的结果集类型。

Parameters
type int: defined in java.sql.ResultSet
concurrency int: type defined in java.sql.ResultSet
Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

也可以看看:

supportsResultSetHoldability

Added in API level 1
boolean supportsResultSetHoldability (int holdability)

检索此数据库是否支持给定的结果集可保存性。

Parameters
holdability int: one of the following constants: ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

也可以看看:

supportsResultSetType

Added in API level 1
boolean supportsResultSetType (int type)

检索此数据库是否支持给定的结果集类型。

Parameters
type int: defined in java.sql.ResultSet
Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

也可以看看:

supportsSavepoints

Added in API level 1
boolean supportsSavepoints ()

检索此数据库是否支持保存点。

Returns
boolean true if savepoints are supported; false otherwise
Throws
SQLException if a database access error occurs

supportsSchemasInDataManipulation

Added in API level 1
boolean supportsSchemasInDataManipulation ()

检索是否可以在数据操作语句中使用模式名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSchemasInIndexDefinitions

Added in API level 1
boolean supportsSchemasInIndexDefinitions ()

检索是否可以在索引定义语句中使用模式名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSchemasInPrivilegeDefinitions

Added in API level 1
boolean supportsSchemasInPrivilegeDefinitions ()

检索特权定义语句中是否可以使用模式名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSchemasInProcedureCalls

Added in API level 1
boolean supportsSchemasInProcedureCalls ()

检索过程调用语句中是否可以使用模式名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSchemasInTableDefinitions

Added in API level 1
boolean supportsSchemasInTableDefinitions ()

检索是否可以在表定义语句中使用模式名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSelectForUpdate

Added in API level 1
boolean supportsSelectForUpdate ()

检索此数据库是否支持 SELECT FOR UPDATE语句。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsStatementPooling

Added in API level 1
boolean supportsStatementPooling ()

检索此数据库是否支持语句池。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsStoredFunctionsUsingCallSyntax

Added in API level 9
boolean supportsStoredFunctionsUsingCallSyntax ()

检索此数据库是否支持使用存储过程转义语法调用用户定义函数或供应商函数。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsStoredProcedures

Added in API level 1
boolean supportsStoredProcedures ()

检索此数据库是否支持使用存储过程转义语法的存储过程调用。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSubqueriesInComparisons

Added in API level 1
boolean supportsSubqueriesInComparisons ()

检索此数据库是否支持比较表达式中的子查询。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSubqueriesInExists

Added in API level 1
boolean supportsSubqueriesInExists ()

检索此数据库是否支持 EXISTS表达式中的子查询。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSubqueriesInIns

Added in API level 1
boolean supportsSubqueriesInIns ()

检索此数据库是否支持 IN表达式中的子查询。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsSubqueriesInQuantifieds

Added in API level 1
boolean supportsSubqueriesInQuantifieds ()

检索此数据库是否支持量化表达式中的子查询。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsTableCorrelationNames

Added in API level 1
boolean supportsTableCorrelationNames ()

检索此数据库是否支持表关联名称。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsTransactionIsolationLevel

Added in API level 1
boolean supportsTransactionIsolationLevel (int level)

检索此数据库是否支持给定的事务隔离级别。

Parameters
level int: one of the transaction isolation levels defined in java.sql.Connection
Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

也可以看看:

supportsTransactions

Added in API level 1
boolean supportsTransactions ()

检索此数据库是否支持事务。 如果不是,调用方法commit是一个noop,隔离级别是TRANSACTION_NONE

Returns
boolean true if transactions are supported; false otherwise
Throws
SQLException if a database access error occurs

supportsUnion

Added in API level 1
boolean supportsUnion ()

检索此数据库是否支持SQL UNION

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

supportsUnionAll

Added in API level 1
boolean supportsUnionAll ()

检索此数据库是否支持SQL UNION ALL

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

updatesAreDetected

Added in API level 1
boolean updatesAreDetected (int type)

通过调用方法 ResultSet.rowUpdated来检索是否可以检测到可见行更新。

Parameters
type int: the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns
boolean true if changes are detected by the result set type; false otherwise
Throws
SQLException if a database access error occurs

usesLocalFilePerTable

Added in API level 1
boolean usesLocalFilePerTable ()

检索此数据库是否为每个表使用文件。

Returns
boolean true if this database uses a local file for each table; false otherwise
Throws
SQLException if a database access error occurs

usesLocalFiles

Added in API level 1
boolean usesLocalFiles ()

检索此数据库是否将表存储在本地文件中。

Returns
boolean true if so; false otherwise
Throws
SQLException if a database access error occurs

Hooray!