Interface CodegenGenericDataRelationshipType.Builder

    • Method Detail

      • relatedModelName

        CodegenGenericDataRelationshipType.Builder relatedModelName​(String relatedModelName)

        The name of the related model in the data relationship.

        Parameters:
        relatedModelName - The name of the related model in the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedModelFields

        CodegenGenericDataRelationshipType.Builder relatedModelFields​(Collection<String> relatedModelFields)

        The related model fields in the data relationship.

        Parameters:
        relatedModelFields - The related model fields in the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedModelFields

        CodegenGenericDataRelationshipType.Builder relatedModelFields​(String... relatedModelFields)

        The related model fields in the data relationship.

        Parameters:
        relatedModelFields - The related model fields in the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • canUnlinkAssociatedModel

        CodegenGenericDataRelationshipType.Builder canUnlinkAssociatedModel​(Boolean canUnlinkAssociatedModel)

        Specifies whether the relationship can unlink the associated model.

        Parameters:
        canUnlinkAssociatedModel - Specifies whether the relationship can unlink the associated model.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedJoinFieldName

        CodegenGenericDataRelationshipType.Builder relatedJoinFieldName​(String relatedJoinFieldName)

        The name of the related join field in the data relationship.

        Parameters:
        relatedJoinFieldName - The name of the related join field in the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedJoinTableName

        CodegenGenericDataRelationshipType.Builder relatedJoinTableName​(String relatedJoinTableName)

        The name of the related join table in the data relationship.

        Parameters:
        relatedJoinTableName - The name of the related join table in the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • belongsToFieldOnRelatedModel

        CodegenGenericDataRelationshipType.Builder belongsToFieldOnRelatedModel​(String belongsToFieldOnRelatedModel)

        The value of the belongsTo field on the related data model.

        Parameters:
        belongsToFieldOnRelatedModel - The value of the belongsTo field on the related data model.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • associatedFields

        CodegenGenericDataRelationshipType.Builder associatedFields​(Collection<String> associatedFields)

        The associated fields of the data relationship.

        Parameters:
        associatedFields - The associated fields of the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • associatedFields

        CodegenGenericDataRelationshipType.Builder associatedFields​(String... associatedFields)

        The associated fields of the data relationship.

        Parameters:
        associatedFields - The associated fields of the data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isHasManyIndex

        CodegenGenericDataRelationshipType.Builder isHasManyIndex​(Boolean isHasManyIndex)

        Specifies whether the @index directive is supported for a hasMany data relationship.

        Parameters:
        isHasManyIndex - Specifies whether the @index directive is supported for a hasMany data relationship.
        Returns:
        Returns a reference to this object so that method calls can be chained together.