Package highfive.dialects
Class SQLServerDialect
- java.lang.Object
-
- highfive.model.Dialect
-
- highfive.dialects.SQLServerDialect
-
public class SQLServerDialect extends Dialect
-
-
Constructor Summary
Constructors Constructor Description SQLServerDialect(DataSource ds, Connection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringescapeIdentifierAsNeeded(String canonicalName)BooleangetDefaultAutoCommit()protected Serializer<?>getDefaultSerializer(Identifier table, String name, String type, boolean unsigned, BigInteger maxLength, Integer precision, Integer scale)StringgetName()TablegetTableMetaData(Identifier tn)List<Identifier>listTablesNames()StringrenderHeadLimit(Long limit)StringrenderNullsOrdering(boolean nullsFirst)StringrenderSQLTableIdentifier(Identifier table)StringrenderTailLimit(Long limit)-
Methods inherited from class highfive.model.Dialect
getSerializer
-
-
-
-
Constructor Detail
-
SQLServerDialect
public SQLServerDialect(DataSource ds, Connection conn)
-
-
Method Detail
-
listTablesNames
public List<Identifier> listTablesNames() throws SQLException, InvalidSchemaException
- Specified by:
listTablesNamesin classDialect- Throws:
SQLExceptionInvalidSchemaException
-
getTableMetaData
public Table getTableMetaData(Identifier tn) throws SQLException, UnsupportedDatabaseTypeException
- Specified by:
getTableMetaDatain classDialect- Throws:
SQLExceptionUnsupportedDatabaseTypeException
-
getDefaultSerializer
protected Serializer<?> getDefaultSerializer(Identifier table, String name, String type, boolean unsigned, BigInteger maxLength, Integer precision, Integer scale) throws UnsupportedDatabaseTypeException
- Specified by:
getDefaultSerializerin classDialect- Throws:
UnsupportedDatabaseTypeException
-
escapeIdentifierAsNeeded
public String escapeIdentifierAsNeeded(String canonicalName)
- Specified by:
escapeIdentifierAsNeededin classDialect
-
renderSQLTableIdentifier
public String renderSQLTableIdentifier(Identifier table)
- Specified by:
renderSQLTableIdentifierin classDialect
-
renderHeadLimit
public String renderHeadLimit(Long limit)
- Specified by:
renderHeadLimitin classDialect
-
renderTailLimit
public String renderTailLimit(Long limit)
- Specified by:
renderTailLimitin classDialect
-
getDefaultAutoCommit
public Boolean getDefaultAutoCommit()
- Specified by:
getDefaultAutoCommitin classDialect
-
renderNullsOrdering
public String renderNullsOrdering(boolean nullsFirst) throws UnsupportedSQLFeatureException
- Specified by:
renderNullsOrderingin classDialect- Throws:
UnsupportedSQLFeatureException
-
-