api-docs / org.ktorm.schema / EnumSqlType
EnumSqlType
class EnumSqlType<C : Enum<C>> : SqlType<C>
(source code)SqlType implementation that saves enums as strings.
Constructors
Name | Summary |
---|---|
SqlType implementation that saves enums as strings. |
Properties
Name | Summary |
---|---|
the enum class. |
Inherited Properties
Name | Summary |
---|---|
val typeCode: Int a constant value defined in java.sql.Types to identify JDBC types. | |
val typeName: String the name of the type in specific databases, such as |
Functions
Name | Summary |
---|---|
Obtain a result from a given ResultSet by index, the result may be null. | |
fun doSetParameter( Set the parameter to a given PreparedStatement, the parameter can’t be null. | |
fun setParameter( Set the nullable parameter to a given PreparedStatement. |
Inherited Functions
Name | Summary |
---|---|
Indicates whether some other object is “equal to” this SQL type. | |
Obtain a result from a given ResultSet by index. Obtain a result from a given ResultSet by columnLabel. | |
open fun hashCode(): Int Return a hash code value for this SQL type. | |
open fun <R : Any> transform( Transform this SqlType to another. The returned SqlType has the same typeCode and typeName as the |
Extension Functions
Name | Summary |
---|---|
infix fun <T : Any> T.eq( Equal operator, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to |