Class MVADatabaseMetaData
- All Implemented Interfaces:
DatabaseMetaData,Wrapper
Many of the methods here return lists of information in ResultSets. You can use the normal ResultSet methods such as getString and getInt to retrieve the data from these ResultSets. If a given form of metadata is not available, these methods should throw a SQLException.
Some of these methods take arguments that are String patterns. These arguments all have names such as fooPattern. Within a pattern String, "%" means match any substring of 0 or more characters, and "_" means match any one character. Only metadata entries matching the search pattern are returned. If a search pattern argument is set to a null ref, it means that argument's criteria should be dropped from the search.
A SQLException will be thrown if a driver does not support a meta data method. In the case of methods that return a ResultSet, either a ResultSet (which may be empty) is returned or a SQLException is thrown.
-
Field Summary
Fields inherited from interface java.sql.DatabaseMetaData
attributeNoNulls, attributeNullable, attributeNullableUnknown, bestRowNotPseudo, bestRowPseudo, bestRowSession, bestRowTemporary, bestRowTransaction, bestRowUnknown, columnNoNulls, columnNullable, columnNullableUnknown, functionColumnIn, functionColumnInOut, functionColumnOut, functionColumnResult, functionColumnUnknown, functionNoNulls, functionNoTable, functionNullable, functionNullableUnknown, functionResultUnknown, functionReturn, functionReturnsTable, importedKeyCascade, importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, importedKeyNoAction, importedKeyNotDeferrable, importedKeyRestrict, importedKeySetDefault, importedKeySetNull, procedureColumnIn, procedureColumnInOut, procedureColumnOut, procedureColumnResult, procedureColumnReturn, procedureColumnUnknown, procedureNoNulls, procedureNoResult, procedureNullable, procedureNullableUnknown, procedureResultUnknown, procedureReturnsResult, sqlStateSQL, sqlStateSQL99, sqlStateXOpen, tableIndexClustered, tableIndexHashed, tableIndexOther, tableIndexStatistic, typeNoNulls, typeNullable, typeNullableUnknown, typePredBasic, typePredChar, typePredNone, typeSearchable, versionColumnNotPseudo, versionColumnPseudo, versionColumnUnknown -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether all stored procedures are callable.booleanDetermines whether all accessible tables are selectable.booleanbooleanDetermines whether a data definition statement within a transaction forces the transaction to commit.booleanDetermines whether a data definition statement within a transaction is ignored.booleandeletesAreDetected(int type) JDBC 2.0 Determines whether or not a visible row delete can be detected by calling ResultSet.rowDeleted().booleanDetermines whether getMaxRowSize() includes LONGVARCHAR and LONGVARBINARY blobs.booleanResultSetgetAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) Retrieves a description of the given attribute of the given type for a user-defined type (UDT) that is available in the given schema and catalog.ResultSetgetBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) Retrieves a description of a table's optimal set of columns that uniquely identifies a row.ResultSetRetrieves the catalog names available in this database.StringGets the separator that is being used between the catalog name and the table name.StringGets the preferred term for "catalog".ResultSetTheMVADatabaseMetaDataimplementation ofgetClientInfoPropertiesalways returns an empty result set.ResultSetgetColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) Gets a description of the access rights for a table's columns.ResultSetgetColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) Gets a description of table columns available in a catalog.ConnectionJDBC 2.0 Gets the connection that produced this metadata object.ResultSetgetCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) Gets a description of the foreign key columns in the foreign key table that reference the primary key columns of the primary key table.intRetrieves the major version number of the underlying database.intRetrieves the minor version number of the underlying database.StringGets the database product name.StringReturns the version of the MVA server.intGets the default transaction isolation level for the database.intRetrieves this JDBC driver's major version number.intRetrieves this JDBC driver's minor version number.StringRetrieves the name of this JDBC driver.StringRetrieves the version number of this JDBC driver as aString.ResultSetgetExportedKeys(String catalog, String schema, String table) Gets a description of a foreign key columns that reference a table's primary key columns.StringResultSetgetFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) This method is not supported.ResultSetgetFunctions(String catalog, String schemaPattern, String functionNamePattern) This method is not supported.StringGets the quote string that is used to surround quoted SQL identifiers.ResultSetgetImportedKeys(String catalog, String schema, String table) Gets a description of the primary key columns that are referenced by a table's foreign key columns.ResultSetgetIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) Retrieves a description of the given table's indices and statistics.intRetrieves the major JDBC version number for this driver.intRetrieves the minor JDBC version number for this driver.intReturns the number of hex characters that are allowed in an inline binary literal.intIndicates the maximum length of a catalog name.intReturns the maximum length of a character literal.intReturns the maximum length of a column name.intIndicates the maximum number of columns that are allowed in a GROUP BY clause.intIndicates the maximum number of columns that are allowed in an index.intIndicates the maximum number of columns that are allowed in an ORDER BY clause.intDetermines the maximum number of columns that are allowed in a SELECT list.intIndicates the maximum number of columns that are allowed in a table.intIndicates the maximum number of database connections that can be active concurrently.intIndicates the maximum length of a cursor name.intIndicates the maximum size of an index (in bytes).intIndicates the maximum length of a procedure name.intIndicates the maximum length of a single row.intIndicates the maximum length of a schema name.intIndicates the maximum length of an SQL statement.intIndicates the maximum number of active statements that can be open to this database concurrently.intIndicates the maximum length of a table name.intIndicates the maximum number of tables in a SELECT list.intIndicates the maximum length of a user name.StringResultSetgetPrimaryKeys(String catalog, String schema, String table) Retrieves a description of the given table's primary key columns.ResultSetgetProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) Gets a description of a catalog's stored procedure parameters and result columns.ResultSetgetProcedures(String catalog, String schemaPattern, String procedureNamePattern) Get a description of stored procedures available in a catalog.StringGets the preferred term for "procedure".ResultSetgetPseudoColumns(String arg0, String arg1, String arg2, String arg3) intRowIdLifetimeResultSetRetrieves the schema names available in this database.ResultSetgetSchemas(String catalog, String schemaPattern) StringRetrieves the database vendor's preferred term for "schema".StringStringGets a comma-delimited list of all database-specific SQL keywords that are not SQL92 keywords.intStringResultSetgetSuperTables(String catalog, String schemaPattern, String tableNamePattern) Retrieves a description of the table hierarchies defined in a particular schema in this database.ResultSetgetSuperTypes(String catalog, String schemaPattern, String typeNamePattern) Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database.StringResultSetgetTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) Gets a description of the access rights each table available in a catalog.ResultSetgetTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) Gets a description of the tables that are available in a catalog.ResultSetTheMVADatabaseMetaDataimplementation ofDatabaseMetadata#getTables(String, String, String, String[])always returns a result set containing "TABLE" and "VIEW".StringResultSetGets a description of all the standard SQL types supported by this database.ResultSetgetUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) JDBC 2.0 Gets a description of the user-defined types defined in a particular schema.StringgetURL()Gets the URL from the MVAConnection object.StringGets the user name from the MVAConnection object.ResultSetgetVersionColumns(String catalog, String schema, String table) Gets a description of the table columns that are automatically updated when any value in a row is updated.booleaninsertsAreDetected(int type) JDBC 2.0 Determines whether or not a visible row insert can be detected by calling ResultSet.rowInserted().booleanDetermines whether a catalog appears at the start of a qualified table name.booleanDetermines whether the connection is read-only.booleanisWrapperFor(Class<?> iface) booleanbooleanbooleanDetermines whether NULLs are sorted at end.booleanDetermines whether NULLs are sorted at start.booleanDetermines whether NULLs are sorted high.booleanDetermines whether NULLs are sorted low.booleanothersDeletesAreVisible(int type) JDBC 2.0 Determines whether changes made by others are visible.booleanothersInsertsAreVisible(int type) JDBC 2.0 Determines whether changes made by others are visible.booleanothersUpdatesAreVisible(int type) JDBC 2.0 Determines whether changes made by others are visible.booleanownDeletesAreVisible(int type) JDBC 2.0 Determines whether a result set's own changes are visible.booleanownInsertsAreVisible(int type) JDBC 2.0 Determines whether a result set's own changes are visible.booleanownUpdatesAreVisible(int type) JDBC 2.0 Determines whether a result set's own changes are visible.booleanDetermines whether the database stores lowercase identifiers.booleanDetermines whether the database stores lowercase quoted SQL identifiers.booleanDetermines whether the database stores mixed-case identifiers.booleanDetermines whether the database stores mixed-case quoted SQL identifiers.booleanDetermines whether the database stores uppercase identifiers.booleanDetermines whether the database stores uppercase quoted SQL identifiers.booleanbooleanbooleanbooleanbooleanbooleanJDBC 2.0 Determines if the database supports batch updates.booleanDetermines whether a data manipulation statement can contain a catalog name.booleanDetermines whether an index definition statement can contain a catalog name.booleanDetermines whether a privilege definition statement can contain a catalog name.booleanDetermines whether a procedure call statement can contain a catalog name.booleanDetermines whether a table definition statement can contain a catalog name.booleanbooleanbooleansupportsConvert(int fromType, int toType) booleanbooleanDetermines whether correlated subqueries are supported.booleanDetermines whether both data definition and data manipulation statements within a transaction are supported.booleanDetermines whether data manipulation statements within a transaction are supported.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanDetermines whether the database supports mixed-case, unquoted SQL identifiers.booleanDetermines whether the database supports mixed-case quoted SQL identifiers.booleanbooleanbooleanbooleanbooleanbooleanDetermines whether cursors can remain open across commits.booleanDetermines whether cursors can remain open across rollback.booleanDetermines whether statements can remain open across commits.booleanDetermines whether statements can remain open across rollbacks.booleanbooleanbooleanDetermines whether positioned DELETE is supported.booleanDetermines whether positioned UPDATE is supported.booleansupportsResultSetConcurrency(int type, int concurrency) JDBC 2.0 Determines if the database supports the concurrency type in combination with the given result set type.booleansupportsResultSetHoldability(int holdability) booleansupportsResultSetType(int type) JDBC 2.0 Determines if the database supports the given result set type.booleanbooleanDetermines whether a data manipulation statement can contain a schema name.booleanDetermines whether an index definition statement can contain a schema name.booleanDetermines whether a privilege definition statement can contain a schema name.booleanDetermines whether a procedure call statement can contain a schema name.booleanDetermines whether a table definition statement can contain a schema name.booleanDetermines whether SELECT for UPDATE is supported.booleanbooleanbooleanDetermines whether stored procedure calls that use the stored procedure escape syntax are supported.booleanDetermines whether subqueries in comparison expressions are supported.booleanDetermines whether subqueries in exists expressions are supported.booleanDetermines whether subqueries in "in" statements are supported.booleanDetermines whether subqueries in quantified expressions are supported.booleanbooleansupportsTransactionIsolationLevel(int level) Determines whether the database supports the transaction isolation level.booleanDetermines whether transactions are supported.booleanDetermines whether an SQL UNION is supported.booleanDetermines whether an SQL UNION ALL is supported.<T> Tunwrap(Class<T> iface) booleanupdatesAreDetected(int type) JDBC 2.0 Determines whether or not a visible row update can be detected by calling ResultSet.rowUpdated().booleanDetermines whether the database uses a file for each table.booleanDetermines whether the database stores each table in a local file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.DatabaseMetaData
getMaxLogicalLobSize, supportsRefCursors, supportsSharding
-
Method Details
-
allProceduresAreCallable
public boolean allProceduresAreCallable() throws SQLExceptionDetermines whether all stored procedures are callable.- Specified by:
allProceduresAreCallablein interfaceDatabaseMetaData- Returns:
- False. SAS software does not support stored procedures.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
allTablesAreSelectable
public boolean allTablesAreSelectable() throws SQLExceptionDetermines whether all accessible tables are selectable.- Specified by:
allTablesAreSelectablein interfaceDatabaseMetaData- Returns:
- True. All accessible tables are selectable.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getURL
public String getURL() throws SQLExceptionGets the URL from the MVAConnection object.- Specified by:
getURLin interfaceDatabaseMetaData- Returns:
- The URL that is obtained from the MVAConnection object.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getUserName
public String getUserName() throws SQLExceptionGets the user name from the MVAConnection object.- Specified by:
getUserNamein interfaceDatabaseMetaData- Returns:
- The user name that is obtained from the MVAConnection object.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
isReadOnly
public boolean isReadOnly() throws SQLExceptionDetermines whether the connection is read-only.- Specified by:
isReadOnlyin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support read-only connections.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
nullsAreSortedHigh
public boolean nullsAreSortedHigh() throws SQLExceptionDetermines whether NULLs are sorted high.- Specified by:
nullsAreSortedHighin interfaceDatabaseMetaData- Returns:
- False. NULLs are sorted low.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
nullsAreSortedLow
public boolean nullsAreSortedLow() throws SQLExceptionDetermines whether NULLs are sorted low.- Specified by:
nullsAreSortedLowin interfaceDatabaseMetaData- Returns:
- True. NULLs are sorted low.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
nullsAreSortedAtStart
public boolean nullsAreSortedAtStart() throws SQLExceptionDetermines whether NULLs are sorted at start.- Specified by:
nullsAreSortedAtStartin interfaceDatabaseMetaData- Returns:
- False. NULLs are sorted low
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
nullsAreSortedAtEnd
public boolean nullsAreSortedAtEnd() throws SQLExceptionDetermines whether NULLs are sorted at end.- Specified by:
nullsAreSortedAtEndin interfaceDatabaseMetaData- Returns:
- False. NULLs are sorted low
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getDatabaseProductName
public String getDatabaseProductName() throws SQLExceptionGets the database product name.- Specified by:
getDatabaseProductNamein interfaceDatabaseMetaData- Returns:
- The string "SAS".
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getDatabaseProductVersion
public String getDatabaseProductVersion() throws SQLExceptionReturns the version of the MVA server.- Specified by:
getDatabaseProductVersionin interfaceDatabaseMetaData- Returns:
- A string that contains the version number from the MVA server.
- Throws:
SQLException- This exception is thrown if an error condition is detected or if the server does not respond.
-
getDriverName
public String getDriverName() throws SQLExceptionRetrieves the name of this JDBC driver.- Specified by:
getDriverNamein interfaceDatabaseMetaData- Returns:
- JDBC driver name
- Throws:
SQLException- if a database access error occurs
-
getDriverVersion
public String getDriverVersion() throws SQLExceptionRetrieves the version number of this JDBC driver as aString.- Specified by:
getDriverVersionin interfaceDatabaseMetaData- Returns:
- JDBC driver version
- Throws:
SQLException- if a database access error occurs
-
getDriverMajorVersion
public int getDriverMajorVersion()Retrieves this JDBC driver's major version number.- Specified by:
getDriverMajorVersionin interfaceDatabaseMetaData- Returns:
- JDBC driver major version
-
getDriverMinorVersion
public int getDriverMinorVersion()Retrieves this JDBC driver's minor version number.- Specified by:
getDriverMinorVersionin interfaceDatabaseMetaData- Returns:
- JDBC driver minor version number
-
usesLocalFiles
public boolean usesLocalFiles() throws SQLExceptionDetermines whether the database stores each table in a local file.- Specified by:
usesLocalFilesin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
usesLocalFilePerTable
public boolean usesLocalFilePerTable() throws SQLExceptionDetermines whether the database uses a file for each table.- Specified by:
usesLocalFilePerTablein interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsMixedCaseIdentifiers
public boolean supportsMixedCaseIdentifiers() throws SQLExceptionDetermines whether the database supports mixed-case, unquoted SQL identifiers.- Specified by:
supportsMixedCaseIdentifiersin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
storesUpperCaseIdentifiers
public boolean storesUpperCaseIdentifiers() throws SQLExceptionDetermines whether the database stores uppercase identifiers.- Specified by:
storesUpperCaseIdentifiersin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
storesLowerCaseIdentifiers
public boolean storesLowerCaseIdentifiers() throws SQLExceptionDetermines whether the database stores lowercase identifiers.- Specified by:
storesLowerCaseIdentifiersin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
storesMixedCaseIdentifiers
public boolean storesMixedCaseIdentifiers() throws SQLExceptionDetermines whether the database stores mixed-case identifiers.- Specified by:
storesMixedCaseIdentifiersin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsMixedCaseQuotedIdentifiers
public boolean supportsMixedCaseQuotedIdentifiers() throws SQLExceptionDetermines whether the database supports mixed-case quoted SQL identifiers. This method is not JDBC compliant.- Specified by:
supportsMixedCaseQuotedIdentifiersin interfaceDatabaseMetaData- Returns:
- false.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
storesUpperCaseQuotedIdentifiers
public boolean storesUpperCaseQuotedIdentifiers() throws SQLExceptionDetermines whether the database stores uppercase quoted SQL identifiers.- Specified by:
storesUpperCaseQuotedIdentifiersin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
storesLowerCaseQuotedIdentifiers
public boolean storesLowerCaseQuotedIdentifiers() throws SQLExceptionDetermines whether the database stores lowercase quoted SQL identifiers.- Specified by:
storesLowerCaseQuotedIdentifiersin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
storesMixedCaseQuotedIdentifiers
public boolean storesMixedCaseQuotedIdentifiers() throws SQLExceptionDetermines whether the database stores mixed-case quoted SQL identifiers.- Specified by:
storesMixedCaseQuotedIdentifiersin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getIdentifierQuoteString
public String getIdentifierQuoteString() throws SQLExceptionGets the quote string that is used to surround quoted SQL identifiers. SAS software does not support quoted identifiers, so a blank is returned. NOTE - SAS Software supports quoted ids, but only if the "dquote=ansi" option is set. The metadata will only consider what the default is, so no quoting possible. This method is not JDBC compliant.- Specified by:
getIdentifierQuoteStringin interfaceDatabaseMetaData- Returns:
- A blank string (" ").
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getSQLKeywords
public String getSQLKeywords() throws SQLExceptionGets a comma-delimited list of all database-specific SQL keywords that are not SQL92 keywords.- Specified by:
getSQLKeywordsin interfaceDatabaseMetaData- Returns:
- An empty string (""). No additional keywords are reserved.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getNumericFunctions
public String getNumericFunctions() throws SQLException- Specified by:
getNumericFunctionsin interfaceDatabaseMetaData- Throws:
SQLException
-
getStringFunctions
public String getStringFunctions() throws SQLException- Specified by:
getStringFunctionsin interfaceDatabaseMetaData- Throws:
SQLException
-
getSystemFunctions
public String getSystemFunctions() throws SQLException- Specified by:
getSystemFunctionsin interfaceDatabaseMetaData- Throws:
SQLException
-
getTimeDateFunctions
public String getTimeDateFunctions() throws SQLException- Specified by:
getTimeDateFunctionsin interfaceDatabaseMetaData- Throws:
SQLException
-
getSearchStringEscape
public String getSearchStringEscape() throws SQLException- Specified by:
getSearchStringEscapein interfaceDatabaseMetaData- Throws:
SQLException
-
getExtraNameCharacters
public String getExtraNameCharacters() throws SQLException- Specified by:
getExtraNameCharactersin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsAlterTableWithAddColumn
public boolean supportsAlterTableWithAddColumn() throws SQLException- Specified by:
supportsAlterTableWithAddColumnin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsAlterTableWithDropColumn
public boolean supportsAlterTableWithDropColumn() throws SQLException- Specified by:
supportsAlterTableWithDropColumnin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsColumnAliasing
public boolean supportsColumnAliasing() throws SQLException- Specified by:
supportsColumnAliasingin interfaceDatabaseMetaData- Throws:
SQLException
-
nullPlusNonNullIsNull
public boolean nullPlusNonNullIsNull() throws SQLException- Specified by:
nullPlusNonNullIsNullin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsConvert
public boolean supportsConvert() throws SQLException- Specified by:
supportsConvertin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsConvert
public boolean supportsConvert(int fromType, int toType) throws SQLException - Specified by:
supportsConvertin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsTableCorrelationNames
public boolean supportsTableCorrelationNames() throws SQLException- Specified by:
supportsTableCorrelationNamesin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsDifferentTableCorrelationNames
public boolean supportsDifferentTableCorrelationNames() throws SQLException- Specified by:
supportsDifferentTableCorrelationNamesin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsExpressionsInOrderBy
public boolean supportsExpressionsInOrderBy() throws SQLException- Specified by:
supportsExpressionsInOrderByin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsGroupBy
public boolean supportsGroupBy() throws SQLException- Specified by:
supportsGroupByin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsGroupByBeyondSelect
public boolean supportsGroupByBeyondSelect() throws SQLException- Specified by:
supportsGroupByBeyondSelectin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsLikeEscapeClause
public boolean supportsLikeEscapeClause() throws SQLException- Specified by:
supportsLikeEscapeClausein interfaceDatabaseMetaData- Throws:
SQLException
-
supportsMultipleResultSets
public boolean supportsMultipleResultSets() throws SQLException- Specified by:
supportsMultipleResultSetsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsMultipleTransactions
public boolean supportsMultipleTransactions() throws SQLException- Specified by:
supportsMultipleTransactionsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsNonNullableColumns
public boolean supportsNonNullableColumns() throws SQLException- Specified by:
supportsNonNullableColumnsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsMinimumSQLGrammar
public boolean supportsMinimumSQLGrammar() throws SQLException- Specified by:
supportsMinimumSQLGrammarin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsCoreSQLGrammar
public boolean supportsCoreSQLGrammar() throws SQLException- Specified by:
supportsCoreSQLGrammarin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsExtendedSQLGrammar
public boolean supportsExtendedSQLGrammar() throws SQLException- Specified by:
supportsExtendedSQLGrammarin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsANSI92EntryLevelSQL
public boolean supportsANSI92EntryLevelSQL() throws SQLException- Specified by:
supportsANSI92EntryLevelSQLin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsANSI92IntermediateSQL
public boolean supportsANSI92IntermediateSQL() throws SQLException- Specified by:
supportsANSI92IntermediateSQLin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsANSI92FullSQL
public boolean supportsANSI92FullSQL() throws SQLException- Specified by:
supportsANSI92FullSQLin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsIntegrityEnhancementFacility
public boolean supportsIntegrityEnhancementFacility() throws SQLException- Specified by:
supportsIntegrityEnhancementFacilityin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsOuterJoins
public boolean supportsOuterJoins() throws SQLException- Specified by:
supportsOuterJoinsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsFullOuterJoins
public boolean supportsFullOuterJoins() throws SQLException- Specified by:
supportsFullOuterJoinsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsLimitedOuterJoins
public boolean supportsLimitedOuterJoins() throws SQLException- Specified by:
supportsLimitedOuterJoinsin interfaceDatabaseMetaData- Throws:
SQLException
-
getSchemaTerm
public String getSchemaTerm() throws SQLExceptionRetrieves the database vendor's preferred term for "schema". For SAS, this is "library".- Specified by:
getSchemaTermin interfaceDatabaseMetaData- Returns:
- the vendor term for "schema"
- Throws:
SQLException- if a database access error occurs
-
getProcedureTerm
public String getProcedureTerm() throws SQLExceptionGets the preferred term for "procedure".- Specified by:
getProcedureTermin interfaceDatabaseMetaData- Returns:
- An empty string ("").
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getCatalogTerm
public String getCatalogTerm() throws SQLExceptionGets the preferred term for "catalog".- Specified by:
getCatalogTermin interfaceDatabaseMetaData- Returns:
- An empty string ("").
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
isCatalogAtStart
public boolean isCatalogAtStart() throws SQLExceptionDetermines whether a catalog appears at the start of a qualified table name.- Specified by:
isCatalogAtStartin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getCatalogSeparator
public String getCatalogSeparator() throws SQLExceptionGets the separator that is being used between the catalog name and the table name.- Specified by:
getCatalogSeparatorin interfaceDatabaseMetaData- Returns:
- An empty string ("").
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSchemasInDataManipulation
public boolean supportsSchemasInDataManipulation() throws SQLExceptionDetermines whether a data manipulation statement can contain a schema name.- Specified by:
supportsSchemasInDataManipulationin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSchemasInProcedureCalls
public boolean supportsSchemasInProcedureCalls() throws SQLExceptionDetermines whether a procedure call statement can contain a schema name.- Specified by:
supportsSchemasInProcedureCallsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support stored procedures.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSchemasInTableDefinitions
public boolean supportsSchemasInTableDefinitions() throws SQLExceptionDetermines whether a table definition statement can contain a schema name.- Specified by:
supportsSchemasInTableDefinitionsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSchemasInIndexDefinitions
public boolean supportsSchemasInIndexDefinitions() throws SQLExceptionDetermines whether an index definition statement can contain a schema name.- Specified by:
supportsSchemasInIndexDefinitionsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSchemasInPrivilegeDefinitions
public boolean supportsSchemasInPrivilegeDefinitions() throws SQLExceptionDetermines whether a privilege definition statement can contain a schema name.- Specified by:
supportsSchemasInPrivilegeDefinitionsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support privileges.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsCatalogsInDataManipulation
public boolean supportsCatalogsInDataManipulation() throws SQLExceptionDetermines whether a data manipulation statement can contain a catalog name.- Specified by:
supportsCatalogsInDataManipulationin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support SQL catalogs.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsCatalogsInProcedureCalls
public boolean supportsCatalogsInProcedureCalls() throws SQLExceptionDetermines whether a procedure call statement can contain a catalog name.- Specified by:
supportsCatalogsInProcedureCallsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support SQL catalogs.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsCatalogsInTableDefinitions
public boolean supportsCatalogsInTableDefinitions() throws SQLExceptionDetermines whether a table definition statement can contain a catalog name.- Specified by:
supportsCatalogsInTableDefinitionsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support SQL catalogs.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsCatalogsInIndexDefinitions
public boolean supportsCatalogsInIndexDefinitions() throws SQLExceptionDetermines whether an index definition statement can contain a catalog name.- Specified by:
supportsCatalogsInIndexDefinitionsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support SQL catalogs.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsCatalogsInPrivilegeDefinitions
public boolean supportsCatalogsInPrivilegeDefinitions() throws SQLExceptionDetermines whether a privilege definition statement can contain a catalog name.- Specified by:
supportsCatalogsInPrivilegeDefinitionsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support SQL catalogs.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsPositionedDelete
public boolean supportsPositionedDelete() throws SQLExceptionDetermines whether positioned DELETE is supported.- Specified by:
supportsPositionedDeletein interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsPositionedUpdate
public boolean supportsPositionedUpdate() throws SQLExceptionDetermines whether positioned UPDATE is supported.- Specified by:
supportsPositionedUpdatein interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSelectForUpdate
public boolean supportsSelectForUpdate() throws SQLExceptionDetermines whether SELECT for UPDATE is supported.- Specified by:
supportsSelectForUpdatein interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsStoredProcedures
public boolean supportsStoredProcedures() throws SQLExceptionDetermines whether stored procedure calls that use the stored procedure escape syntax are supported.- Specified by:
supportsStoredProceduresin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSubqueriesInComparisons
public boolean supportsSubqueriesInComparisons() throws SQLExceptionDetermines whether subqueries in comparison expressions are supported.- Specified by:
supportsSubqueriesInComparisonsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSubqueriesInExists
public boolean supportsSubqueriesInExists() throws SQLExceptionDetermines whether subqueries in exists expressions are supported.- Specified by:
supportsSubqueriesInExistsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSubqueriesInIns
public boolean supportsSubqueriesInIns() throws SQLExceptionDetermines whether subqueries in "in" statements are supported.- Specified by:
supportsSubqueriesInInsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsSubqueriesInQuantifieds
public boolean supportsSubqueriesInQuantifieds() throws SQLExceptionDetermines whether subqueries in quantified expressions are supported.- Specified by:
supportsSubqueriesInQuantifiedsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsUnion
public boolean supportsUnion() throws SQLExceptionDetermines whether an SQL UNION is supported.- Specified by:
supportsUnionin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsUnionAll
public boolean supportsUnionAll() throws SQLExceptionDetermines whether an SQL UNION ALL is supported.- Specified by:
supportsUnionAllin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsOpenCursorsAcrossCommit
public boolean supportsOpenCursorsAcrossCommit() throws SQLExceptionDetermines whether cursors can remain open across commits.- Specified by:
supportsOpenCursorsAcrossCommitin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsOpenCursorsAcrossRollback
public boolean supportsOpenCursorsAcrossRollback() throws SQLExceptionDetermines whether cursors can remain open across rollback.- Specified by:
supportsOpenCursorsAcrossRollbackin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsOpenStatementsAcrossCommit
public boolean supportsOpenStatementsAcrossCommit() throws SQLExceptionDetermines whether statements can remain open across commits.- Specified by:
supportsOpenStatementsAcrossCommitin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsOpenStatementsAcrossRollback
public boolean supportsOpenStatementsAcrossRollback() throws SQLExceptionDetermines whether statements can remain open across rollbacks.- Specified by:
supportsOpenStatementsAcrossRollbackin interfaceDatabaseMetaData- Returns:
- True. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxBinaryLiteralLength
public int getMaxBinaryLiteralLength() throws SQLExceptionReturns the number of hex characters that are allowed in an inline binary literal.- Specified by:
getMaxBinaryLiteralLengthin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxCharLiteralLength
public int getMaxCharLiteralLength() throws SQLExceptionReturns the maximum length of a character literal.- Specified by:
getMaxCharLiteralLengthin interfaceDatabaseMetaData- Returns:
- 32767.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxColumnNameLength
public int getMaxColumnNameLength() throws SQLExceptionReturns the maximum length of a column name.- Specified by:
getMaxColumnNameLengthin interfaceDatabaseMetaData- Returns:
- 32.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxColumnsInGroupBy
public int getMaxColumnsInGroupBy() throws SQLExceptionIndicates the maximum number of columns that are allowed in a GROUP BY clause.- Specified by:
getMaxColumnsInGroupByin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxColumnsInIndex
public int getMaxColumnsInIndex() throws SQLExceptionIndicates the maximum number of columns that are allowed in an index.- Specified by:
getMaxColumnsInIndexin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxColumnsInOrderBy
public int getMaxColumnsInOrderBy() throws SQLExceptionIndicates the maximum number of columns that are allowed in an ORDER BY clause.- Specified by:
getMaxColumnsInOrderByin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxColumnsInSelect
public int getMaxColumnsInSelect() throws SQLExceptionDetermines the maximum number of columns that are allowed in a SELECT list.- Specified by:
getMaxColumnsInSelectin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxColumnsInTable
public int getMaxColumnsInTable() throws SQLExceptionIndicates the maximum number of columns that are allowed in a table.- Specified by:
getMaxColumnsInTablein interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxConnections
public int getMaxConnections() throws SQLExceptionIndicates the maximum number of database connections that can be active concurrently.- Specified by:
getMaxConnectionsin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxCursorNameLength
public int getMaxCursorNameLength() throws SQLExceptionIndicates the maximum length of a cursor name.- Specified by:
getMaxCursorNameLengthin interfaceDatabaseMetaData- Returns:
- 0. SAS software does not support cursors.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxIndexLength
public int getMaxIndexLength() throws SQLExceptionIndicates the maximum size of an index (in bytes).- Specified by:
getMaxIndexLengthin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxSchemaNameLength
public int getMaxSchemaNameLength() throws SQLExceptionIndicates the maximum length of a schema name.- Specified by:
getMaxSchemaNameLengthin interfaceDatabaseMetaData- Returns:
- 8.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxProcedureNameLength
public int getMaxProcedureNameLength() throws SQLExceptionIndicates the maximum length of a procedure name.- Specified by:
getMaxProcedureNameLengthin interfaceDatabaseMetaData- Returns:
- 0. SAS software does not support stored procedures.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxCatalogNameLength
public int getMaxCatalogNameLength() throws SQLExceptionIndicates the maximum length of a catalog name.- Specified by:
getMaxCatalogNameLengthin interfaceDatabaseMetaData- Returns:
- 0. SAS software does not support SQL catalogs.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxRowSize
public int getMaxRowSize() throws SQLExceptionIndicates the maximum length of a single row.- Specified by:
getMaxRowSizein interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
doesMaxRowSizeIncludeBlobs
public boolean doesMaxRowSizeIncludeBlobs() throws SQLExceptionDetermines whether getMaxRowSize() includes LONGVARCHAR and LONGVARBINARY blobs.- Specified by:
doesMaxRowSizeIncludeBlobsin interfaceDatabaseMetaData- Returns:
- True.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxStatementLength
public int getMaxStatementLength() throws SQLExceptionIndicates the maximum length of an SQL statement.- Specified by:
getMaxStatementLengthin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxStatements
public int getMaxStatements() throws SQLExceptionIndicates the maximum number of active statements that can be open to this database concurrently.- Specified by:
getMaxStatementsin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxTableNameLength
public int getMaxTableNameLength() throws SQLExceptionIndicates the maximum length of a table name.- Specified by:
getMaxTableNameLengthin interfaceDatabaseMetaData- Returns:
- 32.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxTablesInSelect
public int getMaxTablesInSelect() throws SQLExceptionIndicates the maximum number of tables in a SELECT list.- Specified by:
getMaxTablesInSelectin interfaceDatabaseMetaData- Returns:
- 0. There is no limit.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getMaxUserNameLength
public int getMaxUserNameLength() throws SQLExceptionIndicates the maximum length of a user name.- Specified by:
getMaxUserNameLengthin interfaceDatabaseMetaData- Returns:
- 8.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation() throws SQLExceptionGets the default transaction isolation level for the database.- Specified by:
getDefaultTransactionIsolationin interfaceDatabaseMetaData- Returns:
- java.sql.Connection.TRANSACTION_NONE
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsTransactions
public boolean supportsTransactions() throws SQLExceptionDetermines whether transactions are supported.- Specified by:
supportsTransactionsin interfaceDatabaseMetaData- Returns:
- False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsTransactionIsolationLevel
public boolean supportsTransactionIsolationLevel(int level) throws SQLException Determines whether the database supports the transaction isolation level.- Specified by:
supportsTransactionIsolationLevelin interfaceDatabaseMetaData- Returns:
- True if the transaction isolation level is set to java.sql.Connection.TRANSACTION_NONE, else False.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsDataDefinitionAndDataManipulationTransactions
public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLExceptionDetermines whether both data definition and data manipulation statements within a transaction are supported.- Specified by:
supportsDataDefinitionAndDataManipulationTransactionsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
supportsDataManipulationTransactionsOnly
public boolean supportsDataManipulationTransactionsOnly() throws SQLExceptionDetermines whether data manipulation statements within a transaction are supported.- Specified by:
supportsDataManipulationTransactionsOnlyin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
dataDefinitionCausesTransactionCommit
public boolean dataDefinitionCausesTransactionCommit() throws SQLExceptionDetermines whether a data definition statement within a transaction forces the transaction to commit.- Specified by:
dataDefinitionCausesTransactionCommitin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
dataDefinitionIgnoredInTransactions
public boolean dataDefinitionIgnoredInTransactions() throws SQLExceptionDetermines whether a data definition statement within a transaction is ignored.- Specified by:
dataDefinitionIgnoredInTransactionsin interfaceDatabaseMetaData- Returns:
- False. SAS software does not support transactions.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getProcedures
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException Get a description of stored procedures available in a catalog. This method is not supported.- Specified by:
getProceduresin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getProcedureColumns
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException Gets a description of a catalog's stored procedure parameters and result columns. This method is not supported.- Specified by:
getProcedureColumnsin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getTables
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException Gets a description of the tables that are available in a catalog.Only table descriptions that match the catalog, schema, table name, and type criteria are returned. The rows are ordered by TABLE_TYPE, TABLE_SCHEM and TABLE_NAME.
Each table description contains the following columns:
Column name Data type Description CATALOG String The table catalog (can be NULL) SCHEMA String The table schema (can be NULL) TABLE String The table name TYPE String The table type COMMENT String An explanatory comment regarding the table table_pass String A non-standard column returning the password protection of the table. The returned column values would be one of NULL, READ, WRITE, ALTER values. A NULL is returned if no passwords are defined for the table. Since this is a non-standard result, this column must be referenced by name. - Specified by:
getTablesin interfaceDatabaseMetaData- Parameters:
catalog- A catalog name. An empty string ("") retrieves the rows that do not have a catalog.schemaPattern- A schema name pattern. An empty string ("") retrieves the rows that do not have a schema.tableNamePattern- A table name pattern.types- A list of table types to include. A value of NULL returns all types.- Returns:
- ResultSet in which each row is a table description.
- Throws:
SQLException- This exception is thrown if there is no connection to server or if an IO exception is detected.
-
getSchemas
public ResultSet getSchemas() throws SQLExceptionRetrieves the schema names available in this database. The results are ordered by schema name. A SAS schema is a LIBREF.The schema column is:
- TABLE_SCHEM String => schema name
- Specified by:
getSchemasin interfaceDatabaseMetaData- Returns:
- a
ResultSetobject in which each row is a schema description - Throws:
SQLException- if a database access error occurs
-
getCatalogs
public ResultSet getCatalogs() throws SQLExceptionRetrieves the catalog names available in this database. The results are ordered by catalog name. SAS does not support catalogs, so the returned result set will always be empty.The catalog column is:
- TABLE_CAT String => catalog name
- Specified by:
getCatalogsin interfaceDatabaseMetaData- Returns:
- an empty
ResultSetobject. A single columnStringcolumn that is a catalog name. - Throws:
SQLException- if a database access error occurs
-
getTableTypes
public ResultSet getTableTypes() throws SQLExceptionTheMVADatabaseMetaDataimplementation ofDatabaseMetadata#getTables(String, String, String, String[])always returns a result set containing "TABLE" and "VIEW". These are the only table types supported by SAS libraries.- Specified by:
getTableTypesin interfaceDatabaseMetaData- Throws:
SQLException
-
getColumns
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException Gets a description of table columns available in a catalog.Only column descriptions matching the catalog, schema, table and column name criteria are returned. The descriptions are ordered by TABLE_SCHEM, TABLE_NAME and ORDINAL_POSITION.
Each column description contains the following columns:
Column name Data type Description CATALOG String A table catalog (can be NULL) SCHEMA String A table schema (can be NULL) TABLE String A table name NAME String A column name SQLTYPE short An SQL type from java.sql.Types TYPE String A data-source-dependent format name including format width and decimal SIZE int The column size (For char or date types, this is the maximum number of characters; for numeric or decimal types, this is precision.) EMPTY NULL Not used SCALE int The number of fractional digits RADIX int The radix (typically either 10 or 2) NULLABLE int Constants that state whether NULL is allowed: - columnNoNulls - NULL values can possibly not be allowed
- columnNullable - NULL values are allowed
- columnNullableUnknown - Nullability is unknown
COMMENT String A comment describing the column (can be NULL) DEFAULT String The default value (can be NULL) EMPTY2 int Not used EMPTY3 int Not used MAX int For char types, this is the maximum number of bytes in the column POSITION int The index of the column in the table (starting at 1) NOTKNOWN String Strings that state whether NULL is allowed: - "NO" means that the column definitely does not allow NULL values
- "YES" means that the column might allow NULL values
- An empty string ("") means unknown
- Specified by:
getColumnsin interfaceDatabaseMetaData- Parameters:
catalog- A catalog name. An empty string ("") retrieves the rows that do not have a catalog.schemaPattern- A schema name pattern. An empty string ("") retrieves the rows that do not have a schema.tableNamePattern- A table name pattern. For password protected tables the parameter will be of the form myTable(pw=XXXX).columnNamePattern- A column name pattern.- Throws:
SQLException- This exception may be thrown.
-
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException Gets a description of the access rights for a table's columns. This method is not supported.- Specified by:
getColumnPrivilegesin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getTablePrivileges
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException Gets a description of the access rights each table available in a catalog. This method is not supported.- Specified by:
getTablePrivilegesin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException Retrieves a description of a table's optimal set of columns that uniquely identifies a row. They are ordered by SCOPE.Each column description has the following columns:
- 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
- COLUMN_NAME String => column name
- DATA_TYPE int => SQL data type from java.sql.Types
- TYPE_NAME String => Data source dependent type name, for a UDT the type name is fully qualified
- COLUMN_SIZE int => precision
- BUFFER_LENGTH int => not used
- DECIMAL_DIGITS short => scale
- 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
- format String => SAS format. Non standard column. Must be retrieved with column name, not column position.
- Specified by:
getBestRowIdentifierin interfaceDatabaseMetaData- Parameters:
catalog- a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;nullmeans that the catalog name should not be used to narrow the searchschema- a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;nullmeans that the schema name should not be used to narrow the searchtable- a table name; must match the table name as it is stored in the databasescope- the scope of interest; use same values as SCOPEnullable- include columns that are nullable.- Returns:
ResultSet- each row is a column description- Throws:
SQLException- if a database access error occurs
- SCOPE short => actual scope of result
-
getVersionColumns
public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException Gets a description of the table columns that are automatically updated when any value in a row is updated. This method is not supported.- Specified by:
getVersionColumnsin interfaceDatabaseMetaData- Returns:
- An exception is always thrown. No columns are automatically updated.
- Throws:
SQLException- This exception is always thrown.
-
getPrimaryKeys
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException Retrieves a description of the given table's primary key columns. They are ordered by COLUMN_NAME.Each primary key column description has the following columns:
- TABLE_CAT String => table catalog (may be
null) - TABLE_SCHEM String => table schema (may be
null) - TABLE_NAME String => table name
- COLUMN_NAME String => column name
- KEY_SEQ short => sequence number within primary key
- PK_NAME String => primary key name (may be
null)
- Specified by:
getPrimaryKeysin interfaceDatabaseMetaData- Parameters:
catalog- a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;nullmeans that the catalog name should not be used to narrow the searchschema- a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;nullmeans that the schema name should not be used to narrow the searchtable- a table name; must match the table name as it is stored in the database- Returns:
ResultSet- each row is a primary key column description- Throws:
SQLException- if a database access error occurs
- TABLE_CAT String => table catalog (may be
-
getImportedKeys
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException Gets a description of the primary key columns that are referenced by a table's foreign key columns. This method is not supported.- Specified by:
getImportedKeysin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getExportedKeys
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException Gets a description of a foreign key columns that reference a table's primary key columns. This method is not supported.- Specified by:
getExportedKeysin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getCrossReference
public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException Gets a description of the foreign key columns in the foreign key table that reference the primary key columns of the primary key table. This method is not supported.- Specified by:
getCrossReferencein interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown.
-
getTypeInfo
public ResultSet getTypeInfo() throws SQLExceptionGets a description of all the standard SQL types supported by this database. They are ordered by DATA_TYPE and then by how closely the data type maps to the corresponding JDBC SQL type.Each type description has the following columns:
Column name Data type Description TYPE_NAME String Type name DATA_TYPE short SQL data type from java.sql.Types PRECISION int maximum precision LITERAL_PREFIX String prefix used to quote a literal (may be null) LITERAL_SUFFIX String suffix used to quote a literal (may be null) CREATE_PARAMS String parameters used in creating the type (may be null) NULLABLE short can you use NULL for this type ? - typeNullable - allows NULL values
- typeNullableUnknown - nullability unknown
CASE_SENSITIVE boolean is it case sensitive ? 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 ..
UNSIGNED_ATTRIBUTE boolean is it unsigned ? FIXED_PREC_SCALE boolean can it be a money value ? AUTO_INCREMENT boolean can it be used for an auto-increment value ? LOCAL_TYPE_NAME String Localized version of type name (may be null) MINIMUM_SCALE short minimum scale supported MAXIMUM_SCALE short maximum scale supported SQL_DATA_TYPE int unused SQL_DATETIME_SUB int unused NUM_PREC_RADIX int usually 2 or 10 - Specified by:
getTypeInfoin interfaceDatabaseMetaData- Returns:
- ResultSet in which each row is an SQL type definition.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getIndexInfo
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException Retrieves a description of the given table's indices and statistics. They are ordered by NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION.Each index column description has the following columns:
- TABLE_CAT String => table catalog (may be
null) - TABLE_SCHEM String => table schema (may be
null) - TABLE_NAME String => table name
- NON_UNIQUE boolean => Can index values be non-unique. false when TYPE is tableIndexStatistic
- INDEX_QUALIFIER String => index catalog (may be
null);nullwhen TYPE is tableIndexStatistic - INDEX_NAME String => index name;
nullwhen TYPE is tableIndexStatistic - TYPE short => index type:
- tableIndexStatistic - this identifies table statistics that are returned in conjunction 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
- ORDINAL_POSITION short => column sequence number within index; zero when TYPE is tableIndexStatistic
- COLUMN_NAME String => column name;
nullwhen TYPE is tableIndexStatistic - ASC_OR_DESC String => column sort sequence, "A" => ascending,
"D" => descending, may be
nullif sort sequence is not supported;nullwhen TYPE is tableIndexStatistic - 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.
- 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.
- FILTER_CONDITION String => Filter condition, if any. (may be
null)
- Specified by:
getIndexInfoin interfaceDatabaseMetaData- Parameters:
catalog- a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog;nullmeans that the catalog name should not be used to narrow the searchschema- a schema name; must match the schema name as it is stored in this database; "" retrieves those without a schema;nullmeans that the schema name should not be used to narrow the searchtable- a table name; must match the table name as it is stored in this databaseunique- when true, return only indices for unique values; when false, return indices regardless of whether unique or notapproximate- when true, result is allowed to reflect approximate or out of data values; when false, results are requested to be accurate- Returns:
ResultSet- each row is an index column description- Throws:
SQLException- if a database access error occurs
- TABLE_CAT String => table catalog (may be
-
supportsResultSetType
public boolean supportsResultSetType(int type) throws SQLException JDBC 2.0 Determines if the database supports the given result set type.- Specified by:
supportsResultSetTypein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet- Returns:
- True if the type is TYPE_SCROLL_INSENSITIVE or TYPE_FORWARD_ONLY, else, returns False.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.- See Also:
-
supportsResultSetConcurrency
public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException JDBC 2.0 Determines if the database supports the concurrency type in combination with the given result set type.- Specified by:
supportsResultSetConcurrencyin interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.concurrency- type The concurrency type defined in java.sql.ResultSet.- Returns:
- True if the resultset type is TYPE_SCROLL_INSENSITIVE or TYPE_FORWARD_ONLY and if the concurrency type is CONCUR_UPDATABLE or CONCUR_READ_ONLY, else returns False.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.- See Also:
-
ownUpdatesAreVisible
public boolean ownUpdatesAreVisible(int type) throws SQLException JDBC 2.0 Determines whether a result set's own changes are visible.- Specified by:
ownUpdatesAreVisiblein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
trueOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
ownDeletesAreVisible
public boolean ownDeletesAreVisible(int type) throws SQLException JDBC 2.0 Determines whether a result set's own changes are visible.- Specified by:
ownDeletesAreVisiblein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
trueOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
ownInsertsAreVisible
public boolean ownInsertsAreVisible(int type) throws SQLException JDBC 2.0 Determines whether a result set's own changes are visible.- Specified by:
ownInsertsAreVisiblein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
trueOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
othersUpdatesAreVisible
public boolean othersUpdatesAreVisible(int type) throws SQLException JDBC 2.0 Determines whether changes made by others are visible.- Specified by:
othersUpdatesAreVisiblein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
falseOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
othersDeletesAreVisible
public boolean othersDeletesAreVisible(int type) throws SQLException JDBC 2.0 Determines whether changes made by others are visible.- Specified by:
othersDeletesAreVisiblein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
falseOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
othersInsertsAreVisible
public boolean othersInsertsAreVisible(int type) throws SQLException JDBC 2.0 Determines whether changes made by others are visible.- Specified by:
othersInsertsAreVisiblein interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
falseOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
updatesAreDetected
public boolean updatesAreDetected(int type) throws SQLException JDBC 2.0 Determines whether or not a visible row update can be detected by calling ResultSet.rowUpdated().- Specified by:
updatesAreDetectedin interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
falseOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
deletesAreDetected
public boolean deletesAreDetected(int type) throws SQLException JDBC 2.0 Determines whether or not a visible row delete can be detected by calling ResultSet.rowDeleted(). If deletesAreDetected() returns false, then deleted rows are removed from the result set.- Specified by:
deletesAreDetectedin interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
falseOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
insertsAreDetected
public boolean insertsAreDetected(int type) throws SQLException JDBC 2.0 Determines whether or not a visible row insert can be detected by calling ResultSet.rowInserted().- Specified by:
insertsAreDetectedin interfaceDatabaseMetaData- Parameters:
type- The type defined in java.sql.ResultSet.- Returns:
falseOwn changes are visible.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
supportsBatchUpdates
public boolean supportsBatchUpdates() throws SQLExceptionJDBC 2.0 Determines if the database supports batch updates.- Specified by:
supportsBatchUpdatesin interfaceDatabaseMetaData- Returns:
trueBatch updates are supported as sequential queuing of update calls.- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
getUDTs
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException JDBC 2.0 Gets a description of the user-defined types defined in a particular schema. Schema specific UDTs may have type JAVA_OBJECT, STRUCT, or DISTINCT.- Specified by:
getUDTsin interfaceDatabaseMetaData- Parameters:
catalog- a catalog name; "" retrieves those without a catalog; null means drop catalog name from the selection criteriaschemaPattern- a schema name pattern; "" retrieves those without a schematypeNamePattern- a type name pattern; may be a fully qualified nametypes- a list of user-named types to include (JAVA_OBJECT, STRUCT, or DISTINCT); null returns all types- Returns:
- An empty ResultSet object.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
getConnection
public Connection getConnection() throws SQLExceptionJDBC 2.0 Gets the connection that produced this metadata object.- Specified by:
getConnectionin interfaceDatabaseMetaData- Returns:
- An MVAConnection object.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
getAttributes
public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException Retrieves a description of the given attribute of the given type for a user-defined type (UDT) that is available in the given schema and catalog. Empty method implementation for JDK1.4 compliance.- Specified by:
getAttributesin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown to indicate the method is not implemented.
-
getDatabaseMajorVersion
public int getDatabaseMajorVersion() throws SQLExceptionRetrieves the major version number of the underlying database.- Specified by:
getDatabaseMajorVersionin interfaceDatabaseMetaData- Returns:
- the underlying database's major version
- Throws:
SQLException- if a database access error occurs- Since:
- 1.4
-
getDatabaseMinorVersion
public int getDatabaseMinorVersion() throws SQLExceptionRetrieves the minor version number of the underlying database.- Specified by:
getDatabaseMinorVersionin interfaceDatabaseMetaData- Returns:
- underlying database's minor version
- Throws:
SQLException- if a database access error occurs- Since:
- 1.4
-
getJDBCMajorVersion
public int getJDBCMajorVersion() throws SQLExceptionRetrieves the major JDBC version number for this driver.- Specified by:
getJDBCMajorVersionin interfaceDatabaseMetaData- Returns:
- JDBC version major number
- Throws:
SQLException- if a database access error occurs- Since:
- 1.4
-
getJDBCMinorVersion
public int getJDBCMinorVersion() throws SQLExceptionRetrieves the minor JDBC version number for this driver.- Specified by:
getJDBCMinorVersionin interfaceDatabaseMetaData- Returns:
- JDBC version major number
- Throws:
SQLException- if a database access error occurs- Since:
- 1.4
-
getResultSetHoldability
public int getResultSetHoldability() throws SQLException- Specified by:
getResultSetHoldabilityin interfaceDatabaseMetaData- Throws:
SQLException
-
getSQLStateType
public int getSQLStateType() throws SQLException- Specified by:
getSQLStateTypein interfaceDatabaseMetaData- Throws:
SQLException
-
getSuperTables
public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException Retrieves a description of the table hierarchies defined in a particular schema in this database. Empty method implementation for JDK1.4 compliance.- Specified by:
getSuperTablesin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown to indicate the method is not implemented.
-
getSuperTypes
public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database. Empty method implementation for JDK1.4 compliance.- Specified by:
getSuperTypesin interfaceDatabaseMetaData- Throws:
SQLException- This exception is always thrown to indicate the method is not implemented.
-
locatorsUpdateCopy
public boolean locatorsUpdateCopy() throws SQLException- Specified by:
locatorsUpdateCopyin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys() throws SQLException- Specified by:
supportsGetGeneratedKeysin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsMultipleOpenResults
public boolean supportsMultipleOpenResults() throws SQLException- Specified by:
supportsMultipleOpenResultsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsNamedParameters
public boolean supportsNamedParameters() throws SQLException- Specified by:
supportsNamedParametersin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsResultSetHoldability
public boolean supportsResultSetHoldability(int holdability) throws SQLException - Specified by:
supportsResultSetHoldabilityin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsSavepoints
public boolean supportsSavepoints() throws SQLException- Specified by:
supportsSavepointsin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsStatementPooling
public boolean supportsStatementPooling() throws SQLException- Specified by:
supportsStatementPoolingin interfaceDatabaseMetaData- Throws:
SQLException
-
getRowIdLifetime
public RowIdLifetime getRowIdLifetime() throws SQLException- Specified by:
getRowIdLifetimein interfaceDatabaseMetaData- Throws:
SQLException
-
getSchemas
public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException - Specified by:
getSchemasin interfaceDatabaseMetaData- Throws:
SQLException
-
supportsStoredFunctionsUsingCallSyntax
public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException- Specified by:
supportsStoredFunctionsUsingCallSyntaxin interfaceDatabaseMetaData- Throws:
SQLException
-
autoCommitFailureClosesAllResultSets
public boolean autoCommitFailureClosesAllResultSets() throws SQLException- Specified by:
autoCommitFailureClosesAllResultSetsin interfaceDatabaseMetaData- Throws:
SQLException
-
getClientInfoProperties
public ResultSet getClientInfoProperties() throws SQLExceptionTheMVADatabaseMetaDataimplementation ofgetClientInfoPropertiesalways returns an empty result set. The IOM JDBC Driver does not support the ability to set or retrieve client info properties.- Specified by:
getClientInfoPropertiesin interfaceDatabaseMetaData- Throws:
SQLException
-
getFunctions
public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException This method is not supported.Retrieves a description of the system and user functions available in the given catalog.
Only system and user function descriptions matching the schema and function name criteria are returned. They are ordered by
FUNCTION_CAT,FUNCTION_SCHEM,FUNCTION_NAMEandSPECIFIC_ NAME.Each function description has the the following columns:
- FUNCTION_CAT String => function catalog (may be
null) - FUNCTION_SCHEM String => function schema (may be
null) - FUNCTION_NAME String => function name. This is the name used to invoke the function
- REMARKS String => explanatory comment on the function
- 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
- 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_NAMEfor example with overload functions
A user may not have permission to execute any of the functions that are returned by
getFunctions- Specified by:
getFunctionsin interfaceDatabaseMetaData- Parameters:
catalog- a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;nullmeans that the catalog name should not be used to narrow the searchschemaPattern- a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;nullmeans that the schema name should not be used to narrow the searchfunctionNamePattern- a function name pattern; must match the function name as it is stored in the database- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
- See Also:
- FUNCTION_CAT String => function catalog (may be
-
getFunctionColumns
public ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException This method is not supported.Retrieves a description of the given catalog's system or user function parameters and return type.
Only descriptions matching the schema, function and parameter name criteria are returned. They are ordered by
FUNCTION_CAT,FUNCTION_SCHEM,FUNCTION_NAMEandSPECIFIC_ NAME. Within this, the return value, if any, is first. Next are the parameter descriptions in call order. The column descriptions follow in column number order.Each row in the
ResultSetis a parameter description, column description or return type description with the following fields:- FUNCTION_CAT String => function catalog (may be
null) - FUNCTION_SCHEM String => function schema (may be
null) - FUNCTION_NAME String => function name. This is the name used to invoke the function
- COLUMN_NAME String => column/parameter name
- 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
- DATA_TYPE int => SQL type from java.sql.Types
- TYPE_NAME String => SQL type name, for a UDT type the type name is fully qualified
- PRECISION int => precision
- LENGTH int => length in bytes of data
- SCALE short => scale - null is returned for data types where SCALE is not applicable.
- RADIX short => radix
- NULLABLE short => can it contain NULL.
- functionNoNulls - does not allow NULL values
- functionNullable - allows NULL values
- functionNullableUnknown - nullability unknown
- REMARKS String => comment describing column/parameter
- 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
- 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.
- 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
- 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_NAMEfor example with overload functions
The PRECISION column represents the specified column size for the given parameter or column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
- Specified by:
getFunctionColumnsin interfaceDatabaseMetaData- Parameters:
catalog- a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;nullmeans that the catalog name should not be used to narrow the searchschemaPattern- a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;nullmeans that the schema name should not be used to narrow the searchfunctionNamePattern- a procedure name pattern; must match the function name as it is stored in the databasecolumnNamePattern- a parameter name pattern; must match the parameter or column name as it is stored in the database- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
- See Also:
- FUNCTION_CAT String => function catalog (may be
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException - Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException - Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
generatedKeyAlwaysReturned
public boolean generatedKeyAlwaysReturned() throws SQLException- Specified by:
generatedKeyAlwaysReturnedin interfaceDatabaseMetaData- Throws:
SQLException
-
getPseudoColumns
public ResultSet getPseudoColumns(String arg0, String arg1, String arg2, String arg3) throws SQLException - Specified by:
getPseudoColumnsin interfaceDatabaseMetaData- Throws:
SQLException
-