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

com.github.schlak.universalQB.Implementation.MSSQL.StatementBuilder.MSSQLDeleteBuilder.kt Maven / Gradle / Ivy

Go to download

The java lib universalQB can be used to access different databases using formalized objects. These objects got converted into a query matching to the syntactical rules of the database management system

There is a newer version: 0.6.4
Show newest version
package com.github.schlak.universalQB.Implementation.MSSQL.StatementBuilder

import com.github.schlak.universalQB.Definition.StatementBoxes.BasicDeleteBox
import com.github.schlak.universalQB.Definition.Statements.BasicDeleteBuilder
import com.github.schlak.universalQB.Implementation.MSSQL.GeneralObjects.MSSQLConditionStack
import com.github.schlak.universalQB.Implementation.MSSQL.StatementBoxes.MSSQLDeleteBox
import com.github.schlak.universalQB.ObjectRecycler

/**
 * Created by Jonas Schlak on 22.03.2017.
 */
class MSSQLDeleteBuilder : BasicDeleteBuilder(){
    override fun getStatementBox(): BasicDeleteBox {

        var box: MSSQLDeleteBox = ObjectRecycler.getInstance(MSSQLDeleteBox::class.java)
        box.init(table, whereConditionStack)

        return box
    }

    override fun clean() {
        super.clean()

        this.whereConditionStack = ObjectRecycler.getInstance(MSSQLConditionStack::class.java)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy