class AddUniqueConstraintGeneratorTDS extends AddUniqueConstraintGenerator {

    public AddUniqueConstraintGeneratorTDS() {

    }

    @Override
    public int getPriority() {
        return PRIORITY_DATABASE;
    }

    @Override
    public boolean supports(AddUniqueConstraintStatement statement, Database database) {
        return  (database instanceof SybaseDatabase)
            || (database instanceof SybaseASADatabase)
        ;
    }

    @Override
    public Sql[] generateSql(AddUniqueConstraintStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {<FILL_FUNCTION_BODY>}


}


        final String sqlTemplate = "ALTER TABLE %s ADD CONSTRAINT %s UNIQUE (%s)";
        final String sqlNoConstraintNameTemplate = "ALTER TABLE %s ADD UNIQUE (%s)";

        if (statement.getConstraintName() == null) {
            return new Sql[] {
                new UnparsedSql(String.format(sqlNoConstraintNameTemplate
                        , database.escapeTableName(statement.getCatalogName(), statement.getSchemaName(), statement.getTableName())
                        , database.escapeColumnNameList(statement.getColumnNames())
                ), getAffectedUniqueConstraint(statement))
            };
        } else {
            return new Sql[] {
                new UnparsedSql(String.format(sqlTemplate
                        , database.escapeTableName(statement.getCatalogName(), statement.getSchemaName(), statement.getTableName())
                        , database.escapeConstraintName(statement.getConstraintName())
                        , database.escapeColumnNameList(statement.getColumnNames())
                ), getAffectedUniqueConstraint(statement))
            };
        }
    
<methods>public non-sealed void <init>() ,public liquibase.sql.Sql[] generateSql(liquibase.statement.core.AddUniqueConstraintStatement, liquibase.database.Database, SqlGeneratorChain<liquibase.statement.core.AddUniqueConstraintStatement>) ,public boolean supports(liquibase.statement.core.AddUniqueConstraintStatement, liquibase.database.Database) ,public liquibase.exception.ValidationErrors validate(liquibase.statement.core.AddUniqueConstraintStatement, liquibase.database.Database, SqlGeneratorChain<liquibase.statement.core.AddUniqueConstraintStatement>) <variables>