orm

package
v0.0.0-...-ec5ad42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Overview

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

do not modify, generated file

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

This section is empty.

Variables

View Source
var BackRepoClassdiagramid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoDiagramPackageid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoFieldid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongEnumShapeid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongEnumValueEntryid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongStructShapeid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoLinkid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoNoteShapeLinkid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoNoteShapeid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoPositionid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoUmlStateid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoUmlscid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoVerticeid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var Classdiagram_Fields = []string{

	"ID",
	"Name",
	"IsInDrawMode",
}
View Source
var DiagramPackage_Fields = []string{

	"ID",
	"Name",
	"Path",
	"GongModelPath",
	"IsEditable",
	"IsReloaded",
	"AbsolutePathToDiagramPackage",
}
View Source
var Field_Fields = []string{

	"ID",
	"Name",
	"Identifier",
	"FieldTypeAsString",
	"Structname",
	"Fieldtypename",
}
View Source
var GongEnumShape_Fields = []string{

	"ID",
	"Name",
	"Identifier",
	"Width",
	"Height",
}
View Source
var GongEnumValueEntry_Fields = []string{

	"ID",
	"Name",
	"Identifier",
}
View Source
var GongStructShape_Fields = []string{

	"ID",
	"Name",
	"Identifier",
	"ShowNbInstances",
	"NbInstances",
	"Width",
	"Height",
	"IsSelected",
}
View Source
var Link_Fields = []string{

	"ID",
	"Name",
	"Identifier",
	"Fieldtypename",
	"FieldOffsetX",
	"FieldOffsetY",
	"TargetMultiplicity",
	"TargetMultiplicityOffsetX",
	"TargetMultiplicityOffsetY",
	"SourceMultiplicity",
	"SourceMultiplicityOffsetX",
	"SourceMultiplicityOffsetY",
	"StartOrientation",
	"StartRatio",
	"EndOrientation",
	"EndRatio",
	"CornerOffsetRatio",
}
View Source
var NoteShapeLink_Fields = []string{

	"ID",
	"Name",
	"Identifier",
	"Type",
}
View Source
var NoteShape_Fields = []string{

	"ID",
	"Name",
	"Identifier",
	"Body",
	"BodyHTML",
	"X",
	"Y",
	"Width",
	"Height",
	"Matched",
}
View Source
var Position_Fields = []string{

	"ID",
	"X",
	"Y",
	"Name",
}
View Source
var UmlState_Fields = []string{

	"ID",
	"Name",
	"X",
	"Y",
}
View Source
var Umlsc_Fields = []string{

	"ID",
	"Name",
	"Activestate",
	"IsInDrawMode",
}
View Source
var Vertice_Fields = []string{

	"ID",
	"X",
	"Y",
	"Name",
}

Functions

func CopyBackRepoToBackRepoData

func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)

func GetID

func GetID[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T) (id int)

func GetIDPointer

func GetIDPointer[T models.PointerToGongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance T) (id int)

func GetInstanceDBFromInstance

func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T) (ret *T2)

func GetReverseFieldOwner

func GetReverseFieldOwner[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T,
	reverseField *models.ReverseField) (res any)

func GetReverseFieldOwnerName

func GetReverseFieldOwnerName[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T,
	reverseField *models.ReverseField) (res string)

Types

type BackRepoClassdiagramStruct

type BackRepoClassdiagramStruct struct {
	// stores ClassdiagramDB according to their gorm ID
	Map_ClassdiagramDBID_ClassdiagramDB map[uint]*ClassdiagramDB

	// stores ClassdiagramDB ID according to Classdiagram address
	Map_ClassdiagramPtr_ClassdiagramDBID map[*models.Classdiagram]uint

	// stores Classdiagram according to their gorm ID
	Map_ClassdiagramDBID_ClassdiagramPtr map[uint]*models.Classdiagram
	// contains filtered or unexported fields
}

func (*BackRepoClassdiagramStruct) Backup

func (backRepoClassdiagram *BackRepoClassdiagramStruct) Backup(dirPath string)

Backup generates a json file from a slice of all ClassdiagramDB instances in the backrepo

func (*BackRepoClassdiagramStruct) BackupXL

func (backRepoClassdiagram *BackRepoClassdiagramStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all ClassdiagramDB instances in the backrepo

func (*BackRepoClassdiagramStruct) CheckoutPhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOne() (Error error)

BackRepoClassdiagram.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoClassdiagramStruct) CheckoutPhaseOneInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseOneInstance(classdiagramDB *ClassdiagramDB) (Error error)

CheckoutPhaseOneInstance takes a classdiagramDB that has been found in the DB, updates the backRepo and stages the models version of the classdiagramDB

func (*BackRepoClassdiagramStruct) CheckoutPhaseTwo

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoClassdiagram.CheckoutPhaseTwo Checkouts all staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classdiagramDB *ClassdiagramDB) (Error error)

BackRepoClassdiagram.CheckoutPhaseTwoInstance Checkouts staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoClassdiagramStruct) CommitDeleteInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoClassdiagram.CommitDeleteInstance commits deletion of Classdiagram to the BackRepo

func (*BackRepoClassdiagramStruct) CommitPhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoClassdiagram.CommitPhaseOne commits all staged instances of Classdiagram to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoClassdiagramStruct) CommitPhaseOneInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseOneInstance(classdiagram *models.Classdiagram) (Error error)

BackRepoClassdiagram.CommitPhaseOneInstance commits classdiagram staged instances of Classdiagram to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoClassdiagramStruct) CommitPhaseTwo

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoClassdiagram.CommitPhaseTwo commits all staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoClassdiagramStruct) CommitPhaseTwoInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)

BackRepoClassdiagram.CommitPhaseTwoInstance commits {{structname }} of models.Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr

func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetClassdiagramDBFromClassdiagramPtr(classdiagram *models.Classdiagram) (classdiagramDB *ClassdiagramDB)

GetClassdiagramDBFromClassdiagramPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoClassdiagramStruct) GetDB

func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetDB() *gorm.DB

func (*BackRepoClassdiagramStruct) GetStage

func (backRepoClassdiagram *BackRepoClassdiagramStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoClassdiagramStruct) ResetReversePointers

func (backRepoClassdiagram *BackRepoClassdiagramStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoClassdiagram.ResetReversePointers commits all staged instances of Classdiagram to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoClassdiagramStruct) ResetReversePointersInstance

func (backRepoClassdiagram *BackRepoClassdiagramStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, classdiagram *models.Classdiagram) (Error error)

func (*BackRepoClassdiagramStruct) RestorePhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "ClassdiagramDB.json" in dirPath that stores an array of ClassdiagramDB and stores it in the database the map BackRepoClassdiagramid_atBckpTime_newID is updated accordingly

func (*BackRepoClassdiagramStruct) RestorePhaseTwo

func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Classdiagram>id_atBckpTime_newID to compute new index

func (*BackRepoClassdiagramStruct) RestoreXLPhaseOne

func (backRepoClassdiagram *BackRepoClassdiagramStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Classdiagram" sheet all ClassdiagramDB instances

type BackRepoData

type BackRepoData struct {
	ClassdiagramAPIs []*ClassdiagramAPI

	DiagramPackageAPIs []*DiagramPackageAPI

	FieldAPIs []*FieldAPI

	GongEnumShapeAPIs []*GongEnumShapeAPI

	GongEnumValueEntryAPIs []*GongEnumValueEntryAPI

	GongStructShapeAPIs []*GongStructShapeAPI

	LinkAPIs []*LinkAPI

	NoteShapeAPIs []*NoteShapeAPI

	NoteShapeLinkAPIs []*NoteShapeLinkAPI

	PositionAPIs []*PositionAPI

	UmlStateAPIs []*UmlStateAPI

	UmlscAPIs []*UmlscAPI

	VerticeAPIs []*VerticeAPI
}

type BackRepoDiagramPackageStruct

type BackRepoDiagramPackageStruct struct {
	// stores DiagramPackageDB according to their gorm ID
	Map_DiagramPackageDBID_DiagramPackageDB map[uint]*DiagramPackageDB

	// stores DiagramPackageDB ID according to DiagramPackage address
	Map_DiagramPackagePtr_DiagramPackageDBID map[*models.DiagramPackage]uint

	// stores DiagramPackage according to their gorm ID
	Map_DiagramPackageDBID_DiagramPackagePtr map[uint]*models.DiagramPackage
	// contains filtered or unexported fields
}

func (*BackRepoDiagramPackageStruct) Backup

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) Backup(dirPath string)

Backup generates a json file from a slice of all DiagramPackageDB instances in the backrepo

func (*BackRepoDiagramPackageStruct) BackupXL

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all DiagramPackageDB instances in the backrepo

func (*BackRepoDiagramPackageStruct) CheckoutPhaseOne

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseOne() (Error error)

BackRepoDiagramPackage.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoDiagramPackageStruct) CheckoutPhaseOneInstance

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseOneInstance(diagrampackageDB *DiagramPackageDB) (Error error)

CheckoutPhaseOneInstance takes a diagrampackageDB that has been found in the DB, updates the backRepo and stages the models version of the diagrampackageDB

func (*BackRepoDiagramPackageStruct) CheckoutPhaseTwo

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoDiagramPackage.CheckoutPhaseTwo Checkouts all staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDiagramPackageStruct) CheckoutPhaseTwoInstance

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, diagrampackageDB *DiagramPackageDB) (Error error)

BackRepoDiagramPackage.CheckoutPhaseTwoInstance Checkouts staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDiagramPackageStruct) CommitDeleteInstance

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoDiagramPackage.CommitDeleteInstance commits deletion of DiagramPackage to the BackRepo

func (*BackRepoDiagramPackageStruct) CommitPhaseOne

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoDiagramPackage.CommitPhaseOne commits all staged instances of DiagramPackage to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoDiagramPackageStruct) CommitPhaseOneInstance

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseOneInstance(diagrampackage *models.DiagramPackage) (Error error)

BackRepoDiagramPackage.CommitPhaseOneInstance commits diagrampackage staged instances of DiagramPackage to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoDiagramPackageStruct) CommitPhaseTwo

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoDiagramPackage.CommitPhaseTwo commits all staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDiagramPackageStruct) CommitPhaseTwoInstance

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, diagrampackage *models.DiagramPackage) (Error error)

BackRepoDiagramPackage.CommitPhaseTwoInstance commits {{structname }} of models.DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDiagramPackageStruct) GetDB

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetDB() *gorm.DB

func (*BackRepoDiagramPackageStruct) GetDiagramPackageDBFromDiagramPackagePtr

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetDiagramPackageDBFromDiagramPackagePtr(diagrampackage *models.DiagramPackage) (diagrampackageDB *DiagramPackageDB)

GetDiagramPackageDBFromDiagramPackagePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoDiagramPackageStruct) GetStage

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoDiagramPackageStruct) ResetReversePointers

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoDiagramPackage.ResetReversePointers commits all staged instances of DiagramPackage to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoDiagramPackageStruct) ResetReversePointersInstance

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, diagrampackage *models.DiagramPackage) (Error error)

func (*BackRepoDiagramPackageStruct) RestorePhaseOne

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "DiagramPackageDB.json" in dirPath that stores an array of DiagramPackageDB and stores it in the database the map BackRepoDiagramPackageid_atBckpTime_newID is updated accordingly

func (*BackRepoDiagramPackageStruct) RestorePhaseTwo

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<DiagramPackage>id_atBckpTime_newID to compute new index

func (*BackRepoDiagramPackageStruct) RestoreXLPhaseOne

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "DiagramPackage" sheet all DiagramPackageDB instances

type BackRepoFieldStruct

type BackRepoFieldStruct struct {
	// stores FieldDB according to their gorm ID
	Map_FieldDBID_FieldDB map[uint]*FieldDB

	// stores FieldDB ID according to Field address
	Map_FieldPtr_FieldDBID map[*models.Field]uint

	// stores Field according to their gorm ID
	Map_FieldDBID_FieldPtr map[uint]*models.Field
	// contains filtered or unexported fields
}

func (*BackRepoFieldStruct) Backup

func (backRepoField *BackRepoFieldStruct) Backup(dirPath string)

Backup generates a json file from a slice of all FieldDB instances in the backrepo

func (*BackRepoFieldStruct) BackupXL

func (backRepoField *BackRepoFieldStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all FieldDB instances in the backrepo

func (*BackRepoFieldStruct) CheckoutPhaseOne

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseOne() (Error error)

BackRepoField.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoFieldStruct) CheckoutPhaseOneInstance

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseOneInstance(fieldDB *FieldDB) (Error error)

CheckoutPhaseOneInstance takes a fieldDB that has been found in the DB, updates the backRepo and stages the models version of the fieldDB

func (*BackRepoFieldStruct) CheckoutPhaseTwo

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoField.CheckoutPhaseTwo Checkouts all staged instances of Field to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoFieldStruct) CheckoutPhaseTwoInstance

func (backRepoField *BackRepoFieldStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, fieldDB *FieldDB) (Error error)

BackRepoField.CheckoutPhaseTwoInstance Checkouts staged instances of Field to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoFieldStruct) CommitDeleteInstance

func (backRepoField *BackRepoFieldStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoField.CommitDeleteInstance commits deletion of Field to the BackRepo

func (*BackRepoFieldStruct) CommitPhaseOne

func (backRepoField *BackRepoFieldStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoField.CommitPhaseOne commits all staged instances of Field to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoFieldStruct) CommitPhaseOneInstance

func (backRepoField *BackRepoFieldStruct) CommitPhaseOneInstance(field *models.Field) (Error error)

BackRepoField.CommitPhaseOneInstance commits field staged instances of Field to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoFieldStruct) CommitPhaseTwo

func (backRepoField *BackRepoFieldStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoField.CommitPhaseTwo commits all staged instances of Field to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoFieldStruct) CommitPhaseTwoInstance

func (backRepoField *BackRepoFieldStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, field *models.Field) (Error error)

BackRepoField.CommitPhaseTwoInstance commits {{structname }} of models.Field to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoFieldStruct) GetDB

func (backRepoField *BackRepoFieldStruct) GetDB() *gorm.DB

func (*BackRepoFieldStruct) GetFieldDBFromFieldPtr

func (backRepoField *BackRepoFieldStruct) GetFieldDBFromFieldPtr(field *models.Field) (fieldDB *FieldDB)

GetFieldDBFromFieldPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoFieldStruct) GetStage

func (backRepoField *BackRepoFieldStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoFieldStruct) ResetReversePointers

func (backRepoField *BackRepoFieldStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoField.ResetReversePointers commits all staged instances of Field to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoFieldStruct) ResetReversePointersInstance

func (backRepoField *BackRepoFieldStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, field *models.Field) (Error error)

func (*BackRepoFieldStruct) RestorePhaseOne

func (backRepoField *BackRepoFieldStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "FieldDB.json" in dirPath that stores an array of FieldDB and stores it in the database the map BackRepoFieldid_atBckpTime_newID is updated accordingly

func (*BackRepoFieldStruct) RestorePhaseTwo

func (backRepoField *BackRepoFieldStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Field>id_atBckpTime_newID to compute new index

func (*BackRepoFieldStruct) RestoreXLPhaseOne

func (backRepoField *BackRepoFieldStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Field" sheet all FieldDB instances

type BackRepoGongEnumShapeStruct

type BackRepoGongEnumShapeStruct struct {
	// stores GongEnumShapeDB according to their gorm ID
	Map_GongEnumShapeDBID_GongEnumShapeDB map[uint]*GongEnumShapeDB

	// stores GongEnumShapeDB ID according to GongEnumShape address
	Map_GongEnumShapePtr_GongEnumShapeDBID map[*models.GongEnumShape]uint

	// stores GongEnumShape according to their gorm ID
	Map_GongEnumShapeDBID_GongEnumShapePtr map[uint]*models.GongEnumShape
	// contains filtered or unexported fields
}

func (*BackRepoGongEnumShapeStruct) Backup

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongEnumShapeDB instances in the backrepo

func (*BackRepoGongEnumShapeStruct) BackupXL

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongEnumShapeDB instances in the backrepo

func (*BackRepoGongEnumShapeStruct) CheckoutPhaseOne

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseOne() (Error error)

BackRepoGongEnumShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongEnumShapeStruct) CheckoutPhaseOneInstance

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseOneInstance(gongenumshapeDB *GongEnumShapeDB) (Error error)

CheckoutPhaseOneInstance takes a gongenumshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongenumshapeDB

func (*BackRepoGongEnumShapeStruct) CheckoutPhaseTwo

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumShape.CheckoutPhaseTwo Checkouts all staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumShapeStruct) CheckoutPhaseTwoInstance

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumshapeDB *GongEnumShapeDB) (Error error)

BackRepoGongEnumShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumShapeStruct) CommitDeleteInstance

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongEnumShape.CommitDeleteInstance commits deletion of GongEnumShape to the BackRepo

func (*BackRepoGongEnumShapeStruct) CommitPhaseOne

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongEnumShape.CommitPhaseOne commits all staged instances of GongEnumShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumShapeStruct) CommitPhaseOneInstance

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseOneInstance(gongenumshape *models.GongEnumShape) (Error error)

BackRepoGongEnumShape.CommitPhaseOneInstance commits gongenumshape staged instances of GongEnumShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumShapeStruct) CommitPhaseTwo

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumShape.CommitPhaseTwo commits all staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumShapeStruct) CommitPhaseTwoInstance

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenumshape *models.GongEnumShape) (Error error)

BackRepoGongEnumShape.CommitPhaseTwoInstance commits {{structname }} of models.GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumShapeStruct) GetDB

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetDB() *gorm.DB

func (*BackRepoGongEnumShapeStruct) GetGongEnumShapeDBFromGongEnumShapePtr

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetGongEnumShapeDBFromGongEnumShapePtr(gongenumshape *models.GongEnumShape) (gongenumshapeDB *GongEnumShapeDB)

GetGongEnumShapeDBFromGongEnumShapePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongEnumShapeStruct) GetStage

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongEnumShapeStruct) ResetReversePointers

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumShape.ResetReversePointers commits all staged instances of GongEnumShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumShapeStruct) ResetReversePointersInstance

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenumshape *models.GongEnumShape) (Error error)

func (*BackRepoGongEnumShapeStruct) RestorePhaseOne

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongEnumShapeDB.json" in dirPath that stores an array of GongEnumShapeDB and stores it in the database the map BackRepoGongEnumShapeid_atBckpTime_newID is updated accordingly

func (*BackRepoGongEnumShapeStruct) RestorePhaseTwo

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongEnumShape>id_atBckpTime_newID to compute new index

func (*BackRepoGongEnumShapeStruct) RestoreXLPhaseOne

func (backRepoGongEnumShape *BackRepoGongEnumShapeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongEnumShape" sheet all GongEnumShapeDB instances

type BackRepoGongEnumValueEntryStruct

type BackRepoGongEnumValueEntryStruct struct {
	// stores GongEnumValueEntryDB according to their gorm ID
	Map_GongEnumValueEntryDBID_GongEnumValueEntryDB map[uint]*GongEnumValueEntryDB

	// stores GongEnumValueEntryDB ID according to GongEnumValueEntry address
	Map_GongEnumValueEntryPtr_GongEnumValueEntryDBID map[*models.GongEnumValueEntry]uint

	// stores GongEnumValueEntry according to their gorm ID
	Map_GongEnumValueEntryDBID_GongEnumValueEntryPtr map[uint]*models.GongEnumValueEntry
	// contains filtered or unexported fields
}

func (*BackRepoGongEnumValueEntryStruct) Backup

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongEnumValueEntryDB instances in the backrepo

func (*BackRepoGongEnumValueEntryStruct) BackupXL

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongEnumValueEntryDB instances in the backrepo

func (*BackRepoGongEnumValueEntryStruct) CheckoutPhaseOne

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CheckoutPhaseOne() (Error error)

BackRepoGongEnumValueEntry.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongEnumValueEntryStruct) CheckoutPhaseOneInstance

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CheckoutPhaseOneInstance(gongenumvalueentryDB *GongEnumValueEntryDB) (Error error)

CheckoutPhaseOneInstance takes a gongenumvalueentryDB that has been found in the DB, updates the backRepo and stages the models version of the gongenumvalueentryDB

func (*BackRepoGongEnumValueEntryStruct) CheckoutPhaseTwo

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumValueEntry.CheckoutPhaseTwo Checkouts all staged instances of GongEnumValueEntry to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueEntryStruct) CheckoutPhaseTwoInstance

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumvalueentryDB *GongEnumValueEntryDB) (Error error)

BackRepoGongEnumValueEntry.CheckoutPhaseTwoInstance Checkouts staged instances of GongEnumValueEntry to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueEntryStruct) CommitDeleteInstance

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongEnumValueEntry.CommitDeleteInstance commits deletion of GongEnumValueEntry to the BackRepo

func (*BackRepoGongEnumValueEntryStruct) CommitPhaseOne

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongEnumValueEntry.CommitPhaseOne commits all staged instances of GongEnumValueEntry to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumValueEntryStruct) CommitPhaseOneInstance

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CommitPhaseOneInstance(gongenumvalueentry *models.GongEnumValueEntry) (Error error)

BackRepoGongEnumValueEntry.CommitPhaseOneInstance commits gongenumvalueentry staged instances of GongEnumValueEntry to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumValueEntryStruct) CommitPhaseTwo

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumValueEntry.CommitPhaseTwo commits all staged instances of GongEnumValueEntry to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueEntryStruct) CommitPhaseTwoInstance

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenumvalueentry *models.GongEnumValueEntry) (Error error)

BackRepoGongEnumValueEntry.CommitPhaseTwoInstance commits {{structname }} of models.GongEnumValueEntry to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueEntryStruct) GetDB

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) GetDB() *gorm.DB

func (*BackRepoGongEnumValueEntryStruct) GetGongEnumValueEntryDBFromGongEnumValueEntryPtr

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) GetGongEnumValueEntryDBFromGongEnumValueEntryPtr(gongenumvalueentry *models.GongEnumValueEntry) (gongenumvalueentryDB *GongEnumValueEntryDB)

GetGongEnumValueEntryDBFromGongEnumValueEntryPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongEnumValueEntryStruct) GetStage

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongEnumValueEntryStruct) ResetReversePointers

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumValueEntry.ResetReversePointers commits all staged instances of GongEnumValueEntry to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueEntryStruct) ResetReversePointersInstance

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenumvalueentry *models.GongEnumValueEntry) (Error error)

func (*BackRepoGongEnumValueEntryStruct) RestorePhaseOne

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongEnumValueEntryDB.json" in dirPath that stores an array of GongEnumValueEntryDB and stores it in the database the map BackRepoGongEnumValueEntryid_atBckpTime_newID is updated accordingly

func (*BackRepoGongEnumValueEntryStruct) RestorePhaseTwo

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongEnumValueEntry>id_atBckpTime_newID to compute new index

func (*BackRepoGongEnumValueEntryStruct) RestoreXLPhaseOne

func (backRepoGongEnumValueEntry *BackRepoGongEnumValueEntryStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongEnumValueEntry" sheet all GongEnumValueEntryDB instances

type BackRepoGongStructShapeStruct

type BackRepoGongStructShapeStruct struct {
	// stores GongStructShapeDB according to their gorm ID
	Map_GongStructShapeDBID_GongStructShapeDB map[uint]*GongStructShapeDB

	// stores GongStructShapeDB ID according to GongStructShape address
	Map_GongStructShapePtr_GongStructShapeDBID map[*models.GongStructShape]uint

	// stores GongStructShape according to their gorm ID
	Map_GongStructShapeDBID_GongStructShapePtr map[uint]*models.GongStructShape
	// contains filtered or unexported fields
}

func (*BackRepoGongStructShapeStruct) Backup

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongStructShapeDB instances in the backrepo

func (*BackRepoGongStructShapeStruct) BackupXL

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongStructShapeDB instances in the backrepo

func (*BackRepoGongStructShapeStruct) CheckoutPhaseOne

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseOne() (Error error)

BackRepoGongStructShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongStructShapeStruct) CheckoutPhaseOneInstance

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseOneInstance(gongstructshapeDB *GongStructShapeDB) (Error error)

CheckoutPhaseOneInstance takes a gongstructshapeDB that has been found in the DB, updates the backRepo and stages the models version of the gongstructshapeDB

func (*BackRepoGongStructShapeStruct) CheckoutPhaseTwo

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongStructShape.CheckoutPhaseTwo Checkouts all staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructShapeStruct) CheckoutPhaseTwoInstance

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongstructshapeDB *GongStructShapeDB) (Error error)

BackRepoGongStructShape.CheckoutPhaseTwoInstance Checkouts staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructShapeStruct) CommitDeleteInstance

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongStructShape.CommitDeleteInstance commits deletion of GongStructShape to the BackRepo

func (*BackRepoGongStructShapeStruct) CommitPhaseOne

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongStructShape.CommitPhaseOne commits all staged instances of GongStructShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongStructShapeStruct) CommitPhaseOneInstance

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseOneInstance(gongstructshape *models.GongStructShape) (Error error)

BackRepoGongStructShape.CommitPhaseOneInstance commits gongstructshape staged instances of GongStructShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongStructShapeStruct) CommitPhaseTwo

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongStructShape.CommitPhaseTwo commits all staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructShapeStruct) CommitPhaseTwoInstance

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongstructshape *models.GongStructShape) (Error error)

BackRepoGongStructShape.CommitPhaseTwoInstance commits {{structname }} of models.GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructShapeStruct) GetDB

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetDB() *gorm.DB

func (*BackRepoGongStructShapeStruct) GetGongStructShapeDBFromGongStructShapePtr

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetGongStructShapeDBFromGongStructShapePtr(gongstructshape *models.GongStructShape) (gongstructshapeDB *GongStructShapeDB)

GetGongStructShapeDBFromGongStructShapePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongStructShapeStruct) GetStage

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongStructShapeStruct) ResetReversePointers

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongStructShape.ResetReversePointers commits all staged instances of GongStructShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructShapeStruct) ResetReversePointersInstance

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongstructshape *models.GongStructShape) (Error error)

func (*BackRepoGongStructShapeStruct) RestorePhaseOne

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongStructShapeDB.json" in dirPath that stores an array of GongStructShapeDB and stores it in the database the map BackRepoGongStructShapeid_atBckpTime_newID is updated accordingly

func (*BackRepoGongStructShapeStruct) RestorePhaseTwo

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongStructShape>id_atBckpTime_newID to compute new index

func (*BackRepoGongStructShapeStruct) RestoreXLPhaseOne

func (backRepoGongStructShape *BackRepoGongStructShapeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongStructShape" sheet all GongStructShapeDB instances

type BackRepoLinkStruct

type BackRepoLinkStruct struct {
	// stores LinkDB according to their gorm ID
	Map_LinkDBID_LinkDB map[uint]*LinkDB

	// stores LinkDB ID according to Link address
	Map_LinkPtr_LinkDBID map[*models.Link]uint

	// stores Link according to their gorm ID
	Map_LinkDBID_LinkPtr map[uint]*models.Link
	// contains filtered or unexported fields
}

func (*BackRepoLinkStruct) Backup

func (backRepoLink *BackRepoLinkStruct) Backup(dirPath string)

Backup generates a json file from a slice of all LinkDB instances in the backrepo

func (*BackRepoLinkStruct) BackupXL

func (backRepoLink *BackRepoLinkStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all LinkDB instances in the backrepo

func (*BackRepoLinkStruct) CheckoutPhaseOne

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseOne() (Error error)

BackRepoLink.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoLinkStruct) CheckoutPhaseOneInstance

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseOneInstance(linkDB *LinkDB) (Error error)

CheckoutPhaseOneInstance takes a linkDB that has been found in the DB, updates the backRepo and stages the models version of the linkDB

func (*BackRepoLinkStruct) CheckoutPhaseTwo

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoLink.CheckoutPhaseTwo Checkouts all staged instances of Link to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLinkStruct) CheckoutPhaseTwoInstance

func (backRepoLink *BackRepoLinkStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, linkDB *LinkDB) (Error error)

BackRepoLink.CheckoutPhaseTwoInstance Checkouts staged instances of Link to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLinkStruct) CommitDeleteInstance

func (backRepoLink *BackRepoLinkStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLink.CommitDeleteInstance commits deletion of Link to the BackRepo

func (*BackRepoLinkStruct) CommitPhaseOne

func (backRepoLink *BackRepoLinkStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLink.CommitPhaseOne commits all staged instances of Link to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoLinkStruct) CommitPhaseOneInstance

func (backRepoLink *BackRepoLinkStruct) CommitPhaseOneInstance(link *models.Link) (Error error)

BackRepoLink.CommitPhaseOneInstance commits link staged instances of Link to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoLinkStruct) CommitPhaseTwo

func (backRepoLink *BackRepoLinkStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoLink.CommitPhaseTwo commits all staged instances of Link to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLinkStruct) CommitPhaseTwoInstance

func (backRepoLink *BackRepoLinkStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, link *models.Link) (Error error)

BackRepoLink.CommitPhaseTwoInstance commits {{structname }} of models.Link to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLinkStruct) GetDB

func (backRepoLink *BackRepoLinkStruct) GetDB() *gorm.DB

func (*BackRepoLinkStruct) GetLinkDBFromLinkPtr

func (backRepoLink *BackRepoLinkStruct) GetLinkDBFromLinkPtr(link *models.Link) (linkDB *LinkDB)

GetLinkDBFromLinkPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoLinkStruct) GetStage

func (backRepoLink *BackRepoLinkStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLinkStruct) ResetReversePointers

func (backRepoLink *BackRepoLinkStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoLink.ResetReversePointers commits all staged instances of Link to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoLinkStruct) ResetReversePointersInstance

func (backRepoLink *BackRepoLinkStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, link *models.Link) (Error error)

func (*BackRepoLinkStruct) RestorePhaseOne

func (backRepoLink *BackRepoLinkStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "LinkDB.json" in dirPath that stores an array of LinkDB and stores it in the database the map BackRepoLinkid_atBckpTime_newID is updated accordingly

func (*BackRepoLinkStruct) RestorePhaseTwo

func (backRepoLink *BackRepoLinkStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Link>id_atBckpTime_newID to compute new index

func (*BackRepoLinkStruct) RestoreXLPhaseOne

func (backRepoLink *BackRepoLinkStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Link" sheet all LinkDB instances

type BackRepoNoteShapeLinkStruct

type BackRepoNoteShapeLinkStruct struct {
	// stores NoteShapeLinkDB according to their gorm ID
	Map_NoteShapeLinkDBID_NoteShapeLinkDB map[uint]*NoteShapeLinkDB

	// stores NoteShapeLinkDB ID according to NoteShapeLink address
	Map_NoteShapeLinkPtr_NoteShapeLinkDBID map[*models.NoteShapeLink]uint

	// stores NoteShapeLink according to their gorm ID
	Map_NoteShapeLinkDBID_NoteShapeLinkPtr map[uint]*models.NoteShapeLink
	// contains filtered or unexported fields
}

func (*BackRepoNoteShapeLinkStruct) Backup

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) Backup(dirPath string)

Backup generates a json file from a slice of all NoteShapeLinkDB instances in the backrepo

func (*BackRepoNoteShapeLinkStruct) BackupXL

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all NoteShapeLinkDB instances in the backrepo

func (*BackRepoNoteShapeLinkStruct) CheckoutPhaseOne

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CheckoutPhaseOne() (Error error)

BackRepoNoteShapeLink.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoNoteShapeLinkStruct) CheckoutPhaseOneInstance

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CheckoutPhaseOneInstance(noteshapelinkDB *NoteShapeLinkDB) (Error error)

CheckoutPhaseOneInstance takes a noteshapelinkDB that has been found in the DB, updates the backRepo and stages the models version of the noteshapelinkDB

func (*BackRepoNoteShapeLinkStruct) CheckoutPhaseTwo

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoNoteShapeLink.CheckoutPhaseTwo Checkouts all staged instances of NoteShapeLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeLinkStruct) CheckoutPhaseTwoInstance

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, noteshapelinkDB *NoteShapeLinkDB) (Error error)

BackRepoNoteShapeLink.CheckoutPhaseTwoInstance Checkouts staged instances of NoteShapeLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeLinkStruct) CommitDeleteInstance

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoNoteShapeLink.CommitDeleteInstance commits deletion of NoteShapeLink to the BackRepo

func (*BackRepoNoteShapeLinkStruct) CommitPhaseOne

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoNoteShapeLink.CommitPhaseOne commits all staged instances of NoteShapeLink to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoNoteShapeLinkStruct) CommitPhaseOneInstance

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CommitPhaseOneInstance(noteshapelink *models.NoteShapeLink) (Error error)

BackRepoNoteShapeLink.CommitPhaseOneInstance commits noteshapelink staged instances of NoteShapeLink to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoNoteShapeLinkStruct) CommitPhaseTwo

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoNoteShapeLink.CommitPhaseTwo commits all staged instances of NoteShapeLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeLinkStruct) CommitPhaseTwoInstance

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, noteshapelink *models.NoteShapeLink) (Error error)

BackRepoNoteShapeLink.CommitPhaseTwoInstance commits {{structname }} of models.NoteShapeLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeLinkStruct) GetDB

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) GetDB() *gorm.DB

func (*BackRepoNoteShapeLinkStruct) GetNoteShapeLinkDBFromNoteShapeLinkPtr

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) GetNoteShapeLinkDBFromNoteShapeLinkPtr(noteshapelink *models.NoteShapeLink) (noteshapelinkDB *NoteShapeLinkDB)

GetNoteShapeLinkDBFromNoteShapeLinkPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoNoteShapeLinkStruct) GetStage

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoNoteShapeLinkStruct) ResetReversePointers

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoNoteShapeLink.ResetReversePointers commits all staged instances of NoteShapeLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeLinkStruct) ResetReversePointersInstance

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, noteshapelink *models.NoteShapeLink) (Error error)

func (*BackRepoNoteShapeLinkStruct) RestorePhaseOne

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "NoteShapeLinkDB.json" in dirPath that stores an array of NoteShapeLinkDB and stores it in the database the map BackRepoNoteShapeLinkid_atBckpTime_newID is updated accordingly

func (*BackRepoNoteShapeLinkStruct) RestorePhaseTwo

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<NoteShapeLink>id_atBckpTime_newID to compute new index

func (*BackRepoNoteShapeLinkStruct) RestoreXLPhaseOne

func (backRepoNoteShapeLink *BackRepoNoteShapeLinkStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "NoteShapeLink" sheet all NoteShapeLinkDB instances

type BackRepoNoteShapeStruct

type BackRepoNoteShapeStruct struct {
	// stores NoteShapeDB according to their gorm ID
	Map_NoteShapeDBID_NoteShapeDB map[uint]*NoteShapeDB

	// stores NoteShapeDB ID according to NoteShape address
	Map_NoteShapePtr_NoteShapeDBID map[*models.NoteShape]uint

	// stores NoteShape according to their gorm ID
	Map_NoteShapeDBID_NoteShapePtr map[uint]*models.NoteShape
	// contains filtered or unexported fields
}

func (*BackRepoNoteShapeStruct) Backup

func (backRepoNoteShape *BackRepoNoteShapeStruct) Backup(dirPath string)

Backup generates a json file from a slice of all NoteShapeDB instances in the backrepo

func (*BackRepoNoteShapeStruct) BackupXL

func (backRepoNoteShape *BackRepoNoteShapeStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all NoteShapeDB instances in the backrepo

func (*BackRepoNoteShapeStruct) CheckoutPhaseOne

func (backRepoNoteShape *BackRepoNoteShapeStruct) CheckoutPhaseOne() (Error error)

BackRepoNoteShape.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoNoteShapeStruct) CheckoutPhaseOneInstance

func (backRepoNoteShape *BackRepoNoteShapeStruct) CheckoutPhaseOneInstance(noteshapeDB *NoteShapeDB) (Error error)

CheckoutPhaseOneInstance takes a noteshapeDB that has been found in the DB, updates the backRepo and stages the models version of the noteshapeDB

func (*BackRepoNoteShapeStruct) CheckoutPhaseTwo

func (backRepoNoteShape *BackRepoNoteShapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoNoteShape.CheckoutPhaseTwo Checkouts all staged instances of NoteShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeStruct) CheckoutPhaseTwoInstance

func (backRepoNoteShape *BackRepoNoteShapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, noteshapeDB *NoteShapeDB) (Error error)

BackRepoNoteShape.CheckoutPhaseTwoInstance Checkouts staged instances of NoteShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeStruct) CommitDeleteInstance

func (backRepoNoteShape *BackRepoNoteShapeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoNoteShape.CommitDeleteInstance commits deletion of NoteShape to the BackRepo

func (*BackRepoNoteShapeStruct) CommitPhaseOne

func (backRepoNoteShape *BackRepoNoteShapeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoNoteShape.CommitPhaseOne commits all staged instances of NoteShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoNoteShapeStruct) CommitPhaseOneInstance

func (backRepoNoteShape *BackRepoNoteShapeStruct) CommitPhaseOneInstance(noteshape *models.NoteShape) (Error error)

BackRepoNoteShape.CommitPhaseOneInstance commits noteshape staged instances of NoteShape to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoNoteShapeStruct) CommitPhaseTwo

func (backRepoNoteShape *BackRepoNoteShapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoNoteShape.CommitPhaseTwo commits all staged instances of NoteShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeStruct) CommitPhaseTwoInstance

func (backRepoNoteShape *BackRepoNoteShapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, noteshape *models.NoteShape) (Error error)

BackRepoNoteShape.CommitPhaseTwoInstance commits {{structname }} of models.NoteShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeStruct) GetDB

func (backRepoNoteShape *BackRepoNoteShapeStruct) GetDB() *gorm.DB

func (*BackRepoNoteShapeStruct) GetNoteShapeDBFromNoteShapePtr

func (backRepoNoteShape *BackRepoNoteShapeStruct) GetNoteShapeDBFromNoteShapePtr(noteshape *models.NoteShape) (noteshapeDB *NoteShapeDB)

GetNoteShapeDBFromNoteShapePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoNoteShapeStruct) GetStage

func (backRepoNoteShape *BackRepoNoteShapeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoNoteShapeStruct) ResetReversePointers

func (backRepoNoteShape *BackRepoNoteShapeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoNoteShape.ResetReversePointers commits all staged instances of NoteShape to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoNoteShapeStruct) ResetReversePointersInstance

func (backRepoNoteShape *BackRepoNoteShapeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, noteshape *models.NoteShape) (Error error)

func (*BackRepoNoteShapeStruct) RestorePhaseOne

func (backRepoNoteShape *BackRepoNoteShapeStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "NoteShapeDB.json" in dirPath that stores an array of NoteShapeDB and stores it in the database the map BackRepoNoteShapeid_atBckpTime_newID is updated accordingly

func (*BackRepoNoteShapeStruct) RestorePhaseTwo

func (backRepoNoteShape *BackRepoNoteShapeStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<NoteShape>id_atBckpTime_newID to compute new index

func (*BackRepoNoteShapeStruct) RestoreXLPhaseOne

func (backRepoNoteShape *BackRepoNoteShapeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "NoteShape" sheet all NoteShapeDB instances

type BackRepoPositionStruct

type BackRepoPositionStruct struct {
	// stores PositionDB according to their gorm ID
	Map_PositionDBID_PositionDB map[uint]*PositionDB

	// stores PositionDB ID according to Position address
	Map_PositionPtr_PositionDBID map[*models.Position]uint

	// stores Position according to their gorm ID
	Map_PositionDBID_PositionPtr map[uint]*models.Position
	// contains filtered or unexported fields
}

func (*BackRepoPositionStruct) Backup

func (backRepoPosition *BackRepoPositionStruct) Backup(dirPath string)

Backup generates a json file from a slice of all PositionDB instances in the backrepo

func (*BackRepoPositionStruct) BackupXL

func (backRepoPosition *BackRepoPositionStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all PositionDB instances in the backrepo

func (*BackRepoPositionStruct) CheckoutPhaseOne

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseOne() (Error error)

BackRepoPosition.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoPositionStruct) CheckoutPhaseOneInstance

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseOneInstance(positionDB *PositionDB) (Error error)

CheckoutPhaseOneInstance takes a positionDB that has been found in the DB, updates the backRepo and stages the models version of the positionDB

func (*BackRepoPositionStruct) CheckoutPhaseTwo

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoPosition.CheckoutPhaseTwo Checkouts all staged instances of Position to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPositionStruct) CheckoutPhaseTwoInstance

func (backRepoPosition *BackRepoPositionStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, positionDB *PositionDB) (Error error)

BackRepoPosition.CheckoutPhaseTwoInstance Checkouts staged instances of Position to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPositionStruct) CommitDeleteInstance

func (backRepoPosition *BackRepoPositionStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPosition.CommitDeleteInstance commits deletion of Position to the BackRepo

func (*BackRepoPositionStruct) CommitPhaseOne

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPosition.CommitPhaseOne commits all staged instances of Position to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoPositionStruct) CommitPhaseOneInstance

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseOneInstance(position *models.Position) (Error error)

BackRepoPosition.CommitPhaseOneInstance commits position staged instances of Position to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoPositionStruct) CommitPhaseTwo

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoPosition.CommitPhaseTwo commits all staged instances of Position to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPositionStruct) CommitPhaseTwoInstance

func (backRepoPosition *BackRepoPositionStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, position *models.Position) (Error error)

BackRepoPosition.CommitPhaseTwoInstance commits {{structname }} of models.Position to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPositionStruct) GetDB

func (backRepoPosition *BackRepoPositionStruct) GetDB() *gorm.DB

func (*BackRepoPositionStruct) GetPositionDBFromPositionPtr

func (backRepoPosition *BackRepoPositionStruct) GetPositionDBFromPositionPtr(position *models.Position) (positionDB *PositionDB)

GetPositionDBFromPositionPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoPositionStruct) GetStage

func (backRepoPosition *BackRepoPositionStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPositionStruct) ResetReversePointers

func (backRepoPosition *BackRepoPositionStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoPosition.ResetReversePointers commits all staged instances of Position to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPositionStruct) ResetReversePointersInstance

func (backRepoPosition *BackRepoPositionStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, position *models.Position) (Error error)

func (*BackRepoPositionStruct) RestorePhaseOne

func (backRepoPosition *BackRepoPositionStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "PositionDB.json" in dirPath that stores an array of PositionDB and stores it in the database the map BackRepoPositionid_atBckpTime_newID is updated accordingly

func (*BackRepoPositionStruct) RestorePhaseTwo

func (backRepoPosition *BackRepoPositionStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Position>id_atBckpTime_newID to compute new index

func (*BackRepoPositionStruct) RestoreXLPhaseOne

func (backRepoPosition *BackRepoPositionStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Position" sheet all PositionDB instances

type BackRepoStruct

type BackRepoStruct struct {
	// insertion point for per struct back repo declarations
	BackRepoClassdiagram BackRepoClassdiagramStruct

	BackRepoDiagramPackage BackRepoDiagramPackageStruct

	BackRepoField BackRepoFieldStruct

	BackRepoGongEnumShape BackRepoGongEnumShapeStruct

	BackRepoGongEnumValueEntry BackRepoGongEnumValueEntryStruct

	BackRepoGongStructShape BackRepoGongStructShapeStruct

	BackRepoLink BackRepoLinkStruct

	BackRepoNoteShape BackRepoNoteShapeStruct

	BackRepoNoteShapeLink BackRepoNoteShapeLinkStruct

	BackRepoPosition BackRepoPositionStruct

	BackRepoUmlState BackRepoUmlStateStruct

	BackRepoUmlsc BackRepoUmlscStruct

	BackRepoVertice BackRepoVerticeStruct

	CommitFromBackNb uint // records commit increments when performed by the back

	PushFromFrontNb uint // records commit increments when performed by the front
	// contains filtered or unexported fields
}

BackRepoStruct supports callback functions

func NewBackRepo

func NewBackRepo(stage *models.StageStruct, filename string) (backRepo *BackRepoStruct)

func (*BackRepoStruct) Backup

func (backRepo *BackRepoStruct) Backup(stage *models.StageStruct, dirPath string)

Backup the BackRepoStruct

func (*BackRepoStruct) BackupXL

func (backRepo *BackRepoStruct) BackupXL(stage *models.StageStruct, dirPath string)

Backup in XL the BackRepoStruct

func (*BackRepoStruct) Checkout

func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)

Checkout the database into the stage

func (*BackRepoStruct) CheckoutClassdiagram

func (backRepo *BackRepoStruct) CheckoutClassdiagram(classdiagram *models.Classdiagram)

CommitClassdiagram allows checkout of a single classdiagram (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutDiagramPackage

func (backRepo *BackRepoStruct) CheckoutDiagramPackage(diagrampackage *models.DiagramPackage)

CommitDiagramPackage allows checkout of a single diagrampackage (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutField

func (backRepo *BackRepoStruct) CheckoutField(field *models.Field)

CommitField allows checkout of a single field (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongEnumShape

func (backRepo *BackRepoStruct) CheckoutGongEnumShape(gongenumshape *models.GongEnumShape)

CommitGongEnumShape allows checkout of a single gongenumshape (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongEnumValueEntry

func (backRepo *BackRepoStruct) CheckoutGongEnumValueEntry(gongenumvalueentry *models.GongEnumValueEntry)

CommitGongEnumValueEntry allows checkout of a single gongenumvalueentry (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongStructShape

func (backRepo *BackRepoStruct) CheckoutGongStructShape(gongstructshape *models.GongStructShape)

CommitGongStructShape allows checkout of a single gongstructshape (if already staged and with a BackRepo id)

func (backRepo *BackRepoStruct) CheckoutLink(link *models.Link)

CommitLink allows checkout of a single link (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutNoteShape

func (backRepo *BackRepoStruct) CheckoutNoteShape(noteshape *models.NoteShape)

CommitNoteShape allows checkout of a single noteshape (if already staged and with a BackRepo id)

func (backRepo *BackRepoStruct) CheckoutNoteShapeLink(noteshapelink *models.NoteShapeLink)

CommitNoteShapeLink allows checkout of a single noteshapelink (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPosition

func (backRepo *BackRepoStruct) CheckoutPosition(position *models.Position)

CommitPosition allows checkout of a single position (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutUmlState

func (backRepo *BackRepoStruct) CheckoutUmlState(umlstate *models.UmlState)

CommitUmlState allows checkout of a single umlstate (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutUmlsc

func (backRepo *BackRepoStruct) CheckoutUmlsc(umlsc *models.Umlsc)

CommitUmlsc allows checkout of a single umlsc (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutVertice

func (backRepo *BackRepoStruct) CheckoutVertice(vertice *models.Vertice)

CommitVertice allows checkout of a single vertice (if already staged and with a BackRepo id)

func (*BackRepoStruct) Commit

func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)

Commit the BackRepoStruct inner variables and link to the database

func (*BackRepoStruct) CommitClassdiagram

func (backRepo *BackRepoStruct) CommitClassdiagram(classdiagram *models.Classdiagram)

CommitClassdiagram allows commit of a single classdiagram (if already staged)

func (*BackRepoStruct) CommitDiagramPackage

func (backRepo *BackRepoStruct) CommitDiagramPackage(diagrampackage *models.DiagramPackage)

CommitDiagramPackage allows commit of a single diagrampackage (if already staged)

func (*BackRepoStruct) CommitField

func (backRepo *BackRepoStruct) CommitField(field *models.Field)

CommitField allows commit of a single field (if already staged)

func (*BackRepoStruct) CommitGongEnumShape

func (backRepo *BackRepoStruct) CommitGongEnumShape(gongenumshape *models.GongEnumShape)

CommitGongEnumShape allows commit of a single gongenumshape (if already staged)

func (*BackRepoStruct) CommitGongEnumValueEntry

func (backRepo *BackRepoStruct) CommitGongEnumValueEntry(gongenumvalueentry *models.GongEnumValueEntry)

CommitGongEnumValueEntry allows commit of a single gongenumvalueentry (if already staged)

func (*BackRepoStruct) CommitGongStructShape

func (backRepo *BackRepoStruct) CommitGongStructShape(gongstructshape *models.GongStructShape)

CommitGongStructShape allows commit of a single gongstructshape (if already staged)

func (backRepo *BackRepoStruct) CommitLink(link *models.Link)

CommitLink allows commit of a single link (if already staged)

func (*BackRepoStruct) CommitNoteShape

func (backRepo *BackRepoStruct) CommitNoteShape(noteshape *models.NoteShape)

CommitNoteShape allows commit of a single noteshape (if already staged)

func (backRepo *BackRepoStruct) CommitNoteShapeLink(noteshapelink *models.NoteShapeLink)

CommitNoteShapeLink allows commit of a single noteshapelink (if already staged)

func (*BackRepoStruct) CommitPosition

func (backRepo *BackRepoStruct) CommitPosition(position *models.Position)

CommitPosition allows commit of a single position (if already staged)

func (*BackRepoStruct) CommitUmlState

func (backRepo *BackRepoStruct) CommitUmlState(umlstate *models.UmlState)

CommitUmlState allows commit of a single umlstate (if already staged)

func (*BackRepoStruct) CommitUmlsc

func (backRepo *BackRepoStruct) CommitUmlsc(umlsc *models.Umlsc)

CommitUmlsc allows commit of a single umlsc (if already staged)

func (*BackRepoStruct) CommitVertice

func (backRepo *BackRepoStruct) CommitVertice(vertice *models.Vertice)

CommitVertice allows commit of a single vertice (if already staged)

func (*BackRepoStruct) GetLastCommitFromBackNb

func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint

func (*BackRepoStruct) GetLastPushFromFrontNb

func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint

func (*BackRepoStruct) GetStage

func (backRepo *BackRepoStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoStruct) IncrementCommitFromBackNb

func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint

func (*BackRepoStruct) IncrementPushFromFrontNb

func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint

func (*BackRepoStruct) Restore

func (backRepo *BackRepoStruct) Restore(stage *models.StageStruct, dirPath string)

Restore the database into the back repo

func (*BackRepoStruct) RestoreXL

func (backRepo *BackRepoStruct) RestoreXL(stage *models.StageStruct, dirPath string)

Restore the database into the back repo

func (*BackRepoStruct) SubscribeToCommitNb

func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb() <-chan int

type BackRepoUmlStateStruct

type BackRepoUmlStateStruct struct {
	// stores UmlStateDB according to their gorm ID
	Map_UmlStateDBID_UmlStateDB map[uint]*UmlStateDB

	// stores UmlStateDB ID according to UmlState address
	Map_UmlStatePtr_UmlStateDBID map[*models.UmlState]uint

	// stores UmlState according to their gorm ID
	Map_UmlStateDBID_UmlStatePtr map[uint]*models.UmlState
	// contains filtered or unexported fields
}

func (*BackRepoUmlStateStruct) Backup

func (backRepoUmlState *BackRepoUmlStateStruct) Backup(dirPath string)

Backup generates a json file from a slice of all UmlStateDB instances in the backrepo

func (*BackRepoUmlStateStruct) BackupXL

func (backRepoUmlState *BackRepoUmlStateStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all UmlStateDB instances in the backrepo

func (*BackRepoUmlStateStruct) CheckoutPhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseOne() (Error error)

BackRepoUmlState.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoUmlStateStruct) CheckoutPhaseOneInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseOneInstance(umlstateDB *UmlStateDB) (Error error)

CheckoutPhaseOneInstance takes a umlstateDB that has been found in the DB, updates the backRepo and stages the models version of the umlstateDB

func (*BackRepoUmlStateStruct) CheckoutPhaseTwo

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoUmlState.CheckoutPhaseTwo Checkouts all staged instances of UmlState to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlStateStruct) CheckoutPhaseTwoInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, umlstateDB *UmlStateDB) (Error error)

BackRepoUmlState.CheckoutPhaseTwoInstance Checkouts staged instances of UmlState to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlStateStruct) CommitDeleteInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoUmlState.CommitDeleteInstance commits deletion of UmlState to the BackRepo

func (*BackRepoUmlStateStruct) CommitPhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoUmlState.CommitPhaseOne commits all staged instances of UmlState to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoUmlStateStruct) CommitPhaseOneInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseOneInstance(umlstate *models.UmlState) (Error error)

BackRepoUmlState.CommitPhaseOneInstance commits umlstate staged instances of UmlState to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoUmlStateStruct) CommitPhaseTwo

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoUmlState.CommitPhaseTwo commits all staged instances of UmlState to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlStateStruct) CommitPhaseTwoInstance

func (backRepoUmlState *BackRepoUmlStateStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, umlstate *models.UmlState) (Error error)

BackRepoUmlState.CommitPhaseTwoInstance commits {{structname }} of models.UmlState to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlStateStruct) GetDB

func (backRepoUmlState *BackRepoUmlStateStruct) GetDB() *gorm.DB

func (*BackRepoUmlStateStruct) GetStage

func (backRepoUmlState *BackRepoUmlStateStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoUmlStateStruct) GetUmlStateDBFromUmlStatePtr

func (backRepoUmlState *BackRepoUmlStateStruct) GetUmlStateDBFromUmlStatePtr(umlstate *models.UmlState) (umlstateDB *UmlStateDB)

GetUmlStateDBFromUmlStatePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoUmlStateStruct) ResetReversePointers

func (backRepoUmlState *BackRepoUmlStateStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoUmlState.ResetReversePointers commits all staged instances of UmlState to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlStateStruct) ResetReversePointersInstance

func (backRepoUmlState *BackRepoUmlStateStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, umlstate *models.UmlState) (Error error)

func (*BackRepoUmlStateStruct) RestorePhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "UmlStateDB.json" in dirPath that stores an array of UmlStateDB and stores it in the database the map BackRepoUmlStateid_atBckpTime_newID is updated accordingly

func (*BackRepoUmlStateStruct) RestorePhaseTwo

func (backRepoUmlState *BackRepoUmlStateStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<UmlState>id_atBckpTime_newID to compute new index

func (*BackRepoUmlStateStruct) RestoreXLPhaseOne

func (backRepoUmlState *BackRepoUmlStateStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "UmlState" sheet all UmlStateDB instances

type BackRepoUmlscStruct

type BackRepoUmlscStruct struct {
	// stores UmlscDB according to their gorm ID
	Map_UmlscDBID_UmlscDB map[uint]*UmlscDB

	// stores UmlscDB ID according to Umlsc address
	Map_UmlscPtr_UmlscDBID map[*models.Umlsc]uint

	// stores Umlsc according to their gorm ID
	Map_UmlscDBID_UmlscPtr map[uint]*models.Umlsc
	// contains filtered or unexported fields
}

func (*BackRepoUmlscStruct) Backup

func (backRepoUmlsc *BackRepoUmlscStruct) Backup(dirPath string)

Backup generates a json file from a slice of all UmlscDB instances in the backrepo

func (*BackRepoUmlscStruct) BackupXL

func (backRepoUmlsc *BackRepoUmlscStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all UmlscDB instances in the backrepo

func (*BackRepoUmlscStruct) CheckoutPhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseOne() (Error error)

BackRepoUmlsc.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoUmlscStruct) CheckoutPhaseOneInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseOneInstance(umlscDB *UmlscDB) (Error error)

CheckoutPhaseOneInstance takes a umlscDB that has been found in the DB, updates the backRepo and stages the models version of the umlscDB

func (*BackRepoUmlscStruct) CheckoutPhaseTwo

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoUmlsc.CheckoutPhaseTwo Checkouts all staged instances of Umlsc to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlscStruct) CheckoutPhaseTwoInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, umlscDB *UmlscDB) (Error error)

BackRepoUmlsc.CheckoutPhaseTwoInstance Checkouts staged instances of Umlsc to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlscStruct) CommitDeleteInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoUmlsc.CommitDeleteInstance commits deletion of Umlsc to the BackRepo

func (*BackRepoUmlscStruct) CommitPhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoUmlsc.CommitPhaseOne commits all staged instances of Umlsc to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoUmlscStruct) CommitPhaseOneInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseOneInstance(umlsc *models.Umlsc) (Error error)

BackRepoUmlsc.CommitPhaseOneInstance commits umlsc staged instances of Umlsc to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoUmlscStruct) CommitPhaseTwo

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoUmlsc.CommitPhaseTwo commits all staged instances of Umlsc to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlscStruct) CommitPhaseTwoInstance

func (backRepoUmlsc *BackRepoUmlscStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, umlsc *models.Umlsc) (Error error)

BackRepoUmlsc.CommitPhaseTwoInstance commits {{structname }} of models.Umlsc to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlscStruct) GetDB

func (backRepoUmlsc *BackRepoUmlscStruct) GetDB() *gorm.DB

func (*BackRepoUmlscStruct) GetStage

func (backRepoUmlsc *BackRepoUmlscStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoUmlscStruct) GetUmlscDBFromUmlscPtr

func (backRepoUmlsc *BackRepoUmlscStruct) GetUmlscDBFromUmlscPtr(umlsc *models.Umlsc) (umlscDB *UmlscDB)

GetUmlscDBFromUmlscPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoUmlscStruct) ResetReversePointers

func (backRepoUmlsc *BackRepoUmlscStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoUmlsc.ResetReversePointers commits all staged instances of Umlsc to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoUmlscStruct) ResetReversePointersInstance

func (backRepoUmlsc *BackRepoUmlscStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, umlsc *models.Umlsc) (Error error)

func (*BackRepoUmlscStruct) RestorePhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "UmlscDB.json" in dirPath that stores an array of UmlscDB and stores it in the database the map BackRepoUmlscid_atBckpTime_newID is updated accordingly

func (*BackRepoUmlscStruct) RestorePhaseTwo

func (backRepoUmlsc *BackRepoUmlscStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Umlsc>id_atBckpTime_newID to compute new index

func (*BackRepoUmlscStruct) RestoreXLPhaseOne

func (backRepoUmlsc *BackRepoUmlscStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Umlsc" sheet all UmlscDB instances

type BackRepoVerticeStruct

type BackRepoVerticeStruct struct {
	// stores VerticeDB according to their gorm ID
	Map_VerticeDBID_VerticeDB map[uint]*VerticeDB

	// stores VerticeDB ID according to Vertice address
	Map_VerticePtr_VerticeDBID map[*models.Vertice]uint

	// stores Vertice according to their gorm ID
	Map_VerticeDBID_VerticePtr map[uint]*models.Vertice
	// contains filtered or unexported fields
}

func (*BackRepoVerticeStruct) Backup

func (backRepoVertice *BackRepoVerticeStruct) Backup(dirPath string)

Backup generates a json file from a slice of all VerticeDB instances in the backrepo

func (*BackRepoVerticeStruct) BackupXL

func (backRepoVertice *BackRepoVerticeStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all VerticeDB instances in the backrepo

func (*BackRepoVerticeStruct) CheckoutPhaseOne

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseOne() (Error error)

BackRepoVertice.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoVerticeStruct) CheckoutPhaseOneInstance

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseOneInstance(verticeDB *VerticeDB) (Error error)

CheckoutPhaseOneInstance takes a verticeDB that has been found in the DB, updates the backRepo and stages the models version of the verticeDB

func (*BackRepoVerticeStruct) CheckoutPhaseTwo

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoVertice.CheckoutPhaseTwo Checkouts all staged instances of Vertice to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVerticeStruct) CheckoutPhaseTwoInstance

func (backRepoVertice *BackRepoVerticeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, verticeDB *VerticeDB) (Error error)

BackRepoVertice.CheckoutPhaseTwoInstance Checkouts staged instances of Vertice to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVerticeStruct) CommitDeleteInstance

func (backRepoVertice *BackRepoVerticeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoVertice.CommitDeleteInstance commits deletion of Vertice to the BackRepo

func (*BackRepoVerticeStruct) CommitPhaseOne

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoVertice.CommitPhaseOne commits all staged instances of Vertice to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoVerticeStruct) CommitPhaseOneInstance

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseOneInstance(vertice *models.Vertice) (Error error)

BackRepoVertice.CommitPhaseOneInstance commits vertice staged instances of Vertice to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoVerticeStruct) CommitPhaseTwo

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoVertice.CommitPhaseTwo commits all staged instances of Vertice to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVerticeStruct) CommitPhaseTwoInstance

func (backRepoVertice *BackRepoVerticeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, vertice *models.Vertice) (Error error)

BackRepoVertice.CommitPhaseTwoInstance commits {{structname }} of models.Vertice to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVerticeStruct) GetDB

func (backRepoVertice *BackRepoVerticeStruct) GetDB() *gorm.DB

func (*BackRepoVerticeStruct) GetStage

func (backRepoVertice *BackRepoVerticeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoVerticeStruct) GetVerticeDBFromVerticePtr

func (backRepoVertice *BackRepoVerticeStruct) GetVerticeDBFromVerticePtr(vertice *models.Vertice) (verticeDB *VerticeDB)

GetVerticeDBFromVerticePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoVerticeStruct) ResetReversePointers

func (backRepoVertice *BackRepoVerticeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoVertice.ResetReversePointers commits all staged instances of Vertice to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoVerticeStruct) ResetReversePointersInstance

func (backRepoVertice *BackRepoVerticeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, vertice *models.Vertice) (Error error)

func (*BackRepoVerticeStruct) RestorePhaseOne

func (backRepoVertice *BackRepoVerticeStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "VerticeDB.json" in dirPath that stores an array of VerticeDB and stores it in the database the map BackRepoVerticeid_atBckpTime_newID is updated accordingly

func (*BackRepoVerticeStruct) RestorePhaseTwo

func (backRepoVertice *BackRepoVerticeStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Vertice>id_atBckpTime_newID to compute new index

func (*BackRepoVerticeStruct) RestoreXLPhaseOne

func (backRepoVertice *BackRepoVerticeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Vertice" sheet all VerticeDB instances

type ClassdiagramAPI

type ClassdiagramAPI struct {
	gorm.Model

	models.Classdiagram_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	ClassdiagramPointersEncoding ClassdiagramPointersEncoding
}

ClassdiagramAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model classdiagramAPI

type ClassdiagramDB

type ClassdiagramDB struct {
	gorm.Model

	// Declation for basic field classdiagramDB.Name
	Name_Data sql.NullString

	// Declation for basic field classdiagramDB.IsInDrawMode
	// provide the sql storage for the boolan
	IsInDrawMode_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	ClassdiagramPointersEncoding
}

ClassdiagramDB describes a classdiagram in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model classdiagramDB

func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagram

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram(classdiagram *models.Classdiagram)

CopyBasicFieldsFromClassdiagram

func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagramWOP(classdiagram *ClassdiagramWOP)

CopyBasicFieldsFromClassdiagramWOP

func (*ClassdiagramDB) CopyBasicFieldsFromClassdiagram_WOP

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsFromClassdiagram_WOP(classdiagram *models.Classdiagram_WOP)

CopyBasicFieldsFromClassdiagram_WOP

func (*ClassdiagramDB) CopyBasicFieldsToClassdiagram

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram(classdiagram *models.Classdiagram)

CopyBasicFieldsToClassdiagram

func (*ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP(classdiagram *ClassdiagramWOP)

CopyBasicFieldsToClassdiagramWOP

func (*ClassdiagramDB) CopyBasicFieldsToClassdiagram_WOP

func (classdiagramDB *ClassdiagramDB) CopyBasicFieldsToClassdiagram_WOP(classdiagram *models.Classdiagram_WOP)

CopyBasicFieldsToClassdiagram_WOP

func (*ClassdiagramDB) DecodePointers

func (classdiagramDB *ClassdiagramDB) DecodePointers(backRepo *BackRepoStruct, classdiagram *models.Classdiagram)

type ClassdiagramDBResponse

type ClassdiagramDBResponse struct {
	ClassdiagramDB
}

ClassdiagramDBResponse provides response swagger:response classdiagramDBResponse

type ClassdiagramDBs

type ClassdiagramDBs []ClassdiagramDB

ClassdiagramDBs arrays classdiagramDBs swagger:response classdiagramDBsResponse

type ClassdiagramPointersEncoding

type ClassdiagramPointersEncoding struct {

	// field GongStructShapes is a slice of pointers to another Struct (optional or 0..1)
	GongStructShapes IntSlice `gorm:"type:TEXT"`

	// field GongEnumShapes is a slice of pointers to another Struct (optional or 0..1)
	GongEnumShapes IntSlice `gorm:"type:TEXT"`

	// field NoteShapes is a slice of pointers to another Struct (optional or 0..1)
	NoteShapes IntSlice `gorm:"type:TEXT"`
}

ClassdiagramPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type ClassdiagramWOP

type ClassdiagramWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	IsInDrawMode bool `xlsx:"2"`
}

ClassdiagramWOP is a Classdiagram without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type DiagramPackageAPI

type DiagramPackageAPI struct {
	gorm.Model

	models.DiagramPackage_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	DiagramPackagePointersEncoding DiagramPackagePointersEncoding
}

DiagramPackageAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model diagrampackageAPI

type DiagramPackageDB

type DiagramPackageDB struct {
	gorm.Model

	// Declation for basic field diagrampackageDB.Name
	Name_Data sql.NullString

	// Declation for basic field diagrampackageDB.Path
	Path_Data sql.NullString

	// Declation for basic field diagrampackageDB.GongModelPath
	GongModelPath_Data sql.NullString

	// Declation for basic field diagrampackageDB.IsEditable
	// provide the sql storage for the boolan
	IsEditable_Data sql.NullBool

	// Declation for basic field diagrampackageDB.IsReloaded
	// provide the sql storage for the boolan
	IsReloaded_Data sql.NullBool

	// Declation for basic field diagrampackageDB.AbsolutePathToDiagramPackage
	AbsolutePathToDiagramPackage_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	DiagramPackagePointersEncoding
}

DiagramPackageDB describes a diagrampackage in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model diagrampackageDB

func (*DiagramPackageDB) CopyBasicFieldsFromDiagramPackage

func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackage(diagrampackage *models.DiagramPackage)

CopyBasicFieldsFromDiagramPackage

func (*DiagramPackageDB) CopyBasicFieldsFromDiagramPackageWOP

func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackageWOP(diagrampackage *DiagramPackageWOP)

CopyBasicFieldsFromDiagramPackageWOP

func (*DiagramPackageDB) CopyBasicFieldsFromDiagramPackage_WOP

func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsFromDiagramPackage_WOP(diagrampackage *models.DiagramPackage_WOP)

CopyBasicFieldsFromDiagramPackage_WOP

func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackage

func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackage(diagrampackage *models.DiagramPackage)

CopyBasicFieldsToDiagramPackage

func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackageWOP

func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackageWOP(diagrampackage *DiagramPackageWOP)

CopyBasicFieldsToDiagramPackageWOP

func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackage_WOP

func (diagrampackageDB *DiagramPackageDB) CopyBasicFieldsToDiagramPackage_WOP(diagrampackage *models.DiagramPackage_WOP)

CopyBasicFieldsToDiagramPackage_WOP

func (*DiagramPackageDB) DecodePointers

func (diagrampackageDB *DiagramPackageDB) DecodePointers(backRepo *BackRepoStruct, diagrampackage *models.DiagramPackage)

type DiagramPackageDBResponse

type DiagramPackageDBResponse struct {
	DiagramPackageDB
}

DiagramPackageDBResponse provides response swagger:response diagrampackageDBResponse

type DiagramPackageDBs

type DiagramPackageDBs []DiagramPackageDB

DiagramPackageDBs arrays diagrampackageDBs swagger:response diagrampackageDBsResponse

type DiagramPackagePointersEncoding

type DiagramPackagePointersEncoding struct {

	// field Classdiagrams is a slice of pointers to another Struct (optional or 0..1)
	Classdiagrams IntSlice `gorm:"type:TEXT"`

	// field SelectedClassdiagram is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	SelectedClassdiagramID sql.NullInt64

	// field Umlscs is a slice of pointers to another Struct (optional or 0..1)
	Umlscs IntSlice `gorm:"type:TEXT"`
}

DiagramPackagePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type DiagramPackageWOP

type DiagramPackageWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Path string `xlsx:"2"`

	GongModelPath string `xlsx:"3"`

	IsEditable bool `xlsx:"4"`

	IsReloaded bool `xlsx:"5"`

	AbsolutePathToDiagramPackage string `xlsx:"6"`
}

DiagramPackageWOP is a DiagramPackage without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type FieldAPI

type FieldAPI struct {
	gorm.Model

	models.Field_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	FieldPointersEncoding FieldPointersEncoding
}

FieldAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model fieldAPI

type FieldDB

type FieldDB struct {
	gorm.Model

	// Declation for basic field fieldDB.Name
	Name_Data sql.NullString

	// Declation for basic field fieldDB.Identifier
	Identifier_Data sql.NullString

	// Declation for basic field fieldDB.FieldTypeAsString
	FieldTypeAsString_Data sql.NullString

	// Declation for basic field fieldDB.Structname
	Structname_Data sql.NullString

	// Declation for basic field fieldDB.Fieldtypename
	Fieldtypename_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	FieldPointersEncoding
}

FieldDB describes a field in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model fieldDB

func (*FieldDB) CopyBasicFieldsFromField

func (fieldDB *FieldDB) CopyBasicFieldsFromField(field *models.Field)

CopyBasicFieldsFromField

func (*FieldDB) CopyBasicFieldsFromFieldWOP

func (fieldDB *FieldDB) CopyBasicFieldsFromFieldWOP(field *FieldWOP)

CopyBasicFieldsFromFieldWOP

func (*FieldDB) CopyBasicFieldsFromField_WOP

func (fieldDB *FieldDB) CopyBasicFieldsFromField_WOP(field *models.Field_WOP)

CopyBasicFieldsFromField_WOP

func (*FieldDB) CopyBasicFieldsToField

func (fieldDB *FieldDB) CopyBasicFieldsToField(field *models.Field)

CopyBasicFieldsToField

func (*FieldDB) CopyBasicFieldsToFieldWOP

func (fieldDB *FieldDB) CopyBasicFieldsToFieldWOP(field *FieldWOP)

CopyBasicFieldsToFieldWOP

func (*FieldDB) CopyBasicFieldsToField_WOP

func (fieldDB *FieldDB) CopyBasicFieldsToField_WOP(field *models.Field_WOP)

CopyBasicFieldsToField_WOP

func (*FieldDB) DecodePointers

func (fieldDB *FieldDB) DecodePointers(backRepo *BackRepoStruct, field *models.Field)

type FieldDBResponse

type FieldDBResponse struct {
	FieldDB
}

FieldDBResponse provides response swagger:response fieldDBResponse

type FieldDBs

type FieldDBs []FieldDB

FieldDBs arrays fieldDBs swagger:response fieldDBsResponse

type FieldPointersEncoding

type FieldPointersEncoding struct {
}

FieldPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type FieldWOP

type FieldWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`

	FieldTypeAsString string `xlsx:"3"`

	Structname string `xlsx:"4"`

	Fieldtypename string `xlsx:"5"`
}

FieldWOP is a Field without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongEnumShapeAPI

type GongEnumShapeAPI struct {
	gorm.Model

	models.GongEnumShape_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongEnumShapePointersEncoding GongEnumShapePointersEncoding
}

GongEnumShapeAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongenumshapeAPI

type GongEnumShapeDB

type GongEnumShapeDB struct {
	gorm.Model

	// Declation for basic field gongenumshapeDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongenumshapeDB.Identifier
	Identifier_Data sql.NullString

	// Declation for basic field gongenumshapeDB.Width
	Width_Data sql.NullFloat64

	// Declation for basic field gongenumshapeDB.Height
	Height_Data sql.NullFloat64

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongEnumShapePointersEncoding
}

GongEnumShapeDB describes a gongenumshape in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongenumshapeDB

func (*GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape

func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape(gongenumshape *models.GongEnumShape)

CopyBasicFieldsFromGongEnumShape

func (*GongEnumShapeDB) CopyBasicFieldsFromGongEnumShapeWOP

func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShapeWOP(gongenumshape *GongEnumShapeWOP)

CopyBasicFieldsFromGongEnumShapeWOP

func (*GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape_WOP

func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsFromGongEnumShape_WOP(gongenumshape *models.GongEnumShape_WOP)

CopyBasicFieldsFromGongEnumShape_WOP

func (*GongEnumShapeDB) CopyBasicFieldsToGongEnumShape

func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShape(gongenumshape *models.GongEnumShape)

CopyBasicFieldsToGongEnumShape

func (*GongEnumShapeDB) CopyBasicFieldsToGongEnumShapeWOP

func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShapeWOP(gongenumshape *GongEnumShapeWOP)

CopyBasicFieldsToGongEnumShapeWOP

func (*GongEnumShapeDB) CopyBasicFieldsToGongEnumShape_WOP

func (gongenumshapeDB *GongEnumShapeDB) CopyBasicFieldsToGongEnumShape_WOP(gongenumshape *models.GongEnumShape_WOP)

CopyBasicFieldsToGongEnumShape_WOP

func (*GongEnumShapeDB) DecodePointers

func (gongenumshapeDB *GongEnumShapeDB) DecodePointers(backRepo *BackRepoStruct, gongenumshape *models.GongEnumShape)

type GongEnumShapeDBResponse

type GongEnumShapeDBResponse struct {
	GongEnumShapeDB
}

GongEnumShapeDBResponse provides response swagger:response gongenumshapeDBResponse

type GongEnumShapeDBs

type GongEnumShapeDBs []GongEnumShapeDB

GongEnumShapeDBs arrays gongenumshapeDBs swagger:response gongenumshapeDBsResponse

type GongEnumShapePointersEncoding

type GongEnumShapePointersEncoding struct {

	// field Position is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	PositionID sql.NullInt64

	// field GongEnumValueEntrys is a slice of pointers to another Struct (optional or 0..1)
	GongEnumValueEntrys IntSlice `gorm:"type:TEXT"`
}

GongEnumShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongEnumShapeWOP

type GongEnumShapeWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`

	Width float64 `xlsx:"3"`

	Height float64 `xlsx:"4"`
}

GongEnumShapeWOP is a GongEnumShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongEnumValueEntryAPI

type GongEnumValueEntryAPI struct {
	gorm.Model

	models.GongEnumValueEntry_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongEnumValueEntryPointersEncoding GongEnumValueEntryPointersEncoding
}

GongEnumValueEntryAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongenumvalueentryAPI

type GongEnumValueEntryDB

type GongEnumValueEntryDB struct {
	gorm.Model

	// Declation for basic field gongenumvalueentryDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongenumvalueentryDB.Identifier
	Identifier_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongEnumValueEntryPointersEncoding
}

GongEnumValueEntryDB describes a gongenumvalueentry in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongenumvalueentryDB

func (*GongEnumValueEntryDB) CopyBasicFieldsFromGongEnumValueEntry

func (gongenumvalueentryDB *GongEnumValueEntryDB) CopyBasicFieldsFromGongEnumValueEntry(gongenumvalueentry *models.GongEnumValueEntry)

CopyBasicFieldsFromGongEnumValueEntry

func (*GongEnumValueEntryDB) CopyBasicFieldsFromGongEnumValueEntryWOP

func (gongenumvalueentryDB *GongEnumValueEntryDB) CopyBasicFieldsFromGongEnumValueEntryWOP(gongenumvalueentry *GongEnumValueEntryWOP)

CopyBasicFieldsFromGongEnumValueEntryWOP

func (*GongEnumValueEntryDB) CopyBasicFieldsFromGongEnumValueEntry_WOP

func (gongenumvalueentryDB *GongEnumValueEntryDB) CopyBasicFieldsFromGongEnumValueEntry_WOP(gongenumvalueentry *models.GongEnumValueEntry_WOP)

CopyBasicFieldsFromGongEnumValueEntry_WOP

func (*GongEnumValueEntryDB) CopyBasicFieldsToGongEnumValueEntry

func (gongenumvalueentryDB *GongEnumValueEntryDB) CopyBasicFieldsToGongEnumValueEntry(gongenumvalueentry *models.GongEnumValueEntry)

CopyBasicFieldsToGongEnumValueEntry

func (*GongEnumValueEntryDB) CopyBasicFieldsToGongEnumValueEntryWOP

func (gongenumvalueentryDB *GongEnumValueEntryDB) CopyBasicFieldsToGongEnumValueEntryWOP(gongenumvalueentry *GongEnumValueEntryWOP)

CopyBasicFieldsToGongEnumValueEntryWOP

func (*GongEnumValueEntryDB) CopyBasicFieldsToGongEnumValueEntry_WOP

func (gongenumvalueentryDB *GongEnumValueEntryDB) CopyBasicFieldsToGongEnumValueEntry_WOP(gongenumvalueentry *models.GongEnumValueEntry_WOP)

CopyBasicFieldsToGongEnumValueEntry_WOP

func (*GongEnumValueEntryDB) DecodePointers

func (gongenumvalueentryDB *GongEnumValueEntryDB) DecodePointers(backRepo *BackRepoStruct, gongenumvalueentry *models.GongEnumValueEntry)

type GongEnumValueEntryDBResponse

type GongEnumValueEntryDBResponse struct {
	GongEnumValueEntryDB
}

GongEnumValueEntryDBResponse provides response swagger:response gongenumvalueentryDBResponse

type GongEnumValueEntryDBs

type GongEnumValueEntryDBs []GongEnumValueEntryDB

GongEnumValueEntryDBs arrays gongenumvalueentryDBs swagger:response gongenumvalueentryDBsResponse

type GongEnumValueEntryPointersEncoding

type GongEnumValueEntryPointersEncoding struct {
}

GongEnumValueEntryPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongEnumValueEntryWOP

type GongEnumValueEntryWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`
}

GongEnumValueEntryWOP is a GongEnumValueEntry without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongStructShapeAPI

type GongStructShapeAPI struct {
	gorm.Model

	models.GongStructShape_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongStructShapePointersEncoding GongStructShapePointersEncoding
}

GongStructShapeAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongstructshapeAPI

type GongStructShapeDB

type GongStructShapeDB struct {
	gorm.Model

	// Declation for basic field gongstructshapeDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongstructshapeDB.Identifier
	Identifier_Data sql.NullString

	// Declation for basic field gongstructshapeDB.ShowNbInstances
	// provide the sql storage for the boolan
	ShowNbInstances_Data sql.NullBool

	// Declation for basic field gongstructshapeDB.NbInstances
	NbInstances_Data sql.NullInt64

	// Declation for basic field gongstructshapeDB.Width
	Width_Data sql.NullFloat64

	// Declation for basic field gongstructshapeDB.Height
	Height_Data sql.NullFloat64

	// Declation for basic field gongstructshapeDB.IsSelected
	// provide the sql storage for the boolan
	IsSelected_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongStructShapePointersEncoding
}

GongStructShapeDB describes a gongstructshape in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongstructshapeDB

func (*GongStructShapeDB) CopyBasicFieldsFromGongStructShape

func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShape(gongstructshape *models.GongStructShape)

CopyBasicFieldsFromGongStructShape

func (*GongStructShapeDB) CopyBasicFieldsFromGongStructShapeWOP

func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShapeWOP(gongstructshape *GongStructShapeWOP)

CopyBasicFieldsFromGongStructShapeWOP

func (*GongStructShapeDB) CopyBasicFieldsFromGongStructShape_WOP

func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsFromGongStructShape_WOP(gongstructshape *models.GongStructShape_WOP)

CopyBasicFieldsFromGongStructShape_WOP

func (*GongStructShapeDB) CopyBasicFieldsToGongStructShape

func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShape(gongstructshape *models.GongStructShape)

CopyBasicFieldsToGongStructShape

func (*GongStructShapeDB) CopyBasicFieldsToGongStructShapeWOP

func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShapeWOP(gongstructshape *GongStructShapeWOP)

CopyBasicFieldsToGongStructShapeWOP

func (*GongStructShapeDB) CopyBasicFieldsToGongStructShape_WOP

func (gongstructshapeDB *GongStructShapeDB) CopyBasicFieldsToGongStructShape_WOP(gongstructshape *models.GongStructShape_WOP)

CopyBasicFieldsToGongStructShape_WOP

func (*GongStructShapeDB) DecodePointers

func (gongstructshapeDB *GongStructShapeDB) DecodePointers(backRepo *BackRepoStruct, gongstructshape *models.GongStructShape)

type GongStructShapeDBResponse

type GongStructShapeDBResponse struct {
	GongStructShapeDB
}

GongStructShapeDBResponse provides response swagger:response gongstructshapeDBResponse

type GongStructShapeDBs

type GongStructShapeDBs []GongStructShapeDB

GongStructShapeDBs arrays gongstructshapeDBs swagger:response gongstructshapeDBsResponse

type GongStructShapePointersEncoding

type GongStructShapePointersEncoding struct {

	// field Position is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	PositionID sql.NullInt64

	// field Fields is a slice of pointers to another Struct (optional or 0..1)
	Fields IntSlice `gorm:"type:TEXT"`

	// field Links is a slice of pointers to another Struct (optional or 0..1)
	Links IntSlice `gorm:"type:TEXT"`
}

GongStructShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongStructShapeWOP

type GongStructShapeWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`

	ShowNbInstances bool `xlsx:"3"`

	NbInstances int `xlsx:"4"`

	Width float64 `xlsx:"5"`

	Height float64 `xlsx:"6"`

	IsSelected bool `xlsx:"7"`
}

GongStructShapeWOP is a GongStructShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongstructDB

type GongstructDB interface {
	// insertion point for generic types
	// "int" is present to handle the case when no struct is present
	int | ClassdiagramDB | DiagramPackageDB | FieldDB | GongEnumShapeDB | GongEnumValueEntryDB | GongStructShapeDB | LinkDB | NoteShapeDB | NoteShapeLinkDB | PositionDB | UmlStateDB | UmlscDB | VerticeDB
}

type IntSlice

type IntSlice []int

func (*IntSlice) Scan

func (s *IntSlice) Scan(value interface{}) error

Scan makes IntSlice implement the sql.Scanner interface.

func (IntSlice) Value

func (s IntSlice) Value() (driver.Value, error)

Value makes IntSlice implement the driver.Valuer interface.

type LinkAPI

type LinkAPI struct {
	gorm.Model

	models.Link_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	LinkPointersEncoding LinkPointersEncoding
}

LinkAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model linkAPI

type LinkDB

type LinkDB struct {
	gorm.Model

	// Declation for basic field linkDB.Name
	Name_Data sql.NullString

	// Declation for basic field linkDB.Identifier
	Identifier_Data sql.NullString

	// Declation for basic field linkDB.Fieldtypename
	Fieldtypename_Data sql.NullString

	// Declation for basic field linkDB.FieldOffsetX
	FieldOffsetX_Data sql.NullFloat64

	// Declation for basic field linkDB.FieldOffsetY
	FieldOffsetY_Data sql.NullFloat64

	// Declation for basic field linkDB.TargetMultiplicity
	TargetMultiplicity_Data sql.NullString

	// Declation for basic field linkDB.TargetMultiplicityOffsetX
	TargetMultiplicityOffsetX_Data sql.NullFloat64

	// Declation for basic field linkDB.TargetMultiplicityOffsetY
	TargetMultiplicityOffsetY_Data sql.NullFloat64

	// Declation for basic field linkDB.SourceMultiplicity
	SourceMultiplicity_Data sql.NullString

	// Declation for basic field linkDB.SourceMultiplicityOffsetX
	SourceMultiplicityOffsetX_Data sql.NullFloat64

	// Declation for basic field linkDB.SourceMultiplicityOffsetY
	SourceMultiplicityOffsetY_Data sql.NullFloat64

	// Declation for basic field linkDB.StartOrientation
	StartOrientation_Data sql.NullString

	// Declation for basic field linkDB.StartRatio
	StartRatio_Data sql.NullFloat64

	// Declation for basic field linkDB.EndOrientation
	EndOrientation_Data sql.NullString

	// Declation for basic field linkDB.EndRatio
	EndRatio_Data sql.NullFloat64

	// Declation for basic field linkDB.CornerOffsetRatio
	CornerOffsetRatio_Data sql.NullFloat64

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	LinkPointersEncoding
}

LinkDB describes a link in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model linkDB

func (linkDB *LinkDB) CopyBasicFieldsFromLink(link *models.Link)

CopyBasicFieldsFromLink

func (*LinkDB) CopyBasicFieldsFromLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsFromLinkWOP(link *LinkWOP)

CopyBasicFieldsFromLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsFromLink_WOP(link *models.Link_WOP)

CopyBasicFieldsFromLink_WOP

func (linkDB *LinkDB) CopyBasicFieldsToLink(link *models.Link)

CopyBasicFieldsToLink

func (*LinkDB) CopyBasicFieldsToLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsToLinkWOP(link *LinkWOP)

CopyBasicFieldsToLinkWOP

func (linkDB *LinkDB) CopyBasicFieldsToLink_WOP(link *models.Link_WOP)

CopyBasicFieldsToLink_WOP

func (*LinkDB) DecodePointers

func (linkDB *LinkDB) DecodePointers(backRepo *BackRepoStruct, link *models.Link)

type LinkDBResponse

type LinkDBResponse struct {
	LinkDB
}

LinkDBResponse provides response swagger:response linkDBResponse

type LinkDBs

type LinkDBs []LinkDB

LinkDBs arrays linkDBs swagger:response linkDBsResponse

type LinkPointersEncoding

type LinkPointersEncoding struct {

	// field Middlevertice is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	MiddleverticeID sql.NullInt64
}

LinkPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type LinkWOP

type LinkWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`

	Fieldtypename string `xlsx:"3"`

	FieldOffsetX float64 `xlsx:"4"`

	FieldOffsetY float64 `xlsx:"5"`

	TargetMultiplicity models.MultiplicityType `xlsx:"6"`

	TargetMultiplicityOffsetX float64 `xlsx:"7"`

	TargetMultiplicityOffsetY float64 `xlsx:"8"`

	SourceMultiplicity models.MultiplicityType `xlsx:"9"`

	SourceMultiplicityOffsetX float64 `xlsx:"10"`

	SourceMultiplicityOffsetY float64 `xlsx:"11"`

	StartOrientation models.OrientationType `xlsx:"12"`

	StartRatio float64 `xlsx:"13"`

	EndOrientation models.OrientationType `xlsx:"14"`

	EndRatio float64 `xlsx:"15"`

	CornerOffsetRatio float64 `xlsx:"16"`
}

LinkWOP is a Link without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type NoteShapeAPI

type NoteShapeAPI struct {
	gorm.Model

	models.NoteShape_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	NoteShapePointersEncoding NoteShapePointersEncoding
}

NoteShapeAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model noteshapeAPI

type NoteShapeDB

type NoteShapeDB struct {
	gorm.Model

	// Declation for basic field noteshapeDB.Name
	Name_Data sql.NullString

	// Declation for basic field noteshapeDB.Identifier
	Identifier_Data sql.NullString

	// Declation for basic field noteshapeDB.Body
	Body_Data sql.NullString

	// Declation for basic field noteshapeDB.BodyHTML
	BodyHTML_Data sql.NullString

	// Declation for basic field noteshapeDB.X
	X_Data sql.NullFloat64

	// Declation for basic field noteshapeDB.Y
	Y_Data sql.NullFloat64

	// Declation for basic field noteshapeDB.Width
	Width_Data sql.NullFloat64

	// Declation for basic field noteshapeDB.Height
	Height_Data sql.NullFloat64

	// Declation for basic field noteshapeDB.Matched
	// provide the sql storage for the boolan
	Matched_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	NoteShapePointersEncoding
}

NoteShapeDB describes a noteshape in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model noteshapeDB

func (*NoteShapeDB) CopyBasicFieldsFromNoteShape

func (noteshapeDB *NoteShapeDB) CopyBasicFieldsFromNoteShape(noteshape *models.NoteShape)

CopyBasicFieldsFromNoteShape

func (*NoteShapeDB) CopyBasicFieldsFromNoteShapeWOP

func (noteshapeDB *NoteShapeDB) CopyBasicFieldsFromNoteShapeWOP(noteshape *NoteShapeWOP)

CopyBasicFieldsFromNoteShapeWOP

func (*NoteShapeDB) CopyBasicFieldsFromNoteShape_WOP

func (noteshapeDB *NoteShapeDB) CopyBasicFieldsFromNoteShape_WOP(noteshape *models.NoteShape_WOP)

CopyBasicFieldsFromNoteShape_WOP

func (*NoteShapeDB) CopyBasicFieldsToNoteShape

func (noteshapeDB *NoteShapeDB) CopyBasicFieldsToNoteShape(noteshape *models.NoteShape)

CopyBasicFieldsToNoteShape

func (*NoteShapeDB) CopyBasicFieldsToNoteShapeWOP

func (noteshapeDB *NoteShapeDB) CopyBasicFieldsToNoteShapeWOP(noteshape *NoteShapeWOP)

CopyBasicFieldsToNoteShapeWOP

func (*NoteShapeDB) CopyBasicFieldsToNoteShape_WOP

func (noteshapeDB *NoteShapeDB) CopyBasicFieldsToNoteShape_WOP(noteshape *models.NoteShape_WOP)

CopyBasicFieldsToNoteShape_WOP

func (*NoteShapeDB) DecodePointers

func (noteshapeDB *NoteShapeDB) DecodePointers(backRepo *BackRepoStruct, noteshape *models.NoteShape)

type NoteShapeDBResponse

type NoteShapeDBResponse struct {
	NoteShapeDB
}

NoteShapeDBResponse provides response swagger:response noteshapeDBResponse

type NoteShapeDBs

type NoteShapeDBs []NoteShapeDB

NoteShapeDBs arrays noteshapeDBs swagger:response noteshapeDBsResponse

type NoteShapeLinkAPI

type NoteShapeLinkAPI struct {
	gorm.Model

	models.NoteShapeLink_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	NoteShapeLinkPointersEncoding NoteShapeLinkPointersEncoding
}

NoteShapeLinkAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model noteshapelinkAPI

type NoteShapeLinkDB

type NoteShapeLinkDB struct {
	gorm.Model

	// Declation for basic field noteshapelinkDB.Name
	Name_Data sql.NullString

	// Declation for basic field noteshapelinkDB.Identifier
	Identifier_Data sql.NullString

	// Declation for basic field noteshapelinkDB.Type
	Type_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	NoteShapeLinkPointersEncoding
}

NoteShapeLinkDB describes a noteshapelink in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model noteshapelinkDB

func (noteshapelinkDB *NoteShapeLinkDB) CopyBasicFieldsFromNoteShapeLink(noteshapelink *models.NoteShapeLink)

CopyBasicFieldsFromNoteShapeLink

func (*NoteShapeLinkDB) CopyBasicFieldsFromNoteShapeLinkWOP

func (noteshapelinkDB *NoteShapeLinkDB) CopyBasicFieldsFromNoteShapeLinkWOP(noteshapelink *NoteShapeLinkWOP)

CopyBasicFieldsFromNoteShapeLinkWOP

func (noteshapelinkDB *NoteShapeLinkDB) CopyBasicFieldsFromNoteShapeLink_WOP(noteshapelink *models.NoteShapeLink_WOP)

CopyBasicFieldsFromNoteShapeLink_WOP

func (noteshapelinkDB *NoteShapeLinkDB) CopyBasicFieldsToNoteShapeLink(noteshapelink *models.NoteShapeLink)

CopyBasicFieldsToNoteShapeLink

func (*NoteShapeLinkDB) CopyBasicFieldsToNoteShapeLinkWOP

func (noteshapelinkDB *NoteShapeLinkDB) CopyBasicFieldsToNoteShapeLinkWOP(noteshapelink *NoteShapeLinkWOP)

CopyBasicFieldsToNoteShapeLinkWOP

func (noteshapelinkDB *NoteShapeLinkDB) CopyBasicFieldsToNoteShapeLink_WOP(noteshapelink *models.NoteShapeLink_WOP)

CopyBasicFieldsToNoteShapeLink_WOP

func (*NoteShapeLinkDB) DecodePointers

func (noteshapelinkDB *NoteShapeLinkDB) DecodePointers(backRepo *BackRepoStruct, noteshapelink *models.NoteShapeLink)

type NoteShapeLinkDBResponse

type NoteShapeLinkDBResponse struct {
	NoteShapeLinkDB
}

NoteShapeLinkDBResponse provides response swagger:response noteshapelinkDBResponse

type NoteShapeLinkDBs

type NoteShapeLinkDBs []NoteShapeLinkDB

NoteShapeLinkDBs arrays noteshapelinkDBs swagger:response noteshapelinkDBsResponse

type NoteShapeLinkPointersEncoding

type NoteShapeLinkPointersEncoding struct {
}

NoteShapeLinkPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type NoteShapeLinkWOP

type NoteShapeLinkWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`

	Type models.NoteShapeLinkType `xlsx:"3"`
}

NoteShapeLinkWOP is a NoteShapeLink without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type NoteShapePointersEncoding

type NoteShapePointersEncoding struct {

	// field NoteShapeLinks is a slice of pointers to another Struct (optional or 0..1)
	NoteShapeLinks IntSlice `gorm:"type:TEXT"`
}

NoteShapePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type NoteShapeWOP

type NoteShapeWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Identifier string `xlsx:"2"`

	Body string `xlsx:"3"`

	BodyHTML string `xlsx:"4"`

	X float64 `xlsx:"5"`

	Y float64 `xlsx:"6"`

	Width float64 `xlsx:"7"`

	Height float64 `xlsx:"8"`

	Matched bool `xlsx:"9"`
}

NoteShapeWOP is a NoteShape without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type PositionAPI

type PositionAPI struct {
	gorm.Model

	models.Position_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	PositionPointersEncoding PositionPointersEncoding
}

PositionAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model positionAPI

type PositionDB

type PositionDB struct {
	gorm.Model

	// Declation for basic field positionDB.X
	X_Data sql.NullFloat64

	// Declation for basic field positionDB.Y
	Y_Data sql.NullFloat64

	// Declation for basic field positionDB.Name
	Name_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	PositionPointersEncoding
}

PositionDB describes a position in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model positionDB

func (*PositionDB) CopyBasicFieldsFromPosition

func (positionDB *PositionDB) CopyBasicFieldsFromPosition(position *models.Position)

CopyBasicFieldsFromPosition

func (*PositionDB) CopyBasicFieldsFromPositionWOP

func (positionDB *PositionDB) CopyBasicFieldsFromPositionWOP(position *PositionWOP)

CopyBasicFieldsFromPositionWOP

func (*PositionDB) CopyBasicFieldsFromPosition_WOP

func (positionDB *PositionDB) CopyBasicFieldsFromPosition_WOP(position *models.Position_WOP)

CopyBasicFieldsFromPosition_WOP

func (*PositionDB) CopyBasicFieldsToPosition

func (positionDB *PositionDB) CopyBasicFieldsToPosition(position *models.Position)

CopyBasicFieldsToPosition

func (*PositionDB) CopyBasicFieldsToPositionWOP

func (positionDB *PositionDB) CopyBasicFieldsToPositionWOP(position *PositionWOP)

CopyBasicFieldsToPositionWOP

func (*PositionDB) CopyBasicFieldsToPosition_WOP

func (positionDB *PositionDB) CopyBasicFieldsToPosition_WOP(position *models.Position_WOP)

CopyBasicFieldsToPosition_WOP

func (*PositionDB) DecodePointers

func (positionDB *PositionDB) DecodePointers(backRepo *BackRepoStruct, position *models.Position)

type PositionDBResponse

type PositionDBResponse struct {
	PositionDB
}

PositionDBResponse provides response swagger:response positionDBResponse

type PositionDBs

type PositionDBs []PositionDB

PositionDBs arrays positionDBs swagger:response positionDBsResponse

type PositionPointersEncoding

type PositionPointersEncoding struct {
}

PositionPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type PositionWOP

type PositionWOP struct {
	ID int `xlsx:"0"`

	X float64 `xlsx:"1"`

	Y float64 `xlsx:"2"`

	Name string `xlsx:"3"`
}

PositionWOP is a Position without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type UmlStateAPI

type UmlStateAPI struct {
	gorm.Model

	models.UmlState_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	UmlStatePointersEncoding UmlStatePointersEncoding
}

UmlStateAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model umlstateAPI

type UmlStateDB

type UmlStateDB struct {
	gorm.Model

	// Declation for basic field umlstateDB.Name
	Name_Data sql.NullString

	// Declation for basic field umlstateDB.X
	X_Data sql.NullFloat64

	// Declation for basic field umlstateDB.Y
	Y_Data sql.NullFloat64

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	UmlStatePointersEncoding
}

UmlStateDB describes a umlstate in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model umlstateDB

func (*UmlStateDB) CopyBasicFieldsFromUmlState

func (umlstateDB *UmlStateDB) CopyBasicFieldsFromUmlState(umlstate *models.UmlState)

CopyBasicFieldsFromUmlState

func (*UmlStateDB) CopyBasicFieldsFromUmlStateWOP

func (umlstateDB *UmlStateDB) CopyBasicFieldsFromUmlStateWOP(umlstate *UmlStateWOP)

CopyBasicFieldsFromUmlStateWOP

func (*UmlStateDB) CopyBasicFieldsFromUmlState_WOP

func (umlstateDB *UmlStateDB) CopyBasicFieldsFromUmlState_WOP(umlstate *models.UmlState_WOP)

CopyBasicFieldsFromUmlState_WOP

func (*UmlStateDB) CopyBasicFieldsToUmlState

func (umlstateDB *UmlStateDB) CopyBasicFieldsToUmlState(umlstate *models.UmlState)

CopyBasicFieldsToUmlState

func (*UmlStateDB) CopyBasicFieldsToUmlStateWOP

func (umlstateDB *UmlStateDB) CopyBasicFieldsToUmlStateWOP(umlstate *UmlStateWOP)

CopyBasicFieldsToUmlStateWOP

func (*UmlStateDB) CopyBasicFieldsToUmlState_WOP

func (umlstateDB *UmlStateDB) CopyBasicFieldsToUmlState_WOP(umlstate *models.UmlState_WOP)

CopyBasicFieldsToUmlState_WOP

func (*UmlStateDB) DecodePointers

func (umlstateDB *UmlStateDB) DecodePointers(backRepo *BackRepoStruct, umlstate *models.UmlState)

type UmlStateDBResponse

type UmlStateDBResponse struct {
	UmlStateDB
}

UmlStateDBResponse provides response swagger:response umlstateDBResponse

type UmlStateDBs

type UmlStateDBs []UmlStateDB

UmlStateDBs arrays umlstateDBs swagger:response umlstateDBsResponse

type UmlStatePointersEncoding

type UmlStatePointersEncoding struct {
}

UmlStatePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type UmlStateWOP

type UmlStateWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	X float64 `xlsx:"2"`

	Y float64 `xlsx:"3"`
}

UmlStateWOP is a UmlState without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type UmlscAPI

type UmlscAPI struct {
	gorm.Model

	models.Umlsc_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	UmlscPointersEncoding UmlscPointersEncoding
}

UmlscAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model umlscAPI

type UmlscDB

type UmlscDB struct {
	gorm.Model

	// Declation for basic field umlscDB.Name
	Name_Data sql.NullString

	// Declation for basic field umlscDB.Activestate
	Activestate_Data sql.NullString

	// Declation for basic field umlscDB.IsInDrawMode
	// provide the sql storage for the boolan
	IsInDrawMode_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	UmlscPointersEncoding
}

UmlscDB describes a umlsc in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model umlscDB

func (*UmlscDB) CopyBasicFieldsFromUmlsc

func (umlscDB *UmlscDB) CopyBasicFieldsFromUmlsc(umlsc *models.Umlsc)

CopyBasicFieldsFromUmlsc

func (*UmlscDB) CopyBasicFieldsFromUmlscWOP

func (umlscDB *UmlscDB) CopyBasicFieldsFromUmlscWOP(umlsc *UmlscWOP)

CopyBasicFieldsFromUmlscWOP

func (*UmlscDB) CopyBasicFieldsFromUmlsc_WOP

func (umlscDB *UmlscDB) CopyBasicFieldsFromUmlsc_WOP(umlsc *models.Umlsc_WOP)

CopyBasicFieldsFromUmlsc_WOP

func (*UmlscDB) CopyBasicFieldsToUmlsc

func (umlscDB *UmlscDB) CopyBasicFieldsToUmlsc(umlsc *models.Umlsc)

CopyBasicFieldsToUmlsc

func (*UmlscDB) CopyBasicFieldsToUmlscWOP

func (umlscDB *UmlscDB) CopyBasicFieldsToUmlscWOP(umlsc *UmlscWOP)

CopyBasicFieldsToUmlscWOP

func (*UmlscDB) CopyBasicFieldsToUmlsc_WOP

func (umlscDB *UmlscDB) CopyBasicFieldsToUmlsc_WOP(umlsc *models.Umlsc_WOP)

CopyBasicFieldsToUmlsc_WOP

func (*UmlscDB) DecodePointers

func (umlscDB *UmlscDB) DecodePointers(backRepo *BackRepoStruct, umlsc *models.Umlsc)

type UmlscDBResponse

type UmlscDBResponse struct {
	UmlscDB
}

UmlscDBResponse provides response swagger:response umlscDBResponse

type UmlscDBs

type UmlscDBs []UmlscDB

UmlscDBs arrays umlscDBs swagger:response umlscDBsResponse

type UmlscPointersEncoding

type UmlscPointersEncoding struct {

	// field States is a slice of pointers to another Struct (optional or 0..1)
	States IntSlice `gorm:"type:TEXT"`
}

UmlscPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type UmlscWOP

type UmlscWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Activestate string `xlsx:"2"`

	IsInDrawMode bool `xlsx:"3"`
}

UmlscWOP is a Umlsc without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type VerticeAPI

type VerticeAPI struct {
	gorm.Model

	models.Vertice_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	VerticePointersEncoding VerticePointersEncoding
}

VerticeAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model verticeAPI

type VerticeDB

type VerticeDB struct {
	gorm.Model

	// Declation for basic field verticeDB.X
	X_Data sql.NullFloat64

	// Declation for basic field verticeDB.Y
	Y_Data sql.NullFloat64

	// Declation for basic field verticeDB.Name
	Name_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	VerticePointersEncoding
}

VerticeDB describes a vertice in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model verticeDB

func (*VerticeDB) CopyBasicFieldsFromVertice

func (verticeDB *VerticeDB) CopyBasicFieldsFromVertice(vertice *models.Vertice)

CopyBasicFieldsFromVertice

func (*VerticeDB) CopyBasicFieldsFromVerticeWOP

func (verticeDB *VerticeDB) CopyBasicFieldsFromVerticeWOP(vertice *VerticeWOP)

CopyBasicFieldsFromVerticeWOP

func (*VerticeDB) CopyBasicFieldsFromVertice_WOP

func (verticeDB *VerticeDB) CopyBasicFieldsFromVertice_WOP(vertice *models.Vertice_WOP)

CopyBasicFieldsFromVertice_WOP

func (*VerticeDB) CopyBasicFieldsToVertice

func (verticeDB *VerticeDB) CopyBasicFieldsToVertice(vertice *models.Vertice)

CopyBasicFieldsToVertice

func (*VerticeDB) CopyBasicFieldsToVerticeWOP

func (verticeDB *VerticeDB) CopyBasicFieldsToVerticeWOP(vertice *VerticeWOP)

CopyBasicFieldsToVerticeWOP

func (*VerticeDB) CopyBasicFieldsToVertice_WOP

func (verticeDB *VerticeDB) CopyBasicFieldsToVertice_WOP(vertice *models.Vertice_WOP)

CopyBasicFieldsToVertice_WOP

func (*VerticeDB) DecodePointers

func (verticeDB *VerticeDB) DecodePointers(backRepo *BackRepoStruct, vertice *models.Vertice)

type VerticeDBResponse

type VerticeDBResponse struct {
	VerticeDB
}

VerticeDBResponse provides response swagger:response verticeDBResponse

type VerticeDBs

type VerticeDBs []VerticeDB

VerticeDBs arrays verticeDBs swagger:response verticeDBsResponse

type VerticePointersEncoding

type VerticePointersEncoding struct {
}

VerticePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type VerticeWOP

type VerticeWOP struct {
	ID int `xlsx:"0"`

	X float64 `xlsx:"1"`

	Y float64 `xlsx:"2"`

	Name string `xlsx:"3"`
}

VerticeWOP is a Vertice without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL