setDefaultValues

See setDefaultValues(Boolean, Boolean, Boolean, Boolean, Boolean).


fun setDefaultValues(nestedComplex: Boolean)

See setDefaultValues(Boolean, Boolean, Boolean, Boolean, Boolean).

Parameters

nestedComplex

NestedComplex parameter.


fun setDefaultValues(nestedComplex: Boolean, nestedEntity: Boolean)

See setDefaultValues(Boolean, Boolean, Boolean, Boolean, Boolean).

Parameters

nestedComplex

NestedComplex parameter.

nestedEntity

NestedEntity parameter.


fun setDefaultValues(nestedComplex: Boolean, nestedEntity: Boolean, defaultOptional: Boolean)

See setDefaultValues(Boolean, Boolean, Boolean, Boolean, Boolean).

Parameters

nestedComplex

NestedComplex parameter.

nestedEntity

NestedEntity parameter.

defaultOptional

DefaultOptional parameter.


fun setDefaultValues(nestedComplex: Boolean, nestedEntity: Boolean, defaultOptional: Boolean, defaultRequired: Boolean)

See setDefaultValues(Boolean, Boolean, Boolean, Boolean, Boolean).

Parameters

nestedComplex

NestedComplex parameter.

nestedEntity

NestedEntity parameter.

defaultOptional

DefaultOptional parameter.

defaultRequired

DefaultRequired parameter.


fun setDefaultValues(nestedComplex: Boolean, nestedEntity: Boolean, defaultOptional: Boolean, defaultRequired: Boolean, skipConstraints: Boolean)

Recursively apply default values to any unset properties of this structure. If a property has a model-defined default value, it will always be applied (since that default value is part of a server's contract with the client, it must always be valid to apply it). If the property doesn't have a model-defined default value, then null will be used for nullable properties, and false/empty/zero values will be applied otherwise as appropriate. Dates will default to 2000-01-01.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.StructureBase#hasDataValue(com.sap.cloud.mobile.kotlin.odata.Property) StructureBase.hasDataValue}, {@link com.sap.cloud.mobile.kotlin.odata.Property#defaultValue Property.defaultValue}, {@link com.sap.cloud.mobile.kotlin.odata.StructureType#structuralProperties StructureType.structuralProperties}, {@link com.sap.cloud.mobile.kotlin.odata.StructureType#navigationProperties StructureType.navigationProperties}.

Parameters

nestedComplex

Apply recursively to complex-typed (structural) properties of this structure? Defaults to true.

nestedEntity

Apply recursively to entity-typed (navigation) properties of this structure? Defaults to false.

defaultOptional

Apply non-model-defined default values to optional (nullable) properties? Defaults to true.

defaultRequired

Apply non-model-defined default values to required (non-nullable) properties? Defaults to true.

skipConstraints

Avoid applying default values to properties which have a database-level default constraint. Defaults to false.