org.postgresql.pljava.jdbc
Class SPIDatabaseMetaData

java.lang.Object
  extended by org.postgresql.pljava.jdbc.SPIDatabaseMetaData
All Implemented Interfaces:
DatabaseMetaData

public class SPIDatabaseMetaData
extends Object
implements DatabaseMetaData


Field Summary
 
Fields inherited from interface java.sql.DatabaseMetaData
attributeNoNulls, attributeNullable, attributeNullableUnknown, bestRowNotPseudo, bestRowPseudo, bestRowSession, bestRowTemporary, bestRowTransaction, bestRowUnknown, columnNoNulls, columnNullable, columnNullableUnknown, importedKeyCascade, importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, importedKeyNoAction, importedKeyNotDeferrable, importedKeyRestrict, importedKeySetDefault, importedKeySetNull, procedureColumnIn, procedureColumnInOut, procedureColumnOut, procedureColumnResult, procedureColumnReturn, procedureColumnUnknown, procedureNoNulls, procedureNoResult, procedureNullable, procedureNullableUnknown, procedureResultUnknown, procedureReturnsResult, sqlStateSQL99, sqlStateXOpen, tableIndexClustered, tableIndexHashed, tableIndexOther, tableIndexStatistic, typeNoNulls, typeNullable, typeNullableUnknown, typePredBasic, typePredChar, typePredNone, typeSearchable, versionColumnNotPseudo, versionColumnPseudo, versionColumnUnknown
 
Constructor Summary
SPIDatabaseMetaData(SPIConnection conn)
           
 
Method Summary
 boolean allProceduresAreCallable()
           
 boolean allTablesAreSelectable()
           
 boolean dataDefinitionCausesTransactionCommit()
           
 boolean dataDefinitionIgnoredInTransactions()
           
 boolean deletesAreDetected(int i)
           
 boolean doesMaxRowSizeIncludeBlobs()
           
 ResultSet getAttributes(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.
 ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)
           
 ResultSet getCatalogs()
           
 String getCatalogSeparator()
           
 String getCatalogTerm()
           
 ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)
           
 ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
           
 Connection getConnection()
           
 ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)
           
 int getDatabaseMajorVersion()
          Retrieves the major version number of the underlying database.
 int getDatabaseMinorVersion()
          Retrieves the minor version number of the underlying database.
 String getDatabaseProductName()
           
 String getDatabaseProductVersion()
           
 int getDefaultTransactionIsolation()
           
 int getDriverMajorVersion()
           
 int getDriverMinorVersion()
           
 String getDriverName()
           
 String getDriverVersion()
           
 ResultSet getExportedKeys(String catalog, String schema, String table)
           
 String getExtraNameCharacters()
           
 String getIdentifierQuoteString()
           
protected  ResultSet getImportedExportedKeys(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)
           
 ResultSet getImportedKeys(String catalog, String schema, String table)
           
 ResultSet getIndexInfo(String catalog, String schema, String tableName, boolean unique, boolean approximate)
           
 int getJDBCMajorVersion()
          Retrieves the major JDBC version number for this driver.
 int getJDBCMinorVersion()
          Retrieves the minor JDBC version number for this driver.
 int getMaxBinaryLiteralLength()
           
 int getMaxCatalogNameLength()
           
 int getMaxCharLiteralLength()
           
 int getMaxColumnNameLength()
           
 int getMaxColumnsInGroupBy()
           
 int getMaxColumnsInIndex()
           
 int getMaxColumnsInOrderBy()
           
 int getMaxColumnsInSelect()
           
 int getMaxColumnsInTable()
           
 int getMaxConnections()
           
 int getMaxCursorNameLength()
           
protected  int getMaxIndexKeys()
           
 int getMaxIndexLength()
           
protected  int getMaxNameLength()
           
 int getMaxProcedureNameLength()
           
 int getMaxRowSize()
           
 int getMaxSchemaNameLength()
           
 int getMaxStatementLength()
           
 int getMaxStatements()
           
 int getMaxTableNameLength()
           
 int getMaxTablesInSelect()
           
 int getMaxUserNameLength()
           
 String getNumericFunctions()
          get supported escaped numeric functions
 ResultSet getPrimaryKeys(String catalog, String schema, String table)
           
 ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)
           
 ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern)
           
 String getProcedureTerm()
           
 int getResultSetHoldability()
          Retrieves the default holdability of this ResultSet object.
 ResultSet getSchemas()
           
 String getSchemaTerm()
           
 String getSearchStringEscape()
           
 String getSQLKeywords()
           
 int getSQLStateType()
          Indicates whether the SQLSTATEs returned by SQLException.getSQLState is X/Open (now known as Open Group) SQL CLI or SQL99.
 String getStringFunctions()
           
 ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern)
          Retrieves a description of the table hierarchies defined in a particular schema in this database.
 ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern)
          Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database.
 String getSystemFunctions()
           
 ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)
           
 ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)
           
 ResultSet getTableTypes()
           
 String getTimeDateFunctions()
           
 ResultSet getTypeInfo()
           
 ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)
           
 String getURL()
           
 String getUserName()
           
 ResultSet getVersionColumns(String catalog, String schema, String table)
           
 boolean insertsAreDetected(int type)
           
 boolean isCatalogAtStart()
           
 boolean isReadOnly()
           
 boolean locatorsUpdateCopy()
          Indicates whether updates made to a LOB are made on a copy or directly to the LOB.
 boolean nullPlusNonNullIsNull()
           
 boolean nullsAreSortedAtEnd()
           
 boolean nullsAreSortedAtStart()
           
 boolean nullsAreSortedHigh()
           
 boolean nullsAreSortedLow()
           
 boolean othersDeletesAreVisible(int i)
           
 boolean othersInsertsAreVisible(int type)
           
 boolean othersUpdatesAreVisible(int type)
           
 boolean ownDeletesAreVisible(int type)
           
 boolean ownInsertsAreVisible(int type)
           
 boolean ownUpdatesAreVisible(int type)
           
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.
 boolean rowChangesAreDetected(int type)
           
 boolean rowChangesAreVisible(int type)
           
 boolean storesLowerCaseIdentifiers()
           
 boolean storesLowerCaseQuotedIdentifiers()
           
 boolean storesMixedCaseIdentifiers()
           
 boolean storesMixedCaseQuotedIdentifiers()
           
 boolean storesUpperCaseIdentifiers()
           
 boolean storesUpperCaseQuotedIdentifiers()
           
 boolean supportsAlterTableWithAddColumn()
           
 boolean supportsAlterTableWithDropColumn()
           
 boolean supportsANSI92EntryLevelSQL()
           
 boolean supportsANSI92FullSQL()
           
 boolean supportsANSI92IntermediateSQL()
           
 boolean supportsBatchUpdates()
           
 boolean supportsCatalogsInDataManipulation()
           
 boolean supportsCatalogsInIndexDefinitions()
           
 boolean supportsCatalogsInPrivilegeDefinitions()
           
 boolean supportsCatalogsInProcedureCalls()
           
 boolean supportsCatalogsInTableDefinitions()
           
 boolean supportsColumnAliasing()
           
 boolean supportsConvert()
           
 boolean supportsConvert(int fromType, int toType)
           
 boolean supportsCoreSQLGrammar()
           
 boolean supportsCorrelatedSubqueries()
           
 boolean supportsDataDefinitionAndDataManipulationTransactions()
           
 boolean supportsDataManipulationTransactionsOnly()
           
 boolean supportsDifferentTableCorrelationNames()
           
 boolean supportsExpressionsInOrderBy()
           
 boolean supportsExtendedSQLGrammar()
           
 boolean supportsFullOuterJoins()
           
 boolean supportsGetGeneratedKeys()
          Retrieves whether auto-generated keys can be retrieved after a statement has been executed.
 boolean supportsGroupBy()
           
 boolean supportsGroupByBeyondSelect()
           
 boolean supportsGroupByUnrelated()
           
 boolean supportsIntegrityEnhancementFacility()
           
 boolean supportsLikeEscapeClause()
           
 boolean supportsLimitedOuterJoins()
           
 boolean supportsMinimumSQLGrammar()
           
 boolean supportsMixedCaseIdentifiers()
           
 boolean supportsMixedCaseQuotedIdentifiers()
           
 boolean supportsMultipleOpenResults()
          Retrieves whether it is possible to have multiple ResultSet objects returned from a CallableStatement object simultaneously.
 boolean supportsMultipleResultSets()
           
 boolean supportsMultipleTransactions()
           
 boolean supportsNamedParameters()
          Retrieves whether this database supports named parameters to callable statements.
 boolean supportsNonNullableColumns()
           
 boolean supportsOpenCursorsAcrossCommit()
           
 boolean supportsOpenCursorsAcrossRollback()
           
 boolean supportsOpenStatementsAcrossCommit()
           
 boolean supportsOpenStatementsAcrossRollback()
           
 boolean supportsOrderByUnrelated()
           
 boolean supportsOuterJoins()
           
 boolean supportsPositionedDelete()
           
 boolean supportsPositionedUpdate()
           
 boolean supportsResultSetConcurrency(int type, int concurrency)
           
 boolean supportsResultSetHoldability(int holdability)
          Retrieves whether this database supports the given result set holdability.
 boolean supportsResultSetType(int type)
           
 boolean supportsSavepoints()
          Retrieves whether this database supports savepoints.
 boolean supportsSchemasInDataManipulation()
           
 boolean supportsSchemasInIndexDefinitions()
           
 boolean supportsSchemasInPrivilegeDefinitions()
           
 boolean supportsSchemasInProcedureCalls()
           
 boolean supportsSchemasInTableDefinitions()
           
 boolean supportsSelectForUpdate()
           
 boolean supportsStatementPooling()
          Retrieves weather this database supports statement pooling.
 boolean supportsStoredProcedures()
           
 boolean supportsSubqueriesInComparisons()
           
 boolean supportsSubqueriesInExists()
           
 boolean supportsSubqueriesInIns()
           
 boolean supportsSubqueriesInQuantifieds()
           
 boolean supportsTableCorrelationNames()
           
 boolean supportsTransactionIsolationLevel(int level)
           
 boolean supportsTransactions()
           
 boolean supportsUnion()
           
 boolean supportsUnionAll()
           
 boolean updatesAreDetected(int type)
           
 boolean usesLocalFilePerTable()
           
 boolean usesLocalFiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPIDatabaseMetaData

public SPIDatabaseMetaData(SPIConnection conn)
Method Detail

getMaxIndexKeys

protected int getMaxIndexKeys()
                       throws SQLException
Throws:
SQLException

getMaxNameLength

protected int getMaxNameLength()
                        throws SQLException
Throws:
SQLException

allProceduresAreCallable

public boolean allProceduresAreCallable()
                                 throws SQLException
Specified by:
allProceduresAreCallable in interface DatabaseMetaData
Throws:
SQLException

allTablesAreSelectable

public boolean allTablesAreSelectable()
                               throws SQLException
Specified by:
allTablesAreSelectable in interface DatabaseMetaData
Throws:
SQLException

getURL

public String getURL()
              throws SQLException
Specified by:
getURL in interface DatabaseMetaData
Throws:
SQLException

getUserName

public String getUserName()
                   throws SQLException
Specified by:
getUserName in interface DatabaseMetaData
Throws:
SQLException

isReadOnly

public boolean isReadOnly()
                   throws SQLException
Specified by:
isReadOnly in interface DatabaseMetaData
Throws:
SQLException

nullsAreSortedHigh

public boolean nullsAreSortedHigh()
                           throws SQLException
Specified by:
nullsAreSortedHigh in interface DatabaseMetaData
Throws:
SQLException

