Class QVirtualFieldMetaData

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldMetaData
com.kingsrook.qqq.backend.core.model.metadata.fields.QVirtualFieldMetaData
All Implemented Interfaces:
QMetaDataObject, Serializable, Cloneable

public class QVirtualFieldMetaData extends QFieldMetaData implements Cloneable
Subclass of QFieldMetaData that is used for virtual fields - that is - fields which don't exist in the backend system, but may instead be the result of calculations or other non-stored data.

Optionally carries a FieldFunction that specifies a transformation applied to a source field's value (e.g., extracting the weekday from a date).

The isQueryCriteria and isQuerySelectable flags control whether the virtual field may be used as a filter criterion and if it is included in query output, respectively.

For a field to be isQueryCriteria, it MUST use a fieldFunction. However, to be isQuerySelectable, it MAY either use a fieldFunction, or alternatively, its table can have a TableCustomizers.POST_QUERY_RECORD.

See Also: