Package com.axelor.db.json
Record Class JsonReferenceFieldDTO
java.lang.Object
java.lang.Record
com.axelor.db.json.JsonReferenceFieldDTO
- All Implemented Interfaces:
Serializable
public record JsonReferenceFieldDTO(String name, String title, String type, String model, String modelField, Integer sequence, Integer columnSequence, Boolean hidden, Boolean required, Boolean readonly, Boolean nameField, Boolean visibleInGrid, String showIf, String hideIf, String requiredIf, String readonlyIf, Integer minSize, Integer maxSize, Integer precision, Integer scale, String pattern, String targetModel, String targetJsonModel, String selection, String enumType, String defaultValue, String domain, String widget, String widgetAttrs, String help, String formView, String gridView, String onChange, String onClick, String valueExpr, String contextField, String contextFieldTarget, String contextFieldTargetName, String contextFieldValue, String contextFieldTitle, String includeIf, Set<Long> roleIds, Boolean tracked, String trackEvent, String trackCondition)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonReferenceFieldDTO(String name, String title, String type, String model, String modelField, Integer sequence, Integer columnSequence, Boolean hidden, Boolean required, Boolean readonly, Boolean nameField, Boolean visibleInGrid, String showIf, String hideIf, String requiredIf, String readonlyIf, Integer minSize, Integer maxSize, Integer precision, Integer scale, String pattern, String targetModel, String targetJsonModel, String selection, String enumType, String defaultValue, String domain, String widget, String widgetAttrs, String help, String formView, String gridView, String onChange, String onClick, String valueExpr, String contextField, String contextFieldTarget, String contextFieldTargetName, String contextFieldValue, String contextFieldTitle, String includeIf, Set<Long> roleIds, Boolean tracked, String trackEvent, String trackCondition) Creates an instance of aJsonReferenceFieldDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnSequencerecord component.Returns the value of thecontextFieldrecord component.Returns the value of thecontextFieldTargetrecord component.Returns the value of thecontextFieldTargetNamerecord component.Returns the value of thecontextFieldTitlerecord component.Returns the value of thecontextFieldValuerecord component.Returns the value of thedefaultValuerecord component.domain()Returns the value of thedomainrecord component.enumType()Returns the value of theenumTyperecord component.final booleanIndicates whether some other object is "equal to" this one.formView()Returns the value of theformViewrecord component.static JsonReferenceFieldDTOfrom(MetaJsonField field) gridView()Returns the value of thegridViewrecord component.final inthashCode()Returns a hash code value for this object.help()Returns the value of thehelprecord component.hidden()Returns the value of thehiddenrecord component.hideIf()Returns the value of thehideIfrecord component.Returns the value of theincludeIfrecord component.booleanbooleanWhether this custom field is a relational reference to another record.maxSize()Returns the value of themaxSizerecord component.minSize()Returns the value of theminSizerecord component.model()Returns the value of themodelrecord component.Returns the value of themodelFieldrecord component.name()Returns the value of thenamerecord component.Returns the value of thenameFieldrecord component.onChange()Returns the value of theonChangerecord component.onClick()Returns the value of theonClickrecord component.pattern()Returns the value of thepatternrecord component.Returns the value of theprecisionrecord component.readonly()Returns the value of thereadonlyrecord component.Returns the value of thereadonlyIfrecord component.required()Returns the value of therequiredrecord component.Returns the value of therequiredIfrecord component.roleIds()Returns the value of theroleIdsrecord component.scale()Returns the value of thescalerecord component.Returns the value of theselectionrecord component.sequence()Returns the value of thesequencerecord component.showIf()Returns the value of theshowIfrecord component.Returns the value of thetargetJsonModelrecord component.Returns the value of thetargetModelrecord component.title()Returns the value of thetitlerecord component.toMap()final StringtoString()Returns a string representation of this record class.Returns the value of thetrackConditionrecord component.tracked()Returns the value of thetrackedrecord component.Returns the value of thetrackEventrecord component.type()Returns the value of thetyperecord component.Returns the value of thevalueExprrecord component.Returns the value of thevisibleInGridrecord component.widget()Returns the value of thewidgetrecord component.Returns the value of thewidgetAttrsrecord component.
-
Constructor Details
-
JsonReferenceFieldDTO
public JsonReferenceFieldDTO(String name, String title, String type, String model, String modelField, Integer sequence, Integer columnSequence, Boolean hidden, Boolean required, Boolean readonly, Boolean nameField, Boolean visibleInGrid, String showIf, String hideIf, String requiredIf, String readonlyIf, Integer minSize, Integer maxSize, Integer precision, Integer scale, String pattern, String targetModel, String targetJsonModel, String selection, String enumType, String defaultValue, String domain, String widget, String widgetAttrs, String help, String formView, String gridView, String onChange, String onClick, String valueExpr, String contextField, String contextFieldTarget, String contextFieldTargetName, String contextFieldValue, String contextFieldTitle, String includeIf, Set<Long> roleIds, Boolean tracked, String trackEvent, String trackCondition) Creates an instance of aJsonReferenceFieldDTOrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componenttype- the value for thetyperecord componentmodel- the value for themodelrecord componentmodelField- the value for themodelFieldrecord componentsequence- the value for thesequencerecord componentcolumnSequence- the value for thecolumnSequencerecord componenthidden- the value for thehiddenrecord componentrequired- the value for therequiredrecord componentreadonly- the value for thereadonlyrecord componentnameField- the value for thenameFieldrecord componentvisibleInGrid- the value for thevisibleInGridrecord componentshowIf- the value for theshowIfrecord componenthideIf- the value for thehideIfrecord componentrequiredIf- the value for therequiredIfrecord componentreadonlyIf- the value for thereadonlyIfrecord componentminSize- the value for theminSizerecord componentmaxSize- the value for themaxSizerecord componentprecision- the value for theprecisionrecord componentscale- the value for thescalerecord componentpattern- the value for thepatternrecord componenttargetModel- the value for thetargetModelrecord componenttargetJsonModel- the value for thetargetJsonModelrecord componentselection- the value for theselectionrecord componentenumType- the value for theenumTyperecord componentdefaultValue- the value for thedefaultValuerecord componentdomain- the value for thedomainrecord componentwidget- the value for thewidgetrecord componentwidgetAttrs- the value for thewidgetAttrsrecord componenthelp- the value for thehelprecord componentformView- the value for theformViewrecord componentgridView- the value for thegridViewrecord componentonChange- the value for theonChangerecord componentonClick- the value for theonClickrecord componentvalueExpr- the value for thevalueExprrecord componentcontextField- the value for thecontextFieldrecord componentcontextFieldTarget- the value for thecontextFieldTargetrecord componentcontextFieldTargetName- the value for thecontextFieldTargetNamerecord componentcontextFieldValue- the value for thecontextFieldValuerecord componentcontextFieldTitle- the value for thecontextFieldTitlerecord componentincludeIf- the value for theincludeIfrecord componentroleIds- the value for theroleIdsrecord componenttracked- the value for thetrackedrecord componenttrackEvent- the value for thetrackEventrecord componenttrackCondition- the value for thetrackConditionrecord component
-
-
Method Details
-
from
-
isReference
public boolean isReference()Whether this custom field is a relational reference to another record. -
isJsonModelTarget
public boolean isJsonModelTarget() -
resolveTargetModel
-
toMap
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
modelField
Returns the value of themodelFieldrecord component.- Returns:
- the value of the
modelFieldrecord component
-
sequence
Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
columnSequence
Returns the value of thecolumnSequencerecord component.- Returns:
- the value of the
columnSequencerecord component
-
required
Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
readonly
Returns the value of thereadonlyrecord component.- Returns:
- the value of the
readonlyrecord component
-
nameField
Returns the value of thenameFieldrecord component.- Returns:
- the value of the
nameFieldrecord component
-
visibleInGrid
Returns the value of thevisibleInGridrecord component.- Returns:
- the value of the
visibleInGridrecord component
-
showIf
Returns the value of theshowIfrecord component.- Returns:
- the value of the
showIfrecord component
-
hideIf
Returns the value of thehideIfrecord component.- Returns:
- the value of the
hideIfrecord component
-
requiredIf
Returns the value of therequiredIfrecord component.- Returns:
- the value of the
requiredIfrecord component
-
readonlyIf
Returns the value of thereadonlyIfrecord component.- Returns:
- the value of the
readonlyIfrecord component
-
minSize
Returns the value of theminSizerecord component.- Returns:
- the value of the
minSizerecord component
-
maxSize
Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
precision
Returns the value of theprecisionrecord component.- Returns:
- the value of the
precisionrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
targetModel
Returns the value of thetargetModelrecord component.- Returns:
- the value of the
targetModelrecord component
-
targetJsonModel
Returns the value of thetargetJsonModelrecord component.- Returns:
- the value of the
targetJsonModelrecord component
-
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
enumType
Returns the value of theenumTyperecord component.- Returns:
- the value of the
enumTyperecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
widget
Returns the value of thewidgetrecord component.- Returns:
- the value of the
widgetrecord component
-
widgetAttrs
Returns the value of thewidgetAttrsrecord component.- Returns:
- the value of the
widgetAttrsrecord component
-
help
Returns the value of thehelprecord component.- Returns:
- the value of the
helprecord component
-
formView
Returns the value of theformViewrecord component.- Returns:
- the value of the
formViewrecord component
-
gridView
Returns the value of thegridViewrecord component.- Returns:
- the value of the
gridViewrecord component
-
onChange
Returns the value of theonChangerecord component.- Returns:
- the value of the
onChangerecord component
-
onClick
Returns the value of theonClickrecord component.- Returns:
- the value of the
onClickrecord component
-
valueExpr
Returns the value of thevalueExprrecord component.- Returns:
- the value of the
valueExprrecord component
-
contextField
Returns the value of thecontextFieldrecord component.- Returns:
- the value of the
contextFieldrecord component
-
contextFieldTarget
Returns the value of thecontextFieldTargetrecord component.- Returns:
- the value of the
contextFieldTargetrecord component
-
contextFieldTargetName
Returns the value of thecontextFieldTargetNamerecord component.- Returns:
- the value of the
contextFieldTargetNamerecord component
-
contextFieldValue
Returns the value of thecontextFieldValuerecord component.- Returns:
- the value of the
contextFieldValuerecord component
-
contextFieldTitle
Returns the value of thecontextFieldTitlerecord component.- Returns:
- the value of the
contextFieldTitlerecord component
-
includeIf
Returns the value of theincludeIfrecord component.- Returns:
- the value of the
includeIfrecord component
-
roleIds
Returns the value of theroleIdsrecord component.- Returns:
- the value of the
roleIdsrecord component
-
tracked
Returns the value of thetrackedrecord component.- Returns:
- the value of the
trackedrecord component
-
trackEvent
Returns the value of thetrackEventrecord component.- Returns:
- the value of the
trackEventrecord component
-
trackCondition
Returns the value of thetrackConditionrecord component.- Returns:
- the value of the
trackConditionrecord component
-