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

com.github.schlak.universalQB.Implementation.MSSQL.StatementBuilder.MSSQLCreateBuilder.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.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
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy