Package io.higson.runtime.sql.dialect
Class DefaultDialect
java.lang.Object
io.higson.runtime.sql.dialect.DefaultDialect
- All Implemented Interfaces:
RuntimeDialect
- Direct Known Subclasses:
H2RuntimeDialect,HsqlRuntimeDialect,MsSQLRuntimeDialect,MySQLRuntimeDialect,OracleRuntimeDialect,PostgresqlRuntimeDialect
- Author:
- przemek hertel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconcatenateSchema(String schema, String str) This supports hint provider for certain dialects, but not all dialects require that.protected StringnormalizeIdentifier(String identifier) selectFromSequence(String sequence) withColumnAliases(String... elements) withTableAliases(String... elements) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.higson.runtime.sql.RuntimeDialect
hibernateDialect, jdbcDriverClassName, selectFromSequence, validationQuery
-
Field Details
-
tableAliases
-
-
Constructor Details
-
DefaultDialect
public DefaultDialect()
-
-
Method Details
-
withColumnAliases
-
withTableAliases
-
withHint
-
column
- Specified by:
columnin interfaceRuntimeDialect
-
table
- Specified by:
tablein interfaceRuntimeDialect
-
selectFromSequence
- Specified by:
selectFromSequencein interfaceRuntimeDialect
-
hint
Description copied from interface:RuntimeDialectThis supports hint provider for certain dialects, but not all dialects require that. If dialect doesn't support the token hint, it will return EMPTY string.- Specified by:
hintin interfaceRuntimeDialect- Parameters:
token- for exact hint- Returns:
- empty string if token is not supported in dialect, otherwise return proper hint value.
-
normalizeIdentifier
-
map
-
getColumnAliases
-
getTableAliases
-
concatenateSchema
-