Beispiel #1
0
// Environment2PhenotypeComparison pointed to by the foreign key.
func (o *Environment) Environment2PhenotypeComparison(exec boil.Executor, mods ...qm.QueryMod) phenotypeComparisonQuery {
	queryMods := []qm.QueryMod{
		qm.Where("environment2_id=$1", o.EnvironmentID),
	}

	queryMods = append(queryMods, mods...)

	query := PhenotypeComparisons(exec, queryMods...)
	queries.SetFrom(query.Query, "\"phenotype_comparison\"")

	return query
}
Beispiel #2
0
// Dbxref pointed to by the foreign key.
func (o *FeatureDbxref) Dbxref(exec boil.Executor, mods ...qm.QueryMod) dbxrefQuery {
	queryMods := []qm.QueryMod{
		qm.Where("dbxref_id=$1", o.DbxrefID),
	}

	queryMods = append(queryMods, mods...)

	query := Dbxrefs(exec, queryMods...)
	queries.SetFrom(query.Query, "\"dbxref\"")

	return query
}
Beispiel #3
0
// Featureprop pointed to by the foreign key.
func (o *FeaturepropPub) Featureprop(exec boil.Executor, mods ...qm.QueryMod) featurepropQuery {
	queryMods := []qm.QueryMod{
		qm.Where("featureprop_id=$1", o.FeaturepropID),
	}

	queryMods = append(queryMods, mods...)

	query := Featureprops(exec, queryMods...)
	queries.SetFrom(query.Query, "\"featureprop\"")

	return query
}
Beispiel #4
0
// Cvterm pointed to by the foreign key.
func (o *CvtermDbxref) Cvterm(exec boil.Executor, mods ...qm.QueryMod) cvtermQuery {
	queryMods := []qm.QueryMod{
		qm.Where("cvterm_id=$1", o.CvtermID),
	}

	queryMods = append(queryMods, mods...)

	query := Cvterms(exec, queryMods...)
	queries.SetFrom(query.Query, "\"cvterm\"")

	return query
}
Beispiel #5
0
// AuthRole pointed to by the foreign key.
func (o *AuthUserRole) AuthRole(exec boil.Executor, mods ...qm.QueryMod) authRoleQuery {
	queryMods := []qm.QueryMod{
		qm.Where("auth_role_id=$1", o.AuthRoleID),
	}

	queryMods = append(queryMods, mods...)

	query := AuthRoles(exec, queryMods...)
	queries.SetFrom(query.Query, "\"auth_role\"")

	return query
}
Beispiel #6
0
// Contact pointed to by the foreign key.
func (o *Stockcollection) Contact(exec boil.Executor, mods ...qm.QueryMod) contactQuery {
	queryMods := []qm.QueryMod{
		qm.Where("contact_id=$1", o.ContactID),
	}

	queryMods = append(queryMods, mods...)

	query := Contacts(exec, queryMods...)
	queries.SetFrom(query.Query, "\"contact\"")

	return query
}
Beispiel #7
0
// SubjectContactRelationship pointed to by the foreign key.
func (o *Contact) SubjectContactRelationship(exec boil.Executor, mods ...qm.QueryMod) contactRelationshipQuery {
	queryMods := []qm.QueryMod{
		qm.Where("subject_id=$1", o.ContactID),
	}

	queryMods = append(queryMods, mods...)

	query := ContactRelationships(exec, queryMods...)
	queries.SetFrom(query.Query, "\"contact_relationship\"")

	return query
}
Beispiel #8
0
// JbrowseTrack pointed to by the foreign key.
func (o *JbrowseOrganism) JbrowseTrack(exec boil.Executor, mods ...qm.QueryMod) jbrowseTrackQuery {
	queryMods := []qm.QueryMod{
		qm.Where("jbrowse_organism_id=$1", o.JbrowseOrganismID),
	}

	queryMods = append(queryMods, mods...)

	query := JbrowseTracks(exec, queryMods...)
	queries.SetFrom(query.Query, "\"jbrowse_track\"")

	return query
}
Beispiel #9
0
// Genotype pointed to by the foreign key.
func (o *Phendesc) Genotype(exec boil.Executor, mods ...qm.QueryMod) genotypeQuery {
	queryMods := []qm.QueryMod{
		qm.Where("genotype_id=$1", o.GenotypeID),
	}

	queryMods = append(queryMods, mods...)

	query := Genotypes(exec, queryMods...)
	queries.SetFrom(query.Query, "\"genotype\"")

	return query
}
Beispiel #10
0
// StockpropPub pointed to by the foreign key.
func (o *Stockprop) StockpropPub(exec boil.Executor, mods ...qm.QueryMod) stockpropPubQuery {
	queryMods := []qm.QueryMod{
		qm.Where("stockprop_id=$1", o.StockpropID),
	}

	queryMods = append(queryMods, mods...)

	query := StockpropPubs(exec, queryMods...)
	queries.SetFrom(query.Query, "\"stockprop_pub\"")

	return query
}
Beispiel #11
0
// Organism pointed to by the foreign key.
func (o *JbrowseOrganism) Organism(exec boil.Executor, mods ...qm.QueryMod) organismQuery {
	queryMods := []qm.QueryMod{
		qm.Where("organism_id=$1", o.OrganismID),
	}

	queryMods = append(queryMods, mods...)

	query := Organisms(exec, queryMods...)
	queries.SetFrom(query.Query, "\"organism\"")

	return query
}
Beispiel #12
0
// Analysi pointed to by the foreign key.
func (o *Analysisprop) Analysi(exec boil.Executor, mods ...qm.QueryMod) analysiQuery {
	queryMods := []qm.QueryMod{
		qm.Where("analysis_id=$1", o.AnalysisID),
	}

	queryMods = append(queryMods, mods...)

	query := Analyses(exec, queryMods...)
	queries.SetFrom(query.Query, "\"analysis\"")

	return query
}
Beispiel #13
0
// File pointed to by the foreign key.
func (o *Download) File(exec boil.Executor, mods ...qm.QueryMod) fileQuery {
	queryMods := []qm.QueryMod{
		qm.Where("id=$1", o.FileID),
	}

	queryMods = append(queryMods, mods...)

	query := Files(exec, queryMods...)
	queries.SetFrom(query.Query, "\"files\"")

	return query
}
Beispiel #14
0
// Subject pointed to by the foreign key.
func (o *UserRelationship) Subject(exec boil.Executor, mods ...qm.QueryMod) cvtermQuery {
	queryMods := []qm.QueryMod{
		qm.Where("cvterm_id=$1", o.SubjectID),
	}

	queryMods = append(queryMods, mods...)

	query := Cvterms(exec, queryMods...)
	queries.SetFrom(query.Query, "\"cvterm\"")

	return query
}
// StockRelationship pointed to by the foreign key.
func (o *StockRelationshipCvterm) StockRelationship(exec boil.Executor, mods ...qm.QueryMod) stockRelationshipQuery {
	queryMods := []qm.QueryMod{
		qm.Where("stock_relationship_id=$1", o.StockRelationshipID),
	}

	queryMods = append(queryMods, mods...)

	query := StockRelationships(exec, queryMods...)
	queries.SetFrom(query.Query, "\"stock_relationship\"")

	return query
}
Beispiel #16
0
// AuthUser pointed to by the foreign key.
func (o *AuthUserInfo) AuthUser(exec boil.Executor, mods ...qm.QueryMod) authUserQuery {
	queryMods := []qm.QueryMod{
		qm.Where("auth_user_id=$1", o.AuthUserID),
	}

	queryMods = append(queryMods, mods...)

	query := AuthUsers(exec, queryMods...)
	queries.SetFrom(query.Query, "\"auth_user\"")

	return query
}
// AuthPermission pointed to by the foreign key.
func (o *AuthRolePermission) AuthPermission(exec boil.Executor, mods ...qm.QueryMod) authPermissionQuery {
	queryMods := []qm.QueryMod{
		qm.Where("auth_permission_id=$1", o.AuthPermissionID),
	}

	queryMods = append(queryMods, mods...)

	query := AuthPermissions(exec, queryMods...)
	queries.SetFrom(query.Query, "\"auth_permission\"")

	return query
}
Beispiel #18
0
// Environment pointed to by the foreign key.
func (o *Phenstatement) Environment(exec boil.Executor, mods ...qm.QueryMod) environmentQuery {
	queryMods := []qm.QueryMod{
		qm.Where("environment_id=$1", o.EnvironmentID),
	}

	queryMods = append(queryMods, mods...)

	query := Environments(exec, queryMods...)
	queries.SetFrom(query.Query, "\"environment\"")

	return query
}
Beispiel #19
0
// Stockcollectionprop pointed to by the foreign key.
func (o *Stockcollection) Stockcollectionprop(exec boil.Executor, mods ...qm.QueryMod) stockcollectionpropQuery {
	queryMods := []qm.QueryMod{
		qm.Where("stockcollection_id=$1", o.StockcollectionID),
	}

	queryMods = append(queryMods, mods...)

	query := Stockcollectionprops(exec, queryMods...)
	queries.SetFrom(query.Query, "\"stockcollectionprop\"")

	return query
}
Beispiel #20
0
// Phenotype pointed to by the foreign key.
func (o *Phenstatement) Phenotype(exec boil.Executor, mods ...qm.QueryMod) phenotypeQuery {
	queryMods := []qm.QueryMod{
		qm.Where("phenotype_id=$1", o.PhenotypeID),
	}

	queryMods = append(queryMods, mods...)

	query := Phenotypes(exec, queryMods...)
	queries.SetFrom(query.Query, "\"phenotype\"")

	return query
}
Beispiel #21
0
// Analysisfeatureprop pointed to by the foreign key.
func (o *Analysisfeature) Analysisfeatureprop(exec boil.Executor, mods ...qm.QueryMod) analysisfeaturepropQuery {
	queryMods := []qm.QueryMod{
		qm.Where("analysisfeature_id=$1", o.AnalysisfeatureID),
	}

	queryMods = append(queryMods, mods...)

	query := Analysisfeatureprops(exec, queryMods...)
	queries.SetFrom(query.Query, "\"analysisfeatureprop\"")

	return query
}
Beispiel #22
0
// Subject pointed to by the foreign key.
func (o *PubRelationship) Subject(exec boil.Executor, mods ...qm.QueryMod) pubQuery {
	queryMods := []qm.QueryMod{
		qm.Where("pub_id=$1", o.SubjectID),
	}

	queryMods = append(queryMods, mods...)

	query := Pubs(exec, queryMods...)
	queries.SetFrom(query.Query, "\"pub\"")

	return query
}
Beispiel #23
0
// FeatureCvterm pointed to by the foreign key.
func (o *FeatureCvtermprop) FeatureCvterm(exec boil.Executor, mods ...qm.QueryMod) featureCvtermQuery {
	queryMods := []qm.QueryMod{
		qm.Where("feature_cvterm_id=$1", o.FeatureCvtermID),
	}

	queryMods = append(queryMods, mods...)

	query := FeatureCvterms(exec, queryMods...)
	queries.SetFrom(query.Query, "\"feature_cvterm\"")

	return query
}
Beispiel #24
0
// Cvprop pointed to by the foreign key.
func (o *CV) Cvprop(exec boil.Executor, mods ...qm.QueryMod) cvpropQuery {
	queryMods := []qm.QueryMod{
		qm.Where("cv_id=$1", o.CVID),
	}

	queryMods = append(queryMods, mods...)

	query := Cvprops(exec, queryMods...)
	queries.SetFrom(query.Query, "\"cvprop\"")

	return query
}
Beispiel #25
0
// Type pointed to by the foreign key.
func (o *Featureprop) Type(exec boil.Executor, mods ...qm.QueryMod) cvtermQuery {
	queryMods := []qm.QueryMod{
		qm.Where("cvterm_id=$1", o.TypeID),
	}

	queryMods = append(queryMods, mods...)

	query := Cvterms(exec, queryMods...)
	queries.SetFrom(query.Query, "\"cvterm\"")

	return query
}
Beispiel #26
0
// Stock pointed to by the foreign key.
func (o *StockCvterm) Stock(exec boil.Executor, mods ...qm.QueryMod) stockQuery {
	queryMods := []qm.QueryMod{
		qm.Where("stock_id=$1", o.StockID),
	}

	queryMods = append(queryMods, mods...)

	query := Stocks(exec, queryMods...)
	queries.SetFrom(query.Query, "\"stock\"")

	return query
}
Beispiel #27
0
// Feature pointed to by the foreign key.
func (o *FeatureDbxref) Feature(exec boil.Executor, mods ...qm.QueryMod) featureQuery {
	queryMods := []qm.QueryMod{
		qm.Where("feature_id=$1", o.FeatureID),
	}

	queryMods = append(queryMods, mods...)

	query := Features(exec, queryMods...)
	queries.SetFrom(query.Query, "\"feature\"")

	return query
}
// Pub pointed to by the foreign key.
func (o *StockRelationshipCvterm) Pub(exec boil.Executor, mods ...qm.QueryMod) pubQuery {
	queryMods := []qm.QueryMod{
		qm.Where("pub_id=$1", o.PubID),
	}

	queryMods = append(queryMods, mods...)

	query := Pubs(exec, queryMods...)
	queries.SetFrom(query.Query, "\"pub\"")

	return query
}
Beispiel #29
0
// Pub pointed to by the foreign key.
func (o *FeaturepropPub) Pub(exec boil.Executor, mods ...qm.QueryMod) pubQuery {
	queryMods := []qm.QueryMod{
		qm.Where("pub_id=$1", o.PubID),
	}

	queryMods = append(queryMods, mods...)

	query := Pubs(exec, queryMods...)
	queries.SetFrom(query.Query, "\"pub\"")

	return query
}
Beispiel #30
0
// Phendesc pointed to by the foreign key.
func (o *Environment) Phendesc(exec boil.Executor, mods ...qm.QueryMod) phendescQuery {
	queryMods := []qm.QueryMod{
		qm.Where("environment_id=$1", o.EnvironmentID),
	}

	queryMods = append(queryMods, mods...)

	query := Phendescs(exec, queryMods...)
	queries.SetFrom(query.Query, "\"phendesc\"")

	return query
}