TableOperationsTGetInterpretedFieldValue Method

Gets the interpreted value for the specified field, encrypting or returning any intermediate IDbDataParameter value as needed.

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.128 -- Release Build+cb657b646daac3e9cc5384ff42ed4530df50eab1
public Object? GetInterpretedFieldValue(
	string fieldName,
	Object? value
)

Parameters

fieldName  String
Field name to retrieve.
value  Object
Field value to use.

Return Value

Object
Interpreted value for the specified field, encrypting or returning any intermediate IDbDataParameter value as needed.

Implements

ITableOperationsGetInterpretedFieldValue(String, Object)

Remarks

This function will need to be used when calling overloads that take a RecordRestriction or composite format filter expression where the EncryptDataAttribute or FieldDataTypeAttribute have been modeled on a field referenced by one of the RecordRestriction parameters. Since the record restrictions are used with a free-form expression, the TableOperationsT class cannot be aware of the fields accessed in the expression without attempting to parse the expression which would be time-consuming and error-prone; as a result, users will need to be aware to call this function when using record restriction that references fields that are either marked for encryption or use a specific field data-type attribute.

If a RecordRestriction parameter references a field that is modeled with an EncryptDataAttribute, this function will need to be called, replacing the restriction parameter with the returned value, so that the field data value will be properly encrypted prior to executing the database function.

If a RecordRestriction parameter references a field that is modeled with a FieldDataTypeAttribute, this function will need to be called, replacing the restriction parameter with the returned value, so that the field data type will be properly set prior to executing the database function.

See Also