com.github.schlak.universalQB.Implementation.MSSQL.StatementBuilder.MSSQLDeleteBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of universalQB Show documentation
Show all versions of universalQB Show documentation
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
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)
}
}