-
- All Implemented Interfaces:
public class Sql.Select.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final Sql.SelectNULL_OBJECTpublic final static Sql.Select.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Sql.SelectfromContext(SqlParseContext context)final Sql.SelectgetNULL_OBJECT()Sometimes we need to have a non-null Selectreference, for example, in case of config like this:
If it hasdata class MyConfig( val enabled: Boolean, val sql1: Sql.Select, val sql2: Sql.Select )enabled=false, then the application doesn't use it.-
-
Method Detail
-
fromContext
final Sql.Select fromContext(SqlParseContext context)
-
getNULL_OBJECT
final Sql.Select getNULL_OBJECT()
Sometimes we need to have a non-null
Selectreference, for example, in case of config like this:data class MyConfig( val enabled: Boolean, val sql1: Sql.Select, val sql2: Sql.Select )If it has
enabled=false, then the application doesn't use it. However,sql1andsql2fields are non-null here, so, we need to have valid references there. This object can be used in such cases.
-
-
-
-