|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetaDataDialect
Interface for fetching metadata from databases. The dialect is configured with a ConnectionProvider but is not required to actually use any connections. The metadata methods all returns Iterator and allows for more efficient and partial reads for those databases that has "flakey" JDBC metadata implementions.
Method Summary | |
---|---|
void |
close()
Close any resources this dialect might have used. |
void |
close(Iterator iterator)
Close the iterator. |
void |
configure(ReverseEngineeringRuntimeInfo info)
Configure the metadatadialect. |
Iterator |
getColumns(String catalog,
String schema,
String table,
String column)
Return iterator over the columns that mathces catalog, schema and table |
Iterator |
getExportedKeys(String catalog,
String schema,
String table)
Return iterator over the exported foreign keys that mathces catalog, schema and table |
Iterator |
getIndexInfo(String catalog,
String schema,
String table)
Return iterator over the indexes that mathces catalog, schema and table |
Iterator |
getPrimaryKeys(String catalog,
String schema,
String name)
Return iterator over the columns that mathces catalog, schema and table |
Iterator |
getSuggestedPrimaryKeyStrategyName(String catalog,
String schema,
String table)
Use database (possible native) metadata to suggest identifier strategy. |
Iterator |
getTables(String catalog,
String schema,
String table)
Return iterator over the tables that mathces catalog, schema and table |
boolean |
needQuote(String name)
Does this name need quoting |
Method Detail |
---|
void configure(ReverseEngineeringRuntimeInfo info)
info
- a ReverseEngineeringRuntimeInfo
to extract Connection and SQLExceptionConverter and other runtime infoIterator getTables(String catalog, String schema, String table)
catalog
- name or nullschema
- name or nulltable
- name or null
void close(Iterator iterator)
iterator
- an iterator returned from one of methods on this dialectIterator getIndexInfo(String catalog, String schema, String table)
catalog
- name or nullschema
- name or nulltable
- name or null
Iterator getColumns(String catalog, String schema, String table, String column)
catalog
- name or nullschema
- name or nulltable
- name or nullcolumn
- name or null
Iterator getPrimaryKeys(String catalog, String schema, String name)
catalog
- name or nullschema
- name or nulltable
- name or null
Iterator getExportedKeys(String catalog, String schema, String table)
catalog
- name or nullschema
- name or nulltable
- name or null
boolean needQuote(String name)
name
-
void close()
Iterator getSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table)
catalog
- schema
- name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |