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

dsl.TableSchema.kt Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
package dsl

/**
 * 实体类伴生对象父类
 * @property tableName String 表名
 */
open class TableSchema(table: String) {
    val tableName = table

    /**
     * 伴生对象中设置字段的名称
     * @param name String 字段名
     * @return QueryTableColumn 查询dsl使用的字段表达式
     */
    fun column(name: String): QueryTableColumn {
        return QueryTableColumn(this.tableName, name)
    }

    /**
     * 生成通配符表名.*
     * @return QueryAllColumn 查询dsl使用的通配符表达式
     */
    fun allColumn(): QueryAllColumn {
        return QueryAllColumn(tableName)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy