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

com.dbobjekts.metadata.Selectable.kt Maven / Gradle / Ivy

There is a newer version: 0.6.0-RC2
Show newest version
package com.dbobjekts.metadata

import com.dbobjekts.api.AnyColumn

/**
 * FOR INTERNAL USE ONLY
 * Interface to denote the two types that can be passed to a select statement, i.e. Column and Table
 */
interface Selectable {
    /**
     * FOR INTERNAL USE ONLY
     * The columns that make up this selectable element. Either one in that case of a single column, or
     * all the columns in a table when the Selectable is a Table.
     */
    val columns: List

    /**
     * FOR INTERNAL USE ONLY
     * Converts a list of retrieved values to a type safe value
     */
    fun toValue(values: List): I
}