nullsAreSortedLow

public boolean nullsAreSortedLow()
                          throws SQLException
Specified by:
nullsAreSortedLow in interface DatabaseMetaData
Throws:
SQLException

nullsAreSortedAtStart

public boolean nullsAreSortedAtStart()
                              throws SQLException
Specified by:
nullsAreSortedAtStart in interface DatabaseMetaData
Throws:
SQLException

nullsAreSortedAtEnd

public boolean nullsAreSortedAtEnd()
                            throws SQLException
Specified by:
nullsAreSortedAtEnd in interface DatabaseMetaData
Throws:
SQLException

getDatabaseProductName

public String getDatabaseProductName()
                              throws SQLException
Specified by:
getDatabaseProductName in interface DatabaseMetaData
Throws:
SQLException

getDatabaseProductVersion

public String getDatabaseProductVersion()
                                 throws SQLException
Specified by:
getDatabaseProductVersion in interface DatabaseMetaData
Throws:
SQLException

getDriverName

public String getDriverName()
                     throws SQLException
Specified by:
getDriverName in interface DatabaseMetaData
Throws:
SQLException

getDriverVersion

public String getDriverVersion()
                        throws SQLException
Specified by:
getDriverVersion in interface DatabaseMetaData
Throws:
SQLException

getDriverMajorVersion

public int getDriverMajorVersion()
Specified by:
getDriverMajorVersion in interface DatabaseMetaData

getDriverMinorVersion

public int getDriverMinorVersion()
Specified by:
getDriverMinorVersion in interface DatabaseMetaData

usesLocalFiles

public boolean usesLocalFiles()
                       throws SQLException
Specified by:
usesLocalFiles in interface DatabaseMetaData
Throws:
SQLException

usesLocalFilePerTable

public boolean usesLocalFilePerTable()
                              throws SQLException
Specified by:
usesLocalFilePerTable in interface DatabaseMetaData
Throws:
SQLException

supportsMixedCaseIdentifiers

public boolean supportsMixedCaseIdentifiers()
                                     throws SQLException
Specified by:
supportsMixedCaseIdentifiers in interface DatabaseMetaData
Throws:
SQLException

storesUpperCaseIdentifiers

public boolean storesUpperCaseIdentifiers()
                                   throws SQLException
Specified by:
storesUpperCaseIdentifiers in interface DatabaseMetaData
Throws:
SQLException

storesLowerCaseIdentifiers

public boolean storesLowerCaseIdentifiers()
                                   throws SQLException
Specified by:
storesLowerCaseIdentifiers in interface DatabaseMetaData
Throws:
SQLException

storesMixedCaseIdentifiers

public boolean storesMixedCaseIdentifiers()
                                   throws SQLException
Specified by:
storesMixedCaseIdentifiers in interface DatabaseMetaData
Throws:
SQLException

supportsMixedCaseQuotedIdentifiers

public boolean supportsMixedCaseQuotedIdentifiers()
                                           throws SQLException
Specified by:
supportsMixedCaseQuotedIdentifiers in interface DatabaseMetaData
Throws:
SQLException

storesUpperCaseQuotedIdentifiers

public boolean storesUpperCaseQuotedIdentifiers()
                                         throws SQLException
Specified by:
storesUpperCaseQuotedIdentifiers in interface DatabaseMetaData
Throws:
SQLException

storesLowerCaseQuotedIdentifiers

public boolean storesLowerCaseQuotedIdentifiers()
                                         throws SQLException
Specified by:
storesLowerCaseQuotedIdentifiers in interface DatabaseMetaData
Throws:
SQLException

storesMixedCaseQuotedIdentifiers

public boolean storesMixedCaseQuotedIdentifiers()
                                         throws SQLException
Specified by:
storesMixedCaseQuotedIdentifiers in interface DatabaseMetaData
Throws:
SQLException

getIdentifierQuoteString

public String getIdentifierQuoteString()
                                throws SQLException
Specified by:
getIdentifierQuoteString in interface DatabaseMetaData
Throws:
SQLException

getSQLKeywords

public String getSQLKeywords()
                      throws SQLException
Specified by:
getSQLKeywords in interface DatabaseMetaData
Throws:
SQLException

getNumericFunctions

public String getNumericFunctions()
                           throws SQLException
get supported escaped numeric functions

Specified by:
getNumericFunctions in interface DatabaseMetaData
Returns:
a comma separated list of function names
Throws:
SQLException

getStringFunctions

public String getStringFunctions()
                          throws SQLException
Specified by:
getStringFunctions in interface DatabaseMetaData
Throws:
SQLException

getSystemFunctions

public String getSystemFunctions()
                          throws SQLException
Specified by:
getSystemFunctions in interface DatabaseMetaData
Throws:
SQLException

getTimeDateFunctions

public String getTimeDateFunctions()
                            throws SQLException
Specified by:
getTimeDateFunctions in interface DatabaseMetaData
Throws:
SQLException

getSearchStringEscape

public String getSearchStringEscape()
                             throws SQLException
Specified by:
getSearchStringEscape in interface DatabaseMetaData
Throws:
SQLException

getExtraNameCharacters

public String getExtraNameCharacters()
                              throws SQLException
Specified by:
getExtraNameCharacters in interface DatabaseMetaData
Throws:
SQLException

supportsAlterTableWithAddColumn

public boolean supportsAlterTableWithAddColumn()
                                        throws SQLException
Specified by:
supportsAlterTableWithAddColumn in interface DatabaseMetaData
Throws:
SQLException

supportsAlterTableWithDropColumn

public boolean supportsAlterTableWithDropColumn()
                                         throws SQLException
Specified by:
supportsAlterTableWithDropColumn in interface DatabaseMetaData
Throws:
SQLException

supportsColumnAliasing

public boolean supportsColumnAliasing()
                               throws SQLException
Specified by:
supportsColumnAliasing in interface DatabaseMetaData
Throws:
SQLException

nullPlusNonNullIsNull

public boolean nullPlusNonNullIsNull()
                              throws SQLException
Specified by:
nullPlusNonNullIsNull in interface DatabaseMetaData
Throws:
SQLException

supportsConvert

public boolean supportsConvert()
                        throws SQLException
Specified by:
supportsConvert in interface DatabaseMetaData
Throws:
SQLException

supportsConvert

public boolean supportsConvert(int fromType,
                               int toType)
                        throws SQLException
Specified by:
supportsConvert in interface DatabaseMetaData
Throws:
SQLException

supportsTableCorrelationNames

public boolean supportsTableCorrelationNames()
                                      throws SQLException
Specified by:
supportsTableCorrelationNames in interface DatabaseMetaData
Throws:
SQLException

supportsDifferentTableCorrelationNames

public boolean supportsDifferentTableCorrelationNames()
                                               throws SQLException
Specified by:
supportsDifferentTableCorrelationNames in interface DatabaseMetaData
Throws:
SQLException

supportsExpressionsInOrderBy

public boolean supportsExpressionsInOrderBy()
                                     throws SQLException
Specified by:
supportsExpressionsInOrderBy in interface DatabaseMetaData
Throws:
SQLException

supportsOrderByUnrelated

public boolean supportsOrderByUnrelated()
                                 throws SQLException
Specified by:
supportsOrderByUnrelated in interface DatabaseMetaData
Throws:
SQLException

supportsGroupBy

public boolean supportsGroupBy()
                        throws SQLException
Specified by:
supportsGroupBy in interface DatabaseMetaData
Throws:
SQLException

supportsGroupByUnrelated

public boolean supportsGroupByUnrelated()
                                 throws SQLException
Specified by:
supportsGroupByUnrelated in interface DatabaseMetaData
Throws:
SQLException

supportsGroupByBeyondSelect

public boolean supportsGroupByBeyondSelect()
                                    throws SQLException
Specified by:
supportsGroupByBeyondSelect in interface DatabaseMetaData
Throws:
SQLException

supportsLikeEscapeClause

public boolean supportsLikeEscapeClause()
                                 throws SQLException
Specified by:
supportsLikeEscapeClause in interface DatabaseMetaData
Throws:
SQLException

supportsMultipleResultSets

public boolean supportsMultipleResultSets()
                                   throws SQLException
Specified by:
supportsMultipleResultSets in interface DatabaseMetaData
Throws:
SQLException

supportsMultipleTransactions

public boolean supportsMultipleTransactions()
                                     throws SQLException
Specified by:
supportsMultipleTransactions in interface DatabaseMetaData
Throws:
SQLException

supportsNonNullableColumns

public boolean supportsNonNullableColumns()
                                   throws SQLException
Specified by:
supportsNonNullableColumns in interface DatabaseMetaData
Throws:
SQLException

supportsMinimumSQLGrammar

public boolean supportsMinimumSQLGrammar()
                                  throws SQLException
Specified by:
supportsMinimumSQLGrammar in interface DatabaseMetaData
Throws:
SQLException

supportsCoreSQLGrammar

public boolean supportsCoreSQLGrammar()
                               throws SQLException
Specified by:
supportsCoreSQLGrammar in interface DatabaseMetaData
Throws:
SQLException

supportsExtendedSQLGrammar

public boolean supportsExtendedSQLGrammar()
                                   throws SQLException
Specified by:
supportsExtendedSQLGrammar in interface DatabaseMetaData
Throws:
SQLException

supportsANSI92EntryLevelSQL

public boolean supportsANSI92EntryLevelSQL()
                                    throws SQLException
Specified by:
supportsANSI92EntryLevelSQL in interface DatabaseMetaData
Throws:
SQLException

supportsANSI92IntermediateSQL

public boolean supportsANSI92IntermediateSQL()
                                      throws SQLException
Specified by:
supportsANSI92IntermediateSQL in interface DatabaseMetaData
Throws:
SQLException

supportsANSI92FullSQL

public boolean supportsANSI92FullSQL()
                              throws SQLException
Specified by:
supportsANSI92FullSQL in interface DatabaseMetaData
Throws:
SQLException

supportsIntegrityEnhancementFacility

public boolean supportsIntegrityEnhancementFacility()
                                             throws SQLException
Specified by:
supportsIntegrityEnhancementFacility in interface DatabaseMetaData
Throws:
SQLException

supportsOuterJoins

public boolean supportsOuterJoins()
                           throws SQLException
Specified by:
supportsOuterJoins in interface DatabaseMetaData
Throws:
SQLException

supportsFullOuterJoins

public boolean supportsFullOuterJoins()
                               throws SQLException
Specified by:
supportsFullOuterJoins in interface DatabaseMetaData
Throws:
SQLException

supportsLimitedOuterJoins

public boolean supportsLimitedOuterJoins()
                                  throws SQLException
Specified by:
supportsLimitedOuterJoins in interface DatabaseMetaData
Throws:
SQLException

getSchemaTerm

public String getSchemaTerm()
                     throws SQLException
Specified by:
getSchemaTerm in interface DatabaseMetaData
Throws:
SQLException

getProcedureTerm

public String getProcedureTerm()
                        throws SQLException
Specified by:
getProcedureTerm in interface DatabaseMetaData
Throws:
SQLException

getCatalogTerm

public String getCatalogTerm()
                      throws SQLException
Specified by:
getCatalogTerm in interface DatabaseMetaData
Throws:
SQLException

isCatalogAtStart

public boolean isCatalogAtStart()
                         throws SQLException
Specified by:
isCatalogAtStart in interface DatabaseMetaData
Throws:
SQLException

getCatalogSeparator

public String getCatalogSeparator()
                           throws SQLException
Specified by:
getCatalogSeparator in interface DatabaseMetaData
Throws:
SQLException

supportsSchemasInDataManipulation

public boolean supportsSchemasInDataManipulation()
                                          throws SQLException
Specified by:
supportsSchemasInDataManipulation in interface DatabaseMetaData
Throws:
SQLException

supportsSchemasInProcedureCalls

public boolean supportsSchemasInProcedureCalls()
                                        throws SQLException
Specified by:
supportsSchemasInProcedureCalls in interface DatabaseMetaData
Throws:
SQLException

supportsSchemasInTableDefinitions

public boolean supportsSchemasInTableDefinitions()
                                          throws SQLException
Specified by:
supportsSchemasInTableDefinitions in interface DatabaseMetaData
Throws:
SQLException

supportsSchemasInIndexDefinitions

public boolean supportsSchemasInIndexDefinitions()
                                          throws SQLException
Specified by:
supportsSchemasInIndexDefinitions in interface DatabaseMetaData
Throws:
SQLException

supportsSchemasInPrivilegeDefinitions

public boolean supportsSchemasInPrivilegeDefinitions()
                                              throws SQLException
Specified by:
supportsSchemasInPrivilegeDefinitions in interface DatabaseMetaData
Throws:
SQLException

supportsCatalogsInDataManipulation

public boolean supportsCatalogsInDataManipulation()
                                           throws SQLException
Specified by:
supportsCatalogsInDataManipulation in interface DatabaseMetaData
Throws:
SQLException

supportsCatalogsInProcedureCalls

public boolean supportsCatalogsInProcedureCalls()
                                         throws SQLException
Specified by:
supportsCatalogsInProcedureCalls in interface DatabaseMetaData
Throws:
SQLException

supportsCatalogsInTableDefinitions

public boolean supportsCatalogsInTableDefinitions()
                                           throws SQLException
Specified by:
supportsCatalogsInTableDefinitions in interface DatabaseMetaData
Throws:
SQLException

supportsCatalogsInIndexDefinitions

public boolean supportsCatalogsInIndexDefinitions()
                                           throws SQLException
Specified by:
supportsCatalogsInIndexDefinitions in interface DatabaseMetaData
Throws:
SQLException

supportsCatalogsInPrivilegeDefinitions

public boolean supportsCatalogsInPrivilegeDefinitions()
                                               throws SQLException
Specified by:
supportsCatalogsInPrivilegeDefinitions in interface DatabaseMetaData
Throws:
SQLException

supportsPositionedDelete

public boolean supportsPositionedDelete()
                                 throws SQLException
Specified by:
supportsPositionedDelete in interface DatabaseMetaData
Throws:
SQLException

supportsPositionedUpdate

public boolean supportsPositionedUpdate()
                                 throws SQLException
Specified by:
supportsPositionedUpdate in interface DatabaseMetaData
Throws:
SQLException

supportsSelectForUpdate

public boolean supportsSelectForUpdate()
                                throws SQLException
Specified by:
supportsSelectForUpdate in interface DatabaseMetaData
Throws:
SQLException

supportsStoredProcedures

public boolean supportsStoredProcedures()
                                 throws SQLException
Specified by:
supportsStoredProcedures in interface DatabaseMetaData
Throws:
SQLException

supportsSubqueriesInComparisons

public boolean supportsSubqueriesInComparisons()
                                        throws SQLException
Specified by:
supportsSubqueriesInComparisons in interface DatabaseMetaData
Throws:
SQLException

supportsSubqueriesInExists

public boolean supportsSubqueriesInExists()
                                   throws SQLException
Specified by:
supportsSubqueriesInExists in interface DatabaseMetaData
Throws:
SQLException

supportsSubqueriesInIns

public boolean supportsSubqueriesInIns()
                                throws SQLException
Specified by:
supportsSubqueriesInIns in interface DatabaseMetaData
Throws:
SQLException

supportsSubqueriesInQuantifieds

public boolean supportsSubqueriesInQuantifieds()
                                        throws SQLException
Specified by:
supportsSubqueriesInQuantifieds in interface DatabaseMetaData
Throws:
SQLException

supportsCorrelatedSubqueries

public boolean supportsCorrelatedSubqueries()
                                     throws SQLException
Specified by:
supportsCorrelatedSubqueries in interface DatabaseMetaData
Throws:
SQLException

supportsUnion

public boolean supportsUnion()
                      throws SQLException
Specified by:
supportsUnion in interface DatabaseMetaData
Throws:
SQLException

supportsUnionAll

public boolean supportsUnionAll()
                         throws SQLException
Specified by:
supportsUnionAll in interface DatabaseMetaData
Throws:
SQLException

supportsOpenCursorsAcrossCommit

public boolean supportsOpenCursorsAcrossCommit()
                                        throws SQLException
Specified by:
supportsOpenCursorsAcrossCommit in interface DatabaseMetaData
Throws:
SQLException

supportsOpenCursorsAcrossRollback

public boolean supportsOpenCursorsAcrossRollback()
                                          throws SQLException
Specified by:
supportsOpenCursorsAcrossRollback in interface DatabaseMetaData
Throws:
SQLException

supportsOpenStatementsAcrossCommit

public boolean supportsOpenStatementsAcrossCommit()
                                           throws SQLException
Specified by:
supportsOpenStatementsAcrossCommit in interface DatabaseMetaData
Throws:
SQLException

supportsOpenStatementsAcrossRollback

public boolean supportsOpenStatementsAcrossRollback()
                                             throws SQLException
Specified by:
supportsOpenStatementsAcrossRollback in interface DatabaseMetaData
Throws:
SQLException

getMaxBinaryLiteralLength

public int getMaxBinaryLiteralLength()
                              throws SQLException
Specified by:
getMaxBinaryLiteralLength in interface DatabaseMetaData
Throws:
SQLException

getMaxCharLiteralLength

public int getMaxCharLiteralLength()
                            throws SQLException
Specified by:
getMaxCharLiteralLength in interface DatabaseMetaData
Throws:
SQLException

getMaxColumnNameLength

public int getMaxColumnNameLength()
                           throws SQLException
Specified by:
getMaxColumnNameLength in interface DatabaseMetaData
Throws:
SQLException

getMaxColumnsInGroupBy

public int getMaxColumnsInGroupBy()
                           throws SQLException
Specified by:
getMaxColumnsInGroupBy in interface DatabaseMetaData
Throws:
SQLException

getMaxColumnsInIndex

public int getMaxColumnsInIndex()
                         throws SQLException
Specified by:
getMaxColumnsInIndex in interface DatabaseMetaData
Throws:
SQLException

getMaxColumnsInOrderBy

public int getMaxColumnsInOrderBy()
                           throws SQLException
Specified by:
getMaxColumnsInOrderBy in interface DatabaseMetaData
Throws:
SQLException

getMaxColumnsInSelect

public int getMaxColumnsInSelect()
                          throws SQLException
Specified by:
getMaxColumnsInSelect in interface DatabaseMetaData
Throws:
SQLException

getMaxColumnsInTable

public int getMaxColumnsInTable()
                         throws SQLException
Specified by:
getMaxColumnsInTable in interface DatabaseMetaData
Throws:
SQLException

getMaxConnections

public int getMaxConnections()
                      throws SQLException
Specified by:
getMaxConnections in interface DatabaseMetaData
Throws:
SQLException

getMaxCursorNameLength

public int getMaxCursorNameLength()
                           throws SQLException
Specified by:
getMaxCursorNameLength in interface DatabaseMetaData
Throws:
SQLException

getMaxIndexLength

public int getMaxIndexLength()
                      throws SQLException
Specified by:
getMaxIndexLength in interface DatabaseMetaData
Throws:
SQLException

getMaxSchemaNameLength

public int getMaxSchemaNameLength()
                           throws SQLException
Specified by:
getMaxSchemaNameLength in interface DatabaseMetaData
Throws:
SQLException

getMaxProcedureNameLength

public int getMaxProcedureNameLength()
                              throws SQLException
Specified by:
getMaxProcedureNameLength in interface DatabaseMetaData
Throws:
SQLException

getMaxCatalogNameLength

public int getMaxCatalogNameLength()
                            throws SQLException
Specified by:
getMaxCatalogNameLength in interface DatabaseMetaData
Throws:
SQLException

getMaxRowSize

public int getMaxRowSize()
                  throws SQLException
Specified by:
getMaxRowSize in interface DatabaseMetaData
Throws:
SQLException

doesMaxRowSizeIncludeBlobs

public boolean doesMaxRowSizeIncludeBlobs()
                                   throws SQLException
Specified by:
doesMaxRowSizeIncludeBlobs in interface DatabaseMetaData
Throws:
SQLException

getMaxStatementLength

public int getMaxStatementLength()
                          throws SQLException
Specified by:
getMaxStatementLength in interface DatabaseMetaData
Throws:
SQLException

getMaxStatements

public int getMaxStatements()
                     throws SQLException
Specified by:
getMaxStatements in interface DatabaseMetaData
Throws:
SQLException

getMaxTableNameLength

public int getMaxTableNameLength()
                          throws SQLException
Specified by:
getMaxTableNameLength in interface DatabaseMetaData
Throws:
SQLException

getMaxTablesInSelect

public int getMaxTablesInSelect()
                         throws SQLException
Specified by:
getMaxTablesInSelect in interface DatabaseMetaData
Throws:
SQLException

getMaxUserNameLength

public int getMaxUserNameLength()
                         throws SQLException
Specified by:
getMaxUserNameLength in interface DatabaseMetaData
Throws:
SQLException

getDefaultTransactionIsolation

public int getDefaultTransactionIsolation()
                                   throws SQLException
Specified by:
getDefaultTransactionIsolation in interface DatabaseMetaData
Throws:
SQLException

supportsTransactions

public boolean supportsTransactions()
                             throws SQLException
Specified by:
supportsTransactions in interface DatabaseMetaData
Throws:
SQLException

supportsTransactionIsolationLevel

public boolean supportsTransactionIsolationLevel(int level)
                                          throws SQLException
Specified by:
supportsTransactionIsolationLevel in interface DatabaseMetaData
Throws:
SQLException

supportsDataDefinitionAndDataManipulationTransactions

public boolean supportsDataDefinitionAndDataManipulationTransactions()
                                                              throws SQLException
Specified by:
supportsDataDefinitionAndDataManipulationTransactions in interface DatabaseMetaData
Throws:
SQLException

supportsDataManipulationTransactionsOnly

public boolean supportsDataManipulationTransactionsOnly()
                                                 throws SQLException
Specified by:
supportsDataManipulationTransactionsOnly in interface DatabaseMetaData
Throws:
SQLException

dataDefinitionCausesTransactionCommit

public boolean dataDefinitionCausesTransactionCommit()
                                              throws SQLException
Specified by:
dataDefinitionCausesTransactionCommit in interface DatabaseMetaData
Throws:
SQLException

dataDefinitionIgnoredInTransactions

public boolean dataDefinitionIgnoredInTransactions()
                                            throws SQLException
Specified by:
dataDefinitionIgnoredInTransactions in interface DatabaseMetaData
Throws:
SQLException

getProcedures

public ResultSet getProcedures(String catalog,
                               String schemaPattern,
                               String procedureNamePattern)
                        throws SQLException
Specified by:
getProcedures in interface DatabaseMetaData
Throws:
SQLException

getProcedureColumns

public ResultSet getProcedureColumns(String catalog,
                                     String schemaPattern,
                                     String procedureNamePattern,
                                     String columnNamePattern)
                              throws SQLException
Specified by:
getProcedureColumns in interface DatabaseMetaData
Throws:
SQLException

getTables

public ResultSet getTables(String catalog,
                           String schemaPattern,
                           String tableNamePattern,
                           String[] types)
                    throws SQLException
