orm

package
Version: v0.0.0-...-a38628e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 17 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

generated by genORMTranslation.go

generated from OrmFileSetupTemplate

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 BackRepoClassshapeid_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 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 BackRepoNodeid_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 BackRepoReferenceid_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 BackRepoTreeid_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 Classshape_Fields = []string{

	"ID",
	"Name",
	"ReferenceName",
	"ShowNbInstances",
	"NbInstances",
	"Width",
	"Heigth",
	"IsSelected",
}
View Source
var DiagramPackage_Fields = []string{

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

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

	"ID",
	"Name",
	"Fieldname",
	"Structname",
	"Fieldtypename",
	"TargetMultiplicity",
	"SourceMultiplicity",
}
View Source
var Node_Fields = []string{

	"ID",
	"Name",
	"Type",
	"IsExpanded",
	"HasCheckboxButton",
	"IsChecked",
	"IsCheckboxDisabled",
	"HasAddChildButton",
	"HasEditButton",
	"IsInEditMode",
	"HasDrawButton",
	"HasDrawOffButton",
	"IsInDrawMode",
	"IsSaved",
	"HasDeleteButton",
}
View Source
var NoteShape_Fields = []string{

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

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

	"ID",
	"Name",
	"NbInstances",
	"Type",
}
View Source
var Tree_Fields = []string{

	"ID",
	"Name",
	"Type",
}
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 AutoMigrate

func AutoMigrate(db *gorm.DB)

AutoMigrate migrates db with with orm Struct

func GetLastCommitFromBackNb

func GetLastCommitFromBackNb() uint

func GetLastPushFromFrontNb

func GetLastPushFromFrontNb() uint

func ResetDB

func ResetDB(db *gorm.DB)

func SetupModels

func SetupModels(logMode bool, filepath string) *gorm.DB

SetupModels connects to the sqlite database

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 pahse 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) Init

func (backRepoClassdiagram *BackRepoClassdiagramStruct) Init(db *gorm.DB) (Error error)

BackRepoClassdiagram.Init set up the BackRepo of the Classdiagram

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 BackRepoClassshapeStruct

type BackRepoClassshapeStruct struct {
	// stores ClassshapeDB according to their gorm ID
	Map_ClassshapeDBID_ClassshapeDB *map[uint]*ClassshapeDB

	// stores ClassshapeDB ID according to Classshape address
	Map_ClassshapePtr_ClassshapeDBID *map[*models.Classshape]uint

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

func (*BackRepoClassshapeStruct) Backup

func (backRepoClassshape *BackRepoClassshapeStruct) Backup(dirPath string)

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

func (*BackRepoClassshapeStruct) BackupXL

func (backRepoClassshape *BackRepoClassshapeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoClassshapeStruct) CheckoutPhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseOne() (Error error)

BackRepoClassshape.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 pahse two)

func (*BackRepoClassshapeStruct) CheckoutPhaseOneInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseOneInstance(classshapeDB *ClassshapeDB) (Error error)

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

func (*BackRepoClassshapeStruct) CheckoutPhaseTwo

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoClassshapeStruct) CheckoutPhaseTwoInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, classshapeDB *ClassshapeDB) (Error error)

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

func (*BackRepoClassshapeStruct) CommitDeleteInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoClassshape.CommitDeleteInstance commits deletion of Classshape to the BackRepo

func (*BackRepoClassshapeStruct) CommitPhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoClassshape.CommitPhaseOne commits all staged instances of Classshape 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 (*BackRepoClassshapeStruct) CommitPhaseOneInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseOneInstance(classshape *models.Classshape) (Error error)

BackRepoClassshape.CommitPhaseOneInstance commits classshape staged instances of Classshape 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 (*BackRepoClassshapeStruct) CommitPhaseTwo

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoClassshapeStruct) CommitPhaseTwoInstance

func (backRepoClassshape *BackRepoClassshapeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, classshape *models.Classshape) (Error error)

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

func (*BackRepoClassshapeStruct) GetClassshapeDBFromClassshapePtr

func (backRepoClassshape *BackRepoClassshapeStruct) GetClassshapeDBFromClassshapePtr(classshape *models.Classshape) (classshapeDB *ClassshapeDB)

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

func (*BackRepoClassshapeStruct) GetDB

func (backRepoClassshape *BackRepoClassshapeStruct) GetDB() *gorm.DB

func (*BackRepoClassshapeStruct) Init

func (backRepoClassshape *BackRepoClassshapeStruct) Init(db *gorm.DB) (Error error)

BackRepoClassshape.Init set up the BackRepo of the Classshape

func (*BackRepoClassshapeStruct) RestorePhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoClassshapeStruct) RestorePhaseTwo

func (backRepoClassshape *BackRepoClassshapeStruct) RestorePhaseTwo()

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

func (*BackRepoClassshapeStruct) RestoreXLPhaseOne

func (backRepoClassshape *BackRepoClassshapeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Classshape" sheet all ClassshapeDB instances

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 pahse 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) Init

func (backRepoDiagramPackage *BackRepoDiagramPackageStruct) Init(db *gorm.DB) (Error error)

BackRepoDiagramPackage.Init set up the BackRepo of the DiagramPackage

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 pahse 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) Init

func (backRepoField *BackRepoFieldStruct) Init(db *gorm.DB) (Error error)

BackRepoField.Init set up the BackRepo of the Field

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 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 pahse 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) Init

func (backRepoLink *BackRepoLinkStruct) Init(db *gorm.DB) (Error error)

BackRepoLink.Init set up the BackRepo of the Link

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 BackRepoNodeStruct

type BackRepoNodeStruct struct {
	// stores NodeDB according to their gorm ID
	Map_NodeDBID_NodeDB *map[uint]*NodeDB

	// stores NodeDB ID according to Node address
	Map_NodePtr_NodeDBID *map[*models.Node]uint

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

func (*BackRepoNodeStruct) Backup

func (backRepoNode *BackRepoNodeStruct) Backup(dirPath string)

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

func (*BackRepoNodeStruct) BackupXL

func (backRepoNode *BackRepoNodeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoNodeStruct) CheckoutPhaseOne

func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseOne() (Error error)

BackRepoNode.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 pahse two)

func (*BackRepoNodeStruct) CheckoutPhaseOneInstance

func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseOneInstance(nodeDB *NodeDB) (Error error)

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

func (*BackRepoNodeStruct) CheckoutPhaseTwo

func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoNodeStruct) CheckoutPhaseTwoInstance

func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, nodeDB *NodeDB) (Error error)

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

func (*BackRepoNodeStruct) CommitDeleteInstance

