All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.sqlhelper.dialect.internal.AzureDialect Maven / Gradle / Ivy

package com.jn.sqlhelper.dialect.internal;

import com.jn.sqlhelper.dialect.SqlCompatibilityType;
import com.jn.sqlhelper.dialect.likeescaper.BackslashStyleEscaper;
import com.jn.sqlhelper.dialect.internal.limit.OffsetFetchFirstOnlyLimitHandler;

/**
 * Microsoft Azure Cloud Database
 */
public class AzureDialect extends AbstractDialect {
    public AzureDialect() {
        super();
        setLimitHandler(new OffsetFetchFirstOnlyLimitHandler());
        setLikeEscaper(BackslashStyleEscaper.INSTANCE);
        setSqlCompatibilityTypes(SqlCompatibilityType.SQLSERVER);
    }

    @Override
    public boolean isSupportsLimitOffset() {
        return true;
    }

    @Override
    public boolean isSupportsLimit() {
        return true;
    }


    @Override
    public SqlCompatibilityType getDefaultSqlCompatibilityType() {
        return SqlCompatibilityType.SQLSERVER;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy