klyn.data.SchemaOperation.SchemaOperation
constructor
public SchemaOperation(
kind as SchemaOperationKind,
entityType as Type,
description as String,
command as String,
destructive as Boolean = false,
executable as Boolean = true
):
Description

Creates one immutable schema operation.

Parameters
ParameterDescription
kindCanonical operation kind.
entityTypeAffected mapped entity type.
descriptionHuman-readable description.
commandProvider command; empty only for unsupported operations.
destructiveWhether the operation may remove data or structures.
executableWhether the provider can apply the operation.
Throws
  • ValueException when required metadata is missing.
Example
operation = SchemaOperation(
SchemaOperationKind.CREATE_TABLE,
User.type,
"Create table T_Users",
"CREATE TABLE T_Users (...)"
)