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

io.edurt.datacap.common.sql.builder.AlterBuilder Maven / Gradle / Ivy

There is a newer version: 2024.4.0
Show newest version
package io.edurt.datacap.common.sql.builder;

public class AlterBuilder
{
    private static final ThreadLocal localSQL = new ThreadLocal<>();

    static {
        BEGIN();
    }

    private AlterBuilder()
    {
    }

    public static void BEGIN()
    {
        RESET();
    }

    public static void RESET()
    {
        localSQL.set(new BaseBuilder());
    }

    public static void ALTER_TABLE(String table)
    {
        sql().ALTER_TABLE(table);
    }

    public static void AUTO_INCREMENT(String value)
    {
        sql().AUTO_INCREMENT(value);
    }

    public static String SQL()
    {
        try {
            return sql().toString();
        }
        finally {
            RESET();
        }
    }

    private static BaseBuilder sql()
    {
        return localSQL.get();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy