java.sql

Interface DatabaseMetaData

public interface DatabaseMetaData

Comprehensive information about the database as a whole.

This interface is implemented by driver vendors to let users know the capabilities of a Database Management System (DBMS) in combination with the driver based on JDBCTM technology ("JDBC driver") that is used with it. Different relational DBMSs often support different features, implement features in different ways, and use different data types. In addition, a driver may implement a feature on top of what the DBMS offers. Information returned by methods in this interface applies to the capabilities of a particular driver and a particular DBMS working together. Note that as used in this documentation, the term "database" is used generically to refer to both the driver and DBMS.

A user for this interface is commonly a tool that needs to discover how to deal with the underlying DBMS. This is especially true for applications that are intended to be used with more than one DBMS. For example, a tool might use the method getTypeInfo to find out what data types can be used in a CREATE TABLE statement. Or a user might call the method supportsCorrelatedSubqueries to see if it is possible to use a correlated subquery or supportsBatchUpdates to see if it is possible to use batch updates.

Some DatabaseMetaData methods return lists of information in the form of ResultSet objects. Regular ResultSet methods, such as getString and getInt, can be used to retrieve the data from these ResultSet objects. If a given form of metadata is not available, the ResultSet getter methods throw an SQLException.

Some DatabaseMetaData 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 null, that argument's criterion will be dropped from the search.

A method that gets information about a feature that the driver does not support will throw an SQLException. In the case of methods that return a ResultSet object, either a ResultSet object (which may be empty) is returned or an SQLException is thrown.

Field Summary

static short
attributeNoNulls
Indicates that NULL values might not be allowed.
static short
attributeNullable
Indicates that NULL values are definitely allowed.
static short
attributeNullableUnknown
Indicates that whether NULL values are allowed is not known.
static int
bestRowNotPseudo
Indicates that the best row identifier is NOT a pseudo column.
static int
bestRowPseudo
Indicates that the best row identifier is a pseudo column.
static int
bestRowSession
Indicates that the scope of the best row identifier is the remainder of the current session.
static int
bestRowTemporary
Indicates that the scope of the best row identifier is very temporary, lasting only while the row is being used.
static int
bestRowTransaction
Indicates that the scope of the best row identifier is the remainder of the current transaction.
static int
bestRowUnknown
Indicates that the best row identifier may or may not be a pseudo column.
static int
columnNoNulls
Indicates that the column might not allow NULL values.
static int
columnNullable
Indicates that the column definitely allows NULL values.
static int
columnNullableUnknown
Indicates that the nullability of columns is unknown.
static int
importedKeyCascade
For the column UPDATE_RULE, indicates that when the primary key is updated, the foreign key (imported key) is changed to agree with it.
static int
importedKeyInitiallyDeferred
Indicates deferrability.
static int
importedKeyInitiallyImmediate
Indicates deferrability.
static int
importedKeyNoAction
For the columns UPDATE_RULE and DELETE_RULE, indicates that if the primary key has been imported, it cannot be updated or deleted.
static int
importedKeyNotDeferrable
Indicates deferrability.
static int
importedKeyRestrict
For the column UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key.
static int
importedKeySetDefault
For the columns UPDATE_RULE and DELETE_RULE, indicates that if the primary key is updated or deleted, the foreign key (imported key) is set to the default value.
static int
importedKeySetNull
For the columns UPDATE_RULE and DELETE_RULE, indicates that when the primary key is updated or deleted, the foreign key (imported key) is changed to NULL.
static int
procedureColumnIn
Indicates that the column stores IN parameters.
static int
procedureColumnInOut
Indicates that the column stores INOUT parameters.
static int
procedureColumnOut
Indicates that the column stores OUT parameters.
static int
procedureColumnResult
Indicates that the column stores results.
static int
procedureColumnReturn
Indicates that the column stores return values.
static int
procedureColumnUnknown
Indicates that type of the column is unknown.
static int
procedureNoNulls
Indicates that NULL values are not allowed.
static int
procedureNoResult
Indicates that the procedure does not return a result.
static int
procedureNullable
Indicates that NULL values are allowed.
static int
procedureNullableUnknown
Indicates that whether NULL values are allowed is unknown.
static int
procedureResultUnknown
Indicates that it is not known whether the procedure returns a result.
static int
procedureReturnsResult
Indicates that the procedure returns a result.
static int
sqlStateSQL99
Indicates that the value is an SQL99 SQLSTATE value.
static int
sqlStateXOpen
Indicates that the value is an X/Open (now know as Open Group) SQL CLI SQLSTATE value.
static short
tableIndexClustered
Indicates that this table index is a clustered index.
static short
tableIndexHashed
Indicates that this table index is a hashed index.
static short
tableIndexOther
Indicates that this table index is not a clustered index, a hashed index, or table statistics; it is something other than these.
static short
tableIndexStatistic
Indicates that this column contains table statistics that are returned in conjunction with a table's index descriptions.
static int
typeNoNulls
Indicates that a NULL value is NOT allowed for this data type.
static int
typeNullable
Indicates that a NULL value is allowed for this data type.
static int
typeNullableUnknown
Indicates that it is not known whether a NULL value is allowed for this data type.
static int
typePredBasic
Indicates that one can base all WHERE search clauses except WHERE .
static int
typePredChar
Indicates that the only WHERE search clause that can be based on this type is WHERE .
static int
typePredNone
Indicates that WHERE search clauses are not supported for this type.
static int
typeSearchable
Indicates that all WHERE search clauses can be based on this type.
static int
versionColumnNotPseudo
Indicates that this version column is NOT a pseudo column.
static int
versionColumnPseudo
Indicates that this version column is a pseudo column.
static int
versionColumnUnknown
Indicates that this version column may or may not be a pseudo column.

Method Summary

boolean
allProceduresAreCallable()
Retrieves whether the current user can call all the procedures returned by the method getProcedures.
boolean
allTablesAreSelectable()
Retrieves whether the current user can use all the tables returned by the method getTables in a SELECT statement.
boolean
dataDefinitionCausesTransactionCommit()
Retrieves whether a data definition statement within a transaction forces the transaction to commit.
boolean
dataDefinitionIgnoredInTransactions()
Retrieves whether this database ignores a data definition statement within a transaction.
boolean
deletesAreDetected(int type)
Retrieves whether or not a visible row delete can be detected by calling the method ResultSet.rowDeleted.
boolean
doesMaxRowSizeIncludeBlobs()
Retrieves whether the return value for the method getMaxRowSize includes the SQL data types LONGVARCHAR and LONGVARBINARY.
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)
Retrieves a description of a table's optimal set of columns that uniquely identifies a row.
String
getCatalogSeparator()
Retrieves the String that this database uses as the separator between a catalog and table name.
String
getCatalogTerm()
Retrieves the database vendor's preferred term for "catalog".
ResultSet
getCatalogs()
Retrieves the catalog names available in this database.
ResultSet
getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)
Retrieves a description of the access rights for a table's columns.
ResultSet
getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
Retrieves a description of table columns available in the specified catalog.
Connection
getConnection()
Retrieves the connection that produced this metadata object.
ResultSet
getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)
Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key columns of the given primary key table (describe how one table imports another's key).
int
getDatabaseMajorVersion()
Retrieves the major version number of the underlying database.
int
getDatabaseMinorVersion()
Retrieves the minor version number of the underlying database.
String
getDatabaseProductName()
Retrieves the name of this database product.
String
getDatabaseProductVersion()
Retrieves the version number of this database product.
int
getDefaultTransactionIsolation()
Retrieves this database's default transaction isolation level.
int
getDriverMajorVersion()
Retrieves this JDBC driver's major version number.
int
getDriverMinorVersion()
Retrieves this JDBC driver's minor version number.
String
getDriverName()
Retrieves the name of this JDBC driver.
String
getDriverVersion()
Retrieves the version number of this JDBC driver as a String.
ResultSet
getExportedKeys(String catalog, String schema, String table)
Retrieves a description of the foreign key columns that reference the given table's primary key columns (the foreign keys exported by a table).
String
getExtraNameCharacters()
Retrieves all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).
String
getIdentifierQuoteString()
Retrieves the string used to quote SQL identifiers.
ResultSet
getImportedKeys(String catalog, String schema, String table)
Retrieves a description of the primary key columns that are referenced by a table's foreign key columns (the primary keys imported by a table).
ResultSet
getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)
Retrieves a description of the given table's indices and statistics.
int
getJDBCMajorVersion()
Retrieves the major JDBC version number for this driver.
int
getJDBCMinorVersion()
Retrieves the minor JDBC version number for this driver.
int
getMaxBinaryLiteralLength()
Retrieves the maximum number of hex characters this database allows in an inline binary literal.
int
getMaxCatalogNameLength()
Retrieves the maximum number of characters that this database allows in a catalog name.
int
getMaxCharLiteralLength()
Retrieves the maximum number of characters this database allows for a character literal.
int
getMaxColumnNameLength()
Retrieves the maximum number of characters this database allows for a column name.
int
getMaxColumnsInGroupBy()
Retrieves the maximum number of columns this database allows in a GROUP BY clause.
int
getMaxColumnsInIndex()
Retrieves the maximum number of columns this database allows in an index.
int
getMaxColumnsInOrderBy()
Retrieves the maximum number of columns this database allows in an ORDER BY clause.
int
getMaxColumnsInSelect()
Retrieves the maximum number of columns this database allows in a SELECT list.
int
getMaxColumnsInTable()
Retrieves the maximum number of columns this database allows in a table.
int
getMaxConnections()
Retrieves the maximum number of concurrent connections to this database that are possible.
int
getMaxCursorNameLength()
Retrieves the maximum number of characters that this database allows in a cursor name.
int
getMaxIndexLength()
Retrieves the maximum number of bytes this database allows for an index, including all of the parts of the index.
int
getMaxProcedureNameLength()
Retrieves the maximum number of characters that this database allows in a procedure name.
int
getMaxRowSize()
Retrieves the maximum number of bytes this database allows in a single row.
int
getMaxSchemaNameLength()
Retrieves the maximum number of characters that this database allows in a schema name.
int
getMaxStatementLength()
Retrieves the maximum number of characters this database allows in an SQL statement.
int
getMaxStatements()
Retrieves the maximum number of active statements to this database that can be open at the same time.
int
getMaxTableNameLength()
Retrieves the maximum number of characters this database allows in a table name.
int
getMaxTablesInSelect()
Retrieves the maximum number of tables this database allows in a SELECT statement.
int
getMaxUserNameLength()
Retrieves the maximum number of characters this database allows in a user name.
String
getNumericFunctions()
Retrieves a comma-separated list of math functions available with this database.
ResultSet
getPrimaryKeys(String catalog, String schema, String table)
Retrieves a description of the given table's primary key columns.
ResultSet
getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)
Retrieves a description of the given catalog's stored procedure parameter and result columns.
String
getProcedureTerm()
Retrieves the database vendor's preferred term for "procedure".
ResultSet
getProcedures(String catalog, String schemaPattern, String procedureNamePattern)
Retrieves a description of the stored procedures available in the given catalog.
int
getResultSetHoldability()
Retrieves the default holdability of this ResultSet object.
String
getSQLKeywords()
Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL92 keywords.
int
getSQLStateType()
Indicates whether the SQLSTATE returned by SQLException.getSQLState is X/Open (now known as Open Group) SQL CLI or SQL99.
String
getSchemaTerm()
Retrieves the database vendor's preferred term for "schema".
ResultSet
getSchemas()
Retrieves the schema names available in this database.
String
getSearchStringEscape()
Retrieves the string that can be used to escape wildcard characters.
String
getStringFunctions()
Retrieves a comma-separated list of string functions available with this database.
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()
Retrieves a comma-separated list of system functions available with this database.
ResultSet
getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)
Retrieves a description of the access rights for each table available in a catalog.
ResultSet
getTableTypes()
Retrieves the table types available in this database.
ResultSet
getTables(String catalog, String schemaPattern, String tableNamePattern, types[] )
Retrieves a description of the tables available in the given catalog.
String
getTimeDateFunctions()
Retrieves a comma-separated list of the time and date functions available with this database.
ResultSet
getTypeInfo()
Retrieves a description of all the standard SQL types supported by this database.
ResultSet
getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)
Retrieves a description of the user-defined types (UDTs) defined in a particular schema.
String
getURL()
Retrieves the URL for this DBMS.
String
getUserName()
Retrieves the user name as known to this database.
ResultSet
getVersionColumns(String catalog, String schema, String table)
Retrieves a description of a table's columns that are automatically updated when any value in a row is updated.
boolean
insertsAreDetected(int type)
Retrieves whether or not a visible row insert can be detected by calling the method ResultSet.rowInserted.
boolean
isCatalogAtStart()
Retrieves whether a catalog appears at the start of a fully qualified table name.
boolean
isReadOnly()
Retrieves whether this database is in read-only mode.
boolean
locatorsUpdateCopy()
Indicates whether updates made to a LOB are made on a copy or directly to the LOB.
boolean
nullPlusNonNullIsNull()
Retrieves whether this database supports concatenations between NULL and non-NULL values being NULL.
boolean
nullsAreSortedAtEnd()
Retrieves whether NULL values are sorted at the end regardless of sort order.
boolean
nullsAreSortedAtStart()
Retrieves whether NULL values are sorted at the start regardless of sort order.
boolean
nullsAreSortedHigh()
Retrieves whether NULL values are sorted high.
boolean
nullsAreSortedLow()
Retrieves whether NULL values are sorted low.
boolean
othersDeletesAreVisible(int type)
Retrieves whether deletes made by others are visible.
boolean
othersInsertsAreVisible(int type)
Retrieves whether inserts made by others are visible.
boolean
othersUpdatesAreVisible(int type)
Retrieves whether updates made by others are visible.
boolean
ownDeletesAreVisible(int type)
Retrieves whether a result set's own deletes are visible.
boolean
ownInsertsAreVisible(int type)
Retrieves whether a result set's own inserts are visible.
boolean
ownUpdatesAreVisible(int type)
Retrieves whether for the given type of ResultSet object, the result set's own updates are visible.
boolean
storesLowerCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in lower case.
boolean
storesLowerCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in lower case.
boolean
storesMixedCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in mixed case.
boolean
storesMixedCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in mixed case.
boolean
storesUpperCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in upper case.
boolean
storesUpperCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in upper case.
boolean
supportsANSI92EntryLevelSQL()
Retrieves whether this database supports the ANSI92 entry level SQL grammar.
boolean
supportsANSI92FullSQL()
Retrieves whether this database supports the ANSI92 full SQL grammar supported.
boolean
supportsANSI92IntermediateSQL()
Retrieves whether this database supports the ANSI92 intermediate SQL grammar supported.
boolean
supportsAlterTableWithAddColumn()
Retrieves whether this database supports ALTER TABLE with add column.
boolean
supportsAlterTableWithDropColumn()
Retrieves whether this database supports ALTER TABLE with drop column.
boolean
supportsBatchUpdates()
Retrieves whether this database supports batch updates.
boolean
supportsCatalogsInDataManipulation()
Retrieves whether a catalog name can be used in a data manipulation statement.
boolean
supportsCatalogsInIndexDefinitions()
Retrieves whether a catalog name can be used in an index definition statement.
boolean
supportsCatalogsInPrivilegeDefinitions()
Retrieves whether a catalog name can be used in a privilege definition statement.
boolean
supportsCatalogsInProcedureCalls()
Retrieves whether a catalog name can be used in a procedure call statement.
boolean
supportsCatalogsInTableDefinitions()
Retrieves whether a catalog name can be used in a table definition statement.
boolean
supportsColumnAliasing()
Retrieves whether this database supports column aliasing.
boolean
supportsConvert()
Retrieves whether this database supports the CONVERT function between SQL types.
boolean
supportsConvert(int fromType, int toType)
Retrieves whether this database supports the CONVERT for two given SQL types.
boolean
supportsCoreSQLGrammar()
Retrieves whether this database supports the ODBC Core SQL grammar.
boolean
supportsCorrelatedSubqueries()
Retrieves whether this database supports correlated subqueries.
boolean
supportsDataDefinitionAndDataManipulationTransactions()
Retrieves whether this database supports both data definition and data manipulation statements within a transaction.
boolean
supportsDataManipulationTransactionsOnly()
Retrieves whether this database supports only data manipulation statements within a transaction.
boolean
supportsDifferentTableCorrelationNames()
Retrieves whether, when table correlation names are supported, they are restricted to being different from the names of the tables.
boolean
supportsExpressionsInOrderBy()
Retrieves whether this database supports expressions in ORDER BY lists.
boolean
supportsExtendedSQLGrammar()
Retrieves whether this database supports the ODBC Extended SQL grammar.
boolean
supportsFullOuterJoins()
Retrieves whether this database supports full nested outer joins.
boolean
supportsGetGeneratedKeys()
Retrieves whether auto-generated keys can be retrieved after a statement has been executed.
boolean
supportsGroupBy()
Retrieves whether this database supports some form of GROUP BY clause.
boolean
supportsGroupByBeyondSelect()
Retrieves whether this database supports using columns not included in the SELECT statement in a GROUP BY clause provided that all of the columns in the SELECT statement are included in the GROUP BY clause.
boolean
supportsGroupByUnrelated()
Retrieves whether this database supports using a column that is not in the SELECT statement in a GROUP BY clause.
boolean
supportsIntegrityEnhancementFacility()
Retrieves whether this database supports the SQL Integrity Enhancement Facility.
boolean
supportsLikeEscapeClause()
Retrieves whether this database supports specifying a LIKE escape clause.
boolean
supportsLimitedOuterJoins()
Retrieves whether this database provides limited support for outer joins.
boolean
supportsMinimumSQLGrammar()
Retrieves whether this database supports the ODBC Minimum SQL grammar.
boolean
supportsMixedCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case sensitive and as a result stores them in mixed case.
boolean
supportsMixedCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case sensitive and as a result stores them in mixed case.
boolean
supportsMultipleOpenResults()
Retrieves whether it is possible to have multiple ResultSet objects returned from a CallableStatement object simultaneously.
boolean
supportsMultipleResultSets()
Retrieves whether this database supports getting multiple ResultSet objects from a single call to the method execute.
boolean
supportsMultipleTransactions()
Retrieves whether this database allows having multiple transactions open at once (on different connections).
boolean
supportsNamedParameters()
Retrieves whether this database supports named parameters to callable statements.
boolean
supportsNonNullableColumns()
Retrieves whether columns in this database may be defined as non-nullable.
boolean
supportsOpenCursorsAcrossCommit()
Retrieves whether this database supports keeping cursors open across commits.
boolean
supportsOpenCursorsAcrossRollback()
Retrieves whether this database supports keeping cursors open across rollbacks.
boolean
supportsOpenStatementsAcrossCommit()
Retrieves whether this database supports keeping statements open across commits.
boolean
supportsOpenStatementsAcrossRollback()
Retrieves whether this database supports keeping statements open across rollbacks.
boolean
supportsOrderByUnrelated()
Retrieves whether this database supports using a column that is not in the SELECT statement in an ORDER BY clause.
boolean
supportsOuterJoins()
Retrieves whether this database supports some form of outer join.
boolean
supportsPositionedDelete()
Retrieves whether this database supports positioned DELETE statements.
boolean
supportsPositionedUpdate()
Retrieves whether this database supports positioned UPDATE statements.
boolean
supportsResultSetConcurrency(int type, int concurrency)
Retrieves whether this database supports the given concurrency type in combination with the given result set type.
boolean
supportsResultSetHoldability(int holdability)
Retrieves whether this database supports the given result set holdability.
boolean
supportsResultSetType(int type)
Retrieves whether this database supports the given result set type.
boolean
supportsSavepoints()
Retrieves whether this database supports savepoints.
boolean
supportsSchemasInDataManipulation()
Retrieves whether a schema name can be used in a data manipulation statement.
boolean
supportsSchemasInIndexDefinitions()
Retrieves whether a schema name can be used in an index definition statement.
boolean
supportsSchemasInPrivilegeDefinitions()
Retrieves whether a schema name can be used in a privilege definition statement.
boolean
supportsSchemasInProcedureCalls()
Retrieves whether a schema name can be used in a procedure call statement.
boolean
supportsSchemasInTableDefinitions()
Retrieves whether a schema name can be used in a table definition statement.
boolean
supportsSelectForUpdate()
Retrieves whether this database supports SELECT FOR UPDATE statements.
boolean
supportsStatementPooling()
Retrieves whether this database supports statement pooling.
boolean
supportsStoredProcedures()
Retrieves whether this database supports stored procedure calls that use the stored procedure escape syntax.
boolean
supportsSubqueriesInComparisons()
Retrieves whether this database supports subqueries in comparison expressions.
boolean
supportsSubqueriesInExists()
Retrieves whether this database supports subqueries in EXISTS expressions.
boolean
supportsSubqueriesInIns()
Retrieves whether this database supports subqueries in IN statements.
boolean
supportsSubqueriesInQuantifieds()
Retrieves whether this database supports subqueries in quantified expressions.
boolean
supportsTableCorrelationNames()
Retrieves whether this database supports table correlation names.
boolean
supportsTransactionIsolationLevel(int level)
Retrieves whether this database supports the given transaction isolation level.
boolean
supportsTransactions()
Retrieves whether this database supports transactions.
boolean
supportsUnion()
Retrieves whether this database supports SQL UNION.
boolean
supportsUnionAll()
Retrieves whether this database supports SQL UNION ALL.
boolean
updatesAreDetected(int type)
Retrieves whether or not a visible row update can be detected by calling the method ResultSet.rowUpdated.
boolean
usesLocalFilePerTable()
Retrieves whether this database uses a file for each table.
boolean
usesLocalFiles()
Retrieves whether this database stores tables in a local file.