func (backRepoNode *BackRepoNodeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoNode.CommitDeleteInstance commits deletion of Node to the BackRepo

func (*BackRepoNodeStruct) CommitPhaseOne

func (backRepoNode *BackRepoNodeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoNode.CommitPhaseOne commits all staged instances of Node 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 (*BackRepoNodeStruct) CommitPhaseOneInstance

func (backRepoNode *BackRepoNodeStruct) CommitPhaseOneInstance(node *models.Node) (Error error)

BackRepoNode.CommitPhaseOneInstance commits node staged instances of Node 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 (*BackRepoNodeStruct) CommitPhaseTwo

func (backRepoNode *BackRepoNodeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoNodeStruct) CommitPhaseTwoInstance

func (backRepoNode *BackRepoNodeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, node *models.Node) (Error error)

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

func (*BackRepoNodeStruct) GetDB

func (backRepoNode *BackRepoNodeStruct) GetDB() *gorm.DB

func (*BackRepoNodeStruct) GetNodeDBFromNodePtr

func (backRepoNode *BackRepoNodeStruct) GetNodeDBFromNodePtr(node *models.Node) (nodeDB *NodeDB)

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

func (*BackRepoNodeStruct) Init

func (backRepoNode *BackRepoNodeStruct) Init(db *gorm.DB) (Error error)

BackRepoNode.Init set up the BackRepo of the Node

func (*BackRepoNodeStruct) RestorePhaseOne

func (backRepoNode *BackRepoNodeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoNodeStruct) RestorePhaseTwo

func (backRepoNode *BackRepoNodeStruct) RestorePhaseTwo()

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

func (*BackRepoNodeStruct) RestoreXLPhaseOne

func (backRepoNode *BackRepoNodeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Node" sheet all NodeDB 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 pahse 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) Init

func (backRepoNoteShape *BackRepoNoteShapeStruct) Init(db *gorm.DB) (Error error)

BackRepoNoteShape.Init set up the BackRepo of the NoteShape

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 pahse 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) Init

func (backRepoPosition *BackRepoPositionStruct) Init(db *gorm.DB) (Error error)

BackRepoPosition.Init set up the BackRepo of the Position

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 BackRepoReferenceStruct

type BackRepoReferenceStruct struct {
	// stores ReferenceDB according to their gorm ID
	Map_ReferenceDBID_ReferenceDB *map[uint]*ReferenceDB

	// stores ReferenceDB ID according to Reference address
	Map_ReferencePtr_ReferenceDBID *map[*models.Reference]uint

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

func (*BackRepoReferenceStruct) Backup

func (backRepoReference *BackRepoReferenceStruct) Backup(dirPath string)

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

func (*BackRepoReferenceStruct) BackupXL

func (backRepoReference *BackRepoReferenceStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoReferenceStruct) CheckoutPhaseOne

func (backRepoReference *BackRepoReferenceStruct) CheckoutPhaseOne() (Error error)

BackRepoReference.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 pahse two)

func (*BackRepoReferenceStruct) CheckoutPhaseOneInstance

func (backRepoReference *BackRepoReferenceStruct) CheckoutPhaseOneInstance(referenceDB *ReferenceDB) (Error error)

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

func (*BackRepoReferenceStruct) CheckoutPhaseTwo

func (backRepoReference *BackRepoReferenceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoReferenceStruct) CheckoutPhaseTwoInstance

func (backRepoReference *BackRepoReferenceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, referenceDB *ReferenceDB) (Error error)

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

func (*BackRepoReferenceStruct) CommitDeleteInstance

func (backRepoReference *BackRepoReferenceStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoReference.CommitDeleteInstance commits deletion of Reference to the BackRepo

func (*BackRepoReferenceStruct) CommitPhaseOne

func (backRepoReference *BackRepoReferenceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoReference.CommitPhaseOne commits all staged instances of Reference 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 (*BackRepoReferenceStruct) CommitPhaseOneInstance

func (backRepoReference *BackRepoReferenceStruct) CommitPhaseOneInstance(reference *models.Reference) (Error error)

BackRepoReference.CommitPhaseOneInstance commits reference staged instances of Reference 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 (*BackRepoReferenceStruct) CommitPhaseTwo

func (backRepoReference *BackRepoReferenceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoReferenceStruct) CommitPhaseTwoInstance

func (backRepoReference *BackRepoReferenceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, reference *models.Reference) (Error error)

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

func (*BackRepoReferenceStruct) GetDB

func (backRepoReference *BackRepoReferenceStruct) GetDB() *gorm.DB

func (*BackRepoReferenceStruct) GetReferenceDBFromReferencePtr

func (backRepoReference *BackRepoReferenceStruct) GetReferenceDBFromReferencePtr(reference *models.Reference) (referenceDB *ReferenceDB)

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

func (*BackRepoReferenceStruct) Init

func (backRepoReference *BackRepoReferenceStruct) Init(db *gorm.DB) (Error error)

BackRepoReference.Init set up the BackRepo of the Reference

func (*BackRepoReferenceStruct) RestorePhaseOne

func (backRepoReference *BackRepoReferenceStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoReferenceStruct) RestorePhaseTwo

func (backRepoReference *BackRepoReferenceStruct) RestorePhaseTwo()

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

func (*BackRepoReferenceStruct) RestoreXLPhaseOne

func (backRepoReference *BackRepoReferenceStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Reference" sheet all ReferenceDB instances

type BackRepoStruct

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

	BackRepoClassshape BackRepoClassshapeStruct

	BackRepoDiagramPackage BackRepoDiagramPackageStruct

	BackRepoField BackRepoFieldStruct

	BackRepoLink BackRepoLinkStruct

	BackRepoNode BackRepoNodeStruct

	BackRepoNoteShape BackRepoNoteShapeStruct

	BackRepoPosition BackRepoPositionStruct

	BackRepoReference BackRepoReferenceStruct

	BackRepoTree BackRepoTreeStruct

	BackRepoUmlState BackRepoUmlStateStruct

	BackRepoUmlsc BackRepoUmlscStruct

	BackRepoVertice BackRepoVerticeStruct

	CommitFromBackNb uint // this ng is updated at the BackRepo level but also at the BackRepo<GongStruct> level

	PushFromFrontNb uint // records increments from push from front
}

BackRepoStruct supports callback functions

var 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) CheckoutClassshape

func (backRepo *BackRepoStruct) CheckoutClassshape(classshape *models.Classshape)

CommitClassshape allows checkout of a single classshape (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 (backRepo *BackRepoStruct) CheckoutLink(link *models.Link)

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

func (*BackRepoStruct) CheckoutNode

func (backRepo *BackRepoStruct) CheckoutNode(node *models.Node)

CommitNode allows checkout of a single node (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 (*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) CheckoutReference

func (backRepo *BackRepoStruct) CheckoutReference(reference *models.Reference)

CommitReference allows checkout of a single reference (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutTree

func (backRepo *BackRepoStruct) CheckoutTree(tree *models.Tree)

CommitTree allows checkout of a single tree (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) CommitClassshape

func (backRepo *BackRepoStruct) CommitClassshape(classshape *models.Classshape)

CommitClassshape allows commit of a single classshape (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 (backRepo *BackRepoStruct) CommitLink(link *models.Link)

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

func (*BackRepoStruct) CommitNode

func (backRepo *BackRepoStruct) CommitNode(node *models.Node)

CommitNode allows commit of a single node (if already staged)

func (*BackRepoStruct) CommitNoteShape

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

CommitNoteShape allows commit of a single noteshape (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) CommitReference

func (backRepo *BackRepoStruct) CommitReference(reference *models.Reference)

CommitReference allows commit of a single reference (if already staged)

func (*BackRepoStruct) CommitTree

func (backRepo *BackRepoStruct) CommitTree(tree *models.Tree)

CommitTree allows commit of a single tree (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) 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

type BackRepoTreeStruct

type BackRepoTreeStruct struct {
	// stores TreeDB according to their gorm ID
	Map_TreeDBID_TreeDB *map[uint]*TreeDB

	// stores TreeDB ID according to Tree address
	Map_TreePtr_TreeDBID *map[*models.Tree]uint

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

func (*BackRepoTreeStruct) Backup

func (backRepoTree *BackRepoTreeStruct) Backup(dirPath string)

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

func (*BackRepoTreeStruct) BackupXL

func (backRepoTree *BackRepoTreeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoTreeStruct) CheckoutPhaseOne

func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOne() (Error error)

BackRepoTree.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 pahse two)

func (*BackRepoTreeStruct) CheckoutPhaseOneInstance

func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOneInstance(treeDB *TreeDB) (Error error)

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

func (*BackRepoTreeStruct) CheckoutPhaseTwo

func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTreeStruct) CheckoutPhaseTwoInstance

func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, treeDB *TreeDB) (Error error)

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

func (*BackRepoTreeStruct) CommitDeleteInstance

func (backRepoTree *BackRepoTreeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoTree.CommitDeleteInstance commits deletion of Tree to the BackRepo

func (*BackRepoTreeStruct) CommitPhaseOne

func (backRepoTree *BackRepoTreeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoTree.CommitPhaseOne commits all staged instances of Tree 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 (*BackRepoTreeStruct) CommitPhaseOneInstance

func (backRepoTree *BackRepoTreeStruct) CommitPhaseOneInstance(tree *models.Tree) (Error error)

BackRepoTree.CommitPhaseOneInstance commits tree staged instances of Tree 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 (*BackRepoTreeStruct) CommitPhaseTwo

func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTreeStruct) CommitPhaseTwoInstance

func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)

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

func (*BackRepoTreeStruct) GetDB

func (backRepoTree *BackRepoTreeStruct) GetDB() *gorm.DB

func (*BackRepoTreeStruct) GetTreeDBFromTreePtr

func (backRepoTree *BackRepoTreeStruct) GetTreeDBFromTreePtr(tree *models.Tree) (treeDB *TreeDB)

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

func (*BackRepoTreeStruct) Init

func (backRepoTree *BackRepoTreeStruct) Init(db *gorm.DB) (Error error)

BackRepoTree.Init set up the BackRepo of the Tree

func (*BackRepoTreeStruct) RestorePhaseOne

func (backRepoTree *BackRepoTreeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoTreeStruct) RestorePhaseTwo

func (backRepoTree *BackRepoTreeStruct) RestorePhaseTwo()

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

func (*BackRepoTreeStruct) RestoreXLPhaseOne

func (backRepoTree *BackRepoTreeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Tree" sheet all TreeDB instances

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 pahse 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) 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) Init

func (backRepoUmlState *BackRepoUmlStateStruct) Init(db *gorm.DB) (Error error)

BackRepoUmlState.Init set up the BackRepo of the UmlState

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 pahse 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) 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) Init

func (backRepoUmlsc *BackRepoUmlscStruct) Init(db *gorm.DB) (Error error)

BackRepoUmlsc.Init set up the BackRepo of the Umlsc

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 pahse 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) 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) Init

