Package highfive.model
Class Dialect
- java.lang.Object
-
- highfive.model.Dialect
-
- Direct Known Subclasses:
DB2Dialect,DialectNormalizer,MariaDBDialect,MySQLDialect,OracleDialect,PostgreSQLDialect,SQLServerDialect
public abstract class Dialect extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Connectionconnprotected DataSourceds
-
Constructor Summary
Constructors Constructor Description Dialect(DataSource ds, Connection conn)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringescapeIdentifierAsNeeded(String canonicalName)abstract BooleangetDefaultAutoCommit()protected abstract Serializer<?>getDefaultSerializer(Identifier table, String name, String type, boolean unsigned, BigInteger maxLength, Integer precision, Integer scale)abstract StringgetName()protected Serializer<?>getSerializer(String renderedType, Identifier table, String name, String type, boolean unsigned, BigInteger maxLength, Integer precision, Integer scale)abstract TablegetTableMetaData(Identifier table)abstract List<Identifier>listTablesNames()abstract StringrenderHeadLimit(Long limit)abstract StringrenderNullsOrdering(boolean nullsFirst)abstract StringrenderSQLTableIdentifier(Identifier table)abstract StringrenderTailLimit(Long limit)
-
-
-
Field Detail
-
ds
protected DataSource ds
-
conn
protected Connection conn
-
-
Constructor Detail
-
Dialect
public Dialect(DataSource ds, Connection conn)
-
-
Method Detail
-
getSerializer
protected Serializer<?> getSerializer(String renderedType, Identifier table, String name, String type, boolean unsigned, BigInteger maxLength, Integer precision, Integer scale) throws UnsupportedDatabaseTypeException
- Throws:
UnsupportedDatabaseTypeException
-
getName
public abstract String getName()
-
listTablesNames
public abstract List<Identifier> listTablesNames() throws SQLException, InvalidSchemaException
- Throws:
SQLExceptionInvalidSchemaException
-
getTableMetaData
public abstract Table getTableMetaData(Identifier table) throws SQLException, UnsupportedDatabaseTypeException
-
getDefaultSerializer
protected abstract Serializer<?> getDefaultSerializer(Identifier table, String name, String type, boolean unsigned, BigInteger maxLength, Integer precision, Integer scale) throws UnsupportedDatabaseTypeException
- Throws:
UnsupportedDatabaseTypeException
-
renderSQLTableIdentifier
public abstract String renderSQLTableIdentifier(Identifier table)
-
getDefaultAutoCommit
public abstract Boolean getDefaultAutoCommit()
-
renderNullsOrdering
public abstract String renderNullsOrdering(boolean nullsFirst) throws UnsupportedSQLFeatureException
- Throws:
UnsupportedSQLFeatureException
-
-