|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drizzle.jdbc.CommonDatabaseMetaData
org.drizzle.jdbc.MySQLDatabaseMetaData
public final class MySQLDatabaseMetaData
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.drizzle.jdbc.CommonDatabaseMetaData |
|---|
CommonDatabaseMetaData.Builder |
| Field Summary |
|---|
| Fields inherited from class org.drizzle.jdbc.CommonDatabaseMetaData |
|---|
dataTypeClause |
| Fields inherited from interface java.sql.DatabaseMetaData |
|---|
attributeNoNulls, attributeNullable, attributeNullableUnknown, bestRowNotPseudo, bestRowPseudo, bestRowSession, bestRowTemporary, bestRowTransaction, bestRowUnknown, columnNoNulls, columnNullable, columnNullableUnknown, functionColumnIn, functionColumnInOut, functionColumnOut, functionColumnResult, functionColumnUnknown, functionNoNulls, functionNoTable, functionNullable, functionNullableUnknown, functionResultUnknown, functionReturn, functionReturnsTable, importedKeyCascade, importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, importedKeyNoAction, importedKeyNotDeferrable, importedKeyRestrict, importedKeySetDefault, importedKeySetNull, procedureColumnIn, procedureColumnInOut, procedureColumnOut, procedureColumnResult, procedureColumnReturn, procedureColumnUnknown, procedureNoNulls, procedureNoResult, procedureNullable, procedureNullableUnknown, procedureResultUnknown, procedureReturnsResult, sqlStateSQL, sqlStateSQL99, sqlStateXOpen, tableIndexClustered, tableIndexHashed, tableIndexOther, tableIndexStatistic, typeNoNulls, typeNullable, typeNullableUnknown, typePredBasic, typePredChar, typePredNone, typeSearchable, versionColumnNotPseudo, versionColumnPseudo, versionColumnUnknown |
| Constructor Summary | |
|---|---|
MySQLDatabaseMetaData(CommonDatabaseMetaData.Builder builder)
|
|
| Method Summary | |
|---|---|
java.sql.ResultSet |
getBestRowIdentifier(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
int scope,
boolean nullable)
|
java.sql.ResultSet |
getColumns(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String columnNamePattern)
Retrieves a description of table columns available in the specified catalog. |
java.sql.ResultSet |
getExportedKeys(java.lang.String catalog,
java.lang.String schema,
java.lang.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). |
java.sql.ResultSet |
getImportedKeys(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table). |
java.sql.ResultSet |
getPrimaryKeys(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
Retrieves a description of the given table's primary key columns. |
java.sql.ResultSet |
getTables(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String[] types)
Retrieves a description of the tables available in the given catalog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySQLDatabaseMetaData(CommonDatabaseMetaData.Builder builder)
| Method Detail |
|---|
public java.sql.ResultSet getPrimaryKeys(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
throws java.sql.SQLException
CommonDatabaseMetaDataEach primary key column description has the following columns:
null) null)
null)
getPrimaryKeys in interface java.sql.DatabaseMetaDatagetPrimaryKeys in class CommonDatabaseMetaDatacatalog - 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
searchschema - 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
searchtable - a table name; must match the table name as it is stored in the database
ResultSet - each row is a primary key column description
java.sql.SQLException - if a database access error occurs
public java.sql.ResultSet getTables(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String[] types)
throws java.sql.SQLException
CommonDatabaseMetaDataTABLE_TYPE,
TABLE_CAT, TABLE_SCHEM and TABLE_NAME.
Each table description has the following columns: null) null) null)
null) null) null) null) Note: Some databases may not return information for all tables.
getTables in interface java.sql.DatabaseMetaDatagetTables in class CommonDatabaseMetaDatacatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves
those without a catalog; null means that the catalog name should not be used
to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; ""
retrieves those without a schema; null means that the schema name should not
be used to narrow the searchtableNamePattern - a table name pattern; must match the table name as it is stored in the databasetypes - a list of table types, which must be from the list of table types returned from CommonDatabaseMetaData.getTableTypes(),to include; null returns all types
ResultSet - each row is a table description
java.sql.SQLException - if a database access error occursCommonDatabaseMetaData.getSearchStringEscape()
public java.sql.ResultSet getColumns(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String columnNamePattern)
throws java.sql.SQLException
CommonDatabaseMetaDataOnly column descriptions matching the catalog, schema, table and column name criteria are returned. They are
ordered by TABLE_CAT,TABLE_SCHEM, TABLE_NAME, and
ORDINAL_POSITION.
Each column description has the following columns:
null) null) NULL values NULL values null) null) null if DATA_TYPE isn't REF) null if the DATA_TYPE isn't
REF) null
if the DATA_TYPE isn't REF) null if DATA_TYPE isn't DISTINCT or user-generated REF)
The COLUMN_SIZE column the specified column size for the given column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
getColumns in interface java.sql.DatabaseMetaDatagetColumns in class CommonDatabaseMetaDatacatalog - a catalog name; must match the catalog name as it is stored in the database; ""
retrieves those without a catalog; null means that the catalog name should
not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; ""
retrieves those without a schema; null means that the schema name should
not be used to narrow the searchtableNamePattern - a table name pattern; must match the table name as it is stored in the databasecolumnNamePattern - a column name pattern; must match the column name as it is stored in the database
ResultSet - each row is a column description
java.sql.SQLException - if a database access error occursCommonDatabaseMetaData.getSearchStringEscape()
public java.sql.ResultSet getExportedKeys(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
throws java.sql.SQLException
CommonDatabaseMetaDataEach foreign key column description has the following columns:
null) null) null)
being exported (may be null) null) being exported (may be null) NULL if its primary key has been updated NULL if its primary key has been deleted null) null)
getExportedKeys in interface java.sql.DatabaseMetaDatagetExportedKeys in class CommonDatabaseMetaDatacatalog - 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
searchschema - 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
searchtable - a table name; must match the table name as it is stored in this database
ResultSet object in which each row is a foreign key column description
java.sql.SQLException - if a database access error occursCommonDatabaseMetaData.getImportedKeys(java.lang.String, java.lang.String, java.lang.String)
public java.sql.ResultSet getImportedKeys(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
throws java.sql.SQLException
CommonDatabaseMetaDataEach primary key column description has the following columns:
null) null) null) null) NULL if its primary key has been updated null) null)
getImportedKeys in interface java.sql.DatabaseMetaDatagetImportedKeys in class CommonDatabaseMetaDatacatalog - 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
searchschema - 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
searchtable - a table name; must match the table name as it is stored in the database
ResultSet - each row is a primary key column description
java.sql.SQLException - if a database access error occursCommonDatabaseMetaData.getExportedKeys(java.lang.String, java.lang.String, java.lang.String)
public java.sql.ResultSet getBestRowIdentifier(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
int scope,
boolean nullable)
throws java.sql.SQLException
getBestRowIdentifier in interface java.sql.DatabaseMetaDatagetBestRowIdentifier in class CommonDatabaseMetaDatajava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||