Field Details

attributeNoNulls

public static final short attributeNoNulls
Indicates that NULL values might not be allowed.

A possible value for the column NULLABLE in the ResultSet object returned by the method getAttributes.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.attributeNoNulls
   1:                 case DatabaseMetaData.attributeNullable: return Tristate.TRUE;
   2:                 case DatabaseMetaData.attributeNoNulls: return Tristate.FALSE;
   3:                 case DatabaseMetaData.attributeNullableUnknown: return Tristate.UNDEFINED;
   4:             }
   5:         }

View Full Code Here
   1:         {
   2:             nullable = columnRs.getInt("NULLABLE") != DatabaseMetaData.attributeNoNulls;
   3:         }
   4:         DbUtils.closeQuietly(columnRs);
   5:         return nullable;

View Full Code Here

attributeNullable

public static final short attributeNullable
Indicates that NULL values are definitely allowed.

A possible value for the column NULLABLE in the ResultSet object returned by the method getAttributes.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.attributeNullable
   1:             {
   2:                 case DatabaseMetaData.attributeNullable: return Tristate.TRUE;
   3:                 case DatabaseMetaData.attributeNoNulls: return Tristate.FALSE;
   4:                 case DatabaseMetaData.attributeNullableUnknown: return Tristate.UNDEFINED;
   5:             }

View Full Code Here

attributeNullableUnknown

public static final short attributeNullableUnknown
Indicates that whether NULL values are allowed is not known.

A possible value for the column NULLABLE in the ResultSet object returned by the method getAttributes.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.attributeNullableUnknown
   1:                 case DatabaseMetaData.attributeNoNulls: return Tristate.FALSE;
   2:                 case DatabaseMetaData.attributeNullableUnknown: return Tristate.UNDEFINED;
   3:             }
   4:         }
   5:         if (CASE_SENSITIVE.equals(propertyName)) return Boolean.valueOf(caseSensitive);

View Full Code Here

bestRowNotPseudo

public static final int bestRowNotPseudo
Indicates that the best row identifier is NOT a pseudo column.

A possible value for the column PSEUDO_COLUMN in the ResultSet object returned by the method getBestRowIdentifier.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.bestRowNotPseudo
   1:                         rowVal[6] = Integer.toString(decimals).getBytes();
   2:                         rowVal[7] = Integer.toString(java.sql.DatabaseMetaData.bestRowNotPseudo)
   3:                                            .getBytes();
   4:                         tuples.add(rowVal);
   5:                     }

View Full Code Here

bestRowPseudo

public static final int bestRowPseudo
Indicates that the best row identifier is a pseudo column.

A possible value for the column PSEUDO_COLUMN in the ResultSet object returned by the method getBestRowIdentifier.

Field Value:
2

bestRowSession

public static final int bestRowSession
Indicates that the scope of the best row identifier is the remainder of the current session.

A possible value for the column SCOPE in the ResultSet object returned by the method getBestRowIdentifier.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.bestRowSession
   1:         }
   2:         int theScope = DatabaseMetaData.bestRowSession;
   3: 
   4:         ...
   5:     public static String getScope(short scope) {
   6:         if (scope == DatabaseMetaData.bestRowSession) {
   7:             return "bestRowSession";
   8:         }
   9:         else if (scope == DatabaseMetaData.bestRowTemporary) {

View Full Code Here
   1:             ResultSet rs = dmd.getBestRowIdentifier("", "", "BEST_ROW_PK",
   2:                 DatabaseMetaData.bestRowSession, true);
   3: 
   4:         ...
   5:             rs = dmd.getBestRowIdentifier("", "", "BEST_ROW_NO_PK",
   6:                 DatabaseMetaData.bestRowSession, true);
   7: 
   8:             assertTrue("Should have rows", rs.next());
   9:             assertTrue("Column name should be RDB$DB_KEY", "RDB$DB_KEY"

View Full Code Here
   1:                         byte[][] rowVal = new byte[8][];
   2:                         rowVal[0] = Integer.toString(java.sql.DatabaseMetaData.bestRowSession)
   3:                                            .getBytes();
   4:                         rowVal[1] = results.getBytes("Field");

View Full Code Here

bestRowTemporary

public static final int bestRowTemporary
Indicates that the scope of the best row identifier is very temporary, lasting only while the row is being used.

A possible value for the column SCOPE in the ResultSet object returned by the method getBestRowIdentifier.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.bestRowTemporary
   1:         if (scope.equals("bestRowTemporary")) {
   2:             theScope = DatabaseMetaData.bestRowTemporary;
   3:         }
   4:         ...
   5:         }
   6:         else if (scope == DatabaseMetaData.bestRowTemporary) {
   7:             return "bestRowTemporary";
   8:         }
   9:         else if (scope == DatabaseMetaData.bestRowTransaction) {

View Full Code Here

bestRowTransaction

public static final int bestRowTransaction
Indicates that the scope of the best row identifier is the remainder of the current transaction.

A possible value for the column SCOPE in the ResultSet object returned by the method getBestRowIdentifier.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.bestRowTransaction
   1:         else if (scope.equals("bestRowTransaction")) {
   2:             theScope = DatabaseMetaData.bestRowTransaction;
   3:         }
   4:         ...
   5:         }
   6:         else if (scope == DatabaseMetaData.bestRowTransaction) {
   7:             return "bestRowTransaction";
   8:         }
   9:         else {

View Full Code Here

bestRowUnknown

public static final int bestRowUnknown
Indicates that the best row identifier may or may not be a pseudo column.

A possible value for the column PSEUDO_COLUMN in the ResultSet object returned by the method getBestRowIdentifier.

Field Value:
0

columnNoNulls

public static final int columnNoNulls
Indicates that the column might not allow NULL values.

A possible value for the column NULLABLE in the ResultSet returned by the method getColumns.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.columnNoNulls
   1:             
   2:             boolean notNull = DatabaseMetaData.columnNoNulls == rs.getInt("NULLABLE");
   3:             sql = column.getSQLModify(table, column.isMandatory() != notNull);
   4:             break;
   5:         }

View Full Code Here
   1:                                           DatabaseMetaData.columnNullable :
   2:                                           DatabaseMetaData.columnNoNulls);
   3:         String nullableString = isnullable ? "YES" : "NO";
   4:         ...
   5:                                           DatabaseMetaData.columnNullable :
   6:                                           DatabaseMetaData.columnNoNulls);
   7:         String nullableString = isnullable ? "YES" : "NO";
   8: 
   9:         WhereNode tableMatch = null;

View Full Code Here
   1:                   break;
   2:                case DatabaseMetaData.columnNoNulls:
   3:                   c.setNullable(false);
   4:                   break;
   5:                case DatabaseMetaData.columnNullableUnknown:

View Full Code Here
   1:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
   2:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
   3:                         null, null, null, null, null, "1", "NO"},
   4:         ...
   5:                 { null, null, "TX2", "B", "" + Types.INTEGER, "INTEGER", "9",
   6:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
   7:                         null, null, null, null, null, "1", "NO"},
   8:         ...
   9:                 { null, null, "T_2", "B", "" + Types.INTEGER, "INTEGER", "9",
  10:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
  11:                         null, null, null, null, null, "1", "NO"},});

View Full Code Here

columnNullable

public static final int columnNullable
Indicates that the column definitely allows NULL values.

A possible value for the column NULLABLE in the ResultSet returned by the method getColumns.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.columnNullable
   1:         Integer nullableInt = new Integer(isnullable ? 
   2:                                           DatabaseMetaData.columnNullable :
   3:                                           DatabaseMetaData.columnNoNulls);
   4:         ...
   5:         Integer nullableInt = new Integer(isnullable ? 
   6:                                           DatabaseMetaData.columnNullable :
   7:                                           DatabaseMetaData.columnNoNulls);
   8:         String nullableString = isnullable ? "YES" : "NO";

View Full Code Here
   1:             switch (columns.getInt("NULLABLE")) {
   2:                case DatabaseMetaData.columnNullable:
   3:                   c.setNullable(true);
   4:                   break;
   5:                case DatabaseMetaData.columnNoNulls:

View Full Code Here
   1:             String coltype = getColumnType(type, datatype, precision, scale);
   2:             boolean nullable = rs.getInt("NULLABLE") == DatabaseMetaData.columnNullable;
   3:             s = "  " + column + " " + coltype;
   4:             if (!nullable) {
   5:                 s += " NOT";

View Full Code Here

columnNullableUnknown

public static final int columnNullableUnknown
Indicates that the nullability of columns is unknown.

A possible value for the column NULLABLE in the ResultSet returned by the method getColumns.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.columnNullableUnknown
   1:                   break;
   2:                case DatabaseMetaData.columnNullableUnknown:
   3:                   c.setNullable(false);
   4:                default:
   5:                   c.setNullable(true);

View Full Code Here

importedKeyCascade

public static final int importedKeyCascade
For the column UPDATE_RULE, indicates that when the primary key is updated, the foreign key (imported key) is changed to agree with it. For the column DELETE_RULE, it indicates that when the primary key is deleted, rows that imported that key are deleted.

A possible value for the columns UPDATE_RULE and DELETE_RULE in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeyCascade
   1:                     return "Not Allowed";
   2:                 case DatabaseMetaData.importedKeyCascade:
   3:                     return "Cascade";
   4:         ...
   5:                     return "Not Allowed";
   6:                 case DatabaseMetaData.importedKeyCascade:
   7:                     return "Cascade";
   8:         ...
   9:                 return "restrict";
  10:             case DatabaseMetaData.importedKeyCascade:
  11:                 return "cascade";

View Full Code Here
   1:             else if (updateRule.equals("CASCADE"))
   2:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyCascade);
   3:             else if (updateRule.equals("SET NULL"))
   4:         ...
   5:             else if (deleteRule.equals("CASCADE"))
   6:                 row[10] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyCascade);
   7:             else if (deleteRule.equals("SET NULL"))
   8:         ...
   9:             else if (updateRule.equals("CASCADE"))
  10:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyCascade);
  11:             else if (updateRule.equals("SET NULL"))

View Full Code Here

importedKeyInitiallyDeferred

public static final int importedKeyInitiallyDeferred
Indicates deferrability. See SQL-92 for a definition.

A possible value for the column DEFERRABILITY in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
5
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeyInitiallyDeferred
   1:             {
   2:                 case DatabaseMetaData.importedKeyInitiallyDeferred:
   3:                     return "Initially Deferred";
   4:         ...
   5:         {
   6:             case DatabaseMetaData.importedKeyInitiallyDeferred:
   7:                 return "initiallyDeferred";
   8:             case DatabaseMetaData.importedKeyInitiallyImmediate:
   9:                 return "initiallyImmediate";

View Full Code Here

importedKeyInitiallyImmediate

public static final int importedKeyInitiallyImmediate
Indicates deferrability. See SQL-92 for a definition.

A possible value for the column DEFERRABILITY in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
6
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeyInitiallyImmediate
   1:                     return "Initially Deferred";
   2:                 case DatabaseMetaData.importedKeyInitiallyImmediate:
   3:                     return "Initially Immediate";
   4:         ...
   5:                 return "initiallyDeferred";
   6:             case DatabaseMetaData.importedKeyInitiallyImmediate:
   7:                 return "initiallyImmediate";
   8:             case DatabaseMetaData.importedKeyNotDeferrable:
   9:                 return "notDeferrable";

View Full Code Here

importedKeyNoAction

public static final int importedKeyNoAction
For the columns UPDATE_RULE and DELETE_RULE, indicates that if the primary key has been imported, it cannot be updated or deleted.

A possible value for the columns UPDATE_RULE and DELETE_RULE in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
3
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeyNoAction
   1:             {
   2:                 case DatabaseMetaData.importedKeyNoAction:
   3:                 case DatabaseMetaData.importedKeyRestrict:
   4:         ...
   5:             {
   6:                 case DatabaseMetaData.importedKeyNoAction:
   7:                 case DatabaseMetaData.importedKeyRestrict:
   8:         ...
   9:         {
  10:             case DatabaseMetaData.importedKeyNoAction:
  11:                 return "noAction";

View Full Code Here
   1:             memrs.convertAllToUpperCase(8);
   2:             memrs.setAllInt(10,DatabaseMetaData.importedKeyNoAction);
   3:         ...
   4:             memrs.setAllInt(11,DatabaseMetaData.importedKeyNoAction);
   5:             memrs.convertAllToUpperCase(12);
   6:             memrs.setAllNull(13);
   7:             memrs.setAllInt(14,DatabaseMetaData.importedKeyNotDeferrable);

View Full Code Here
   1:             if (updateRule.equals("NO ACTION") || updateRule.equals("RESTRICT"))
   2:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyNoAction);
   3:             else if (updateRule.equals("CASCADE"))
   4:         ...
   5:             if (deleteRule.equals("NO ACTION") || deleteRule.equals("RESTRICT"))
   6:                 row[10] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyNoAction);
   7:             else if (deleteRule.equals("CASCADE"))
   8:         ...
   9:             if (updateRule.equals("NO ACTION") || updateRule.equals("RESTRICT"))
  10:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyNoAction);
  11:             else if (updateRule.equals("CASCADE"))

View Full Code Here

importedKeyNotDeferrable

public static final int importedKeyNotDeferrable
Indicates deferrability. See SQL-92 for a definition.

A possible value for the column DEFERRABILITY in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
7
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeyNotDeferrable
   1:                     return "Initially Immediate";
   2:                 case DatabaseMetaData.importedKeyNotDeferrable:
   3:                     return "Not Deferrable";
   4:         ...
   5:                 return "initiallyImmediate";
   6:             case DatabaseMetaData.importedKeyNotDeferrable:
   7:                 return "notDeferrable";
   8:             default:
   9:                 return Short.toString(deferrability);

View Full Code Here
   1:             memrs.setAllNull(13);
   2:             memrs.setAllInt(14,DatabaseMetaData.importedKeyNotDeferrable);
   3:             memrs.reset();
   4:             memrs.sort(sortOrder);
   5:             String lastname=null;

View Full Code Here
   1:             row[12] = getBytes(rs.getString("PK_NAME"));
   2:             row[13] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyNotDeferrable);
   3:             rows.add(row);
   4:         ...
   5:             row[12] = getBytes(rs.getString("PK_NAME"));
   6:             row[13] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyNotDeferrable);
   7: 
   8:         ...
   9:             row[12] = getBytes(rs.getString("PK_NAME"));
  10:             row[13] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeyNotDeferrable);

View Full Code Here
   1:                                                        .getBytes();
   2:                                     tuple[13] = Integer.toString(java.sql.DatabaseMetaData.importedKeyNotDeferrable)
   3:                                                        .getBytes();
   4:         ...
   5:             tuple[DEFERRABILITY] = s2b(Integer.toString(
   6:                         java.sql.DatabaseMetaData.importedKeyNotDeferrable));
   7:             tuples.add(tuple);
   8:         }
   9:     }

View Full Code Here

importedKeyRestrict

public static final int importedKeyRestrict
For the column UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key. For the column DELETE_RULE, indicates that a primary key may not be deleted if it has been imported by another table as a foreign key.

A possible value for the columns UPDATE_RULE and DELETE_RULE in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeyRestrict
   1:                 case DatabaseMetaData.importedKeyNoAction:
   2:                 case DatabaseMetaData.importedKeyRestrict:
   3:                     return "Not Allowed";
   4:         ...
   5:                 case DatabaseMetaData.importedKeyNoAction:
   6:                 case DatabaseMetaData.importedKeyRestrict:
   7:                     return "Not Allowed";
   8:         ...
   9:                 return "noAction";
  10:             case DatabaseMetaData.importedKeyRestrict:
  11:                 return "restrict";

View Full Code Here

importedKeySetDefault

public static final int importedKeySetDefault
For the columns UPDATE_RULE and DELETE_RULE, indicates that if the primary key is updated or deleted, the foreign key (imported key) is set to the default value.

A possible value for the columns UPDATE_RULE and DELETE_RULE in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
4
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeySetDefault
   1:                     return "Set to NULL";
   2:                 case DatabaseMetaData.importedKeySetDefault:
   3:                     return "Set to Default";
   4:         ...
   5:                     return "Set to NULL";
   6:                 case DatabaseMetaData.importedKeySetDefault:
   7:                     return "Set to Default";
   8:         ...
   9:                 return "setNull";
  10:             case DatabaseMetaData.importedKeySetDefault:
  11:                 return "setDefault";

View Full Code Here
   1:             else if (updateRule.equals("SET DEFAULT"))
   2:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeySetDefault);
   3:             String deleteRule = rs.getString("DELETE_RULE");
   4:         ...
   5:             else if (deleteRule.equals("SET DEFAULT"))
   6:                 row[10] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeySetDefault);
   7:             row[11] = getBytes(rs.getString("FK_NAME"));
   8:         ...
   9:             else if (updateRule.equals("SET DEFAULT"))
  10:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeySetDefault);
  11:             String deleteRule = rs.getString("DELETE_RULE");

View Full Code Here

importedKeySetNull

public static final int importedKeySetNull
For the columns UPDATE_RULE and DELETE_RULE, indicates that when the primary key is updated or deleted, the foreign key (imported key) is changed to NULL.

A possible value for the columns UPDATE_RULE and DELETE_RULE in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.importedKeySetNull
   1:                     return "Cascade";
   2:                 case DatabaseMetaData.importedKeySetNull:
   3:                     return "Set to NULL";
   4:         ...
   5:                     return "Cascade";
   6:                 case DatabaseMetaData.importedKeySetNull:
   7:                     return "Set to NULL";
   8:         ...
   9:                 return "cascade";
  10:             case DatabaseMetaData.importedKeySetNull:
  11:                 return "setNull";

View Full Code Here
   1:             else if (updateRule.equals("SET NULL"))
   2:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeySetNull);
   3:             else if (updateRule.equals("SET DEFAULT"))
   4:         ...
   5:             else if (deleteRule.equals("SET NULL"))
   6:                 row[10] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeySetNull);
   7:             else if (deleteRule.equals("SET DEFAULT"))
   8:         ...
   9:             else if (updateRule.equals("SET NULL"))
  10:                 row[9] = xsqlvars[0].encodeShort((short) DatabaseMetaData.importedKeySetNull);
  11:             else if (updateRule.equals("SET DEFAULT"))

View Full Code Here

procedureColumnIn

public static final int procedureColumnIn
Indicates that the column stores IN parameters.

A possible value for the column COLUMN_TYPE in the ResultSet returned by the method getProcedureColumns.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.procedureColumnIn
   1:         {
   2:             case DatabaseMetaData.procedureColumnIn:
   3:                 return IconManager.getIcon(Icons.PARAM_IN);
   4:             case DatabaseMetaData.procedureColumnInOut:
   5:                 return IconManager.getIcon(Icons.PARAM_IN_OUT);

View Full Code Here
   1:             case DatabaseMetaData.procedureColumnUnknown: return "Unknown";
   2:             case DatabaseMetaData.procedureColumnIn: return "In";
   3:             case DatabaseMetaData.procedureColumnInOut: return "In/Out";
   4:             case DatabaseMetaData.procedureColumnOut: return "Out";
   5:             case DatabaseMetaData.procedureColumnReturn: return "Return Value";

View Full Code Here
   1:         {
   2:             case java.sql.DatabaseMetaData.procedureColumnIn:
   3:             {
   4:                 retType="1";
   5:                 break;

View Full Code Here
   1:             return JDBC40Translation.FUNCTION_PARAMETER_UNKNOWN;    
   2:         case DatabaseMetaData.procedureColumnIn:
   3:             return JDBC40Translation.FUNCTION_PARAMETER_IN;
   4:         case DatabaseMetaData.procedureColumnInOut:
   5:             return JDBC40Translation.FUNCTION_PARAMETER_INOUT;    

View Full Code Here
   1:                 int type = ((ColumnMetadata)cols.get(i)).getType();
   2:                 if (type == DatabaseMetaData.procedureColumnIn ||
   3:                         type == DatabaseMetaData.procedureColumnInOut ||
   4:         ...
   5: 
   6:                 case DatabaseMetaData.procedureColumnIn:
   7:                     if (m_logger.isDebugEnabled()) {
   8:         ...
   9:             int paramType = param.getType();
  10:             if (paramType == DatabaseMetaData.procedureColumnIn) {
  11:                 inParamList.add(paramName);

View Full Code Here

procedureColumnInOut

public static final int procedureColumnInOut
Indicates that the column stores INOUT parameters.

A possible value for the column COLUMN_TYPE in the ResultSet returned by the method getProcedureColumns.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.procedureColumnInOut
   1:                 return IconManager.getIcon(Icons.PARAM_IN);
   2:             case DatabaseMetaData.procedureColumnInOut:
   3:                 return IconManager.getIcon(Icons.PARAM_IN_OUT);
   4:             case DatabaseMetaData.procedureColumnOut:
   5:             case DatabaseMetaData.procedureColumnReturn:

View Full Code Here
   1:             case DatabaseMetaData.procedureColumnIn: return "In";
   2:             case DatabaseMetaData.procedureColumnInOut: return "In/Out";
   3:             case DatabaseMetaData.procedureColumnOut: return "Out";
   4:             case DatabaseMetaData.procedureColumnReturn: return "Return Value";
   5:             case DatabaseMetaData.procedureColumnResult: return "Results";

View Full Code Here
   1:             }
   2:             case java.sql.DatabaseMetaData.procedureColumnInOut:
   3:             {
   4:                 retType="3";
   5:                 break;

View Full Code Here
   1:             return JDBC40Translation.FUNCTION_PARAMETER_IN;
   2:         case DatabaseMetaData.procedureColumnInOut:
   3:             return JDBC40Translation.FUNCTION_PARAMETER_INOUT;    
   4:         case DatabaseMetaData.procedureColumnOut:
   5:             return JDBC40Translation.FUNCTION_PARAMETER_OUT;

View Full Code Here
   1:                 if (type == DatabaseMetaData.procedureColumnIn ||
   2:                         type == DatabaseMetaData.procedureColumnInOut ||
   3:                         type == DatabaseMetaData.procedureColumnOut) {
   4:         ...
   5: 
   6:                 case DatabaseMetaData.procedureColumnInOut:
   7:                     if (m_logger.isDebugEnabled()) {
   8:         ...
   9:             }
  10:             else if (paramType == DatabaseMetaData.procedureColumnInOut) {
  11:                 inParamList.add(paramName);

View Full Code Here

procedureColumnOut

public static final int procedureColumnOut
Indicates that the column stores OUT parameters.

A possible value for the column COLUMN_TYPE in the ResultSet returned by the method getProcedureColumns.

Field Value:
4
Usages and Demos :

View More Examples of DatabaseMetaData.procedureColumnOut
   1:                 return IconManager.getIcon(Icons.PARAM_IN_OUT);
   2:             case DatabaseMetaData.procedureColumnOut:
   3:             case DatabaseMetaData.procedureColumnReturn:
   4:             case DatabaseMetaData.procedureColumnResult:
   5:                 return IconManager.getIcon(Icons.PARAM_OUT);

View Full Code Here
   1:             case DatabaseMetaData.procedureColumnInOut: return "In/Out";
   2:             case DatabaseMetaData.procedureColumnOut: return "Out";
   3:             case DatabaseMetaData.procedureColumnReturn: return "Return Value";
   4:             case DatabaseMetaData.procedureColumnResult: return "Results";
   5:         }

View Full Code Here
   1:             }
   2:             case java.sql.DatabaseMetaData.procedureColumnOut:
   3:             {
   4:                 retType="2";
   5:                 break;

View Full Code Here
   1:             return JDBC40Translation.FUNCTION_PARAMETER_INOUT;    
   2:         case DatabaseMetaData.procedureColumnOut:
   3:             return JDBC40Translation.FUNCTION_PARAMETER_OUT;
   4:         case DatabaseMetaData.procedureColumnReturn:
   5:             return JDBC40Translation.FUNCTION_RETURN;

View Full Code Here
   1:                         type == DatabaseMetaData.procedureColumnInOut ||
   2:                         type == DatabaseMetaData.procedureColumnOut) {
   3:                     if (insertComma) {
   4:         ...
   5: 
   6:                 case DatabaseMetaData.procedureColumnOut:
   7:                     if (m_logger.isDebugEnabled()) {
   8:         ...
   9:             }
  10:             else if (paramType == DatabaseMetaData.procedureColumnOut) {
  11:                 outParamList.add(paramName);

View Full Code Here

procedureColumnResult

public static final int procedureColumnResult
Indicates that the column stores results.

A possible value for the column COLUMN_TYPE in the ResultSet returned by the method getProcedureColumns.

Field Value:
3
Usages and Demos :

View More Examples of DatabaseMetaData.procedureColumnResult
   1:             case DatabaseMetaData.procedureColumnReturn:
   2:             case DatabaseMetaData.procedureColumnResult:
   3:                 return IconManager.getIcon(Icons.PARAM_OUT);
   4:             default:
   5:                 return IconManager.getIcon(Icons.PARAMETER);

View Full Code Here
   1:             case DatabaseMetaData.procedureColumnReturn: return "Return Value";
   2:             case DatabaseMetaData.procedureColumnResult: return "Results";
   3:         }
   4:         return null;
   5:     }

View Full Code Here
   1:             }
   2:             case java.sql.DatabaseMetaData.procedureColumnResult:
   3:             {
   4:                 retType="5";
   5:                 break;

View Full Code Here
   1:                   return "return value";
   2:              case DatabaseMetaData.procedureColumnResult:
   3:                   return "return ResultSet";
   4:              default:
   5:                return "unknown";

View Full Code Here

procedureColumnReturn

public static final int procedureColumnReturn
Indicates that the column stores return values.

A possible value for the column COLUMN_TYPE in the ResultSet returned by the method getProcedureColumns.

Field Value:
5
Usages and Demos :

View More Examples of DatabaseMetaData.procedureColumnReturn
   1:             case DatabaseMetaData.procedureColumnOut:
   2:             case DatabaseMetaData.procedureColumnReturn:
   3:             case DatabaseMetaData.procedureColumnResult:
   4:                 return IconManager.getIcon(Icons.PARAM_OUT);
   5:             default:

View Full Code Here
   1:             case DatabaseMetaData.procedureColumnOut: return "Out";
   2:             case DatabaseMetaData.procedureColumnReturn: return "Return Value";
   3:             case DatabaseMetaData.procedureColumnResult: return "Results";
   4:         }
   5:         return null;

View Full Code Here
   1:             }
   2:             case java.sql.DatabaseMetaData.procedureColumnReturn:
   3:             {
   4:                 retType="4";
   5:                 break;

View Full Code Here
   1:             return JDBC40Translation.FUNCTION_PARAMETER_OUT;
   2:         case DatabaseMetaData.procedureColumnReturn:
   3:             return JDBC40Translation.FUNCTION_RETURN;
   4:         default:
   5:             return JDBC40Translation.FUNCTION_PARAMETER_UNKNOWN;    

View Full Code Here
   1:                 int type = col.getType();
   2:                 if (type != DatabaseMetaData.procedureColumnReturn) {
   3:                     name = name.toUpperCase();
   4:         ...
   5:                 switch (type) {
   6:                 case DatabaseMetaData.procedureColumnReturn:
   7:                     if (m_logger.isDebugEnabled()) {
   8:                         m_logger.debug("Register RETURN param " + dataType);
   9:                     }

View Full Code Here

procedureColumnUnknown

public static final int procedureColumnUnknown
Indicates that type of the column is unknown.

A possible value for the column COLUMN_TYPE in the ResultSet returned by the method getProcedureColumns.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.procedureColumnUnknown
   1:         {
   2:             case DatabaseMetaData.procedureColumnUnknown: return "Unknown";
   3:             case DatabaseMetaData.procedureColumnIn: return "In";
   4:             case DatabaseMetaData.procedureColumnInOut: return "In/Out";
   5:             case DatabaseMetaData.procedureColumnOut: return "Out";

View Full Code Here
   1:         switch (val) {
   2:         case DatabaseMetaData.procedureColumnUnknown:
   3:             return JDBC40Translation.FUNCTION_PARAMETER_UNKNOWN;    
   4:         case DatabaseMetaData.procedureColumnIn:
   5:             return JDBC40Translation.FUNCTION_PARAMETER_IN;

View Full Code Here

procedureNoNulls

public static final int procedureNoNulls
Indicates that NULL values are not allowed.

A possible value for the column NULLABLE in the ResultSet object returned by the method getProcedureColumns.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.procedureNoNulls
   1:             {
   2:                 case DatabaseMetaData.procedureNoNulls: return Tristate.FALSE;
   3:                 case DatabaseMetaData.procedureNullable: return Tristate.TRUE;
   4:                 case DatabaseMetaData.procedureNullableUnknown: return Tristate.UNDEFINED;
   5:             }

View Full Code Here

procedureNoResult

public static final int procedureNoResult
Indicates that the procedure does not return a result.

A possible value for column PROCEDURE_TYPE in the ResultSet object returned by the method getProcedures.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.procedureNoResult
   1:                 case DatabaseMetaData.procedureResultUnknown: return "Result Unknown";
   2:                 case DatabaseMetaData.procedureNoResult: return "Returns No Result";
   3:             }
   4:         }
   5:         if (REMARK.equals(propertyName)) return remark;

View Full Code Here
   1:                             + "(should be procedureNoResult)",
   2:                     type == DatabaseMetaData.procedureNoResult);
   3:             } else
   4:                 assertTrue(
   5:                     "result set from getProcedures returned unknown procedure "

View Full Code Here

procedureNullable

public static final int procedureNullable
Indicates that NULL values are allowed.

A possible value for the column NULLABLE in the ResultSet object returned by the method getProcedureColumns.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.procedureNullable
   1:                 case DatabaseMetaData.procedureNoNulls: return Tristate.FALSE;
   2:                 case DatabaseMetaData.procedureNullable: return Tristate.TRUE;
   3:                 case DatabaseMetaData.procedureNullableUnknown: return Tristate.UNDEFINED;
   4:             }
   5:         }

View Full Code Here
   1:         }
   2:         nullable = (short) DatabaseMetaData.procedureNullable;
   3: 
   4:         paramCursor = -1;
   5:     }

View Full Code Here
   1:                     assertTrue("wrong nullable.",
   2:                         nullable == DatabaseMetaData.procedureNullable);
   3:                     assertTrue("wrong comment.", remarks == null);
   4:                     break;
   5:                 case 5:

View Full Code Here

procedureNullableUnknown

public static final int procedureNullableUnknown
Indicates that whether NULL values are allowed is unknown.

A possible value for the column NULLABLE in the ResultSet object returned by the method getProcedureColumns.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.procedureNullableUnknown
   1:                 case DatabaseMetaData.procedureNullable: return Tristate.TRUE;
   2:                 case DatabaseMetaData.procedureNullableUnknown: return Tristate.UNDEFINED;
   3:             }
   4:         }
   5:         if (REMARKS.equals(propertyName)) return remarks;

View Full Code Here

procedureResultUnknown

public static final int procedureResultUnknown
Indicates that it is not known whether the procedure returns a result.

A possible value for column PROCEDURE_TYPE in the ResultSet object returned by the method getProcedures.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.procedureResultUnknown
   1:                 case DatabaseMetaData.procedureReturnsResult: return "Returns Result";
   2:                 case DatabaseMetaData.procedureResultUnknown: return "Result Unknown";
   3:                 case DatabaseMetaData.procedureNoResult: return "Returns No Result";
   4:             }
   5:         }

View Full Code Here

procedureReturnsResult

public static final int procedureReturnsResult
Indicates that the procedure returns a result.

A possible value for column PROCEDURE_TYPE in the ResultSet object returned by the method getProcedures.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.procedureReturnsResult
   1:             {
   2:                 case DatabaseMetaData.procedureReturnsResult: return "Returns Result";
   3:                 case DatabaseMetaData.procedureResultUnknown: return "Result Unknown";
   4:                 case DatabaseMetaData.procedureNoResult: return "Returns No Result";
   5:             }

View Full Code Here
   1:                             + "(should be procedureReturnsResult)",
   2:                     type == DatabaseMetaData.procedureReturnsResult);
   3:                 assertTrue(
   4:                     "result set from getProcedures did not return a value for REMARKS.",
   5:                     remarks != null);

View Full Code Here

sqlStateSQL99

public static final int sqlStateSQL99
Indicates that the value is an SQL99 SQLSTATE value.

A possible return value for the method SQLException.getSQLState.

Field Value:
2
Since:
1.4
Usages and Demos :

View More Examples of DatabaseMetaData.sqlStateSQL99
   1:                 break;
   2:             case DatabaseMetaData.sqlStateSQL99:
   3:                 sqlStateType = "SQL99";
   4:                 break;
   5:             default:

View Full Code Here

sqlStateXOpen

public static final int sqlStateXOpen
Indicates that the value is an X/Open (now know as Open Group) SQL CLI SQLSTATE value.

A possible return value for the method SQLException.getSQLState.

Field Value:
1
Since:
1.4
Usages and Demos :

View More Examples of DatabaseMetaData.sqlStateXOpen
   1:             switch (dbMD.getSQLStateType()) {
   2:             case DatabaseMetaData.sqlStateXOpen:
   3:                 sqlStateType = "X/Open SQL CLI";
   4:                 break;
   5:             case DatabaseMetaData.sqlStateSQL99:

View Full Code Here

tableIndexClustered

public static final short tableIndexClustered
Indicates that this table index is a clustered index.

A possible value for column TYPE in the ResultSet object returned by the method getIndexInfo.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.tableIndexClustered
   1:         {
   2:             case DatabaseMetaData.tableIndexClustered:
   3:                 return "Clustered Index";
   4:             case DatabaseMetaData.tableIndexHashed:
   5:                 return "Hashed Index";

View Full Code Here
   1:         switch (type) {
   2:             case DatabaseMetaData.tableIndexClustered:
   3:                 return "tableIndexClustered";
   4:             case DatabaseMetaData.tableIndexHashed:
   5:                 return "tableIndexHashed";

View Full Code Here

tableIndexHashed

public static final short tableIndexHashed
Indicates that this table index is a hashed index.

A possible value for column TYPE in the ResultSet object returned by the method getIndexInfo.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.tableIndexHashed
   1:                 return "Clustered Index";
   2:             case DatabaseMetaData.tableIndexHashed:
   3:                 return "Hashed Index";
   4:             case DatabaseMetaData.tableIndexOther:
   5:                 return "Unknown Index Type";

View Full Code Here
   1:                 return "tableIndexClustered";
   2:             case DatabaseMetaData.tableIndexHashed:
   3:                 return "tableIndexHashed";
   4:             case DatabaseMetaData.tableIndexOther:
   5:                 return "tableIndexOther";

View Full Code Here

tableIndexOther

public static final short tableIndexOther
Indicates that this table index is not a clustered index, a hashed index, or table statistics; it is something other than these.

A possible value for column TYPE in the ResultSet object returned by the method getIndexInfo.

Field Value:
3
Usages and Demos :

View More Examples of DatabaseMetaData.tableIndexOther
   1:                 return "Hashed Index";
   2:             case DatabaseMetaData.tableIndexOther:
   3:                 return "Unknown Index Type";
   4:             case DatabaseMetaData.tableIndexStatistic:
   5:                 return "Table Statistics";

View Full Code Here
   1:                 return "tableIndexHashed";
   2:             case DatabaseMetaData.tableIndexOther:
   3:                 return "tableIndexOther";
   4:             case DatabaseMetaData.tableIndexStatistic:
   5:                 return "tableIndexStatistic";

View Full Code Here
   1:             memrs.convertAllToUpperCase(6);
   2:             memrs.setAllShort(7,DatabaseMetaData.tableIndexOther);
   3:             memrs.convertAllToUpperCase(9);
   4:             memrs.setAllString(10,"A");
   5:             memrs.setAllNull(11);

View Full Code Here
   1:             row[5] = getBytes(rs.getString("INDEX_NAME").trim());
   2:             row[6] = xsqlvars[0].encodeShort((short) DatabaseMetaData.tableIndexOther);
   3:             row[7] = xsqlvars[0].encodeShort(rs.getShort("ORDINAL_POSITION"));
   4:             row[8] = getBytes(rs.getString("COLUMN_NAME").trim());
   5:             int index_type = rs.getInt("ASC_OR_DESC");

View Full Code Here
   1:                 row[5] = results.getBytes("Key_name");
   2:                 row[6] = Integer.toString(java.sql.DatabaseMetaData.tableIndexOther)
   3:                                 .getBytes();
   4:                 row[7] = results.getBytes("Seq_in_index");
   5:                 row[8] = results.getBytes("Column_name");

View Full Code Here

tableIndexStatistic

public static final short tableIndexStatistic
Indicates that this column contains table statistics that are returned in conjunction with a table's index descriptions.

A possible value for column TYPE in the ResultSet object returned by the method getIndexInfo.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.tableIndexStatistic
   1:                 return "Unknown Index Type";
   2:             case DatabaseMetaData.tableIndexStatistic:
   3:                 return "Table Statistics";
   4:         }
   5:         return null;

View Full Code Here
   1:                 return "tableIndexOther";
   2:             case DatabaseMetaData.tableIndexStatistic:
   3:                 return "tableIndexStatistic";
   4:             default:
   5:                 return"tableIndexOther";

View Full Code Here

typeNoNulls

public static final int typeNoNulls
Indicates that a NULL value is NOT allowed for this data type.

A possible value for column NULLABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
0

typeNullable

public static final int typeNullable
Indicates that a NULL value is allowed for this data type.

A possible value for column NULLABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.typeNullable
   1:     public int getNullableCode() {
   2:         return DatabaseMetaData.typeNullable;
   3:     }
   4: 
   5:     public short getSearchableCode() {

View Full Code Here
   1: 
   2:         rowVal[6] = Integer.toString(java.sql.DatabaseMetaData.typeNullable)
   3:                            .getBytes();
   4:         ...
   5: 
   6:         rowVal[6] = Integer.toString(java.sql.DatabaseMetaData.typeNullable)
   7:                            .getBytes();
   8:         ...
   9: 
  10:         rowVal[6] = Integer.toString(java.sql.DatabaseMetaData.typeNullable)
  11:                            .getBytes();

View Full Code Here

typeNullableUnknown

public static final int typeNullableUnknown
Indicates that it is not known whether a NULL value is allowed for this data type.

A possible value for column NULLABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
2

typePredBasic

public static final int typePredBasic
Indicates that one can base all WHERE search clauses except WHERE . . . LIKE on this data type.

A possible value for column SEARCHABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
2
Usages and Demos :

View More Examples of DatabaseMetaData.typePredBasic
   1:                 case DatabaseMetaData.typePredChar: return "Only supported with WHERE ... LIKE";
   2:                 case DatabaseMetaData.typePredBasic: return "Supported except for WHERE ... LIKE";
   3:                 case DatabaseMetaData.typeSearchable: return "Fully supported";
   4:             }
   5:         }

View Full Code Here
   1:     public short getSearchableCode() {
   2:         return DatabaseMetaData.typePredBasic;
   3:     }
   4: 
   5:     public boolean isUnsigned() {

View Full Code Here

typePredChar

public static final int typePredChar
Indicates that the only WHERE search clause that can be based on this type is WHERE . . . LIKE.

A possible value for column SEARCHABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
1
Usages and Demos :

View More Examples of DatabaseMetaData.typePredChar
   1:                 case DatabaseMetaData.typePredNone: return "Not supported";
   2:                 case DatabaseMetaData.typePredChar: return "Only supported with WHERE ... LIKE";
   3:                 case DatabaseMetaData.typePredBasic: return "Supported except for WHERE ... LIKE";
   4:                 case DatabaseMetaData.typeSearchable: return "Fully supported";
   5:             }

View Full Code Here

typePredNone

public static final int typePredNone
Indicates that WHERE search clauses are not supported for this type.

A possible value for column SEARCHABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
0
Usages and Demos :

View More Examples of DatabaseMetaData.typePredNone
   1:             {
   2:                 case DatabaseMetaData.typePredNone: return "Not supported";
   3:                 case DatabaseMetaData.typePredChar: return "Only supported with WHERE ... LIKE";
   4:                 case DatabaseMetaData.typePredBasic: return "Supported except for WHERE ... LIKE";
   5:                 case DatabaseMetaData.typeSearchable: return "Fully supported";

View Full Code Here
   1:     public short getSearchableCode() {
   2:         return DatabaseMetaData.typePredNone;
   3:     }
   4: 
   5:     protected RandomAccessFile getLobFile() {

View Full Code Here

typeSearchable

public static final int typeSearchable
Indicates that all WHERE search clauses can be based on this type.

A possible value for column SEARCHABLE in the ResultSet object returned by the method getTypeInfo.

Field Value:
3
Usages and Demos :

View More Examples of DatabaseMetaData.typeSearchable
   1:     public short getSearchableCode() {
   2:         return DatabaseMetaData.typeSearchable;
   3:     }
   4: }

View Full Code Here
   1:                 case DatabaseMetaData.typePredBasic: return "Supported except for WHERE ... LIKE";
   2:                 case DatabaseMetaData.typeSearchable: return "Fully supported";
   3:             }
   4:         }
   5:         if (UNSIGNED.equals(propertyName)) return Boolean.valueOf(unsigned);

View Full Code Here
   1: 
   2:         rowVal[8] = Integer.toString(java.sql.DatabaseMetaData.typeSearchable)
   3:                            .getBytes();
   4:         ...
   5: 
   6:         rowVal[8] = Integer.toString(java.sql.DatabaseMetaData.typeSearchable)
   7:                            .getBytes();
   8:         ...
   9: 
  10:         rowVal[8] = Integer.toString(java.sql.DatabaseMetaData.typeSearchable)
  11:                            .getBytes();

View Full Code Here

versionColumnNotPseudo

public static final int versionColumnNotPseudo
Indicates that this version column is NOT a pseudo column.

A possible value for the column PSEUDO_COLUMN in the ResultSet object returned by the method getVersionColumns.

Field Value:
1

versionColumnPseudo

public static final int versionColumnPseudo
Indicates that this version column is a pseudo column.

A possible value for the column PSEUDO_COLUMN in the ResultSet object returned by the method getVersionColumns.

Field Value:
2

versionColumnUnknown

public static final int versionColumnUnknown
Indicates that this version column may or may not be a pseudo column.

A possible value for the column PSEUDO_COLUMN in the ResultSet object returned by the method getVersionColumns.

Field Value:
0

Method Details

allProceduresAreCallable

public boolean allProceduresAreCallable()
            throws SQLException
Retrieves whether the current user can call all the procedures returned by the method getProcedures.
Returns:
true if so; false otherwise
Throws:
SQLException - if a database access error occurs
Usages and Demos :

View More Examples of allProceduresAreCallable()
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public boolean allProceduresAreCallable() throws SQLException
  13:     { return inner.allProceduresAreCallable(); }

