Class KobbyKotlinEntityExtension
-
- All Implemented Interfaces:
public class KobbyKotlinEntityExtensionConfiguration of DSL Entities interfaces generation
-
-
Field Summary
Fields Modifier and Type Field Description private Booleanenabledprivate StringpackageNameprivate Stringprefixprivate Stringpostfixprivate BooleancontextFunEnabledprivate StringcontextFunNameprivate StringwithCurrentProjectionFun
-
Constructor Summary
Constructors Constructor Description KobbyKotlinEntityExtension()
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()Is entities interfaces generation enabledDefault: true final UnitsetEnabled(Boolean enabled)Is entities interfaces generation enabledDefault: true final StringgetPackageName()Package name for entities interfaces relative to root package nameDefault: "entity" final UnitsetPackageName(String packageName)Package name for entities interfaces relative to root package nameDefault: "entity" final StringgetPrefix()Prefix for entities interfaces final UnitsetPrefix(String prefix)Prefix for entities interfaces final StringgetPostfix()Postfix for entities interfaces final UnitsetPostfix(String postfix)Postfix for entities interfaces final BooleangetContextFunEnabled()Generate context access function in entity interface. final UnitsetContextFunEnabled(Boolean contextFunEnabled)Generate context access function in entity interface. final StringgetContextFunName()Context access function name in entity interface. final UnitsetContextFunName(String contextFunName)Context access function name in entity interface. final StringgetWithCurrentProjectionFun()Name of "withCurrentProjection" function in entity interfaceDefault: "__withCurrentProjection" final UnitsetWithCurrentProjectionFun(String withCurrentProjectionFun)Name of "withCurrentProjection" function in entity interfaceDefault: "__withCurrentProjection" final Unitprojection(Action<KobbyKotlinEntityProjectionExtension> action)Configuration of DSL Entity Projection interfaces generation final Unitselection(Action<KobbyKotlinEntitySelectionExtension> action)Configuration of DSL Entity Selection interfaces generation -
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Is entities interfaces generation enabled
Default: true
-
setEnabled
final Unit setEnabled(Boolean enabled)
Is entities interfaces generation enabled
Default: true
-
getPackageName
final String getPackageName()
Package name for entities interfaces relative to root package name
Default: "entity"
-
setPackageName
final Unit setPackageName(String packageName)
Package name for entities interfaces relative to root package name
Default: "entity"
-
getPostfix
final String getPostfix()
Postfix for entities interfaces
-
setPostfix
final Unit setPostfix(String postfix)
Postfix for entities interfaces
-
getContextFunEnabled
final Boolean getContextFunEnabled()
Generate context access function in entity interface. More details More details More details
Default: true
-
setContextFunEnabled
final Unit setContextFunEnabled(Boolean contextFunEnabled)
Generate context access function in entity interface. More details More details More details
Default: true
-
getContextFunName
final String getContextFunName()
Context access function name in entity interface. More details
Default: "__context"
-
setContextFunName
final Unit setContextFunName(String contextFunName)
Context access function name in entity interface. More details
Default: "__context"
-
getWithCurrentProjectionFun
final String getWithCurrentProjectionFun()
Name of "withCurrentProjection" function in entity interface
Default: "__withCurrentProjection"
-
setWithCurrentProjectionFun
final Unit setWithCurrentProjectionFun(String withCurrentProjectionFun)
Name of "withCurrentProjection" function in entity interface
Default: "__withCurrentProjection"
-
projection
final Unit projection(Action<KobbyKotlinEntityProjectionExtension> action)
Configuration of DSL Entity Projection interfaces generation
-
selection
final Unit selection(Action<KobbyKotlinEntitySelectionExtension> action)
Configuration of DSL Entity Selection interfaces generation
-
-
-
-