Specified by:
getTables in interface DatabaseMetaData
Throws:
SQLException

getSchemas

public ResultSet getSchemas()
                     throws SQLException
Specified by:
getSchemas in interface DatabaseMetaData
Throws:
SQLException

getCatalogs

public ResultSet getCatalogs()
                      throws SQLException
Specified by:
getCatalogs in interface DatabaseMetaData
Throws:
SQLException

getTableTypes

public ResultSet getTableTypes()
                        throws SQLException
Specified by:
getTableTypes in interface DatabaseMetaData
Throws:
SQLException

getColumns

public ResultSet getColumns(String catalog,
                            String schemaPattern,
                            String tableNamePattern,
                            String columnNamePattern)
                     throws SQLException
Specified by:
getColumns in interface DatabaseMetaData
Throws:
SQLException

getColumnPrivileges

public ResultSet getColumnPrivileges(String catalog,
                                     String schema,
                                     String table,
                                     String columnNamePattern)
                              throws SQLException
Specified by:
getColumnPrivileges in interface DatabaseMetaData
Throws:
SQLException

getTablePrivileges

public ResultSet getTablePrivileges(String catalog,
                                    String schemaPattern,
                                    String tableNamePattern)
                             throws SQLException
Specified by:
getTablePrivileges in interface DatabaseMetaData
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.


getBestRowIdentifier

public ResultSet getBestRowIdentifier(String catalog,
                                      String schema,
                                      String table,
                                      int scope,
                                      boolean nullable)
                               throws SQLException
Specified by:
getBestRowIdentifier in interface DatabaseMetaData
Throws:
SQLException

getVersionColumns

public ResultSet getVersionColumns(String catalog,
                                   String schema,
                                   String table)
                            throws SQLException
Specified by:
getVersionColumns in interface DatabaseMetaData
Throws:
SQLException

getPrimaryKeys

public ResultSet getPrimaryKeys(String catalog,
                                String schema,
                                String table)
                         throws SQLException
Specified by:
getPrimaryKeys in interface DatabaseMetaData
Throws:
SQLException

getImportedExportedKeys

protected ResultSet getImportedExportedKeys(String primaryCatalog,
                                            String primarySchema,
                                            String primaryTable,
                                            String foreignCatalog,
                                            String foreignSchema,
                                            String foreignTable)
                                     throws SQLException
Parameters:
primaryCatalog -
primarySchema -
primaryTable - if provided will get the keys exported by this table
foreignTable - if provided will get the keys imported by this table
Returns:
ResultSet
Throws:
SQLException

getImportedKeys

public ResultSet getImportedKeys(String catalog,
                                 String schema,
                                 String table)
                          throws SQLException
Specified by:
getImportedKeys in interface DatabaseMetaData
Throws:
SQLException

getExportedKeys

public ResultSet getExportedKeys(String catalog,
                                 String schema,
                                 String table)
                          throws SQLException
Specified by:
getExportedKeys in interface DatabaseMetaData
Throws:
SQLException

getCrossReference

public ResultSet getCrossReference(String primaryCatalog,
                                   String primarySchema,
                                   String primaryTable,
                                   String foreignCatalog,
                                   String foreignSchema,
                                   String foreignTable)
                            throws SQLException
Specified by:
getCrossReference in interface DatabaseMetaData
Throws:
SQLException

getTypeInfo

public ResultSet getTypeInfo()
                      throws SQLException
Specified by:
getTypeInfo in interface DatabaseMetaData
Throws:
SQLException

getIndexInfo

public ResultSet getIndexInfo(String catalog,
                              String schema,
                              String tableName,
                              boolean unique,
                              boolean approximate)
                       throws SQLException
Specified by:
getIndexInfo in interface DatabaseMetaData
Throws:
SQLException

supportsResultSetType

public boolean supportsResultSetType(int type)
                              throws SQLException
Specified by:
supportsResultSetType in interface DatabaseMetaData
Throws:
SQLException

supportsResultSetConcurrency

public boolean supportsResultSetConcurrency(int type,
                                            int concurrency)
                                     throws SQLException
Specified by:
supportsResultSetConcurrency in interface DatabaseMetaData
Throws:
SQLException

ownUpdatesAreVisible

public boolean ownUpdatesAreVisible(int type)
                             throws SQLException
Specified by:
ownUpdatesAreVisible in interface DatabaseMetaData
Throws:
SQLException

ownDeletesAreVisible

public boolean ownDeletesAreVisible(int type)
                             throws SQLException
Specified by:
ownDeletesAreVisible in interface DatabaseMetaData
Throws:
SQLException

ownInsertsAreVisible

public boolean ownInsertsAreVisible(int type)
                             throws SQLException
Specified by:
ownInsertsAreVisible in interface DatabaseMetaData
Throws:
SQLException

othersUpdatesAreVisible

public boolean othersUpdatesAreVisible(int type)
                                throws SQLException
Specified by:
othersUpdatesAreVisible in interface DatabaseMetaData
Throws:
SQLException

othersDeletesAreVisible

public boolean othersDeletesAreVisible(int i)
                                throws SQLException
Specified by:
othersDeletesAreVisible in interface DatabaseMetaData
Throws:
SQLException

othersInsertsAreVisible

public boolean othersInsertsAreVisible(int type)
                                throws SQLException
Specified by:
othersInsertsAreVisible in interface DatabaseMetaData
Throws:
SQLException

updatesAreDetected

public boolean updatesAreDetected(int type)
                           throws SQLException
Specified by:
updatesAreDetected in interface DatabaseMetaData
Throws:
SQLException

deletesAreDetected

public boolean deletesAreDetected(int i)
                           throws SQLException
Specified by:
deletesAreDetected in interface DatabaseMetaData
Throws:
SQLException

insertsAreDetected

public boolean insertsAreDetected(int type)
                           throws SQLException
Specified by:
insertsAreDetected in interface DatabaseMetaData
Throws:
SQLException

supportsBatchUpdates

public boolean supportsBatchUpdates()
                             throws SQLException
Specified by:
supportsBatchUpdates in interface DatabaseMetaData
Throws:
SQLException

getUDTs

public ResultSet getUDTs(String catalog,
                         String schemaPattern,
                         String typeNamePattern,
                         int[] types)
                  throws SQLException
Specified by:
getUDTs in interface DatabaseMetaData
Parameters:
catalog - String
schemaPattern - String
typeNamePattern - String
types - int[]
Returns:
ResultSet
Throws:
SQLException

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface DatabaseMetaData
Throws:
SQLException

rowChangesAreDetected

public boolean rowChangesAreDetected(int type)
                              throws SQLException
Throws:
SQLException

rowChangesAreVisible

public boolean rowChangesAreVisible(int type)
                             throws SQLException
Throws:
SQLException

supportsSavepoints

public boolean supportsSavepoints()
                           throws SQLException
Retrieves whether this database supports savepoints.

Specified by:
supportsSavepoints in interface DatabaseMetaData
Returns:
true if savepoints are supported; false otherwise
Throws:
SQLException - if a database access error occurs
Since:
1.4

supportsNamedParameters

public boolean supportsNamedParameters()
                                throws SQLException
Retrieves whether this database supports named parameters to callable statements.

Specified by:
supportsNamedParameters in interface DatabaseMetaData
Returns:
true if named parameters are supported; false otherwise
Throws:
SQLException - if a database access error occurs
Since:
1.4

supportsMultipleOpenResults

public boolean supportsMultipleOpenResults()
                                    throws SQLException
Retrieves whether it is possible to have multiple ResultSet objects returned from a CallableStatement object simultaneously.

Specified by:
supportsMultipleOpenResults in interface DatabaseMetaData
Returns:
true if a CallableStatement object can return multiple ResultSet objects simultaneously; false otherwise
Throws:
SQLException - if a datanase access error occurs
Since:
1.4

supportsGetGeneratedKeys

public boolean supportsGetGeneratedKeys()
                                 throws SQLException
Retrieves whether auto-generated keys can be retrieved after a statement has been executed.

Specified by:
supportsGetGeneratedKeys in interface DatabaseMetaData
Returns:
true if auto-generated keys can be retrieved after a statement has executed; false otherwise
Throws:
SQLException - if a database access error occurs
Since:
1.4

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:

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

Note: If the driver does not support type hierarchies, an empty result set is returned.

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

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:

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

Note: If the driver does not support type hierarchies, an empty result set is returned.

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

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:

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

Specified by:
getAttributes in interface DatabaseMetaData
Parameters:
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 search
schemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
typeNamePattern - a type name pattern; must match the type name as it is stored in the database
attributeNamePattern - an attribute name pattern; must match the attribute name as it is declared in the database
Returns:
a ResultSet object in which each row is an attribute description
Throws:
SQLException - if a database access error occurs
Since:
1.4

supportsResultSetHoldability

public boolean supportsResultSetHoldability(int holdability)
                                     throws SQLException
Retrieves whether this database supports the given result set holdability.

Specified by:
supportsResultSetHoldability in interface DatabaseMetaData
Parameters:
holdability - one of the following constants: ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
Returns:
true if so; false otherwise
Throws:
SQLException - if a database access error occurs
Since:
1.4
See Also:
Connection

getResultSetHoldability

public int getResultSetHoldability()
                            throws SQLException
Retrieves the default holdability of this ResultSet object.

Specified by:
getResultSetHoldability in interface DatabaseMetaData
Returns:
the default holdability; either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
Throws:
SQLException - if a database access error occurs
Since:
1.4

getDatabaseMajorVersion

public int getDatabaseMajorVersion()
                            throws SQLException
Retrieves the major version number of the underlying database.

Specified by:
getDatabaseMajorVersion in interface DatabaseMetaData
Returns:
the underlying database's major version
Throws:
SQLException - if a database access error occurs
Since:
1.4

getDatabaseMinorVersion

public int getDatabaseMinorVersion()
                            throws SQLException
Retrieves the minor version number of the underlying database.

Specified by:
getDatabaseMinorVersion in interface DatabaseMetaData
Returns:
underlying database's minor version
Throws:
SQLException - if a database access error occurs
Since:
1.4

getJDBCMajorVersion

public int getJDBCMajorVersion()
                        throws SQLException
Retrieves the major JDBC version number for this driver.

Specified by:
getJDBCMajorVersion in interface DatabaseMetaData
Returns:
JDBC version major number
Throws:
SQLException - if a database access error occurs
Since:
1.4

getJDBCMinorVersion

public int getJDBCMinorVersion()
                        throws SQLException
Retrieves the minor JDBC version number for this driver.

Specified by:
getJDBCMinorVersion in interface DatabaseMetaData
Returns:
JDBC version minor number
Throws:
SQLException - if a database access error occurs
Since:
1.4

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.

Specified by:
getSQLStateType in interface DatabaseMetaData
Returns:
the type of SQLSTATEs, one of: sqlStateXOpen or sqlStateSQL99
Throws:
SQLException - if a database access error occurs
Since:
1.4

locatorsUpdateCopy

public boolean locatorsUpdateCopy()
                           throws SQLException
Indicates whether updates made to a LOB are made on a copy or directly to the LOB.

Specified by:
locatorsUpdateCopy in interface DatabaseMetaData
Returns:
true if updates are made to a copy of the LOB; false if updates are made directly to the LOB
Throws:
SQLException - if a database access error occurs
Since:
1.4

supportsStatementPooling

public boolean supportsStatementPooling()
                                 throws SQLException
Retrieves weather this database supports statement pooling.

Specified by:
supportsStatementPooling in interface DatabaseMetaData
Returns:
true is so; false otherwise
Throws:
SQLExcpetion - if a database access error occurs
SQLException
Since:
1.4