Class AbstractMetaDataDialect
java.lang.Object
org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
- All Implemented Interfaces:
RevengDialect
- Direct Known Subclasses:
JDBCMetaDataDialect,OracleMetaDataDialect
abstract base class for the metadatadialects to hold the
basic setup classes.
- Author:
- max
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcaseForSearch(String value) voidclose()Close any resources this dialect might have used.voidClose the iterator.voidconfigure(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider) Configure the metadatadialect.protected Connectionprotected StringgetDatabaseStructure(String catalog, String schema) protected DatabaseMetaDatagetSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table) Use database (possible native) metadata to suggest identifier strategy.booleanDoes this name need quotingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.tool.api.reveng.RevengDialect
getColumns, getExportedKeys, getIndexInfo, getPrimaryKeys, getTables
-
Field Details
-
log
protected final org.jboss.logging.Logger log
-
-
Constructor Details
-
AbstractMetaDataDialect
public AbstractMetaDataDialect()
-
-
Method Details
-
configure
public void configure(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider) Description copied from interface:RevengDialectConfigure the metadatadialect.- Specified by:
configurein interfaceRevengDialect- Parameters:
connectionProvider- aConnectionProvider
-
close
public void close()Description copied from interface:RevengDialectClose any resources this dialect might have used.- Specified by:
closein interfaceRevengDialect
-
getMetaData
-
getDatabaseStructure
-
getConnection
- Throws:
SQLException
-
close
Description copied from interface:RevengDialectClose the iterator.- Specified by:
closein interfaceRevengDialect- Parameters:
iterator- an iterator returned from one of methods on this dialect
-
needQuote
Description copied from interface:RevengDialectDoes this name need quoting- Specified by:
needQuotein interfaceRevengDialect- Parameters:
name-- Returns:
-
caseForSearch
- Throws:
SQLException
-
getSuggestedPrimaryKeyStrategyName
public Iterator<Map<String,Object>> getSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table) Description copied from interface:RevengDialectUse database (possible native) metadata to suggest identifier strategy.- Specified by:
getSuggestedPrimaryKeyStrategyNamein interfaceRevengDialect- Parameters:
catalog-schema-- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "HIBERNATE_STRATEGY" (null if no possible to determine strategy, otherwise return hibernate identifier strategy name/classname)
-