remove RequesterFactory

This commit is contained in:
2021-07-14 22:40:34 +02:00
parent 4ad69238c7
commit 486b038ad2
8 changed files with 71 additions and 44 deletions

View File

@@ -1,5 +1,7 @@
package fr.postgresjson.definition
import java.util.Locale
interface ParameterI {
val name: String
val type: String
@@ -21,7 +23,7 @@ class Parameter(val name: String, val type: String, direction: Direction? = Dire
constructor(name: String, type: String, direction: String? = "IN", default: Any? = null) : this(
name = name,
type = type,
direction = direction?.let { Direction.valueOf(direction.toUpperCase()) },
direction = direction?.let { Direction.valueOf(direction.uppercase(Locale.getDefault())) },
default = default
)