func (backRepoVertice *BackRepoVerticeStruct) Init(db *gorm.DB) (Error error)

BackRepoVertice.Init set up the BackRepo of the Vertice

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

	// encoding of pointers
	ClassdiagramPointersEnconding
}

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
	ClassdiagramPointersEnconding
}

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) CopyBasicFieldsToClassdiagram

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

CopyBasicFieldsToClassdiagram

func (*ClassdiagramDB) CopyBasicFieldsToClassdiagramWOP

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

CopyBasicFieldsToClassdiagramWOP

type ClassdiagramDBResponse

type ClassdiagramDBResponse struct {
	ClassdiagramDB
}

ClassdiagramDBResponse provides response swagger:response classdiagramDBResponse

type ClassdiagramDBs

type ClassdiagramDBs []ClassdiagramDB

ClassdiagramDBs arrays classdiagramDBs swagger:response classdiagramDBsResponse

type ClassdiagramPointersEnconding

type ClassdiagramPointersEnconding struct {

	// Implementation of a reverse ID for field DiagramPackage{}.Classdiagrams []*Classdiagram
	DiagramPackage_ClassdiagramsDBID sql.NullInt64

	// implementation of the index of the withing the slice
	DiagramPackage_ClassdiagramsDBID_Index sql.NullInt64
}

ClassdiagramPointersEnconding 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 ClassshapeAPI

type ClassshapeAPI struct {
	gorm.Model

	models.Classshape

	// encoding of pointers
	ClassshapePointersEnconding
}

ClassshapeAPI 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 classshapeAPI

type ClassshapeDB

type ClassshapeDB struct {
	gorm.Model

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

	// Declation for basic field classshapeDB.ReferenceName
	ReferenceName_Data sql.NullString

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

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

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

	// Declation for basic field classshapeDB.Heigth
	Heigth_Data sql.NullFloat64

	// Declation for basic field classshapeDB.IsSelected
	// provide the sql storage for the boolan
	IsSelected_Data sql.NullBool
	// encoding of pointers
	ClassshapePointersEnconding
}

ClassshapeDB describes a classshape 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 classshapeDB

func (*ClassshapeDB) CopyBasicFieldsFromClassshape

func (classshapeDB *ClassshapeDB) CopyBasicFieldsFromClassshape(classshape *models.Classshape)

CopyBasicFieldsFromClassshape

func (*ClassshapeDB) CopyBasicFieldsFromClassshapeWOP

func (classshapeDB *ClassshapeDB) CopyBasicFieldsFromClassshapeWOP(classshape *ClassshapeWOP)

CopyBasicFieldsFromClassshapeWOP

func (*ClassshapeDB) CopyBasicFieldsToClassshape

func (classshapeDB *ClassshapeDB) CopyBasicFieldsToClassshape(classshape *models.Classshape)

CopyBasicFieldsToClassshape

func (*ClassshapeDB) CopyBasicFieldsToClassshapeWOP

func (classshapeDB *ClassshapeDB) CopyBasicFieldsToClassshapeWOP(classshape *ClassshapeWOP)

CopyBasicFieldsToClassshapeWOP

type ClassshapeDBResponse

type ClassshapeDBResponse struct {
	ClassshapeDB
}

ClassshapeDBResponse provides response swagger:response classshapeDBResponse

type ClassshapeDBs

type ClassshapeDBs []ClassshapeDB

ClassshapeDBs arrays classshapeDBs swagger:response classshapeDBsResponse

type ClassshapePointersEnconding

type ClassshapePointersEnconding 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 Reference is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	ReferenceID sql.NullInt64

	// Implementation of a reverse ID for field Classdiagram{}.Classshapes []*Classshape
	Classdiagram_ClassshapesDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classdiagram_ClassshapesDBID_Index sql.NullInt64
}

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

type ClassshapeWOP

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

	Name string `xlsx:"1"`

	ReferenceName string `xlsx:"2"`

	ShowNbInstances bool `xlsx:"3"`

	NbInstances int `xlsx:"4"`

	Width float64 `xlsx:"5"`

	Heigth float64 `xlsx:"6"`

	IsSelected bool `xlsx:"7"`
}

ClassshapeWOP is a Classshape 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

	// encoding of pointers
	DiagramPackagePointersEnconding
}

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
	// encoding of pointers
	DiagramPackagePointersEnconding
}

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) CopyBasicFieldsToDiagramPackage

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

CopyBasicFieldsToDiagramPackage

func (*DiagramPackageDB) CopyBasicFieldsToDiagramPackageWOP

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

CopyBasicFieldsToDiagramPackageWOP

type DiagramPackageDBResponse

type DiagramPackageDBResponse struct {
	DiagramPackageDB
}

DiagramPackageDBResponse provides response swagger:response diagrampackageDBResponse

type DiagramPackageDBs

type DiagramPackageDBs []DiagramPackageDB

DiagramPackageDBs arrays diagrampackageDBs swagger:response diagrampackageDBsResponse

type DiagramPackagePointersEnconding

type DiagramPackagePointersEnconding struct {
}

DiagramPackagePointersEnconding 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"`
}

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

	// encoding of pointers
	FieldPointersEnconding
}

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.Fieldname
	Fieldname_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
	FieldPointersEnconding
}

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) CopyBasicFieldsToField

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

CopyBasicFieldsToField

func (*FieldDB) CopyBasicFieldsToFieldWOP

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

CopyBasicFieldsToFieldWOP

type FieldDBResponse

type FieldDBResponse struct {
	FieldDB
}

FieldDBResponse provides response swagger:response fieldDBResponse

type FieldDBs

type FieldDBs []FieldDB

FieldDBs arrays fieldDBs swagger:response fieldDBsResponse

type FieldPointersEnconding

type FieldPointersEnconding struct {

	// Implementation of a reverse ID for field Classshape{}.Fields []*Field
	Classshape_FieldsDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classshape_FieldsDBID_Index sql.NullInt64
}

FieldPointersEnconding 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"`

	Fieldname 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 LinkAPI

type LinkAPI struct {
	gorm.Model

	models.Link

	// encoding of pointers
	LinkPointersEnconding
}

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.Fieldname
	Fieldname_Data sql.NullString

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

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

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

	// Declation for basic field linkDB.SourceMultiplicity
	SourceMultiplicity_Data sql.NullString
	// encoding of pointers
	LinkPointersEnconding
}

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) CopyBasicFieldsToLink(link *models.Link)

CopyBasicFieldsToLink

func (*LinkDB) CopyBasicFieldsToLinkWOP

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

CopyBasicFieldsToLinkWOP

type LinkDBResponse

type LinkDBResponse struct {
	LinkDB
}

LinkDBResponse provides response swagger:response linkDBResponse

type LinkDBs

type LinkDBs []LinkDB

LinkDBs arrays linkDBs swagger:response linkDBsResponse

type LinkPointersEnconding

type LinkPointersEnconding 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

	// Implementation of a reverse ID for field Classshape{}.Links []*Link
	Classshape_LinksDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classshape_LinksDBID_Index sql.NullInt64
}

LinkPointersEnconding 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"`

	Fieldname string `xlsx:"2"`

	Structname string `xlsx:"3"`

	Fieldtypename string `xlsx:"4"`

	TargetMultiplicity models.MultiplicityType `xlsx:"5"`

	SourceMultiplicity models.MultiplicityType `xlsx:"6"`
}

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 NodeAPI

type NodeAPI struct {
	gorm.Model

	models.Node

	// encoding of pointers
	NodePointersEnconding
}

NodeAPI 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 nodeAPI

type NodeDB

type NodeDB struct {
	gorm.Model

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

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

	// Declation for basic field nodeDB.IsExpanded
	// provide the sql storage for the boolan
	IsExpanded_Data sql.NullBool

	// Declation for basic field nodeDB.HasCheckboxButton
	// provide the sql storage for the boolan
	HasCheckboxButton_Data sql.NullBool

	// Declation for basic field nodeDB.IsChecked
	// provide the sql storage for the boolan
	IsChecked_Data sql.NullBool

	// Declation for basic field nodeDB.IsCheckboxDisabled
	// provide the sql storage for the boolan
	IsCheckboxDisabled_Data sql.NullBool

	// Declation for basic field nodeDB.HasAddChildButton
	// provide the sql storage for the boolan
	HasAddChildButton_Data sql.NullBool

	// Declation for basic field nodeDB.HasEditButton
	// provide the sql storage for the boolan
	HasEditButton_Data sql.NullBool

	// Declation for basic field nodeDB.IsInEditMode
	// provide the sql storage for the boolan
	IsInEditMode_Data sql.NullBool

	// Declation for basic field nodeDB.HasDrawButton
	// provide the sql storage for the boolan
	HasDrawButton_Data sql.NullBool

	// Declation for basic field nodeDB.HasDrawOffButton
	// provide the sql storage for the boolan
	HasDrawOffButton_Data sql.NullBool

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

	// Declation for basic field nodeDB.IsSaved
	// provide the sql storage for the boolan
	IsSaved_Data sql.NullBool

	// Declation for basic field nodeDB.HasDeleteButton
	// provide the sql storage for the boolan
	HasDeleteButton_Data sql.NullBool
	// encoding of pointers
	NodePointersEnconding
}

NodeDB describes a node 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 nodeDB

func (*NodeDB) CopyBasicFieldsFromNode

func (nodeDB *NodeDB) CopyBasicFieldsFromNode(node *models.Node)

CopyBasicFieldsFromNode

func (*NodeDB) CopyBasicFieldsFromNodeWOP

func (nodeDB *NodeDB) CopyBasicFieldsFromNodeWOP(node *NodeWOP)

CopyBasicFieldsFromNodeWOP

func (*NodeDB) CopyBasicFieldsToNode

func (nodeDB *NodeDB) CopyBasicFieldsToNode(node *models.Node)

CopyBasicFieldsToNode

func (*NodeDB) CopyBasicFieldsToNodeWOP

func (nodeDB *NodeDB) CopyBasicFieldsToNodeWOP(node *NodeWOP)

CopyBasicFieldsToNodeWOP

type NodeDBResponse

type NodeDBResponse struct {
	NodeDB
}

NodeDBResponse provides response swagger:response nodeDBResponse

type NodeDBs

type NodeDBs []NodeDB

NodeDBs arrays nodeDBs swagger:response nodeDBsResponse

type NodePointersEnconding

type NodePointersEnconding struct {

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

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

	// Implementation of a reverse ID for field Node{}.Children []*Node
	Node_ChildrenDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Node_ChildrenDBID_Index sql.NullInt64

	// Implementation of a reverse ID for field Tree{}.RootNodes []*Node
	Tree_RootNodesDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Tree_RootNodesDBID_Index sql.NullInt64
}

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

type NodeWOP

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

	Name string `xlsx:"1"`

	Type models.GongdocNodeType `xlsx:"2"`

	IsExpanded bool `xlsx:"3"`

	HasCheckboxButton bool `xlsx:"4"`

	IsChecked bool `xlsx:"5"`

	IsCheckboxDisabled bool `xlsx:"6"`

	HasAddChildButton bool `xlsx:"7"`

	HasEditButton bool `xlsx:"8"`

	IsInEditMode bool `xlsx:"9"`

	HasDrawButton bool `xlsx:"10"`

	HasDrawOffButton bool `xlsx:"11"`

	IsInDrawMode bool `xlsx:"12"`

	IsSaved bool `xlsx:"13"`

	HasDeleteButton bool `xlsx:"14"`
}

NodeWOP is a Node 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

	// encoding of pointers
	NoteShapePointersEnconding
}

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.Body
	Body_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.Heigth
	Heigth_Data sql.NullFloat64

	// Declation for basic field noteshapeDB.Matched
	// provide the sql storage for the boolan
	Matched_Data sql.NullBool
	// encoding of pointers
	NoteShapePointersEnconding
}

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) CopyBasicFieldsToNoteShape

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

CopyBasicFieldsToNoteShape

func (*NoteShapeDB) CopyBasicFieldsToNoteShapeWOP

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

CopyBasicFieldsToNoteShapeWOP

type NoteShapeDBResponse

type NoteShapeDBResponse struct {
	NoteShapeDB
}

NoteShapeDBResponse provides response swagger:response noteshapeDBResponse

type NoteShapeDBs

type NoteShapeDBs []NoteShapeDB

NoteShapeDBs arrays noteshapeDBs swagger:response noteshapeDBsResponse

type NoteShapePointersEnconding

type NoteShapePointersEnconding struct {

	// Implementation of a reverse ID for field Classdiagram{}.Notes []*NoteShape
	Classdiagram_NotesDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Classdiagram_NotesDBID_Index sql.NullInt64
}

NoteShapePointersEnconding 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"`

	Body string `xlsx:"2"`

	X float64 `xlsx:"3"`

	Y float64 `xlsx:"4"`

	Width float64 `xlsx:"5"`

	Heigth float64 `xlsx:"6"`

	Matched bool `xlsx:"7"`
}

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

	// encoding of pointers
	PositionPointersEnconding
}

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
	PositionPointersEnconding
}

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) CopyBasicFieldsToPosition

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

CopyBasicFieldsToPosition

func (*PositionDB) CopyBasicFieldsToPositionWOP

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

CopyBasicFieldsToPositionWOP

type PositionDBResponse

type PositionDBResponse struct {
	PositionDB
}

PositionDBResponse provides response swagger:response positionDBResponse

type PositionDBs

type PositionDBs []PositionDB

PositionDBs arrays positionDBs swagger:response positionDBsResponse

type PositionPointersEnconding

type PositionPointersEnconding struct {
}

PositionPointersEnconding 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 ReferenceAPI

type ReferenceAPI struct {
	gorm.Model

	models.Reference

	// encoding of pointers
	ReferencePointersEnconding
}

ReferenceAPI 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 referenceAPI

type ReferenceDB

type ReferenceDB struct {
	gorm.Model

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

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

	// Declation for basic field referenceDB.Type
	Type_Data sql.NullString
	// encoding of pointers
	ReferencePointersEnconding
}

ReferenceDB describes a reference 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 referenceDB

func (*ReferenceDB) CopyBasicFieldsFromReference

func (referenceDB *ReferenceDB) CopyBasicFieldsFromReference(reference *models.Reference)

CopyBasicFieldsFromReference

func (*ReferenceDB) CopyBasicFieldsFromReferenceWOP

func (referenceDB *ReferenceDB) CopyBasicFieldsFromReferenceWOP(reference *ReferenceWOP)

CopyBasicFieldsFromReferenceWOP

func (*ReferenceDB) CopyBasicFieldsToReference

func (referenceDB *ReferenceDB) CopyBasicFieldsToReference(reference *models.Reference)

CopyBasicFieldsToReference

func (*ReferenceDB) CopyBasicFieldsToReferenceWOP

func (referenceDB *ReferenceDB) CopyBasicFieldsToReferenceWOP(reference *ReferenceWOP)

CopyBasicFieldsToReferenceWOP

type ReferenceDBResponse

type ReferenceDBResponse struct {
	ReferenceDB
}

ReferenceDBResponse provides response swagger:response referenceDBResponse

type ReferenceDBs

type ReferenceDBs []ReferenceDB