View Full Code Here
   1:     void test(Connection conn) throws SQLException {
   2:         DatabaseMetaData meta = conn.getMetaData();
   3:         Statement stat = conn.createStatement();
   4:         ...
   5:         
   6:         trace("meta.allProceduresAreCallable:" + meta.allProceduresAreCallable());
   7:         ...
   8:         check(meta.allProceduresAreCallable());
   9: 
  10:         ...
  11:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
  12:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.allProceduresAreCallable();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.allProceduresAreCallable();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public synchronized boolean allProceduresAreCallable() throws SQLException
  13:     { return inner.allProceduresAreCallable(); }

View Full Code Here

allTablesAreSelectable

public boolean allTablesAreSelectable()
            throws SQLException
Retrieves whether the current user can use all the tables returned by the method getTables in a SELECT statement.
Returns:
true if so; false otherwise
Throws:
SQLException - if a database access error occurs
Usages and Demos :

View More Examples of allTablesAreSelectable()
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.Driver;
   4:         ...
   5: 
   6:         DatabaseMetaData metaData = con.getMetaData();
   7: 
   8:         ...
   9:         System.out.println("All procedures are callable             : " + metaData.allProceduresAreCallable());
  10:         System.out.println("All tables are selectable               : " + metaData.allTablesAreSelectable());
  11:         System.out.println();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public boolean allTablesAreSelectable() throws SQLException
  13:     { return inner.allTablesAreSelectable(); }

View Full Code Here
   1:     void test(Connection conn) throws SQLException {
   2:         DatabaseMetaData meta = conn.getMetaData();
   3:         Statement stat = conn.createStatement();
   4:         ...
   5: 
   6:         trace("meta.allTablesAreSelectable:" + meta.allTablesAreSelectable());
   7:         ...
   8:         check(meta.allTablesAreSelectable());
   9:         
  10:         ...
  11:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
  12:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.allTablesAreSelectable();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.allTablesAreSelectable();

View Full Code Here

dataDefinitionCausesTransactionCommit

public boolean dataDefinitionCausesTransactionCommit()
            throws SQLException
Retrieves whether a data definition statement within a transaction forces the transaction to commit.
Returns:
true if so; false otherwise
Throws:
SQLException - if a database access error occurs
Usages and Demos :

View More Examples of dataDefinitionCausesTransactionCommit()
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public boolean dataDefinitionCausesTransactionCommit() throws SQLException
  13:     { return inner.dataDefinitionCausesTransactionCommit(); }

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.dataDefinitionCausesTransactionCommit();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.dataDefinitionCausesTransactionCommit();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public synchronized boolean dataDefinitionCausesTransactionCommit() throws SQLException
  13:     { return inner.dataDefinitionCausesTransactionCommit(); }

View Full Code Here

dataDefinitionIgnoredInTransactions

public boolean dataDefinitionIgnoredInTransactions()
            throws SQLException
Retrieves whether this database ignores a data definition statement within a transaction.
Returns:
true if so; false otherwise
Throws:
SQLException - if a database access error occurs
Usages and Demos :

View More Examples of dataDefinitionIgnoredInTransactions()
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public boolean dataDefinitionIgnoredInTransactions() throws SQLException
  13:     { return inner.dataDefinitionIgnoredInTransactions(); }

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.dataDefinitionIgnoredInTransactions();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.dataDefinitionIgnoredInTransactions();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public synchronized boolean dataDefinitionIgnoredInTransactions() throws SQLException
  13:     { return inner.dataDefinitionIgnoredInTransactions(); }

View Full Code Here

deletesAreDetected

public boolean deletesAreDetected(int type)
            throws SQLException
Retrieves whether or not a visible row delete can be detected by calling the method ResultSet.rowDeleted. If the method deletesAreDetected returns false, it means that deleted rows are removed from the result set.
Parameters:
type - the ResultSet type; one of ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Returns:
true if deletes are detected by the given result set type; false otherwise
Throws:
SQLException - if a database access error occurs
Since:
1.2
Usages and Demos :

View More Examples of deletesAreDetected(int type)
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public boolean deletesAreDetected(int a) throws SQLException
  13:     { return inner.deletesAreDetected(a); }

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.deletesAreDetected(a);

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.deletesAreDetected(a);

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public synchronized boolean deletesAreDetected(int a) throws SQLException
  13:     { return inner.deletesAreDetected(a); }

View Full Code Here

doesMaxRowSizeIncludeBlobs

public boolean doesMaxRowSizeIncludeBlobs()
            throws SQLException
Retrieves whether the return value for the method getMaxRowSize includes the SQL data types LONGVARCHAR and LONGVARBINARY.
Returns:
true if so; false otherwise
Throws:
SQLException - if a database access error occurs
Usages and Demos :

View More Examples of doesMaxRowSizeIncludeBlobs()
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public boolean doesMaxRowSizeIncludeBlobs() throws SQLException
  13:     { return inner.doesMaxRowSizeIncludeBlobs(); }

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.doesMaxRowSizeIncludeBlobs();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     final DatabaseMetaData inner;
  10: 
  11:         ...
  12:     {
  13:         return inner.doesMaxRowSizeIncludeBlobs();

View Full Code Here
   1: import java.sql.Connection;
   2: import java.sql.DatabaseMetaData;
   3: import java.sql.ResultSet;
   4:         ...
   5: 
   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
   7: {
   8:         ...
   9:     protected DatabaseMetaData inner;
  10:     
  11:         ...
  12:     public synchronized boolean doesMaxRowSizeIncludeBlobs() throws SQLException
  13:     { return inner.doesMaxRowSizeIncludeBlobs(); }

View Full Code Here

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 int => attribute type SQL type from java.sql.Types
  6. ATTR_TYPE_NAME String => Data source dependent type name. For a UDT, the type name is fully qualified. For a REF, the type name is fully qualified and represents the target type of the reference type.
  7. ATTR_SIZE int => column size. For char or date types this is the maximum number of characters; for numeric or decimal types this is precision.
  8. DECIMAL_DIGITS int => the number of fractional digits
  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
    • 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)
    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
    Usages and Demos :

    View More Examples of getAttributes(String catalog,String schemaPattern,String typeNamePattern,String attributeNamePattern)
       1: import java.sql.Connection;
       2: import java.sql.DatabaseMetaData;
       3: import java.sql.ResultSet;
       4:         ...
       5: 
       6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
       7: {
       8:         ...
       9:     protected DatabaseMetaData inner;
      10:     
      11:         ...
      12:     public ResultSet getAttributes(String a, String b, String c, String d) throws SQLException
      13:     { return inner.getAttributes(a, b, c, d); }

    View Full Code Here
       1: import java.sql.Connection;
       2: import java.sql.DatabaseMetaData;
       3: import java.sql.ResultSet;
       4:         ...
       5: 
       6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
       7: {
       8:         ...
       9:     protected DatabaseMetaData inner;
      10:     
      11:         ...
      12:     public synchronized ResultSet getAttributes(String a, String b, String c, String d) throws SQLException
      13:     { return inner.getAttributes(a, b, c, d); }

    View Full Code Here

    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:

    1. SCOPE short => actual scope of result
      • bestRowTemporary - very temporary, while using row
      • bestRowTransaction - valid for remainder of current transaction
      • bestRowSession - valid for remainder of current session
      • 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
        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
        schema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
        table - a table name; must match the table name as it is stored in the database
        scope - the scope of interest; use same values as SCOPE
        nullable - include columns that are nullable.
        Returns:
        ResultSet - each row is a column description
        Throws:
        SQLException - if a database access error occurs
        Usages and Demos :

        View More Examples of getBestRowIdentifier(String catalog,String schema,String table,int scope,boolean nullable)
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public ResultSet getBestRowIdentifier(String a, String b, String c, int d, boolean e) throws SQLException
          13:     { return inner.getBestRowIdentifier(a, b, c, d, e); }

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getBestRowIdentifier(a, b, c, d, e);

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getBestRowIdentifier(a, b, c, d, e);

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public synchronized ResultSet getBestRowIdentifier(String a, String b, String c, int d, boolean e) throws SQLException
          13:     { return inner.getBestRowIdentifier(a, b, c, d, e); }

        View Full Code Here

        getCatalogSeparator

        public String getCatalogSeparator()
                    throws SQLException
        Retrieves the String that this database uses as the separator between a catalog and table name.
        Returns:
        the separator string
        Throws:
        SQLException - if a database access error occurs
        Usages and Demos :

        View More Examples of getCatalogSeparator()
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.Driver;
           4:         ...
           5: 
           6:         DatabaseMetaData metaData = con.getMetaData();
           7: 
           8:         ...
           9:         System.out.println("SQL keywords                            : " + metaData.getSQLKeywords());
          10:         System.out.println("Catalog separator                       : " + metaData.getCatalogSeparator());
          11:         System.out.println("Numeric functions                       : " + metaData.getNumericFunctions());

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public String getCatalogSeparator() throws SQLException
          13:     { return inner.getCatalogSeparator(); }

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getCatalogSeparator();

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getCatalogSeparator();

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public synchronized String getCatalogSeparator() throws SQLException
          13:     { return inner.getCatalogSeparator(); }

        View Full Code Here

        getCatalogTerm

        public String getCatalogTerm()
                    throws SQLException
        Retrieves the database vendor's preferred term for "catalog".
        Returns:
        the vendor term for "catalog"
        Throws:
        SQLException - if a database access error occurs
        Usages and Demos :

        View More Examples of getCatalogTerm()
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public String getCatalogTerm() throws SQLException
          13:     { return inner.getCatalogTerm(); }

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getCatalogTerm();

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getCatalogTerm();

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public synchronized String getCatalogTerm() throws SQLException
          13:     { return inner.getCatalogTerm(); }

        View Full Code Here

        getCatalogs

        public ResultSet getCatalogs()
                    throws SQLException
        Retrieves the catalog names available in this database. The results are ordered by catalog name.

        The catalog column is:

        1. TABLE_CAT String => catalog name
        Returns:
        a ResultSet object in which each row has a single String column that is a catalog name
        Throws:
        SQLException - if a database access error occurs
        Usages and Demos :

        View More Examples of getCatalogs()
           1: 
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5:         try {
           6:             DatabaseMetaData metadata = connection.getMetaData(null);
           7:         ...
           8:             rs = metadata.getCatalogs();
           9:             while( rs.next() ) {

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5:         assertNotNull( connection );
           6:         DatabaseMetaData metaData = connection.getMetaData();
           7:         System.out.println( "username:"+ metaData.getUserName() );
           8:         ...
           9:         ResultSet catalogs = metaData.getCatalogs();
          10:         ResultSetMetaData catalogsMetaData = catalogs.getMetaData();

        View Full Code Here
           1:         try {
           2:             DatabaseMetaData meta = conn.getMetaData();
           3:             if (meta == null) {
           4:         ...
           5:             }
           6:             catalogs = meta.getCatalogs();
           7:             if (catalogs == null) {
           8:                 return null;
           9:             }

        View Full Code Here
           1: 
           2:       DatabaseMetaData dma = con.getMetaData();
           3: 
           4:         ...
           5: 
           6:       ResultSet rs = dma.getCatalogs();
           7:       System.out.println("Known catalogs :");
           8:       while (rs.next()) {
           9:        System.out.println(rs.getString(1));

        View Full Code Here
           1: import java.sql.SQLException;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6:     public DatabaseTreeModel(final DatabaseMetaData databaseMetaData) throws SQLException {
           7:         this.databaseMetaData = databaseMetaData;
           8:         ...
           9:             try {
          10:                 rs = databaseMetaData.getCatalogs();
          11:                 while (rs.next()) {

        View Full Code Here

        getColumnPrivileges

        public ResultSet getColumnPrivileges(String catalog,
                                             String schema,
                                             String table,
                                             String columnNamePattern)
                    throws SQLException
        Retrieves a description of the access rights for a table's columns.

        Only privileges matching the column name criteria are returned. They are ordered by COLUMN_NAME and PRIVILEGE.

        Each privilige description has the following columns:

        1. TABLE_CAT String => table catalog (may be null)
        2. TABLE_SCHEM String => table schema (may be null)
        3. TABLE_NAME String => table name
        4. COLUMN_NAME String => column name
        5. GRANTOR => grantor of access (may be null)
        6. GRANTEE String => grantee of access
        7. PRIVILEGE String => name of access (SELECT, INSERT, UPDATE, REFRENCES, ...)
        8. IS_GRANTABLE String => "YES" if grantee is permitted to grant to others; "NO" if not; null if unknown
        Parameters:
        catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
        schema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
        table - a table name; must match the table name as it is stored in the database
        columnNamePattern - a column name pattern; must match the column name as it is stored in the database
        Returns:
        ResultSet - each row is a column privilege description
        Throws:
        SQLException - if a database access error occurs
        Usages and Demos :

        View More Examples of getColumnPrivileges(String catalog,String schema,String table,String columnNamePattern)
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public ResultSet getColumnPrivileges(String a, String b, String c, String d) throws SQLException
          13:     { return inner.getColumnPrivileges(a, b, c, d); }

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getColumnPrivileges(a, b, c, d);

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     final DatabaseMetaData inner;
          10: 
          11:         ...
          12:     {
          13:         return inner.getColumnPrivileges(a, b, c, d);

        View Full Code Here
           1: import java.sql.Connection;
           2: import java.sql.DatabaseMetaData;
           3: import java.sql.ResultSet;
           4:         ...
           5: 
           6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
           7: {
           8:         ...
           9:     protected DatabaseMetaData inner;
          10:     
          11:         ...
          12:     public synchronized ResultSet getColumnPrivileges(String a, String b, String c, String d) throws SQLException
          13:     { return inner.getColumnPrivileges(a, b, c, d); }

        View Full Code Here

        getColumns

        public ResultSet getColumns(String catalog,
                                    String schemaPattern,
                                    String tableNamePattern,
                                    String columnNamePattern)
                    throws SQLException
        Retrieves a description of table columns available in the specified catalog.

        Only column descriptions matching the catalog, schema, table and column name criteria are returned. They are ordered by TABLE_SCHEM, TABLE_NAME, and ORDINAL_POSITION.

        Each column description has the following columns:

        1. TABLE_CAT String => table catalog (may be null)
        2. TABLE_SCHEM String => table schema (may be null)
        3. TABLE_NAME String => table name
        4. COLUMN_NAME String => column name
        5. DATA_TYPE int => SQL type from java.sql.Types
        6. TYPE_NAME String => Data source dependent type name, for a UDT the type name is fully qualified
        7. COLUMN_SIZE int => column size. For char or date types this is the maximum number of characters, for numeric or decimal types this is precision.
        8. BUFFER_LENGTH is not used.
        9. DECIMAL_DIGITS int => the number of fractional digits
        10. NUM_PREC_RADIX int => Radix (typically either 10 or 2)
        11. NULLABLE int => is NULL allowed.
          • columnNoNulls - might not allow NULL values
          • columnNullable - definitely allows NULL values
          • columnNullableUnknown - nullability unknown
          • REMARKS String => comment describing column (may be null)
          • COLUMN_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 nobody knows.
          • SCOPE_CATLOG 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 the DATA_TYPE isn't REF)
          • SCOPE_TABLE String => table name that this the scope of a reference attribure (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)
          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
          tableNamePattern - a table name pattern; must match the table name as it is stored in the database
          columnNamePattern - a column name pattern; must match the column name as it is stored in the database
          Returns:
          ResultSet - each row is a column description
          Throws:
          SQLException - if a database access error occurs
          Usages and Demos :

          View More Examples of getColumns(String catalog,String schemaPattern,String tableNamePattern,String columnNamePattern)
             1: 
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.ResultSet;
             4:         ...
             5:                String name,
             6:                DatabaseMetaData md)
             7:     throws SQLException
             8:         ...
             9: 
            10:     ResultSet rs = md.getColumns(_catalog, _schema, _name, null);
            11:     try {

          View Full Code Here
             1:         
             2:         DatabaseMetaData md = DB.getConnectionRO().getMetaData();
             3:         String catalog = DB.getDatabase().getCatalog();
             4:         ...
             5:         String sql = null;
             6:         ResultSet rs = md.getColumns(catalog, schema, tableName, null);
             7:         while (rs.next())
             8:         ...
             9:             
            10:             boolean notNull = DatabaseMetaData.columnNoNulls == rs.getInt("NULLABLE");
            11:             sql = column.getSQLModify(table, column.isMandatory() != notNull);

          View Full Code Here
             1: import java.sql.Connection;
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.ResultSet;
             4:         ...
             5: 
             6:         DatabaseMetaData metaData = connection.getMetaData();
             7:         ResultSet rs = metaData.getTables(null, login.toUpperCase(), null, null);
             8:         ...
             9: 
            10:     protected static void exploreTable(RelDatabaseBuilder builder, String tableName, DatabaseMetaData metaData,
            11:     String catalog, String schema)
            12:         ...
            13:         BaseTableImpl t = builder.createTable(tableName);
            14:         ResultSet rs = metaData.getColumns(catalog, schema, tableName, null);

          View Full Code Here
             1:         throws SQLException {
             2:         DatabaseMetaData meta = conn.getMetaData();
             3:         System.out.println ("got meta = " + meta);
             4:         ...
             5:         ResultSet results =
             6:             meta.getColumns(null, null, tableName, null) ;
             7:         System.out.println ("got column results");
             8:         ArrayList colNamesList = new ArrayList();
             9:         ArrayList colClassesList = new ArrayList();

          View Full Code Here
             1: 
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.ResultSet;
             4:         ...
             5: 
             6:             DatabaseMetaData dbmd = conn.getMetaData();
             7:             ResultSet dbmdRs = null;
             8:         ...
             9:             try {
            10:                 dbmdRs = dbmd.getColumns("", "", "longblob_regress", "%");
            11: 
            12:         ...
            13: 
            14:             DatabaseMetaData dbmd = this.conn.getMetaData();

          View Full Code Here

          getConnection

          public Connection getConnection()
                      throws SQLException
          Retrieves the connection that produced this metadata object.

          Returns:
          the connection that produced this metadata object
          Throws:
          SQLException - if a database access error occurs
          Since:
          1.2
          Usages and Demos :

          View More Examples of getConnection()
             1: import java.sql.Connection;
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.DriverManager;
             4:         ...
             5:         Connection connection = DriverManager.getConnection(url);
             6:         DatabaseMetaData dmd = connection.getMetaData();
             7:         ...
             8:         Connection retrievedConnection = dmd.getConnection();
          

          View Full Code Here
             1: import java.sql.Connection;
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.PreparedStatement;
             4:         ...
             5:         Connection con = (Connection) conControl.getMock();
             6:         MockControl dbmdControl = MockControl.createControl(DatabaseMetaData.class);
             7:         ...
             8:         DatabaseMetaData dbmd = (DatabaseMetaData) dbmdControl.getMock();
             9:         MockControl con2Control = MockControl.createControl(Connection.class);
            10:         ...
            11:         conControl.setReturnValue(dbmd, 2);
            12:         dbmd.getConnection();

          View Full Code Here
             1: 
             2:     String getResourcePath(DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
             3:         Element root = document.getDocumentElement();
             4:         ...
             5: 
             6:     private boolean match(Element filterNode, DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
             7:         NodeList conditionList = filterNode.getElementsByTagName("*");
             8:         ...
             9:             if (conditionName.equals("driver-class")) {
            10:                 match = startMatch(condition, dmd.getConnection().getClass().getName());
            11:             } else if(conditionName.equals("driver-name")) {

          View Full Code Here
             1: import java.sql.Connection;
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.ResultSet;
             4:         ...
             5: 
             6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
             7: {
             8:         ...
             9:     protected DatabaseMetaData inner;
            10:     
            11:         ...
            12:     public Connection getConnection() throws SQLException
            13:     { return inner.getConnection(); }

          View Full Code Here
             1: import java.sql.Connection;
             2: import java.sql.DatabaseMetaData;
             3: import java.sql.ResultSet;
             4:         ...
             5: 
             6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
             7: {
             8:         ...
             9:     final DatabaseMetaData inner;
            10: 
            11:         ...
            12:     {
            13:         return inner.getConnection();

          View Full Code Here

          getCrossReference

          public ResultSet getCrossReference(String primaryCatalog,
                                             String primarySchema,
                                             String primaryTable,
                                             String foreignCatalog,
                                             String foreignSchema,
                                             String foreignTable)
                      throws SQLException
          Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key columns of the given primary key table (describe how one table imports another's key). This should normally return a single foreign key/primary key pair because most tables import a foreign key from a table only once. They are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and KEY_SEQ.

          Each foreign key column description has the following columns:

          1. PKTABLE_CAT String => primary key table catalog (may be null)
          2. PKTABLE_SCHEM String => primary key table schema (may be null)
          3. PKTABLE_NAME String => primary key table name
          4. PKCOLUMN_NAME String => primary key column name
          5. FKTABLE_CAT String => foreign key table catalog (may be null) being exported (may be null)
          6. FKTABLE_SCHEM String => foreign key table schema (may be null) being exported (may be null)
          7. FKTABLE_NAME String => foreign key table name being exported
          8. FKCOLUMN_NAME String => foreign key column name being exported
          9. KEY_SEQ short => sequence number within foreign key
          10. UPDATE_RULE short => What happens to foreign key when primary is updated:
            • importedNoAction - do not allow update of primary key if it has been imported
            • importedKeyCascade - change imported key to agree with primary key update
            • importedKeySetNull - change imported key to NULL if its primary key has been updated
            • importedKeySetDefault - change imported key to default values if its primary key has been updated
            • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
            • DELETE_RULE short => What happens to the foreign key when primary is deleted.
              • importedKeyNoAction - do not allow delete of primary key if it has been imported
              • importedKeyCascade - delete rows that import a deleted key
              • importedKeySetNull - change imported key to NULL if its primary key has been deleted
              • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
              • importedKeySetDefault - change imported key to default if its primary key has been deleted
              • FK_NAME String => foreign key name (may be null)
              • PK_NAME String => primary key name (may be null)
              • DEFERRABILITY short => can the evaluation of foreign key constraints be deferred until commit
                • importedKeyInitiallyDeferred - see SQL92 for definition
                • importedKeyInitiallyImmediate - see SQL92 for definition
                • importedKeyNotDeferrable - see SQL92 for definition
                Parameters:
                primaryCatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means drop catalog name from the selection criteria
                primarySchema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means drop schema name from the selection criteria
                primaryTable - the name of the table that exports the key; must match the table name as it is stored in the database
                foreignCatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means drop catalog name from the selection criteria
                foreignSchema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means drop schema name from the selection criteria
                foreignTable - the name of the table that imports the key; must match the table name as it is stored in the database
                Returns:
                ResultSet - each row is a foreign key column description
                Throws:
                SQLException - if a database access error occurs
                Usages and Demos :

                View More Examples of getCrossReference(String primaryCatalog,String primarySchema,String primaryTable,String foreignCatalog,String foreignSchema,String foreignTable)
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public ResultSet getCrossReference(String a, String b, String c, String d, String e, String f) throws SQLException
                  13:     { return inner.getCrossReference(a, b, c, d, e, f); }

                View Full Code Here
                   1:     void test(Connection conn) throws SQLException {
                   2:         DatabaseMetaData meta = conn.getMetaData();
                   3:         Statement stat = conn.createStatement();
                   4:         ...
                   5:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
                   6:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
                   7:                         null, null, null, null, null, "1", "NO"},
                   8:         ...
                   9:                         "120", null, "0", "10",
                  10:                         "" + DatabaseMetaData.columnNullable, null, null, null,
                  11:                         null, null, "2", "YES"},
                  12:         ...
                  13:         trace("getCrossReference");
                  14:         rs = meta.getCrossReference(null, null, "PARENT", null, null, "CHILD");

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     final DatabaseMetaData inner;
                  10: 
                  11:         ...
                  12:     {
                  13:         return inner.getCrossReference(a, b, c, d, e, f);

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     final DatabaseMetaData inner;
                  10: 
                  11:         ...
                  12:     {
                  13:         return inner.getCrossReference(a, b, c, d, e, f);

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public synchronized ResultSet getCrossReference(String a, String b, String c, String d, String e, String f) throws SQLException
                  13:     { return inner.getCrossReference(a, b, c, d, e, f); }

                View Full Code Here

                getDatabaseMajorVersion

                public int getDatabaseMajorVersion()
                            throws SQLException
                Retrieves the major version number of the underlying database.
                Returns:
                the underlying database's major version
                Throws:
                SQLException - if a database access error occurs
                Since:
                1.4
                Usages and Demos :

                View More Examples of getDatabaseMajorVersion()
                   1: import java.sql.DatabaseMetaData;
                   2: import java.sql.SQLException;
                   3:         ...
                   4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                   5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                   6:         ...
                   7:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                   8:       System.out.println("Database Minor version: " + dbMetaData.getDatabaseMinorVersion() );

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6:     protected void _initConstants(DatabaseMetaData metaData)
                   7:         throws SQLException
                   8:         ...
                   9: 
                  10:         int majorVersion = metaData.getDatabaseMajorVersion();
                  11:         int minorVersion = metaData.getDatabaseMinorVersion();

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.SQLException;
                   4:         ...
                   5:             con = ds.getConnection();
                   6:             DatabaseMetaData metaData = con.getMetaData();
                   7:             int rdbmsVersion = 0;
                   8:         ...
                   9:             {
                  10:                 rdbmsVersion = metaData.getDatabaseMajorVersion();
                  11:             } 

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.Driver;
                   4:         ...
                   5: 
                   6:         DatabaseMetaData metaData = con.getMetaData();
                   7: 
                   8:         ...
                   9:         System.out.println("===================");
                  10:         System.out.println("Database major version                  : " + metaData.getDatabaseMajorVersion());
                  11:         System.out.println("Database minor version                  : " + metaData.getDatabaseMinorVersion());

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.DriverManager;
                   4:         ...
                   5:             con = ds.getConnection();
                   6:             DatabaseMetaData metaData = con.getMetaData();
                   7:             int rdbmsVersion = 0;
                   8:         ...
                   9:             {
                  10:                 rdbmsVersion = metaData.getDatabaseMajorVersion();
                  11:             } catch (Throwable t) {

                View Full Code Here

                getDatabaseMinorVersion

                public int getDatabaseMinorVersion()
                            throws SQLException
                Retrieves the minor version number of the underlying database.
                Returns:
                underlying database's minor version
                Throws:
                SQLException - if a database access error occurs
                Since:
                1.4
                Usages and Demos :

                View More Examples of getDatabaseMinorVersion()
                   1: import java.sql.DatabaseMetaData;
                   2: import java.sql.SQLException;
                   3:         ...
                   4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                   5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                   6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                   7:         ...
                   8:       System.out.println("Database Minor version: " + dbMetaData.getDatabaseMinorVersion() );
                   9:       System.out.println("Default Transaction isolation: " + dbMetaData.getDefaultTransactionIsolation() );

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6:     protected void _initConstants(DatabaseMetaData metaData)
                   7:         throws SQLException
                   8:         ...
                   9:         int majorVersion = metaData.getDatabaseMajorVersion();
                  10:         int minorVersion = metaData.getDatabaseMinorVersion();
                

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.Driver;
                   4:         ...
                   5: 
                   6:         DatabaseMetaData metaData = con.getMetaData();
                   7: 
                   8:         ...
                   9:         System.out.println("Database major version                  : " + metaData.getDatabaseMajorVersion());
                  10:         System.out.println("Database minor version                  : " + metaData.getDatabaseMinorVersion());
                  11:         System.out.println("Database product name                   : " + metaData.getDatabaseProductName());

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public int getDatabaseMinorVersion() throws SQLException
                  13:     { return inner.getDatabaseMinorVersion(); }

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public synchronized int getDatabaseMinorVersion() throws SQLException
                  13:     { return inner.getDatabaseMinorVersion(); }

                View Full Code Here

                getDatabaseProductName

                public String getDatabaseProductName()
                            throws SQLException
                Retrieves the name of this database product.
                Returns:
                database product name
                Throws:
                SQLException - if a database access error occurs
                Usages and Demos :

                View More Examples of getDatabaseProductName()
                   1: 
                   2:     DatabaseMetaData meta = con.getMetaData();
                   3:     
                   4:         ...
                   5:     System.out.println( "ProduktnameDatabase: " +
                   6:                          meta.getDatabaseProductName() );
                   7: 
                   8:     System.out.println( "Version der Datenbank: " +
                   9:                          meta.getDatabaseProductVersion()  );

                View Full Code Here
                   1:       Connection connection = ConnectionFactory.getConnection();
                   2:       DatabaseMetaData dbmd = connection.getMetaData();
                   3: 
                   4:         ...
                   5:       System.out.println("Information about the database: ");
                   6:       System.out.println("Database name=[" + dbmd.getDatabaseProductName() 
                   7:                          + "]");
                   8:       System.out.println("Database version=[" 
                   9:                          + dbmd.getDatabaseProductVersion() + "]");

                View Full Code Here
                   1: 
                   2:             DatabaseMetaData meta = conn.getMetaData();
                   3: 
                   4:         ...
                   5:             System.out.println("Nous utilisons " +
                   6:                                 meta.getDatabaseProductName());
                   7:             System.out.println("Dans sa version " +
                   8:                                 meta.getDatabaseProductVersion() );
                   9:         

                View Full Code Here
                   1: 
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.PreparedStatement;
                   4:         ...
                   5: 
                   6:         MockControl ctrlDatabaseMetaData = MockControl.createControl(DatabaseMetaData.class);
                   7:         ...
                   8:         DatabaseMetaData mockDatabaseMetaData = (DatabaseMetaData) ctrlDatabaseMetaData.getMock();
                   9:         ...
                  10:         mockDatabaseMetaData.getDatabaseProductName();

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.SQLException;
                   4:         ...
                   5: 
                   6:       DatabaseMetaData md = conn.getMetaData();
                   7: 
                   8:         ...
                   9:       String name = md.getDatabaseProductName();
                  10: 
                  11:         ...
                  12: 
                  13:       DatabaseMetaData md = conn.getMetaData();

                View Full Code Here

                getDatabaseProductVersion

                public String getDatabaseProductVersion()
                            throws SQLException
                Retrieves the version number of this database product.
                Returns:
                database version number
                Throws:
                SQLException - if a database access error occurs
                Usages and Demos :

                View More Examples of getDatabaseProductVersion()
                   1:     Connection c = DriverManager.getConnection("jdbc:odbc:Kurse");
                   2:     DatabaseMetaData meta = c.getMetaData();
                   3:     System.out.println(meta.getDatabaseProductName() + " " +
                   4:         ...
                   5:                                          meta.getDatabaseProductVersion());
                   6:     System.out.println("Entry Level  " + meta.supportsANSI92EntryLevelSQL());
                   7:     System.out.println("Intermediate " + meta.supportsANSI92IntermediateSQL());
                   8:     System.out.println("Full Level   " + meta.supportsANSI92FullSQL());

                View Full Code Here
                   1:             "jdbc:oracle:thin:@p30:1521:jdbcbuch", "system", "manager");
                   2:     DatabaseMetaData meta = c.getMetaData();
                   3:     System.out.println(meta.getDatabaseProductName() + " " +
                   4:         ...
                   5:                        meta.getDatabaseProductVersion() );
                   6:     System.out.println("Stored Procedures: " + meta.supportsStoredProcedures() );
                   7:     System.out.println("Prozeduren sind:   " + meta.getProcedureTerm());
                   8:   }

                View Full Code Here
                   1: 
                   2:     DatabaseMetaData meta = con.getMetaData();
                   3:     
                   4:         ...
                   5:     System.out.println( "Version der Datenbank: " +
                   6:                          meta.getDatabaseProductVersion()  );
                   7: 
                   8:     System.out.println( "Anzahl erlaubter Verbindungen: " +
                   9:                          meta.getMaxConnections() );

                View Full Code Here
                   1: 
                   2:             DatabaseMetaData meta = conn.getMetaData();
                   3: 
                   4:         ...
                   5:             System.out.println("Dans sa version " +
                   6:                                 meta.getDatabaseProductVersion() );
                   7:         
                   8:             int txisolation = meta.getDefaultTransactionIsolation();
                   9:             System.out.println("L?isolation transactionnelle par d?faut est "+

                View Full Code Here
                   1: 
                   2:     String getResourcePath(DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   3:         Element root = document.getDocumentElement();
                   4:         ...
                   5: 
                   6:     private boolean match(Element filterNode, DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   7:         NodeList conditionList = filterNode.getElementsByTagName("*");
                   8:         ...
                   9:             } else if(conditionName.equals("database-product-version")) {
                  10:                 match = match(condition, dmd.getDatabaseProductVersion());
                  11:             } else if(conditionName.equals("driver-major-version")) {

                View Full Code Here

                getDefaultTransactionIsolation

                public int getDefaultTransactionIsolation()
                            throws SQLException
                Retrieves this database's default transaction isolation level. The possible values are defined in java.sql.Connection.
                Returns:
                the default isolation level
                Throws:
                SQLException - if a database access error occurs
                See Also:
                Connection
                Usages and Demos :

                View More Examples of getDefaultTransactionIsolation()
                   1: 
                   2:             DatabaseMetaData meta = conn.getMetaData();
                   3: 
                   4:         ...
                   5:         
                   6:             int txisolation = meta.getDefaultTransactionIsolation();
                   7:             System.out.println("Database default transaction isolation is " + 
                   8:                 txisolation + " (" +
                   9:                 transactionIsolationToString(txisolation) + ").");

                View Full Code Here
                   1: 
                   2:             DatabaseMetaData meta = conn.getMetaData();
                   3: 
                   4:         ...
                   5:         
                   6:             int txisolation = meta.getDefaultTransactionIsolation();
                   7:             System.out.println("L?isolation transactionnelle par d?faut est "+
                   8:                 txisolation + " (" +
                   9:                 transactionIsolationToString(txisolation) + ").");

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5:             conn = DerbyConnectionUtil.getSystemDBConnection();
                   6:             DatabaseMetaData dbMD = (DatabaseMetaData) conn.getMetaData();
                   7: 
                   8:         ...
                   9: 
                  10:             switch (dbMD.getDefaultTransactionIsolation()) {
                  11:             case Connection.TRANSACTION_NONE:

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public int getDefaultTransactionIsolation() throws SQLException
                  13:     { return inner.getDefaultTransactionIsolation(); }

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     final DatabaseMetaData inner;
                  10: 
                  11:         ...
                  12:     {
                  13:         return inner.getDefaultTransactionIsolation();

                View Full Code Here

                getDriverMajorVersion

                public int getDriverMajorVersion()
                Retrieves this JDBC driver's major version number.
                Returns:
                JDBC driver major version
                Usages and Demos :

                View More Examples of getDriverMajorVersion()
                   1: 
                   2:     String getResourcePath(DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   3:         Element root = document.getDocumentElement();
                   4:         ...
                   5: 
                   6:     private boolean match(Element filterNode, DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   7:         NodeList conditionList = filterNode.getElementsByTagName("*");
                   8:         ...
                   9:             } else if(conditionName.equals("driver-major-version")) {
                  10:                 match = match(condition, dmd.getDriverMajorVersion());
                  11:             } else if(conditionName.equals("driver-minor-version")) {

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.Driver;
                   4:         ...
                   5: 
                   6:         DatabaseMetaData metaData = con.getMetaData();
                   7: 
                   8:         ...
                   9:         System.out.println("Database product version                : " + metaData.getDatabaseProductVersion());
                  10:         System.out.println("Driver major version                    : " + metaData.getDriverMajorVersion());
                  11:         System.out.println("Driver minor version                    : " + metaData.getDriverMinorVersion());

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public int getDriverMajorVersion()
                  13:     { return inner.getDriverMajorVersion(); }

                View Full Code Here
                   1:     void test(Connection conn) throws SQLException {
                   2:         DatabaseMetaData meta = conn.getMetaData();
                   3:         Statement stat = conn.createStatement();
                   4:         ...
                   5: 
                   6:         int major = meta.getDriverMajorVersion();
                   7:         trace("meta.getDriverMajorVersion:" + major);
                   8:         ...
                   9:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
                  10:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
                  11:                         null, null, null, null, null, "1", "NO"},
                  12:         ...
                  13:                         "120", null, "0", "10",
                  14:                         "" + DatabaseMetaData.columnNullable, null, null, null,

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     final DatabaseMetaData inner;
                  10: 
                  11:         ...
                  12:     {
                  13:         return inner.getDriverMajorVersion();

                View Full Code Here

                getDriverMinorVersion

                public int getDriverMinorVersion()
                Retrieves this JDBC driver's minor version number.
                Returns:
                JDBC driver minor version number
                Usages and Demos :

                View More Examples of getDriverMinorVersion()
                   1: 
                   2:     String getResourcePath(DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   3:         Element root = document.getDocumentElement();
                   4:         ...
                   5: 
                   6:     private boolean match(Element filterNode, DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   7:         NodeList conditionList = filterNode.getElementsByTagName("*");
                   8:         ...
                   9:             } else if(conditionName.equals("driver-minor-version")) {
                  10:                 match = match(condition, dmd.getDriverMinorVersion());
                  11:             } else {

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.Driver;
                   4:         ...
                   5: 
                   6:         DatabaseMetaData metaData = con.getMetaData();
                   7: 
                   8:         ...
                   9:         System.out.println("Driver major version                    : " + metaData.getDriverMajorVersion());
                  10:         System.out.println("Driver minor version                    : " + metaData.getDriverMinorVersion());
                  11:         System.out.println("Driver name                             : " + metaData.getDriverName());

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     protected DatabaseMetaData inner;
                  10:     
                  11:         ...
                  12:     public int getDriverMinorVersion()
                  13:     { return inner.getDriverMinorVersion(); }

                View Full Code Here
                   1:     void test(Connection conn) throws SQLException {
                   2:         DatabaseMetaData meta = conn.getMetaData();
                   3:         Statement stat = conn.createStatement();
                   4:         ...
                   5: 
                   6:         int minor = meta.getDriverMinorVersion();
                   7:         trace("meta.getDriverMinorVersion:" + minor);
                   8:         ...
                   9:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
                  10:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
                  11:                         null, null, null, null, null, "1", "NO"},
                  12:         ...
                  13:                         "120", null, "0", "10",
                  14:                         "" + DatabaseMetaData.columnNullable, null, null, null,

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5: 
                   6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                   7: {
                   8:         ...
                   9:     final DatabaseMetaData inner;
                  10: 
                  11:         ...
                  12:     {
                  13:         return inner.getDriverMinorVersion();

                View Full Code Here

                getDriverName

                public String getDriverName()
                            throws SQLException
                Retrieves the name of this JDBC driver.
                Returns:
                JDBC driver name
                Throws:
                SQLException - if a database access error occurs
                Usages and Demos :

                View More Examples of getDriverName()
                   1:       Connection connection = ConnectionFactory.getConnection();
                   2:       DatabaseMetaData dbmd = connection.getMetaData();
                   3: 
                   4:         ...
                   5:                          + dbmd.getDatabaseProductVersion() + "]");
                   6:       System.out.println("Driver name=[" + dbmd.getDriverName() + "]");
                   7:       System.out.println("Driver version=[" + dbmd.getDriverVersion() 
                   8:                          + "]");
                

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import org.apache.log4j.Logger;
                   4:         ...
                   5:          Connection conn = source.getConnection();
                   6:          DatabaseMetaData databaseMetaData = conn.getMetaData();
                   7:          logger.debug("got data source to: "+databaseMetaData.getDatabaseProductName()+
                   8:         ...
                   9:                " ("+databaseMetaData.getDatabaseProductVersion()+") through driver: "+
                  10:                databaseMetaData.getDriverName()+" ("+databaseMetaData.getDriverVersion()+")");
                  11:          String databaseName = databaseMetaData.getDatabaseProductName();

                View Full Code Here
                   1: 
                   2:     String getResourcePath(DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   3:         Element root = document.getDocumentElement();
                   4:         ...
                   5: 
                   6:     private boolean match(Element filterNode, DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   7:         NodeList conditionList = filterNode.getElementsByTagName("*");
                   8:         ...
                   9:             } else if(conditionName.equals("driver-name")) {
                  10:                 match = match(condition, dmd.getDriverName());
                  11:             } else if(conditionName.equals("driver-version")) {

                View Full Code Here
                   1:             else if( cmd.startsWith("show") ) {
                   2:                 DatabaseMetaData meta;
                   3:                     
                   4:         ...
                   5: 
                   6:     static public void showVersion(DatabaseMetaData meta) {
                   7:         try {
                   8:         ...
                   9:                                " " + meta.getDatabaseProductVersion());
                  10:             System.out.println("JDBC Driver: " + meta.getDriverName() +
                  11:                                " " + meta.getDriverVersion());

                View Full Code Here

                getDriverVersion

                public String getDriverVersion()
                            throws SQLException
                Retrieves the version number of this JDBC driver as a String.
                Returns:
                JDBC driver version
                Throws:
                SQLException - if a database access error occurs
                Usages and Demos :

                View More Examples of getDriverVersion()
                   1: 
                   2:     DatabaseMetaData meta = con.getMetaData();
                   3:     
                   4:         ...
                   5:     System.out.println( "Version des DB-Treibers: " +
                   6:                          meta.getDriverVersion() );
                   7: 
                   8:     System.out.println( "Update im Batchbetrieb: " +
                   9:                          meta.supportsBatchUpdates() );

                View Full Code Here
                   1:       Connection connection = ConnectionFactory.getConnection();
                   2:       DatabaseMetaData dbmd = connection.getMetaData();
                   3: 
                   4:         ...
                   5:       System.out.println("Driver name=[" + dbmd.getDriverName() + "]");
                   6:       System.out.println("Driver version=[" + dbmd.getDriverVersion() 
                   7:                          + "]");
                   8: 
                   9:       System.out.println("Supports transactions=[" 

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import org.apache.log4j.Logger;
                   4:         ...
                   5:          Connection conn = source.getConnection();
                   6:          DatabaseMetaData databaseMetaData = conn.getMetaData();
                   7:          logger.debug("got data source to: "+databaseMetaData.getDatabaseProductName()+
                   8:         ...
                   9:                " ("+databaseMetaData.getDatabaseProductVersion()+") through driver: "+
                  10:                databaseMetaData.getDriverName()+" ("+databaseMetaData.getDriverVersion()+")");
                  11:          String databaseName = databaseMetaData.getDatabaseProductName();

                View Full Code Here
                   1: import java.sql.Connection;
                   2: import java.sql.DatabaseMetaData;
                   3: import java.sql.ResultSet;
                   4:         ...
                   5:       Connection cConn = getConnection();
                   6:       DatabaseMetaData dMeta = cConn.getMetaData();
                   7: 
                   8:         ...
                   9:       String driver = dMeta.getDriverName();
                  10:       String version = dMeta.getDriverVersion();
                  11: 
                  12:         ...
                  13:       Connection cConn = getConnection();
                  14:       DatabaseMetaData dMeta = cConn.getMetaData();

                View Full Code Here
                   1: 
                   2:     String getResourcePath(DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   3:         Element root = document.getDocumentElement();
                   4:         ...
                   5: 
                   6:     private boolean match(Element filterNode, DatabaseMetaData dmd) throws SQLException, StorageConfigurationException {
                   7:         NodeList conditionList = filterNode.getElementsByTagName("*");
                   8:         ...
                   9:             } else if(conditionName.equals("driver-version")) {
                  10:                 match = match(condition, dmd.getDriverVersion());
                  11:             } else if(conditionName.equals("database-product-name")) {

                View Full Code Here

                getExportedKeys

                public ResultSet getExportedKeys(String catalog,
                                                 String schema,
                                                 String table)
                            throws SQLException
                Retrieves a description of the foreign key columns that reference the given table's primary key columns (the foreign keys exported by a table). They are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and KEY_SEQ.

                Each foreign key column description has the following columns:

                1. PKTABLE_CAT String => primary key table catalog (may be null)
                2. PKTABLE_SCHEM String => primary key table schema (may be null)
                3. PKTABLE_NAME String => primary key table name
                4. PKCOLUMN_NAME String => primary key column name
                5. FKTABLE_CAT String => foreign key table catalog (may be null) being exported (may be null)
                6. FKTABLE_SCHEM String => foreign key table schema (may be null) being exported (may be null)
                7. FKTABLE_NAME String => foreign key table name being exported
                8. FKCOLUMN_NAME String => foreign key column name being exported
                9. KEY_SEQ short => sequence number within foreign key
                10. UPDATE_RULE short => What happens to foreign key when primary is updated:
                  • importedNoAction - do not allow update of primary key if it has been imported
                  • importedKeyCascade - change imported key to agree with primary key update
                  • importedKeySetNull - change imported key to NULL if its primary key has been updated
                  • importedKeySetDefault - change imported key to default values if its primary key has been updated
                  • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
                  • DELETE_RULE short => What happens to the foreign key when primary is deleted.
                    • importedKeyNoAction - do not allow delete of primary key if it has been imported
                    • importedKeyCascade - delete rows that import a deleted key
                    • importedKeySetNull - change imported key to NULL if its primary key has been deleted
                    • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
                    • importedKeySetDefault - change imported key to default if its primary key has been deleted
                    • FK_NAME String => foreign key name (may be null)
                    • PK_NAME String => primary key name (may be null)
                    • DEFERRABILITY short => can the evaluation of foreign key constraints be deferred until commit
                      • importedKeyInitiallyDeferred - see SQL92 for definition
                      • importedKeyInitiallyImmediate - see SQL92 for definition
                      • importedKeyNotDeferrable - see SQL92 for definition
                      Parameters:
                      catalog - a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
                      schema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
                      table - a table name; must match the table name as it is stored in this database
                      Returns:
                      a ResultSet object in which each row is a foreign key column description
                      Throws:
                      SQLException - if a database access error occurs
                      Usages and Demos :

                      View More Examples of getExportedKeys(String catalog,String schema,String table)
                         1: 
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.SQLException;
                         4:         ...
                         5:     public void testForeignKeys() throws SQLException {
                         6:         DatabaseMetaData dbmd = conn.getMetaData();
                         7:         rs = dbmd.getImportedKeys(null, null, "child");
                         8:         ...
                         9:         rs.close();
                        10:         rs = dbmd.getExportedKeys(null, null, "parent");
                        11: 
                        12:         ...
                        13:         try {
                        14:             DatabaseMetaData dbmd = conn.getMetaData();

                      View Full Code Here
                         1: 
                         2:          DatabaseMetaData meta = conn.getMetaData();
                         3:          if (meta == null) {
                         4:         ...
                         5: 
                         6:          return meta.getExportedKeys(catalog, schema, table.toUpperCase());
                         7:      }
                         8:         ...
                         9:      private static String getUpdateRule(short updateRule) {
                        10:         if (updateRule == DatabaseMetaData.importedKeyNoAction) {
                        11:             return "importedKeyNoAction";
                        12:         ...
                        13:         }
                        14:         else if (updateRule == DatabaseMetaData.importedKeyCascade) {

                      View Full Code Here
                         1: 
                         2: import java.sql.DatabaseMetaData;
                         3: 
                         4:         ...
                         5: 
                         6:         DatabaseMetaData md = con.getMetaData();
                         7: 
                         8:         ...
                         9: 
                        10:             readResult("EXPORTED KEYS of " + tableName, md.getExportedKeys(null, null, tableName), print);
                      

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     protected DatabaseMetaData inner;
                        10:     
                        11:         ...
                        12:     public ResultSet getExportedKeys(String a, String b, String c) throws SQLException
                        13:     { return inner.getExportedKeys(a, b, c); }

                      View Full Code Here
                         1:     void test(Connection conn) throws SQLException {
                         2:         DatabaseMetaData meta = conn.getMetaData();
                         3:         Statement stat = conn.createStatement();
                         4:         ...
                         5:                 { null, null, "TEST", "ID", "" + Types.INTEGER, "INTEGER", "9",
                         6:                         null, "0", "10", "" + DatabaseMetaData.columnNoNulls,
                         7:                         null, null, null, null, null, "1", "NO"},
                         8:         ...
                         9:                         "120", null, "0", "10",
                        10:                         "" + DatabaseMetaData.columnNullable, null, null, null,
                        11:                         null, null, "2", "YES"},
                        12:         ...
                        13:         trace("getExportedKeys");
                        14:         rs = meta.getExportedKeys(null, null, "PARENT");

                      View Full Code Here

                      getExtraNameCharacters

                      public String getExtraNameCharacters()
                                  throws SQLException
                      Retrieves all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).
                      Returns:
                      the string containing the extra characters
                      Throws:
                      SQLException - if a database access error occurs
                      Usages and Demos :

                      View More Examples of getExtraNameCharacters()
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     protected DatabaseMetaData inner;
                        10:     
                        11:         ...
                        12:     public String getExtraNameCharacters() throws SQLException
                        13:     { return inner.getExtraNameCharacters(); }

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     final DatabaseMetaData inner;
                        10: 
                        11:         ...
                        12:     {
                        13:         return inner.getExtraNameCharacters();

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     final DatabaseMetaData inner;
                        10: 
                        11:         ...
                        12:     {
                        13:         return inner.getExtraNameCharacters();

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     protected DatabaseMetaData inner;
                        10:     
                        11:         ...
                        12:     public synchronized String getExtraNameCharacters() throws SQLException
                        13:     { return inner.getExtraNameCharacters(); }

                      View Full Code Here

                      getIdentifierQuoteString

                      public String getIdentifierQuoteString()
                                  throws SQLException
                      Retrieves the string used to quote SQL identifiers. This method returns a space " " if identifier quoting is not supported.
                      Returns:
                      the quoting string or a space if quoting is not supported
                      Throws:
                      SQLException - if a database access error occurs
                      Usages and Demos :

                      View More Examples of getIdentifierQuoteString()
                         1: import java.sql.SQLException;
                         2: import java.sql.DatabaseMetaData;
                         3: 
                         4:         ...
                         5: 
                         6:     DatabaseMetaDataSQLSupportConfig(DatabaseMetaData databaseMetaData)
                         7:             throws SQLException {
                         8:         ...
                         9:         setQuoteChar(databaseMetaData.getIdentifierQuoteString());
                        10:         setSupportsLikeEscapeClause(databaseMetaData.supportsLikeEscapeClause());

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.Driver;
                         4:         ...
                         5: 
                         6:         DatabaseMetaData metaData = con.getMetaData();
                         7: 
                         8:         ...
                         9:         System.out.println("Extra name characters                   : " + metaData.getExtraNameCharacters());
                        10:         System.out.println("Identifier quote string                 : " + metaData.getIdentifierQuoteString());
                        11:         System.out.println("Search string escape                    : " + metaData.getSearchStringEscape());

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     protected DatabaseMetaData inner;
                        10:     
                        11:         ...
                        12:     public String getIdentifierQuoteString() throws SQLException
                        13:     { return inner.getIdentifierQuoteString(); }

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     final DatabaseMetaData inner;
                        10: 
                        11:         ...
                        12:     {
                        13:         return inner.getIdentifierQuoteString();

                      View Full Code Here
                         1: import java.sql.Connection;
                         2: import java.sql.DatabaseMetaData;
                         3: import java.sql.ResultSet;
                         4:         ...
                         5: 
                         6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                         7: {
                         8:         ...
                         9:     final DatabaseMetaData inner;
                        10: 
                        11:         ...
                        12:     {
                        13:         return inner.getIdentifierQuoteString();

                      View Full Code Here

                      getImportedKeys

                      public ResultSet getImportedKeys(String catalog,
                                                       String schema,
                                                       String table)
                                  throws SQLException
                      Retrieves a description of the primary key columns that are referenced by a table's foreign key columns (the primary keys imported by a table). They are ordered by PKTABLE_CAT, PKTABLE_SCHEM, PKTABLE_NAME, and KEY_SEQ.

                      Each primary key column description has the following columns:

                      1. PKTABLE_CAT String => primary key table catalog being imported (may be null)
                      2. PKTABLE_SCHEM String => primary key table schema being imported (may be null)
                      3. PKTABLE_NAME String => primary key table name being imported
                      4. PKCOLUMN_NAME String => primary key column name being imported
                      5. FKTABLE_CAT String => foreign key table catalog (may be null)
                      6. FKTABLE_SCHEM String => foreign key table schema (may be null)
                      7. FKTABLE_NAME String => foreign key table name
                      8. FKCOLUMN_NAME String => foreign key column name
                      9. KEY_SEQ short => sequence number within a foreign key
                      10. UPDATE_RULE short => What happens to a foreign key when the primary key is updated:
                        • importedNoAction - do not allow update of primary key if it has been imported
                        • importedKeyCascade - change imported key to agree with primary key update
                        • importedKeySetNull - change imported key to NULL if its primary key has been updated
                        • importedKeySetDefault - change imported key to default values if its primary key has been updated
                        • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
                        • DELETE_RULE short => What happens to the foreign key when primary is deleted.
                          • importedKeyNoAction - do not allow delete of primary key if it has been imported
                          • importedKeyCascade - delete rows that import a deleted key
                          • importedKeySetNull - change imported key to NULL if its primary key has been deleted
                          • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
                          • importedKeySetDefault - change imported key to default if its primary key has been deleted
                          • FK_NAME String => foreign key name (may be null)
                          • PK_NAME String => primary key name (may be null)
                          • DEFERRABILITY short => can the evaluation of foreign key constraints be deferred until commit
                            • importedKeyInitiallyDeferred - see SQL92 for definition
                            • importedKeyInitiallyImmediate - see SQL92 for definition
                            • importedKeyNotDeferrable - see SQL92 for definition
                            Parameters:
                            catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
                            schema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
                            table - 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
                            Usages and Demos :

                            View More Examples of getImportedKeys(String catalog,String schema,String table)
                               1: 
                               2: import java.sql.DatabaseMetaData;
                               3: import java.sql.ResultSet;
                               4:         ...
                               5:     
                               6:     public void initForeignKeys(DatabaseMetaData meta) throws SQLException
                               7:     {
                               8:         ...
                               9:         try {
                              10:             rs = meta.getImportedKeys(null, _schema, _name);
                              11:             
                              12:         ...
                              13:     
                              14:     public void initIndexes(DatabaseMetaData meta) throws SQLException

                            View Full Code Here
                               1: 
                               2: import java.sql.DatabaseMetaData;
                               3: import java.sql.ResultSet;
                               4:         ...
                               5: 
                               6:     public void initForeignKeys(DatabaseMetaData meta) throws SQLException
                               7:     {
                               8:         ...
                               9:         try {
                              10:             rs = meta.getImportedKeys(null, _schema, _name);
                              11: 
                              12:         ...
                              13: 
                              14:     public void initIndexes(DatabaseMetaData meta) throws SQLException

                            View Full Code Here
                               1: 
                               2: import java.sql.DatabaseMetaData;
                               3: import java.sql.ResultSet;
                               4:         ...
                               5: 
                               6:     TableMetadata(ResultSet rs, DatabaseMetaData meta, boolean extras) throws SQLException {
                               7:         catalog = rs.getString("TABLE_CAT");
                               8:         ...
                               9: 
                              10:     private void initForeignKeys(DatabaseMetaData meta) throws SQLException {
                              11:         ResultSet rs = null;
                              12:         ...
                              13:             else {
                              14:                 rs = meta.getImportedKeys(catalog, schema, name);

                            View Full Code Here
                               1:    public static List getCatalogs(Connection c) throws SQLException {
                               2:       DatabaseMetaData dmd = c.getMetaData();
                               3:       ResultSet rs = null;
                               4:         ...
                               5:    public static Map getSchemas(Connection c) throws SQLException {
                               6:       DatabaseMetaData dmd = c.getMetaData();
                               7:       ResultSet rs = null;
                               8:         ...
                               9:       logger.debug("table='" + tablePattern + "'");
                              10:       DatabaseMetaData dmd = c.getMetaData();
                              11:       ResultSet rs = null;
                              12:         ...
                              13:       try {
                              14:          rs = dmd.getImportedKeys(catalog, schema, table);

                            View Full Code Here
                               1: 
                               2:          DatabaseMetaData meta = conn.getMetaData();
                               3:          if (meta == null) {
                               4:         ...
                               5: 
                               6:          return meta.getImportedKeys(catalog, schema, table.toUpperCase());
                               7:      }
                               8:         ...
                               9:      private static String getUpdateRule(short updateRule) {
                              10:         if (updateRule == DatabaseMetaData.importedKeyNoAction) {
                              11:             return "importedKeyNoAction";
                              12:         ...
                              13:         }
                              14:         else if (updateRule == DatabaseMetaData.importedKeyCascade) {

                            View Full Code Here

                            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:

                            1. TABLE_CAT String => table catalog (may be null)
                            2. TABLE_SCHEM String => table schema (may be null)
                            3. TABLE_NAME String => table name
                            4. NON_UNIQUE boolean => Can index values be non-unique. false when TYPE is tableIndexStatistic
                            5. INDEX_QUALIFIER String => index catalog (may be null); null when TYPE is tableIndexStatistic
                            6. INDEX_NAME String => index name; null when TYPE is tableIndexStatistic
                            7. TYPE short => index type:
                              • tableIndexStatistic - this identifies table statistics that are returned in conjuction with a table's index descriptions
                              • tableIndexClustered - this is a clustered index
                              • tableIndexHashed - this is a hashed index
                              • tableIndexOther - this is some other style of index
                              • ORDINAL_POSITION short => column sequence number within index; zero when TYPE is tableIndexStatistic
                              • COLUMN_NAME String => column name; null when TYPE is tableIndexStatistic
                              • ASC_OR_DESC String => column sort sequence, "A" => ascending, "D" => descending, may be null if sort sequence is not supported; null when TYPE is tableIndexStatistic
                              • 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)
                              Parameters:
                              catalog - a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
                              schema - a schema name; must match the schema name as it is stored in this database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
                              table - a table name; must match the table name as it is stored in this database
                              unique - when true, return only indices for unique values; when false, return indices regardless of whether unique or not
                              approximate - 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
                              Usages and Demos :

                              View More Examples of getIndexInfo(String catalog,String schema,String table,boolean unique,boolean approximate)
                                 1: 
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5:     
                                 6:     public void initForeignKeys(DatabaseMetaData meta) throws SQLException
                                 7:     {
                                 8:         ...
                                 9:     
                                10:     public void initIndexes(DatabaseMetaData meta) throws SQLException
                                11:     {
                                12:         ...
                                13:         try {
                                14:             rs = meta.getIndexInfo(null, _schema, _name, false, true);

                              View Full Code Here
                                 1: 
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6:     public void initForeignKeys(DatabaseMetaData meta) throws SQLException
                                 7:     {
                                 8:         ...
                                 9: 
                                10:     public void initIndexes(DatabaseMetaData meta) throws SQLException
                                11:     {
                                12:         ...
                                13:         try {
                                14:             rs = meta.getIndexInfo(null, _schema, _name, false, true);

                              View Full Code Here
                                 1: 
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5:                String name,
                                 6:                DatabaseMetaData md)
                                 7:     throws SQLException
                                 8:         ...
                                 9: 
                                10:       rs = md.getIndexInfo(_catalog, _schema, _name, false, true);
                                11:       while (rs.next()) {

                              View Full Code Here
                                 1: 
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6:     TableMetadata(ResultSet rs, DatabaseMetaData meta, boolean extras) throws SQLException {
                                 7:         catalog = rs.getString("TABLE_CAT");
                                 8:         ...
                                 9: 
                                10:     private void initForeignKeys(DatabaseMetaData meta) throws SQLException {
                                11:         ResultSet rs = null;
                                12:         ...
                                13:             else {
                                14:                 rs = meta.getIndexInfo(catalog, schema, name, false, true);

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5:       Connection cConn = getConnection();
                                 6:       DatabaseMetaData dMeta = cConn.getMetaData();
                                 7: 
                                 8:         ...
                                 9:       Connection cConn = getConnection();
                                10:       DatabaseMetaData dMeta = cConn.getMetaData();
                                11: 
                                12:         ...
                                13:       ResultSet rs = dMeta.getIndexInfo(null, null, table, false, false);

                              View Full Code Here

                              getJDBCMajorVersion

                              public int getJDBCMajorVersion()
                                          throws SQLException
                              Retrieves the major JDBC version number for this driver.
                              Returns:
                              JDBC version major number
                              Throws:
                              SQLException - if a database access error occurs
                              Since:
                              1.4
                              Usages and Demos :

                              View More Examples of getJDBCMajorVersion()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println("Driver minor Version: " + dbMetaData.getDriverMinorVersion() );
                                 9:       System.out.println( "JDBC major version: " + dbMetaData.getJDBCMajorVersion() );
                                10:       System.out.println( "JDBC minor version: " + dbMetaData.getJDBCMinorVersion() );

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Driver version                          : " + metaData.getDriverVersion());
                                10:         System.out.println("JDBC major version                      : " + metaData.getJDBCMajorVersion());
                                11:         System.out.println("JDBC minor version                      : " + metaData.getJDBCMinorVersion());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getJDBCMajorVersion() throws SQLException
                                13:     { return inner.getJDBCMajorVersion(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getJDBCMajorVersion() throws SQLException
                                13:     { return inner.getJDBCMajorVersion(); }

                              View Full Code Here
                                 1:             metaData.put(TRANSACTION_ISOLATION, DatabaseUtils.transactionIsolation(connection.getTransactionIsolation()));
                                 2:             DatabaseMetaData dbMetaData=connection.getMetaData();
                                 3:             metaData.put(PRODUCT_NAME, dbMetaData.getDatabaseProductName());
                                 4:         ...
                                 5:                 int minorVersion=dbMetaData.getJDBCMinorVersion();
                                 6:                 int majorVersion=dbMetaData.getJDBCMajorVersion();
                                 7:                 metaData.put(JDBC_VERSION, majorVersion+"."+minorVersion);
                                 8:         ...
                                 9:         if (connection==null) return Collections.EMPTY_SET;
                                10:         DatabaseMetaData metaData=connection.getMetaData();
                                11:         String catalog=connection.getCatalog();
                                12:         ...
                                13:         if (connection==null) return StringUtils.MIXED_CASE;
                                14:         DatabaseMetaData metaData=connection.getMetaData();

                              View Full Code Here

                              getJDBCMinorVersion

                              public int getJDBCMinorVersion()
                                          throws SQLException
                              Retrieves the minor JDBC version number for this driver.
                              Returns:
                              JDBC version minor number
                              Throws:
                              SQLException - if a database access error occurs
                              Since:
                              1.4
                              Usages and Demos :

                              View More Examples of getJDBCMinorVersion()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println( "JDBC major version: " + dbMetaData.getJDBCMajorVersion() );
                                 9:       System.out.println( "JDBC minor version: " + dbMetaData.getJDBCMinorVersion() );
                                10:       System.out.println( "Maximum char literal length: " + dbMetaData.getMaxCharLiteralLength() );

                              View Full Code Here
                                 1:             getServletContext().log("Connection closed=" + con.isClosed());
                                 2:             DatabaseMetaData dbmd = con.getMetaData();
                                 3:             getServletContext().log("DB " + dbmd.getDatabaseProductName());
                                 4:         ...
                                 5:             getServletContext().log("JDBC " + dbmd.getJDBCMajorVersion());
                                 6:             getServletContext().log("JDBC mV " + dbmd.getJDBCMinorVersion());
                                 7: 
                                 8:             getServletContext().log("User " + dbmd.getUserName());
                              

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("JDBC major version                      : " + metaData.getJDBCMajorVersion());
                                10:         System.out.println("JDBC minor version                      : " + metaData.getJDBCMinorVersion());
                                11:         System.out.println();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getJDBCMinorVersion() throws SQLException
                                13:     { return inner.getJDBCMinorVersion(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getJDBCMinorVersion() throws SQLException
                                13:     { return inner.getJDBCMinorVersion(); }

                              View Full Code Here

                              getMaxBinaryLiteralLength

                              public int getMaxBinaryLiteralLength()
                                          throws SQLException
                              Retrieves the maximum number of hex characters this database allows in an inline binary literal.
                              Returns:
                              max the maximum length (in hex characters) for a binary literal; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxBinaryLiteralLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println();
                                10:         System.out.println("Max binary literal length               : " + metaData.getMaxBinaryLiteralLength());
                                11:         System.out.println("Max catalog name length                 : " + metaData.getMaxCatalogNameLength());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxBinaryLiteralLength() throws SQLException
                                13:     { return inner.getMaxBinaryLiteralLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxBinaryLiteralLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxBinaryLiteralLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxBinaryLiteralLength() throws SQLException
                                13:     { return inner.getMaxBinaryLiteralLength(); }

                              View Full Code Here

                              getMaxCatalogNameLength

                              public int getMaxCatalogNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters that this database allows in a catalog name.
                              Returns:
                              the maximum number of characters allowed in a catalog name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxCatalogNameLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max binary literal length               : " + metaData.getMaxBinaryLiteralLength());
                                10:         System.out.println("Max catalog name length                 : " + metaData.getMaxCatalogNameLength());
                                11:         System.out.println("Max char literal length                 : " + metaData.getMaxCharLiteralLength());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxCatalogNameLength() throws SQLException
                                13:     { return inner.getMaxCatalogNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxCatalogNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxCatalogNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxCatalogNameLength() throws SQLException
                                13:     { return inner.getMaxCatalogNameLength(); }

                              View Full Code Here

                              getMaxCharLiteralLength

                              public int getMaxCharLiteralLength()
                                          throws SQLException
                              Retrieves the maximum number of characters this database allows for a character literal.
                              Returns:
                              the maximum number of characters allowed for a character literal; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxCharLiteralLength()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println( "JDBC minor version: " + dbMetaData.getJDBCMinorVersion() );
                                 9:       System.out.println( "Maximum char literal length: " + dbMetaData.getMaxCharLiteralLength() );
                                10:       System.out.println( "Maximum column name length: " + dbMetaData.getMaxColumnNameLength() );

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max catalog name length                 : " + metaData.getMaxCatalogNameLength());
                                10:         System.out.println("Max char literal length                 : " + metaData.getMaxCharLiteralLength());
                                11:         System.out.println("Max column name length                  : " + metaData.getMaxColumnNameLength());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxCharLiteralLength() throws SQLException
                                13:     { return inner.getMaxCharLiteralLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxCharLiteralLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxCharLiteralLength();

                              View Full Code Here

                              getMaxColumnNameLength

                              public int getMaxColumnNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters this database allows for a column name.
                              Returns:
                              the maximum number of characters allowed for a column name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxColumnNameLength()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println( "Maximum char literal length: " + dbMetaData.getMaxCharLiteralLength() );
                                 9:       System.out.println( "Maximum column name length: " + dbMetaData.getMaxColumnNameLength() );
                                10:       System.out.println( "Maximum columns in group by: " + dbMetaData.getMaxColumnsInGroupBy() );

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max char literal length                 : " + metaData.getMaxCharLiteralLength());
                                10:         System.out.println("Max column name length                  : " + metaData.getMaxColumnNameLength());
                                11:         System.out.println("Max columns in table                    : " + metaData.getMaxColumnsInTable());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxColumnNameLength() throws SQLException
                                13:     { return inner.getMaxColumnNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnNameLength();

                              View Full Code Here

                              getMaxColumnsInGroupBy

                              public int getMaxColumnsInGroupBy()
                                          throws SQLException
                              Retrieves the maximum number of columns this database allows in a GROUP BY clause.
                              Returns:
                              the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxColumnsInGroupBy()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxColumnsInGroupBy() throws SQLException
                                13:     { return inner.getMaxColumnsInGroupBy(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInGroupBy();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInGroupBy();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxColumnsInGroupBy() throws SQLException
                                13:     { return inner.getMaxColumnsInGroupBy(); }

                              View Full Code Here

                              getMaxColumnsInIndex

                              public int getMaxColumnsInIndex()
                                          throws SQLException
                              Retrieves the maximum number of columns this database allows in an index.
                              Returns:
                              the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxColumnsInIndex()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxColumnsInIndex() throws SQLException
                                13:     { return inner.getMaxColumnsInIndex(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInIndex();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInIndex();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxColumnsInIndex() throws SQLException
                                13:     { return inner.getMaxColumnsInIndex(); }

                              View Full Code Here

                              getMaxColumnsInOrderBy

                              public int getMaxColumnsInOrderBy()
                                          throws SQLException
                              Retrieves the maximum number of columns this database allows in an ORDER BY clause.
                              Returns:
                              the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxColumnsInOrderBy()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxColumnsInOrderBy() throws SQLException
                                13:     { return inner.getMaxColumnsInOrderBy(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInOrderBy();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInOrderBy();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxColumnsInOrderBy() throws SQLException
                                13:     { return inner.getMaxColumnsInOrderBy(); }

                              View Full Code Here

                              getMaxColumnsInSelect

                              public int getMaxColumnsInSelect()
                                          throws SQLException
                              Retrieves the maximum number of columns this database allows in a SELECT list.
                              Returns:
                              the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxColumnsInSelect()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println( "Maximum columns in group by: " + dbMetaData.getMaxColumnsInGroupBy() );
                                 9:       System.out.println( "Maximum columns in select: " + dbMetaData.getMaxColumnsInSelect() );
                                10:       System.out.println( "Maximum columns in table: " + dbMetaData.getMaxColumnsInTable() );

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxColumnsInSelect() throws SQLException
                                13:     { return inner.getMaxColumnsInSelect(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInSelect();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInSelect();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxColumnsInSelect() throws SQLException
                                13:     { return inner.getMaxColumnsInSelect(); }

                              View Full Code Here

                              getMaxColumnsInTable

                              public int getMaxColumnsInTable()
                                          throws SQLException
                              Retrieves the maximum number of columns this database allows in a table.
                              Returns:
                              the maximum number of columns allowed; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxColumnsInTable()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println( "Maximum columns in select: " + dbMetaData.getMaxColumnsInSelect() );
                                 9:       System.out.println( "Maximum columns in table: " + dbMetaData.getMaxColumnsInTable() );
                                10:       System.out.println( "Maximum tables in select: " + dbMetaData.getMaxTablesInSelect() );

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max column name length                  : " + metaData.getMaxColumnNameLength());
                                10:         System.out.println("Max columns in table                    : " + metaData.getMaxColumnsInTable());
                                11:         System.out.println("Max columns in index                    : " + metaData.getMaxColumnsInIndex());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxColumnsInTable() throws SQLException
                                13:     { return inner.getMaxColumnsInTable(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInTable();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxColumnsInTable();

                              View Full Code Here

                              getMaxConnections

                              public int getMaxConnections()
                                          throws SQLException
                              Retrieves the maximum number of concurrent connections to this database that are possible.
                              Returns:
                              the maximum number of active connections possible at one time; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxConnections()
                                 1: 
                                 2:     DatabaseMetaData meta = con.getMetaData();
                                 3:     
                                 4:         ...
                                 5:     System.out.println( "Anzahl erlaubter Verbindungen: " +
                                 6:                          meta.getMaxConnections() );
                                 7: 
                                 8:     System.out.println( "Version des DB-Treibers: " +
                                 9:                          meta.getDriverVersion() );

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxConnections() throws SQLException
                                13:     { return inner.getMaxConnections(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxConnections();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxConnections();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxConnections() throws SQLException
                                13:     { return inner.getMaxConnections(); }

                              View Full Code Here

                              getMaxCursorNameLength

                              public int getMaxCursorNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters that this database allows in a cursor name.
                              Returns:
                              the maximum number of characters allowed in a cursor name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxCursorNameLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max connections                         : " + metaData.getMaxConnections());
                                10:         System.out.println("Max cursor name length                  : " + metaData.getMaxCursorNameLength());
                                11:         System.out.println("Max index length                        : " + metaData.getMaxIndexLength());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxCursorNameLength() throws SQLException
                                13:     { return inner.getMaxCursorNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxCursorNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxCursorNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxCursorNameLength() throws SQLException
                                13:     { return inner.getMaxCursorNameLength(); }

                              View Full Code Here

                              getMaxIndexLength

                              public int getMaxIndexLength()
                                          throws SQLException
                              Retrieves the maximum number of bytes this database allows for an index, including all of the parts of the index.
                              Returns:
                              the maximum number of bytes allowed; this limit includes the composite of all the constituent parts of the index; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxIndexLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max cursor name length                  : " + metaData.getMaxCursorNameLength());
                                10:         System.out.println("Max index length                        : " + metaData.getMaxIndexLength());
                                11:         System.out.println("Max row size                            : " + metaData.getMaxRowSize());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxIndexLength() throws SQLException
                                13:     { return inner.getMaxIndexLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxIndexLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxIndexLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxIndexLength() throws SQLException
                                13:     { return inner.getMaxIndexLength(); }

                              View Full Code Here

                              getMaxProcedureNameLength

                              public int getMaxProcedureNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters that this database allows in a procedure name.
                              Returns:
                              the maximum number of characters allowed in a procedure name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxProcedureNameLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: 
                                 4:         ...
                                 5:          conn = pool.reserve();
                                 6:          DatabaseMetaData meta = conn.getMetaData();
                                 7:          
                                 8:         ...
                                 9:          this.maxProcLength = meta.getMaxProcedureNameLength();
                                10:          

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxProcedureNameLength() throws SQLException
                                13:     { return inner.getMaxProcedureNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxProcedureNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxProcedureNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxProcedureNameLength() throws SQLException
                                13:     { return inner.getMaxProcedureNameLength(); }

                              View Full Code Here

                              getMaxRowSize

                              public int getMaxRowSize()
                                          throws SQLException
                              Retrieves the maximum number of bytes this database allows in a single row.
                              Returns:
                              the maximum number of bytes allowed for a row; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxRowSize()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max index length                        : " + metaData.getMaxIndexLength());
                                10:         System.out.println("Max row size                            : " + metaData.getMaxRowSize());
                                11:         System.out.println("Max row size includes BLOBs             : " + metaData.doesMaxRowSizeIncludeBlobs());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxRowSize() throws SQLException
                                13:     { return inner.getMaxRowSize(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxRowSize();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxRowSize();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxRowSize() throws SQLException
                                13:     { return inner.getMaxRowSize(); }

                              View Full Code Here

                              getMaxSchemaNameLength

                              public int getMaxSchemaNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters that this database allows in a schema name.
                              Returns:
                              the maximum number of characters allowed in a schema name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxSchemaNameLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max row size includes BLOBs             : " + metaData.doesMaxRowSizeIncludeBlobs());
                                10:         System.out.println("Max schema name length                  : " + metaData.getMaxSchemaNameLength());
                                11:         System.out.println("Max statement length                    : " + metaData.getMaxStatementLength());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxSchemaNameLength() throws SQLException
                                13:     { return inner.getMaxSchemaNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxSchemaNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxSchemaNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxSchemaNameLength() throws SQLException
                                13:     { return inner.getMaxSchemaNameLength(); }

                              View Full Code Here

                              getMaxStatementLength

                              public int getMaxStatementLength()
                                          throws SQLException
                              Retrieves the maximum number of characters this database allows in an SQL statement.
                              Returns:
                              the maximum number of characters allowed for an SQL statement; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxStatementLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max schema name length                  : " + metaData.getMaxSchemaNameLength());
                                10:         System.out.println("Max statement length                    : " + metaData.getMaxStatementLength());
                                11:         System.out.println("Max statements                          : " + metaData.getMaxStatements());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxStatementLength() throws SQLException
                                13:     { return inner.getMaxStatementLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxStatementLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxStatementLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxStatementLength() throws SQLException
                                13:     { return inner.getMaxStatementLength(); }

                              View Full Code Here

                              getMaxStatements

                              public int getMaxStatements()
                                          throws SQLException
                              Retrieves the maximum number of active statements to this database that can be open at the same time.
                              Returns:
                              the maximum number of statements that can be open at one time; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxStatements()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max statement length                    : " + metaData.getMaxStatementLength());
                                10:         System.out.println("Max statements                          : " + metaData.getMaxStatements());
                                11:         System.out.println("Max table name length                   : " + metaData.getMaxTableNameLength());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxStatements() throws SQLException
                                13:     { return inner.getMaxStatements(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxStatements();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxStatements();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxStatements() throws SQLException
                                13:     { return inner.getMaxStatements(); }

                              View Full Code Here

                              getMaxTableNameLength

                              public int getMaxTableNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters this database allows in a table name.
                              Returns:
                              the maximum number of characters allowed for a table name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxTableNameLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max statements                          : " + metaData.getMaxStatements());
                                10:         System.out.println("Max table name length                   : " + metaData.getMaxTableNameLength());
                                11:         System.out.println("Max tables in SELECT                    : " + metaData.getMaxTablesInSelect());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxTableNameLength() throws SQLException
                                13:     { return inner.getMaxTableNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxTableNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxTableNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxTableNameLength() throws SQLException
                                13:     { return inner.getMaxTableNameLength(); }

                              View Full Code Here

                              getMaxTablesInSelect

                              public int getMaxTablesInSelect()
                                          throws SQLException
                              Retrieves the maximum number of tables this database allows in a SELECT statement.
                              Returns:
                              the maximum number of tables allowed in a SELECT statement; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxTablesInSelect()
                                 1: import java.sql.DatabaseMetaData;
                                 2: import java.sql.SQLException;
                                 3:         ...
                                 4:       conn = JDBCUtil.getConnection("scott", "tiger", "ora10g");
                                 5:       DatabaseMetaData dbMetaData = conn.getMetaData();
                                 6:       System.out.println("Database Major version: " + dbMetaData.getDatabaseMajorVersion() );
                                 7:         ...
                                 8:       System.out.println( "Maximum columns in table: " + dbMetaData.getMaxColumnsInTable() );
                                 9:       System.out.println( "Maximum tables in select: " + dbMetaData.getMaxTablesInSelect() );
                                10:     }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxTablesInSelect() throws SQLException
                                13:     { return inner.getMaxTablesInSelect(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxTablesInSelect();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxTablesInSelect();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxTablesInSelect() throws SQLException
                                13:     { return inner.getMaxTablesInSelect(); }

                              View Full Code Here

                              getMaxUserNameLength

                              public int getMaxUserNameLength()
                                          throws SQLException
                              Retrieves the maximum number of characters this database allows in a user name.
                              Returns:
                              the maximum number of characters allowed for a user name; a result of zero means that there is no limit or the limit is not known
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getMaxUserNameLength()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.Driver;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = con.getMetaData();
                                 7: 
                                 8:         ...
                                 9:         System.out.println("Max tables in SELECT                    : " + metaData.getMaxTablesInSelect());
                                10:         System.out.println("Max user name length                    : " + metaData.getMaxUserNameLength());
                                11:         System.out.println("Locators update copy                    : " + metaData.locatorsUpdateCopy());

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public int getMaxUserNameLength() throws SQLException
                                13:     { return inner.getMaxUserNameLength(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxUserNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getMaxUserNameLength();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized int getMaxUserNameLength() throws SQLException
                                13:     { return inner.getMaxUserNameLength(); }

                              View Full Code Here

                              getNumericFunctions

                              public String getNumericFunctions()
                                          throws SQLException
                              Retrieves a comma-separated list of math functions available with this database. These are the Open /Open CLI math function names used in the JDBC function escape clause.
                              Returns:
                              the list of math functions supported by this database
                              Throws:
                              SQLException - if a database access error occurs
                              Usages and Demos :

                              View More Examples of getNumericFunctions()
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public String getNumericFunctions() throws SQLException
                                13:     { return inner.getNumericFunctions(); }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getNumericFunctions();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     final DatabaseMetaData inner;
                                10: 
                                11:         ...
                                12:     {
                                13:         return inner.getNumericFunctions();

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                 7: {
                                 8:         ...
                                 9:     protected DatabaseMetaData inner;
                                10:     
                                11:         ...
                                12:     public synchronized String getNumericFunctions() throws SQLException
                                13:     { return inner.getNumericFunctions(); }

                              View Full Code Here

                              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:

                              1. TABLE_CAT String => table catalog (may be null)
                              2. TABLE_SCHEM String => table schema (may be null)
                              3. TABLE_NAME String => table name
                              4. COLUMN_NAME String => column name
                              5. KEY_SEQ short => sequence number within primary key
                              6. PK_NAME String => primary key name (may be null)
                              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
                              schema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
                              table - 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
                              Usages and Demos :

                              View More Examples of getPrimaryKeys(String catalog,String schema,String table)
                                 1: 
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5:                String name,
                                 6:                DatabaseMetaData md)
                                 7:     throws SQLException
                                 8:         ...
                                 9: 
                                10:       rs = md.getPrimaryKeys(_catalog, _schema, _name);
                                11:       while (rs.next()) {

                              View Full Code Here
                                 1:         }
                                 2:         DatabaseMetaData meta = conn.getMetaData();
                                 3:         if (meta == null) {
                                 4:         ...
                                 5:         }
                                 6:         return meta.getPrimaryKeys(null, null, tableName.toUpperCase());
                                 7:     }
                                 8: }

                              View Full Code Here
                                 1: import java.sql.Connection;
                                 2: import java.sql.DatabaseMetaData;
                                 3: import java.sql.ResultSet;
                                 4:         ...
                                 5: 
                                 6:         DatabaseMetaData metaData = connection.getMetaData();
                                 7:         ResultSet rs = metaData.getTables(null, login.toUpperCase(), null, null);
                                 8:         ...
                                 9: 
                                10:     protected static void exploreTable(RelDatabaseBuilder builder, String tableName, DatabaseMetaData metaData,
                                11:     String catalog, String schema)
                                12:         ...
                                13:         try {
                                14:             rs = metaData.getPrimaryKeys(catalog, schema, tableName);

                              View Full Code Here
                                 1:    public static List getCatalogs(Connection c) throws SQLException {
                                 2:       DatabaseMetaData dmd = c.getMetaData();
                                 3:       ResultSet rs = null;
                                 4:         ...
                                 5:    public static Map getSchemas(Connection c) throws SQLException {
                                 6:       DatabaseMetaData dmd = c.getMetaData();
                                 7:       ResultSet rs = null;
                                 8:         ...
                                 9:       logger.debug("table='" + tablePattern + "'");
                                10:       DatabaseMetaData dmd = c.getMetaData();
                                11:       ResultSet rs = null;
                                12:         ...
                                13:       try {
                                14:          rs = dmd.getPrimaryKeys(catalog, schema, table);

                              View Full Code Here
                                 1:       private ResultSetMetaData metaData;
                                 2:       private DatabaseMetaData dmd;     
                                 3:       ResultSet rs=null;
                                 4:         ...
                                 5:             Vector temp = new Vector();
                                 6:             ResultSet rs = dmd.getPrimaryKeys("", "", tableName);
                                 7:             while(rs.next())
                                 8:             {
                                 9:                 temp.addElement(rs.getString(6));

                              View Full Code Here

                              getProcedureColumns

                              public ResultSet getProcedureColumns(String catalog,
                                                                   String schemaPattern,
                                                                   String procedureNamePattern,
                                                                   String columnNamePattern)
                                          throws SQLException
                              Retrieves a description of the given catalog's stored procedure parameter and result columns.

                              Only descriptions matching the schema, procedure and parameter name criteria are returned. They are ordered by PROCEDURE_SCHEM and PROCEDURE_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 ResultSet is a parameter description or column description with the following fields:

                              1. PROCEDURE_CAT String => procedure catalog (may be null)
                              2. PROCEDURE_SCHEM String => procedure schema (may be null)
                              3. PROCEDURE_NAME String => procedure name
                              4. COLUMN_NAME String => column/parameter name
                              5. COLUMN_TYPE Short => kind of column/parameter:
                                • procedureColumnUnknown - nobody knows
                                • procedureColumnIn - IN parameter
                                • procedureColumnInOut - INOUT parameter
                                • procedureColumnOut - OUT parameter
                                • procedureColumnReturn - procedure return value
                                • procedureColumnResult - result column in ResultSet
                                • 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
                                • RADIX short => radix
                                • NULLABLE short => can it contain NULL.
                                  • procedureNoNulls - does not allow NULL values
                                  • procedureNullable - allows NULL values
                                  • procedureNullableUnknown - nullability unknown
                                  • REMARKS String => comment describing parameter/column

                                  Note: Some databases may not return the column descriptions for a procedure. Additional columns beyond REMARKS can be defined by the database.

                                  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
                                  procedureNamePattern - a procedure name pattern; must match the procedure name as it is stored in the database
                                  columnNamePattern - a column name pattern; must match the column name as it is stored in the database
                                  Returns:
                                  ResultSet - each row describes a stored procedure parameter or column
                                  Throws:
                                  SQLException - if a database access error occurs
                                  Usages and Demos :

                                  View More Examples of getProcedureColumns(String catalog,String schemaPattern,String procedureNamePattern,String columnNamePattern)
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5:         try { 
                                     6:             DatabaseMetaData meta = dl.getMetaData(conn);
                                     7: 
                                     8:         ...
                                     9: 
                                    10:             res = meta.getProcedureColumns(pkgName, m_schema, procName, "%");
                                    11:             m_cols = new LinkedList();
                                    12:         ...
                                    13:         try {
                                    14:             DatabaseMetaData meta = dl.getMetaData(conn);

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     protected DatabaseMetaData inner;
                                    10:     
                                    11:         ...
                                    12:     public ResultSet getProcedureColumns(String a, String b, String c, String d) throws SQLException
                                    13:     { return inner.getProcedureColumns(a, b, c, d); }

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     final DatabaseMetaData inner;
                                    10: 
                                    11:         ...
                                    12:     {
                                    13:         return inner.getProcedureColumns(a, b, c, d);

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     final DatabaseMetaData inner;
                                    10: 
                                    11:         ...
                                    12:     {
                                    13:         return inner.getProcedureColumns(a, b, c, d);

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     protected DatabaseMetaData inner;
                                    10:     
                                    11:         ...
                                    12:     public synchronized ResultSet getProcedureColumns(String a, String b, String c, String d) throws SQLException
                                    13:     { return inner.getProcedureColumns(a, b, c, d); }

                                  View Full Code Here

                                  getProcedureTerm

                                  public String getProcedureTerm()
                                              throws SQLException
                                  Retrieves the database vendor's preferred term for "procedure".
                                  Returns:
                                  the vendor term for "procedure"
                                  Throws:
                                  SQLException - if a database access error occurs
                                  Usages and Demos :

                                  View More Examples of getProcedureTerm()
                                     1:             "jdbc:oracle:thin:@p30:1521:jdbcbuch", "system", "manager");
                                     2:     DatabaseMetaData meta = c.getMetaData();
                                     3:     System.out.println(meta.getDatabaseProductName() + " " +
                                     4:         ...
                                     5:     System.out.println("Stored Procedures: " + meta.supportsStoredProcedures() );
                                     6:     System.out.println("Prozeduren sind:   " + meta.getProcedureTerm());
                                     7:   }
                                     8: }

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     protected DatabaseMetaData inner;
                                    10:     
                                    11:         ...
                                    12:     public String getProcedureTerm() throws SQLException
                                    13:     { return inner.getProcedureTerm(); }

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     final DatabaseMetaData inner;
                                    10: 
                                    11:         ...
                                    12:     {
                                    13:         return inner.getProcedureTerm();

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     final DatabaseMetaData inner;
                                    10: 
                                    11:         ...
                                    12:     {
                                    13:         return inner.getProcedureTerm();

                                  View Full Code Here
                                     1: import java.sql.Connection;
                                     2: import java.sql.DatabaseMetaData;
                                     3: import java.sql.ResultSet;
                                     4:         ...
                                     5: 
                                     6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                     7: {
                                     8:         ...
                                     9:     protected DatabaseMetaData inner;
                                    10:     
                                    11:         ...
                                    12:     public synchronized String getProcedureTerm() throws SQLException
                                    13:     { return inner.getProcedureTerm(); }

                                  View Full Code Here

                                  getProcedures

                                  public ResultSet getProcedures(String catalog,
                                                                 String schemaPattern,
                                                                 String procedureNamePattern)
                                              throws SQLException
                                  Retrieves a description of the stored procedures available in the given catalog.

                                  Only procedure descriptions matching the schema and procedure name criteria are returned. They are ordered by PROCEDURE_SCHEM and PROCEDURE_NAME.

                                  Each procedure description has the the following columns:

                                  1. PROCEDURE_CAT String => procedure catalog (may be null)
                                  2. PROCEDURE_SCHEM String => procedure schema (may be null)
                                  3. PROCEDURE_NAME String => procedure name
                                  4. reserved for future use
                                  5. reserved for future use
                                  6. reserved for future use
                                  7. REMARKS String => explanatory comment on the procedure
                                  8. PROCEDURE_TYPE short => kind of procedure:
                                    • procedureResultUnknown - May return a result
                                    • procedureNoResult - Does not return a result
                                    • procedureReturnsResult - Returns a result
                                    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
                                    procedureNamePattern - a procedure name pattern; must match the procedure name as it is stored in the database
                                    Returns:
                                    ResultSet - each row is a procedure description
                                    Throws:
                                    SQLException - if a database access error occurs
                                    Usages and Demos :

                                    View More Examples of getProcedures(String catalog,String schemaPattern,String procedureNamePattern)
                                       1: import java.sql.Connection;
                                       2: import java.sql.DatabaseMetaData;
                                       3: import java.sql.ResultSet;
                                       4:         ...
                                       5:         try { 
                                       6:             DatabaseMetaData meta = dl.getMetaData(conn);
                                       7: 
                                       8:         ...
                                       9: 
                                      10:             res = meta.getProcedures(pkgName, m_schema, procName);
                                      11:             if (!res.next()) {
                                      12:         ...
                                      13:         try {
                                      14:             DatabaseMetaData meta = dl.getMetaData(conn);

                                    View Full Code Here
                                       1: import java.sql.Connection;
                                       2: import java.sql.DatabaseMetaData;
                                       3: import java.sql.ResultSet;
                                       4:         ...
                                       5: 
                                       6: public abstract class FilterDatabaseMetaData implements DatabaseMetaData
                                       7: {
                                       8:         ...
                                       9:     protected DatabaseMetaData inner;
                                      10:     
                                      11:         ...
                                      12:     public ResultSet getProcedures(String a, String b, String c) throws SQLException
                                      13:     { return inner.getProcedures(a, b, c); }

                                    View Full Code Here
                                       1: import java.sql.Connection;
                                       2: import java.sql.DatabaseMetaData;
                                       3: import java.sql.ResultSet;
                                       4:         ...
                                       5: 
                                       6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                       7: {
                                       8:         ...
                                       9:     final DatabaseMetaData inner;
                                      10: 
                                      11:         ...
                                      12:     {
                                      13:         return inner.getProcedures(a, b, c);

                                    View Full Code Here
                                       1: import java.sql.Connection;
                                       2: import java.sql.DatabaseMetaData;
                                       3: import java.sql.ResultSet;
                                       4:         ...
                                       5: 
                                       6: abstract class C3P0DatabaseMetaData implements DatabaseMetaData
                                       7: {
                                       8:         ...
                                       9:     final DatabaseMetaData inner;
                                      10: 
                                      11:         ...
                                      12:     {
                                      13:         return inner.getProcedures(a, b, c);

                                    View Full Code Here
                                       1: import java.sql.Connection;
                                       2: import java.sql.DatabaseMetaData;
                                       3: import java.sql.ResultSet;
                                       4:         ...
                                       5: 
                                       6: public abstract class SynchronizedFilterDatabaseMetaData implements DatabaseMetaData
                                       7: {
                                       8:         ...
                                       9:     protected DatabaseMetaData inner;
                                      10:     
                                      11:         ...
                                      12:     public synchronized ResultSet getProcedures(String a, String b, String c) throws SQLException
                                      13:     { return inner.getProcedures(a, b, c); }

                                    View Full Code Here

                                    getResultSetHoldability

                                    public int getResultSetHoldability()
                                                throws SQLException
                                    Retrieves the default holdability of this ResultSet object.
                                    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
                                    Usages and Demos :

                                    View More Examples of getResultSetHoldability()
                                       1: import java.sql.Connection;
                                       2: import java.sql.DatabaseMetaData;
                                       3: import java.sql.ResultSet;
                                       4:         ...
                                       5:             conn = DerbyConnectionUtil.getSystemDBConnection();
                                       6:             DatabaseMetaData dbMD = (DatabaseMetaData) conn.getMetaData();
                                       7: 
                                       8:         ...
                                       9: 
                                      10:             switch (dbMD.getResultSetHoldability()) {
                                      11:             case ResultSet.HOLD_CURSORS_OVER_COMMIT:

                                    View Full Code Here
                                       1: import