Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

PhoenixNestedParamsAdapter

object PhoenixNestedParamsAdapter

Creates default or explicitly configured Phoenix compatibility adapters.

Defined by scalive.PhoenixNestedParamsAdapter. View source (scalive/api/src/scalive/forms/PhoenixNestedParamsAdapter.scala:365-431)

Methods2

apply

def apply[Owner, Domain, Group, Row](definition: FormDefinition[Owner, Domain], rows: RepeatedRows[Owner, Group, Row], maxNewRows: Int = ...): PhoenixNestedParamsAdapter[Owner, definition.type, Domain, Group, Row]

Creates an adapter with deterministic compatibility keys and empty new rows.

Use configured when new rows require initial values or application-defined stable keys.

Defined by scalive.PhoenixNestedParamsAdapter.apply. View source (scalive/api/src/scalive/forms/PhoenixNestedParamsAdapter.scala:375-384)

configured

def configured[Owner, Domain, Group, Row](definition: FormDefinition[Owner, Domain], rows: RepeatedRows[Owner, Group, Row], maxNewRows: Int = ...)(allocateNew: (Int, Set[String]) => Either[FieldIssue, FormRowKey[Group]])(blankRow: FormRowKey[Group] => FormRowInitial[Group]): PhoenixNestedParamsAdapter[Owner, definition.type, Domain, Group, Row]

Creates an adapter with explicit deterministic key allocation and typed blank-row policy.

allocateNew receives each "new" ordinal and all unavailable keys. blankRow must build a row for this adapter's repeated-group schema. Translation and definition limits still apply.

Defined by scalive.PhoenixNestedParamsAdapter.configured. View source (scalive/api/src/scalive/forms/PhoenixNestedParamsAdapter.scala:391-407)