com.github.schlak.universalQB.Implementation.MSSQL.StatementBuilder.MSSQLCreateBuilder.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.GeneralObjects.ColumnDefinition
import com.github.schlak.universalQB.Definition.StatementBoxes.BasicCreateBox
import com.github.schlak.universalQB.Definition.Statements.BasicCreateBuilder
import com.github.schlak.universalQB.Implementation.MSSQL.GeneralObjects.MSSQLColumnDefinition
import com.github.schlak.universalQB.Implementation.MySQL.StatmentBoxes.MysqlCreateBox
import com.github.schlak.universalQB.ObjectRecycler
/**
* Created by Jonas Schlak on 21.03.2017.
*/
class MSSQLCreateBuilder : BasicCreateBuilder(){
override fun getNewColumnDefinition(): ColumnDefinition {
return MSSQLColumnDefinition()
}
override fun getStatementBox(): BasicCreateBox {
val box = ObjectRecycler.getInstance(MysqlCreateBox::class.java)
box.init(columnDefinitionList, tableName)
return box
}
}