Module io.github.mmm.orm
Package io.github.mmm.orm.dialect
Class AbstractDbDialect<SELF extends AbstractDbDialect<SELF>>
java.lang.Object
io.github.mmm.orm.dialect.AbstractDbDialect<SELF>
- Type Parameters:
SELF- this type itself for fluent API calls.
- All Implemented Interfaces:
DbDialect
public abstract class AbstractDbDialect<SELF extends AbstractDbDialect<SELF>>
extends Object
implements DbDialect
Abstract base implementation of
DbDialect.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDbDialect(TypeMapping typeMapping) The constructor.protectedAbstractDbDialect(Orm orm) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoConfigure(Map<String, String> config, DbSource source) protected Stringprotected DbNamingStrategygetOrm()toString()withNamingStrategy(DbNamingStrategy namingStrategy) protected abstract SELFMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.orm.dialect.DbDialect
getId, getType, quoteIdentifier
-
Constructor Details
-
AbstractDbDialect
The constructor.- Parameters:
orm- theOrm.
-
AbstractDbDialect
The constructor.- Parameters:
typeMapping- theTypeMapping.
-
-
Method Details
-
getDefaultNamingStrategy
- Returns:
- the default
DbNamingStrategy.
-
getNamingStrategy
- Specified by:
getNamingStrategyin interfaceDbDialect- Returns:
- the
DbNamingStrategy.
-
getOrm
- Returns:
- the
Orm.
-
withNamingStrategy
- Parameters:
namingStrategy- the newDbNamingStrategyto use.- Returns:
- this dialect for the given
DbNamingStrategy.
-
withOrm
-
createFormatter
- Specified by:
createFormatterin interfaceDbDialect- Returns:
- a new
BasicDbStatementFormatterusing this SQL dialect.
-
autoConfigure
-
autoConfigureUrl
- Parameters:
config- theMapwith the configuration parameters for theDbSource.source- theDbSource.kind- thekind of database connection.- Returns:
- the auto-configured database connection URL or
nullif there is no meaningful default.
-
toString
-