ReferenceDBs arrays referenceDBs swagger:response referenceDBsResponse

type ReferencePointersEnconding

type ReferencePointersEnconding struct {
}

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

type ReferenceWOP

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

	Name string `xlsx:"1"`

	NbInstances int `xlsx:"2"`

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

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

type TreeAPI

type TreeAPI struct {
	gorm.Model

	models.Tree

	// encoding of pointers
	TreePointersEnconding
}

TreeAPI 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 treeAPI

type TreeDB

type TreeDB struct {
	gorm.Model

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

	// Declation for basic field treeDB.Type
	Type_Data sql.NullString
	// encoding of pointers
	TreePointersEnconding
}

TreeDB describes a tree 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 treeDB

func (*TreeDB) CopyBasicFieldsFromTree

func (treeDB *TreeDB) CopyBasicFieldsFromTree(tree *models.Tree)

CopyBasicFieldsFromTree

func (*TreeDB) CopyBasicFieldsFromTreeWOP

func (treeDB *TreeDB) CopyBasicFieldsFromTreeWOP(tree *TreeWOP)

CopyBasicFieldsFromTreeWOP

func (*TreeDB) CopyBasicFieldsToTree

func (treeDB *TreeDB) CopyBasicFieldsToTree(tree *models.Tree)

CopyBasicFieldsToTree

func (*TreeDB) CopyBasicFieldsToTreeWOP

func (treeDB *TreeDB) CopyBasicFieldsToTreeWOP(tree *TreeWOP)

CopyBasicFieldsToTreeWOP

type TreeDBResponse

type TreeDBResponse struct {
	TreeDB
}

TreeDBResponse provides response swagger:response treeDBResponse

type TreeDBs

type TreeDBs []TreeDB

TreeDBs arrays treeDBs swagger:response treeDBsResponse

type TreePointersEnconding

type TreePointersEnconding struct {
}

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

type TreeWOP

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

	Name string `xlsx:"1"`

	Type models.TreeType `xlsx:"2"`
}

TreeWOP is a Tree 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

	// encoding of pointers
	UmlStatePointersEnconding
}

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
	UmlStatePointersEnconding
}

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) CopyBasicFieldsToUmlState

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

CopyBasicFieldsToUmlState

func (*UmlStateDB) CopyBasicFieldsToUmlStateWOP

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

CopyBasicFieldsToUmlStateWOP

type UmlStateDBResponse

type UmlStateDBResponse struct {
	UmlStateDB
}

UmlStateDBResponse provides response swagger:response umlstateDBResponse

type UmlStateDBs

type UmlStateDBs []UmlStateDB

UmlStateDBs arrays umlstateDBs swagger:response umlstateDBsResponse

type UmlStatePointersEnconding

type UmlStatePointersEnconding struct {

	// Implementation of a reverse ID for field Umlsc{}.States []*UmlState
	Umlsc_StatesDBID sql.NullInt64

	// implementation of the index of the withing the slice
	Umlsc_StatesDBID_Index sql.NullInt64
}

UmlStatePointersEnconding 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

	// encoding of pointers
	UmlscPointersEnconding
}

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
	UmlscPointersEnconding
}

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) CopyBasicFieldsToUmlsc

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

CopyBasicFieldsToUmlsc

func (*UmlscDB) CopyBasicFieldsToUmlscWOP

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

CopyBasicFieldsToUmlscWOP

type UmlscDBResponse

type UmlscDBResponse struct {
	UmlscDB
}

UmlscDBResponse provides response swagger:response umlscDBResponse

type UmlscDBs

type UmlscDBs []UmlscDB

UmlscDBs arrays umlscDBs swagger:response umlscDBsResponse

type UmlscPointersEnconding

type UmlscPointersEnconding struct {

	// Implementation of a reverse ID for field DiagramPackage{}.Umlscs []*Umlsc
	DiagramPackage_UmlscsDBID sql.NullInt64

	// implementation of the index of the withing the slice
	DiagramPackage_UmlscsDBID_Index sql.NullInt64
}

UmlscPointersEnconding 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

	// encoding of pointers
	VerticePointersEnconding
}

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
	VerticePointersEnconding
}

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) CopyBasicFieldsToVertice

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

CopyBasicFieldsToVertice

func (*VerticeDB) CopyBasicFieldsToVerticeWOP

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

CopyBasicFieldsToVerticeWOP

type VerticeDBResponse

type VerticeDBResponse struct {
	VerticeDB
}

VerticeDBResponse provides response swagger:response verticeDBResponse

type VerticeDBs

type VerticeDBs []VerticeDB

VerticeDBs arrays verticeDBs swagger:response verticeDBsResponse

type VerticePointersEnconding

type VerticePointersEnconding struct {
}

VerticePointersEnconding 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