allProceduresAreCallable
public boolean allProceduresAreCallable()
throws SQLException
allTablesAreSelectable
public boolean allTablesAreSelectable()
throws SQLException
dataDefinitionCausesTransactionCommit
public boolean dataDefinitionCausesTransactionCommit()
throws SQLException
dataDefinitionIgnoredInTransactions
public boolean dataDefinitionIgnoredInTransactions()
throws SQLException
deletesAreDetected
public boolean deletesAreDetected(int i)
throws SQLException
doesMaxRowSizeIncludeBlobs
public boolean doesMaxRowSizeIncludeBlobs()
throws SQLException
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.
Descriptions are returned only for attributes of UDTs matching the
catalog, schema, type, and attribute name criteria. They are ordered by
TYPE_SCHEM, TYPE_NAME and ORDINAL_POSITION. This description does not
contain inherited attributes.
The
ResultSet
object that is returned has the following
columns:
- TYPE_CAT String => type catalog (may be
null
)
- TYPE_SCHEM String => type schema (may be
null
)
- TYPE_NAME String => type name
- ATTR_NAME String => attribute name
- DATA_TYPE short => attribute type SQL type from
java.sql.Types
- 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.
- 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.
- DECIMAL_DIGITS int => the number of fractional digits
- NUM_PREC_RADIX int => Radix (typically either 10 or 2)
- NULLABLE int => whether NULL is allowed
- attributeNoNulls - might not allow NULL values
- attributeNullable - definitely allows NULL values
- attributeNullableUnknown - nullability unknown
- REMARKS String => comment describing column (may be
null
)
- ATTR_DEF String => default value (may be
null
)
- SQL_DATA_TYPE int => unused
- SQL_DATETIME_SUB int => unused
- CHAR_OCTET_LENGTH int => for char types the maximum number
of bytes in the column
- ORDINAL_POSITION int => index of column in table (starting
at 1)
- IS_NULLABLE String => "NO" means column definitely does not
allow NULL values; "YES" means the column might allow NULL values. An
empty string means unknown.
- SCOPE_CATALOG String => catalog of table that is the scope
of a reference attribute (
null
if DATA_TYPE isn't REF)
- SCOPE_SCHEMA String => schema of table that is the scope of
a reference attribute (
null
if DATA_TYPE isn't REF)
- SCOPE_TABLE String => table name that is the scope of a
reference attribute (
null
if the DATA_TYPE isn't REF)
- 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)
catalog
- 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 searchschemaPattern
- 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 searchtypeNamePattern
- a type name pattern; must match the type name as
it is stored in the databaseattributeNamePattern
- an attribute name pattern; must match the
attribute name as it is declared in the database
- a
ResultSet
object in which each row is an
attribute description
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog,
String schema,
String table,
int scope,
boolean nullable)
throws SQLException
getCatalogSeparator
public String getCatalogSeparator()
throws SQLException
getCatalogTerm
public String getCatalogTerm()
throws SQLException
getCatalogs
public ResultSet getCatalogs()
throws SQLException
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog,
String schema,
String table,
String columnNamePattern)
throws SQLException
getColumns
public ResultSet getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
throws SQLException
getConnection
public Connection getConnection()
throws SQLException
getCrossReference
public ResultSet getCrossReference(String primaryCatalog,
String primarySchema,
String primaryTable,
String foreignCatalog,
String foreignSchema,
String foreignTable)
throws SQLException
getDatabaseMajorVersion
public int getDatabaseMajorVersion()
throws SQLException
Retrieves the major version number of the underlying database.
- the underlying database's major version
getDatabaseMinorVersion
public int getDatabaseMinorVersion()
throws SQLException
Retrieves the minor version number of the underlying database.
- underlying database's minor version
getDatabaseProductName
public String getDatabaseProductName()
throws SQLException
getDatabaseProductVersion
public String getDatabaseProductVersion()
throws SQLException
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation()
throws SQLException
getDriverMajorVersion
public int getDriverMajorVersion()
getDriverMinorVersion
public int getDriverMinorVersion()
getDriverName
public String getDriverName()
throws SQLException
getDriverVersion
public String getDriverVersion()
throws SQLException
getExportedKeys
public ResultSet getExportedKeys(String catalog,
String schema,
String table)
throws SQLException
getExtraNameCharacters
public String getExtraNameCharacters()
throws SQLException
getIdentifierQuoteString
public String getIdentifierQuoteString()
throws SQLException
getImportedExportedKeys
protected ResultSet getImportedExportedKeys(String primaryCatalog,
String primarySchema,
String primaryTable,
String foreignCatalog,
String foreignSchema,
String foreignTable)
throws SQLException
primaryCatalog
- primarySchema
- primaryTable
- if provided will get the keys exported by this tableforeignTable
- if provided will get the keys imported by this table
getImportedKeys
public ResultSet getImportedKeys(String catalog,
String schema,
String table)
throws SQLException
getIndexInfo
public ResultSet getIndexInfo(String catalog,
String schema,
String tableName,
boolean unique,
boolean approximate)
throws SQLException
getJDBCMajorVersion
public int getJDBCMajorVersion()
throws SQLException
Retrieves the major JDBC version number for this driver.
- JDBC version major number
getJDBCMinorVersion
public int getJDBCMinorVersion()
throws SQLException
Retrieves the minor JDBC version number for this driver.
- JDBC version minor number
getMaxBinaryLiteralLength
public int getMaxBinaryLiteralLength()
throws SQLException
getMaxCatalogNameLength
public int getMaxCatalogNameLength()
throws SQLException
getMaxCharLiteralLength
public int getMaxCharLiteralLength()
throws SQLException
getMaxColumnNameLength
public int getMaxColumnNameLength()
throws SQLException
getMaxColumnsInGroupBy
public int getMaxColumnsInGroupBy()
throws SQLException
getMaxColumnsInIndex
public int getMaxColumnsInIndex()
throws SQLException
getMaxColumnsInOrderBy
public int getMaxColumnsInOrderBy()
throws SQLException
getMaxColumnsInSelect
public int getMaxColumnsInSelect()
throws SQLException
getMaxColumnsInTable
public int getMaxColumnsInTable()
throws SQLException
getMaxConnections
public int getMaxConnections()
throws SQLException
getMaxCursorNameLength
public int getMaxCursorNameLength()
throws SQLException
getMaxIndexKeys
protected int getMaxIndexKeys()
throws SQLException
getMaxIndexLength
public int getMaxIndexLength()
throws SQLException
getMaxNameLength
protected int getMaxNameLength()
throws SQLException
getMaxProcedureNameLength
public int getMaxProcedureNameLength()
throws SQLException
getMaxRowSize
public int getMaxRowSize()
throws SQLException
getMaxSchemaNameLength
public int getMaxSchemaNameLength()
throws SQLException
getMaxStatementLength
public int getMaxStatementLength()
throws SQLException
getMaxStatements
public int getMaxStatements()
throws SQLException
getMaxTableNameLength
public int getMaxTableNameLength()
throws SQLException
getMaxTablesInSelect
public int getMaxTablesInSelect()
throws SQLException
getMaxUserNameLength
public int getMaxUserNameLength()
throws SQLException
getNumericFunctions
public String getNumericFunctions()
throws SQLException
get supported escaped numeric functions
- a comma separated list of function names
getPrimaryKeys
public ResultSet getPrimaryKeys(String catalog,
String schema,
String table)
throws SQLException
getProcedureColumns
public ResultSet getProcedureColumns(String catalog,
String schemaPattern,
String procedureNamePattern,
String columnNamePattern)
throws SQLException
getProcedureTerm
public String getProcedureTerm()
throws SQLException
getProcedures
public ResultSet getProcedures(String catalog,
String schemaPattern,
String procedureNamePattern)
throws SQLException
getResultSetHoldability
public int getResultSetHoldability()
throws SQLException
Retrieves the default holdability of this ResultSet
object.
- the default holdability; either
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
getSQLKeywords
public String getSQLKeywords()
throws SQLException
getSQLStateType
public int getSQLStateType()
throws SQLException
Indicates whether the SQLSTATEs returned by
SQLException.getSQLState
is X/Open (now known as Open
Group) SQL CLI or SQL99.
- the type of SQLSTATEs, one of: sqlStateXOpen or sqlStateSQL99
getSchemaTerm
public String getSchemaTerm()
throws SQLException
getSchemas
public ResultSet getSchemas()
throws SQLException
getSearchStringEscape
public String getSearchStringEscape()
throws SQLException
getStringFunctions
public String getStringFunctions()
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.
Only supertable information for tables matching the catalog, schema and
table name are returned. The table name parameter may be a fully-
qualified name, in which case, the catalog and schemaPattern parameters
are ignored. If a table does not have a super table, it is not listed
here. Supertables have to be defined in the same catalog and schema as
the sub tables. Therefore, the type description does not need to include
this information for the supertable.
Each type description has the following columns:
- TABLE_CAT String => the type's catalog (may be
null
)
- TABLE_SCHEM String => type's schema (may be
null
)
- TABLE_NAME String => type name
- SUPERTABLE_NAME String => the direct super type's name
Note: If the driver does not support type hierarchies, an empty
result set is returned.
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
schematableNamePattern
- a table name pattern; may be a fully-qualified
name
- a
ResultSet
object in which each row is a type
description
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. Only the immediate super
type/ sub type relationship is modeled.
Only supertype information for UDTs matching the catalog, schema, and
type name is returned. The type name parameter may be a fully-qualified
name. When the UDT name supplied is a fully-qualified name, the catalog
and schemaPattern parameters are ignored.
If a UDT does not have a direct super type, it is not listed here. A row
of the
ResultSet
object returned by this method describes
the designated UDT and a direct supertype. A row has the following
columns:
- TYPE_CAT String => the UDT's catalog (may be
null
)
- TYPE_SCHEM String => UDT's schema (may be
null
)
- TYPE_NAME String => type name of the UDT
- SUPERTYPE_CAT String => the direct super type's catalog (may
be
null
)
- SUPERTYPE_SCHEM String => the direct super type's schema
(may be
null
)
- SUPERTYPE_NAME String => the direct super type's name
Note: If the driver does not support type hierarchies, an empty
result set is returned.
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 UDT name pattern; may be a fully-qualified name
- a
ResultSet
object in which a row gives
information about the designated UDT
getSystemFunctions
public String getSystemFunctions()
throws SQLException
getTablePrivileges
public ResultSet getTablePrivileges(String catalog,
String schemaPattern,
String tableNamePattern)
throws SQLException
getTableTypes
public ResultSet getTableTypes()
throws SQLException
getTables
public ResultSet getTables(String catalog,
String schemaPattern,
String tableNamePattern,
types[] )
throws SQLException
getTimeDateFunctions
public String getTimeDateFunctions()
throws SQLException
getTypeInfo
public ResultSet getTypeInfo()
throws SQLException
getUDTs
public ResultSet getUDTs(String catalog,
String schemaPattern,
String typeNamePattern,
int[] types)
throws SQLException
catalog
- StringschemaPattern
- StringtypeNamePattern
- Stringtypes
- int[]
getURL
public String getURL()
throws SQLException
getUserName
public String getUserName()
throws SQLException
getVersionColumns
public ResultSet getVersionColumns(String catalog,
String schema,
String table)
throws SQLException
insertsAreDetected
public boolean insertsAreDetected(int type)
throws SQLException
isCatalogAtStart
public boolean isCatalogAtStart()
throws SQLException
isReadOnly
public boolean isReadOnly()
throws SQLException
locatorsUpdateCopy
public boolean locatorsUpdateCopy()
throws SQLException
Indicates whether updates made to a LOB are made on a copy or directly to
the LOB.
true
if updates are made to a copy of the LOB;
false
if updates are made directly to the LOB
nullPlusNonNullIsNull
public boolean nullPlusNonNullIsNull()
throws SQLException
nullsAreSortedAtEnd
public boolean nullsAreSortedAtEnd()
throws SQLException
nullsAreSortedAtStart
public boolean nullsAreSortedAtStart()
throws SQLException
nullsAreSortedHigh
public boolean nullsAreSortedHigh()
throws SQLException
nullsAreSortedLow
public boolean nullsAreSortedLow()
throws SQLException
othersDeletesAreVisible
public boolean othersDeletesAreVisible(int i)
throws SQLException
othersInsertsAreVisible
public boolean othersInsertsAreVisible(int type)
throws SQLException
othersUpdatesAreVisible
public boolean othersUpdatesAreVisible(int type)
throws SQLException
ownDeletesAreVisible
public boolean ownDeletesAreVisible(int type)
throws SQLException
ownInsertsAreVisible
public boolean ownInsertsAreVisible(int type)
throws SQLException
ownUpdatesAreVisible
public boolean ownUpdatesAreVisible(int type)
throws SQLException
parseACL
protected HashMap parseACL(String[] aclArray,
String owner)
Take the a String representing an array of ACLs and return a HashMap
mapping the SQL permission name to a ArrayList of usernames who have that
permission.
rowChangesAreDetected
public boolean rowChangesAreDetected(int type)
throws SQLException
rowChangesAreVisible
public boolean rowChangesAreVisible(int type)
throws SQLException
storesLowerCaseIdentifiers
public boolean storesLowerCaseIdentifiers()
throws SQLException
storesLowerCaseQuotedIdentifiers
public boolean storesLowerCaseQuotedIdentifiers()
throws SQLException
storesMixedCaseIdentifiers
public boolean storesMixedCaseIdentifiers()
throws SQLException
storesMixedCaseQuotedIdentifiers
public boolean storesMixedCaseQuotedIdentifiers()
throws SQLException
storesUpperCaseIdentifiers
public boolean storesUpperCaseIdentifiers()
throws SQLException
storesUpperCaseQuotedIdentifiers
public boolean storesUpperCaseQuotedIdentifiers()
throws SQLException
supportsANSI92EntryLevelSQL
public boolean supportsANSI92EntryLevelSQL()
throws SQLException
supportsANSI92FullSQL
public boolean supportsANSI92FullSQL()
throws SQLException
supportsANSI92IntermediateSQL
public boolean supportsANSI92IntermediateSQL()
throws SQLException
supportsAlterTableWithAddColumn
public boolean supportsAlterTableWithAddColumn()
throws SQLException
supportsAlterTableWithDropColumn
public boolean supportsAlterTableWithDropColumn()
throws SQLException
supportsBatchUpdates
public boolean supportsBatchUpdates()
throws SQLException
supportsCatalogsInDataManipulation
public boolean supportsCatalogsInDataManipulation()
throws SQLException
supportsCatalogsInIndexDefinitions
public boolean supportsCatalogsInIndexDefinitions()
throws SQLException
supportsCatalogsInPrivilegeDefinitions
public boolean supportsCatalogsInPrivilegeDefinitions()
throws SQLException
supportsCatalogsInProcedureCalls
public boolean supportsCatalogsInProcedureCalls()
throws SQLException
supportsCatalogsInTableDefinitions
public boolean supportsCatalogsInTableDefinitions()
throws SQLException
supportsColumnAliasing
public boolean supportsColumnAliasing()
throws SQLException
supportsConvert
public boolean supportsConvert()
throws SQLException
supportsConvert
public boolean supportsConvert(int fromType,
int toType)
throws SQLException
supportsCoreSQLGrammar
public boolean supportsCoreSQLGrammar()
throws SQLException
supportsCorrelatedSubqueries
public boolean supportsCorrelatedSubqueries()
throws SQLException
supportsDataDefinitionAndDataManipulationTransactions
public boolean supportsDataDefinitionAndDataManipulationTransactions()
throws SQLException
supportsDataManipulationTransactionsOnly
public boolean supportsDataManipulationTransactionsOnly()
throws SQLException
supportsDifferentTableCorrelationNames
public boolean supportsDifferentTableCorrelationNames()
throws SQLException
supportsExpressionsInOrderBy
public boolean supportsExpressionsInOrderBy()
throws SQLException
supportsExtendedSQLGrammar
public boolean supportsExtendedSQLGrammar()
throws SQLException
supportsFullOuterJoins
public boolean supportsFullOuterJoins()
throws SQLException
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()
throws SQLException
Retrieves whether auto-generated keys can be retrieved after a statement
has been executed.
true
if auto-generated keys can be retrieved after
a statement has executed; false
otherwise
supportsGroupBy
public boolean supportsGroupBy()
throws SQLException
supportsGroupByBeyondSelect
public boolean supportsGroupByBeyondSelect()
throws SQLException
supportsGroupByUnrelated
public boolean supportsGroupByUnrelated()
throws SQLException
supportsIntegrityEnhancementFacility
public boolean supportsIntegrityEnhancementFacility()
throws SQLException
supportsLikeEscapeClause
public boolean supportsLikeEscapeClause()
throws SQLException
supportsLimitedOuterJoins
public boolean supportsLimitedOuterJoins()
throws SQLException
supportsMinimumSQLGrammar
public boolean supportsMinimumSQLGrammar()
throws SQLException
supportsMixedCaseIdentifiers
public boolean supportsMixedCaseIdentifiers()
throws SQLException
supportsMixedCaseQuotedIdentifiers
public boolean supportsMixedCaseQuotedIdentifiers()
throws SQLException
supportsMultipleOpenResults
public boolean supportsMultipleOpenResults()
throws SQLException
Retrieves whether it is possible to have multiple ResultSet
objects returned from a CallableStatement
object
simultaneously.
true
if a CallableStatement
object
can return multiple ResultSet
objects
simultaneously; false
otherwise
supportsMultipleResultSets
public boolean supportsMultipleResultSets()
throws SQLException
supportsMultipleTransactions
public boolean supportsMultipleTransactions()
throws SQLException
supportsNamedParameters
public boolean supportsNamedParameters()
throws SQLException
Retrieves whether this database supports named parameters to callable
statements.
true
if named parameters are supported;
false
otherwise
supportsNonNullableColumns
public boolean supportsNonNullableColumns()
throws SQLException
supportsOpenCursorsAcrossCommit
public boolean supportsOpenCursorsAcrossCommit()
throws SQLException
supportsOpenCursorsAcrossRollback
public boolean supportsOpenCursorsAcrossRollback()
throws SQLException
supportsOpenStatementsAcrossCommit
public boolean supportsOpenStatementsAcrossCommit()
throws SQLException
supportsOpenStatementsAcrossRollback
public boolean supportsOpenStatementsAcrossRollback()
throws SQLException
supportsOrderByUnrelated
public boolean supportsOrderByUnrelated()
throws SQLException
supportsOuterJoins
public boolean supportsOuterJoins()
throws SQLException
supportsPositionedDelete
public boolean supportsPositionedDelete()
throws SQLException
supportsPositionedUpdate
public boolean supportsPositionedUpdate()
throws SQLException
supportsResultSetConcurrency
public boolean supportsResultSetConcurrency(int type,
int concurrency)
throws SQLException
supportsResultSetHoldability
public boolean supportsResultSetHoldability(int holdability)
throws SQLException
Retrieves whether this database supports the given result set
holdability.
holdability
- one of the following constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
true
if so; false
otherwise
supportsResultSetType
public boolean supportsResultSetType(int type)
throws SQLException
supportsSavepoints
public boolean supportsSavepoints()
throws SQLException
Retrieves whether this database supports savepoints.
true
if savepoints are supported;
false
otherwise
supportsSchemasInDataManipulation
public boolean supportsSchemasInDataManipulation()
throws SQLException
supportsSchemasInIndexDefinitions
public boolean supportsSchemasInIndexDefinitions()
throws SQLException
supportsSchemasInPrivilegeDefinitions
public boolean supportsSchemasInPrivilegeDefinitions()
throws SQLException
supportsSchemasInProcedureCalls
public boolean supportsSchemasInProcedureCalls()
throws SQLException
supportsSchemasInTableDefinitions
public boolean supportsSchemasInTableDefinitions()
throws SQLException
supportsSelectForUpdate
public boolean supportsSelectForUpdate()
throws SQLException
supportsStatementPooling
public boolean supportsStatementPooling()
throws SQLException
Retrieves weather this database supports statement pooling.
true
is so; false
otherwise
supportsStoredProcedures
public boolean supportsStoredProcedures()
throws SQLException
supportsSubqueriesInComparisons
public boolean supportsSubqueriesInComparisons()
throws SQLException
supportsSubqueriesInExists
public boolean supportsSubqueriesInExists()
throws SQLException
supportsSubqueriesInIns
public boolean supportsSubqueriesInIns()
throws SQLException
supportsSubqueriesInQuantifieds
public boolean supportsSubqueriesInQuantifieds()
throws SQLException
supportsTableCorrelationNames
public boolean supportsTableCorrelationNames()
throws SQLException
supportsTransactionIsolationLevel
public boolean supportsTransactionIsolationLevel(int level)
throws SQLException
supportsTransactions
public boolean supportsTransactions()
throws SQLException
supportsUnion
public boolean supportsUnion()
throws SQLException
supportsUnionAll
public boolean supportsUnionAll()
throws SQLException
updatesAreDetected
public boolean updatesAreDetected(int type)
throws SQLException
usesLocalFilePerTable
public boolean usesLocalFilePerTable()
throws SQLException
usesLocalFiles
public boolean usesLocalFiles()
throws SQLException