diff --git a/CDP4Orm/AutoGenDao/ActionItemDao.cs b/CDP4Orm/AutoGenDao/ActionItemDao.cs
index f228bf88..feb4caa4 100644
--- a/CDP4Orm/AutoGenDao/ActionItemDao.cs
+++ b/CDP4Orm/AutoGenDao/ActionItemDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -289,6 +285,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, actionItem, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The actionItem DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActionItem actionItem, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, actionItem, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "CloseOutDate", !this.IsDerived(actionItem, "CloseOutDate") && actionItem.CloseOutDate.HasValue ? actionItem.CloseOutDate.Value.ToString(Utils.DateTimeUtcSerializationFormat) : null },
+ { "CloseOutStatement", !this.IsDerived(actionItem, "CloseOutStatement") ? actionItem.CloseOutStatement.Escape() : null },
+ { "DueDate", !this.IsDerived(actionItem, "DueDate") ? actionItem.DueDate.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ActionItem\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Actionee\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :actionee)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = actionItem.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("actionee", NpgsqlDbType.Uuid).Value = !this.IsDerived(actionItem, "Actionee") ? actionItem.Actionee : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Actionee\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :actionee);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -372,5 +425,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ActualFiniteStateDao.cs b/CDP4Orm/AutoGenDao/ActualFiniteStateDao.cs
index abd46008..3d287db9 100644
--- a/CDP4Orm/AutoGenDao/ActualFiniteStateDao.cs
+++ b/CDP4Orm/AutoGenDao/ActualFiniteStateDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -226,6 +222,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, actualFiniteState, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The actualFiniteState DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActualFiniteState actualFiniteState, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, actualFiniteState, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Kind", !this.IsDerived(actualFiniteState, "Kind") ? actualFiniteState.Kind.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ActualFiniteState\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = actualFiniteState.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ actualFiniteState.PossibleState.ForEach(x => this.UpsertPossibleState(transaction, partition, actualFiniteState.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -306,6 +358,49 @@ public bool AddPossibleState(NpgsqlTransaction transaction, string partition, Gu
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertPossibleState(NpgsqlTransaction transaction, string partition, Guid iid, Guid possibleState)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ActualFiniteState_PossibleState\"", partition);
+ sqlBuilder.AppendFormat(" (\"ActualFiniteState\", \"PossibleState\")");
+ sqlBuilder.Append(" VALUES (:actualFiniteState, :possibleState)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ActualFiniteState_PossibleState_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ActualFiniteState\", \"PossibleState\")");
+ sqlBuilder.Append(" = (:actualFiniteState, :possibleState);");
+
+ command.Parameters.Add("actualFiniteState", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("possibleState", NpgsqlDbType.Uuid).Value = possibleState;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -388,6 +483,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ActualFiniteStateListDao.cs b/CDP4Orm/AutoGenDao/ActualFiniteStateListDao.cs
index a905ff1b..845bc50b 100644
--- a/CDP4Orm/AutoGenDao/ActualFiniteStateListDao.cs
+++ b/CDP4Orm/AutoGenDao/ActualFiniteStateListDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -219,6 +215,58 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, actualFiniteStateList, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The actualFiniteStateList DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActualFiniteStateList actualFiniteStateList, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, actualFiniteStateList, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ActualFiniteStateList\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = actualFiniteStateList.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(actualFiniteStateList, "Owner") ? actualFiniteStateList.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Container\", \"Owner\")");
+ sqlBuilder.Append(" = (:container, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ actualFiniteStateList.ExcludeOption.ForEach(x => this.UpsertExcludeOption(transaction, partition, actualFiniteStateList.Iid, x));
+ actualFiniteStateList.PossibleFiniteStateList.ForEach(x => this.UpsertPossibleFiniteStateList(transaction, partition, actualFiniteStateList.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -304,6 +352,49 @@ public bool AddExcludeOption(NpgsqlTransaction transaction, string partition, Gu
return this.ExecuteAndLogCommand(command) > 0;
}
}
+
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertExcludeOption(NpgsqlTransaction transaction, string partition, Guid iid, Guid excludeOption)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ActualFiniteStateList_ExcludeOption\"", partition);
+ sqlBuilder.AppendFormat(" (\"ActualFiniteStateList\", \"ExcludeOption\")");
+ sqlBuilder.Append(" VALUES (:actualFiniteStateList, :excludeOption)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ActualFiniteStateList_ExcludeOption_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ActualFiniteStateList\", \"ExcludeOption\")");
+ sqlBuilder.Append(" = (:actualFiniteStateList, :excludeOption);");
+
+ command.Parameters.Add("actualFiniteStateList", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("excludeOption", NpgsqlDbType.Uuid).Value = excludeOption;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
///
/// Insert a new association record in the link table.
///
@@ -343,6 +434,50 @@ public bool AddPossibleFiniteStateList(NpgsqlTransaction transaction, string par
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertPossibleFiniteStateList(NpgsqlTransaction transaction, string partition, Guid iid, CDP4Common.Types.OrderedItem possibleFiniteStateList)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ActualFiniteStateList_PossibleFiniteStateList\"", partition);
+ sqlBuilder.AppendFormat(" (\"ActualFiniteStateList\", \"PossibleFiniteStateList\", \"Sequence\")");
+ sqlBuilder.Append(" VALUES (:actualFiniteStateList, :possibleFiniteStateList, :sequence)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ActualFiniteStateList_PossibleFiniteStateList_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.AppendFormat(" SET (\"ActualFiniteStateList\", \"PossibleFiniteStateList\", \"Sequence\")");
+ sqlBuilder.Append(" = (:actualFiniteStateList, :possibleFiniteStateList, :sequence);");
+
+ command.Parameters.Add("actualFiniteStateList", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("possibleFiniteStateList", NpgsqlDbType.Uuid).Value = Guid.Parse(possibleFiniteStateList.V.ToString());
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = possibleFiniteStateList.K;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -505,6 +640,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/AliasDao.cs b/CDP4Orm/AutoGenDao/AliasDao.cs
index 85e118b7..5a218ea3 100644
--- a/CDP4Orm/AutoGenDao/AliasDao.cs
+++ b/CDP4Orm/AutoGenDao/AliasDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -238,6 +234,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, alias, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The alias DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Alias alias, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, alias, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Content", !this.IsDerived(alias, "Content") ? alias.Content.Escape() : string.Empty },
+ { "IsSynonym", !this.IsDerived(alias, "IsSynonym") ? alias.IsSynonym.ToString() : string.Empty },
+ { "LanguageCode", !this.IsDerived(alias, "LanguageCode") ? alias.LanguageCode.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Alias\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = alias.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -321,5 +374,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/AndExpressionDao.cs b/CDP4Orm/AutoGenDao/AndExpressionDao.cs
index 79279482..5ee177b3 100644
--- a/CDP4Orm/AutoGenDao/AndExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/AndExpressionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -213,6 +209,53 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, andExpression, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The andExpression DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.AndExpression andExpression, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, andExpression, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"AndExpression\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = andExpression.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ andExpression.Term.ForEach(x => this.UpsertTerm(transaction, partition, andExpression.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -293,6 +336,49 @@ public bool AddTerm(NpgsqlTransaction transaction, string partition, Guid iid, G
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertTerm(NpgsqlTransaction transaction, string partition, Guid iid, Guid term)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"AndExpression_Term\"", partition);
+ sqlBuilder.AppendFormat(" (\"AndExpression\", \"Term\")");
+ sqlBuilder.Append(" VALUES (:andExpression, :term)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"AndExpression_Term_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"AndExpression\", \"Term\")");
+ sqlBuilder.Append(" = (:andExpression, :term);");
+
+ command.Parameters.Add("andExpression", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("term", NpgsqlDbType.Uuid).Value = term;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -351,6 +437,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ApprovalDao.cs b/CDP4Orm/AutoGenDao/ApprovalDao.cs
index fdbde4e3..14a9138e 100644
--- a/CDP4Orm/AutoGenDao/ApprovalDao.cs
+++ b/CDP4Orm/AutoGenDao/ApprovalDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -246,6 +242,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, approval, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The approval DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Approval approval, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, approval, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Classification", !this.IsDerived(approval, "Classification") ? approval.Classification.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Approval\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"Author\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :author, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = approval.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("author", NpgsqlDbType.Uuid).Value = !this.IsDerived(approval, "Author") ? approval.Author : Utils.NullableValue(null);
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(approval, "Owner") ? approval.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"Author\", \"Owner\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :author, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -329,5 +382,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ArrayParameterTypeDao.cs b/CDP4Orm/AutoGenDao/ArrayParameterTypeDao.cs
index 4db98be3..889eede4 100644
--- a/CDP4Orm/AutoGenDao/ArrayParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/ArrayParameterTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -261,6 +257,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, arrayParameterType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The arrayParameterType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ArrayParameterType arrayParameterType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, arrayParameterType, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsTensor", !this.IsDerived(arrayParameterType, "IsTensor") ? arrayParameterType.IsTensor.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ArrayParameterType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = arrayParameterType.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ arrayParameterType.Dimension.ForEach(x => this.UpsertDimension(transaction, partition, arrayParameterType.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -342,6 +394,50 @@ public bool AddDimension(NpgsqlTransaction transaction, string partition, Guid i
}
}
+ ///
+ /// Insert a new association record in the link table, or update an existing one if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertDimension(NpgsqlTransaction transaction, string partition, Guid iid, CDP4Common.Types.OrderedItem dimension)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ArrayParameterType_Dimension\"", partition);
+ sqlBuilder.AppendFormat(" (\"ArrayParameterType\", \"Dimension\", \"Sequence\")");
+ sqlBuilder.Append(" VALUES (:arrayParameterType, :dimension, :sequence)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ArrayParameterType_Dimension_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ArrayParameterType\", \"Dimension\", \"Sequence\")");
+ sqlBuilder.Append(" = (:arrayParameterType, :dimension, :sequence);");
+
+ command.Parameters.Add("arrayParameterType", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("dimension", NpgsqlDbType.Integer).Value = Convert.ToInt32(dimension.V.ToString());
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = dimension.K;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -508,6 +604,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/BinaryNoteDao.cs b/CDP4Orm/AutoGenDao/BinaryNoteDao.cs
index 27f3ef17..e88c7f3e 100644
--- a/CDP4Orm/AutoGenDao/BinaryNoteDao.cs
+++ b/CDP4Orm/AutoGenDao/BinaryNoteDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -245,6 +241,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, binaryNote, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The binaryNote DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryNote binaryNote, long sequence, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, binaryNote, sequence, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Caption", !this.IsDerived(binaryNote, "Caption") ? binaryNote.Caption.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"BinaryNote\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"FileType\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :fileType)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = binaryNote.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("fileType", NpgsqlDbType.Uuid).Value = !this.IsDerived(binaryNote, "FileType") ? binaryNote.FileType : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"FileType\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :fileType);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -326,5 +377,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/BinaryRelationshipDao.cs b/CDP4Orm/AutoGenDao/BinaryRelationshipDao.cs
index 50b114bc..8f832250 100644
--- a/CDP4Orm/AutoGenDao/BinaryRelationshipDao.cs
+++ b/CDP4Orm/AutoGenDao/BinaryRelationshipDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -224,6 +220,56 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, binaryRelationship, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The binaryRelationship DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryRelationship binaryRelationship, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, binaryRelationship, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"BinaryRelationship\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Source\", \"Target\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :source, :target)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = binaryRelationship.Iid;
+ command.Parameters.Add("source", NpgsqlDbType.Uuid).Value = !this.IsDerived(binaryRelationship, "Source") ? binaryRelationship.Source : Utils.NullableValue(null);
+ command.Parameters.Add("target", NpgsqlDbType.Uuid).Value = !this.IsDerived(binaryRelationship, "Target") ? binaryRelationship.Target : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Source\", \"Target\")");
+ sqlBuilder.Append(" = (:source, :target);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -300,5 +346,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/BinaryRelationshipRuleDao.cs b/CDP4Orm/AutoGenDao/BinaryRelationshipRuleDao.cs
index b047cc72..aed7b5d9 100644
--- a/CDP4Orm/AutoGenDao/BinaryRelationshipRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/BinaryRelationshipRuleDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -257,6 +253,64 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, binaryRelationshipRule, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The binaryRelationshipRule DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryRelationshipRule binaryRelationshipRule, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, binaryRelationshipRule, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "ForwardRelationshipName", !this.IsDerived(binaryRelationshipRule, "ForwardRelationshipName") ? binaryRelationshipRule.ForwardRelationshipName.Escape() : string.Empty },
+ { "InverseRelationshipName", !this.IsDerived(binaryRelationshipRule, "InverseRelationshipName") ? binaryRelationshipRule.InverseRelationshipName.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"BinaryRelationshipRule\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"RelationshipCategory\", \"SourceCategory\", \"TargetCategory\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :relationshipCategory, :sourceCategory, :targetCategory)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = binaryRelationshipRule.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("relationshipCategory", NpgsqlDbType.Uuid).Value = !this.IsDerived(binaryRelationshipRule, "RelationshipCategory") ? binaryRelationshipRule.RelationshipCategory : Utils.NullableValue(null);
+ command.Parameters.Add("sourceCategory", NpgsqlDbType.Uuid).Value = !this.IsDerived(binaryRelationshipRule, "SourceCategory") ? binaryRelationshipRule.SourceCategory : Utils.NullableValue(null);
+ command.Parameters.Add("targetCategory", NpgsqlDbType.Uuid).Value = !this.IsDerived(binaryRelationshipRule, "TargetCategory") ? binaryRelationshipRule.TargetCategory : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"RelationshipCategory\", \"SourceCategory\", \"TargetCategory\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :relationshipCategory, :sourceCategory, :targetCategory);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -341,5 +395,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/BookDao.cs b/CDP4Orm/AutoGenDao/BookDao.cs
index 980e7bfd..33dddd3f 100644
--- a/CDP4Orm/AutoGenDao/BookDao.cs
+++ b/CDP4Orm/AutoGenDao/BookDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -247,6 +243,69 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, book, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The book DTO that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Book book, long sequence, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, book, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "CreatedOn", !this.IsDerived(book, "CreatedOn") ? book.CreatedOn.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ { "Name", !this.IsDerived(book, "Name") ? book.Name.Escape() : string.Empty },
+ { "ShortName", !this.IsDerived(book, "ShortName") ? book.ShortName.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Book\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Sequence\", \"Container\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :sequence, :container, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = book.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = sequence;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(book, "Owner") ? book.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"Owner\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ book.Category.ForEach(x => this.UpsertCategory(transaction, partition, book.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -327,6 +386,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Book_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"Book\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:book, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Book_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Book\", \"Category\")");
+ sqlBuilder.Append(" = (:book, :category);");
+
+ command.Parameters.Add("book", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -451,6 +553,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/BooleanExpressionDao.cs b/CDP4Orm/AutoGenDao/BooleanExpressionDao.cs
index 566ffd55..fa02e021 100644
--- a/CDP4Orm/AutoGenDao/BooleanExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/BooleanExpressionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -93,6 +89,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, booleanExpression, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The booleanExpression DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BooleanExpression booleanExpression, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, booleanExpression, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"BooleanExpression\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = booleanExpression.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Container\"");
+ sqlBuilder.Append(" = :container;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -168,5 +213,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/BooleanParameterTypeDao.cs b/CDP4Orm/AutoGenDao/BooleanParameterTypeDao.cs
index f3a736b6..63e28549 100644
--- a/CDP4Orm/AutoGenDao/BooleanParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/BooleanParameterTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -239,6 +235,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, booleanParameterType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The booleanParameterType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BooleanParameterType booleanParameterType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, booleanParameterType, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"BooleanParameterType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = booleanParameterType.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -296,5 +338,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/BoundsDao.cs b/CDP4Orm/AutoGenDao/BoundsDao.cs
index ef4920c8..16e9fba6 100644
--- a/CDP4Orm/AutoGenDao/BoundsDao.cs
+++ b/CDP4Orm/AutoGenDao/BoundsDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -251,6 +247,64 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, bounds, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The bounds DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Bounds bounds, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, bounds, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Height", !this.IsDerived(bounds, "Height") ? bounds.Height.ToString() : string.Empty },
+ { "Width", !this.IsDerived(bounds, "Width") ? bounds.Width.ToString() : string.Empty },
+ { "X", !this.IsDerived(bounds, "X") ? bounds.X.ToString() : string.Empty },
+ { "Y", !this.IsDerived(bounds, "Y") ? bounds.Y.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Bounds\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = bounds.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -335,5 +389,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/BuiltInRuleVerificationDao.cs b/CDP4Orm/AutoGenDao/BuiltInRuleVerificationDao.cs
index 5061411a..01416726 100644
--- a/CDP4Orm/AutoGenDao/BuiltInRuleVerificationDao.cs
+++ b/CDP4Orm/AutoGenDao/BuiltInRuleVerificationDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -236,6 +232,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, builtInRuleVerification, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The builtInRuleVerification DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BuiltInRuleVerification builtInRuleVerification, long sequence, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, builtInRuleVerification, sequence, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"BuiltInRuleVerification\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = builtInRuleVerification.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -293,5 +335,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/CategoryDao.cs b/CDP4Orm/AutoGenDao/CategoryDao.cs
index 27457ba5..ac038b10 100644
--- a/CDP4Orm/AutoGenDao/CategoryDao.cs
+++ b/CDP4Orm/AutoGenDao/CategoryDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -251,6 +247,65 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, category, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The category DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Category category, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, category, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsAbstract", !this.IsDerived(category, "IsAbstract") ? category.IsAbstract.ToString() : string.Empty },
+ { "IsDeprecated", !this.IsDerived(category, "IsDeprecated") ? category.IsDeprecated.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = category.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ category.PermissibleClass.ForEach(x => this.UpsertPermissibleClass(transaction, partition, category.Iid, x));
+ category.SuperCategory.ForEach(x => this.UpsertSuperCategory(transaction, partition, category.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -337,6 +392,45 @@ public bool AddPermissibleClass(NpgsqlTransaction transaction, string partition,
}
}
+ ///
+ /// Insert a new association record in the link table, or update an existing one if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertPermissibleClass(NpgsqlTransaction transaction, string partition, Guid iid, CDP4Common.CommonData.ClassKind permissibleClass)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Category_PermissibleClass\"", partition);
+ sqlBuilder.AppendFormat(" (\"Category\", \"PermissibleClass\")");
+ sqlBuilder.Append(" VALUES (:category, :permissibleClass)");
+
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("permissibleClass", NpgsqlDbType.Text).Value = permissibleClass.ToString();
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Insert a new association record in the link table.
///
@@ -375,6 +469,49 @@ public bool AddSuperCategory(NpgsqlTransaction transaction, string partition, Gu
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertSuperCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid superCategory)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Category_SuperCategory\"", partition);
+ sqlBuilder.AppendFormat(" (\"Category\", \"SuperCategory\")");
+ sqlBuilder.Append(" VALUES (:category, :superCategory)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Category_SuperCategory_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Category\", \"SuperCategory\")");
+ sqlBuilder.Append(" = (:category, :superCategory);");
+
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("superCategory", NpgsqlDbType.Uuid).Value = superCategory;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -476,6 +613,50 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", "true" }
+ };
+ sqlBuilder.AppendFormat("UPDATE \"{0}\".\"Category\"", partition);
+ sqlBuilder.AppendFormat(" SET \"ValueTypeDictionary\" = :valueTypeDictionary");
+ sqlBuilder.AppendFormat(" WHERE \"Iid\" = :iid;");
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ result = this.ExecuteAndLogCommand(command) > 0;
+ }
+
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ChangeProposalDao.cs b/CDP4Orm/AutoGenDao/ChangeProposalDao.cs
index 15b04776..8fb7d51b 100644
--- a/CDP4Orm/AutoGenDao/ChangeProposalDao.cs
+++ b/CDP4Orm/AutoGenDao/ChangeProposalDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -263,6 +259,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, changeProposal, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The changeProposal DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ChangeProposal changeProposal, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, changeProposal, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ChangeProposal\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ChangeRequest\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :changeRequest)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = changeProposal.Iid;
+ command.Parameters.Add("changeRequest", NpgsqlDbType.Uuid).Value = !this.IsDerived(changeProposal, "ChangeRequest") ? changeProposal.ChangeRequest : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ChangeRequest\"");
+ sqlBuilder.Append(" = :changeRequest;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -338,5 +383,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ChangeRequestDao.cs b/CDP4Orm/AutoGenDao/ChangeRequestDao.cs
index eee2b5ce..c8836a2e 100644
--- a/CDP4Orm/AutoGenDao/ChangeRequestDao.cs
+++ b/CDP4Orm/AutoGenDao/ChangeRequestDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -261,6 +257,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, changeRequest, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The changeRequest DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ChangeRequest changeRequest, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, changeRequest, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ChangeRequest\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = changeRequest.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -318,5 +360,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/CitationDao.cs b/CDP4Orm/AutoGenDao/CitationDao.cs
index 751f814a..269572c2 100644
--- a/CDP4Orm/AutoGenDao/CitationDao.cs
+++ b/CDP4Orm/AutoGenDao/CitationDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -247,6 +243,65 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, citation, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The citation DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Citation citation, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, citation, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsAdaptation", !this.IsDerived(citation, "IsAdaptation") ? citation.IsAdaptation.ToString() : string.Empty },
+ { "Location", !this.IsDerived(citation, "Location") ? citation.Location.Escape() : null },
+ { "Remark", !this.IsDerived(citation, "Remark") ? citation.Remark.Escape() : null },
+ { "ShortName", !this.IsDerived(citation, "ShortName") ? citation.ShortName.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Citation\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"Source\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :source)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = citation.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("source", NpgsqlDbType.Uuid).Value = !this.IsDerived(citation, "Source") ? citation.Source : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"Source\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :source);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -332,5 +387,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ColorDao.cs b/CDP4Orm/AutoGenDao/ColorDao.cs
index acfb2fa7..56665e86 100644
--- a/CDP4Orm/AutoGenDao/ColorDao.cs
+++ b/CDP4Orm/AutoGenDao/ColorDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -244,6 +240,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, color, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The color DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Color color, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, color, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Blue", !this.IsDerived(color, "Blue") ? color.Blue.ToString() : string.Empty },
+ { "Green", !this.IsDerived(color, "Green") ? color.Green.ToString() : string.Empty },
+ { "Red", !this.IsDerived(color, "Red") ? color.Red.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Color\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = color.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -327,5 +380,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/CommonFileStoreDao.cs b/CDP4Orm/AutoGenDao/CommonFileStoreDao.cs
index 93c5b7ee..60d92a77 100644
--- a/CDP4Orm/AutoGenDao/CommonFileStoreDao.cs
+++ b/CDP4Orm/AutoGenDao/CommonFileStoreDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -227,6 +223,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, commonFileStore, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The commonFileStore DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CommonFileStore commonFileStore, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, commonFileStore, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"CommonFileStore\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = commonFileStore.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Container\"");
+ sqlBuilder.Append(" = :container;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -302,5 +347,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/CompoundParameterTypeDao.cs b/CDP4Orm/AutoGenDao/CompoundParameterTypeDao.cs
index bdb6d894..d282aea0 100644
--- a/CDP4Orm/AutoGenDao/CompoundParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/CompoundParameterTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -253,6 +249,60 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, compoundParameterType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The compoundParameterType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CompoundParameterType compoundParameterType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, compoundParameterType, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsFinalized", !this.IsDerived(compoundParameterType, "IsFinalized") ? compoundParameterType.IsFinalized.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"CompoundParameterType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = compoundParameterType.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -333,5 +383,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ConstantDao.cs b/CDP4Orm/AutoGenDao/ConstantDao.cs
index f6b0d35e..3b1702c9 100644
--- a/CDP4Orm/AutoGenDao/ConstantDao.cs
+++ b/CDP4Orm/AutoGenDao/ConstantDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -252,6 +248,65 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, constant, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The constant DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Constant constant, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, constant, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", !this.IsDerived(constant, "IsDeprecated") ? constant.IsDeprecated.ToString() : string.Empty },
+ { "Value", !this.IsDerived(constant, "Value") ? constant.Value.ToHstoreString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Constant\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"ParameterType\", \"Scale\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :parameterType, :scale)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = constant.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("parameterType", NpgsqlDbType.Uuid).Value = !this.IsDerived(constant, "ParameterType") ? constant.ParameterType : Utils.NullableValue(null);
+ command.Parameters.Add("scale", NpgsqlDbType.Uuid).Value = !this.IsDerived(constant, "Scale") ? Utils.NullableValue(constant.Scale) : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"ParameterType\", \"Scale\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :parameterType, :scale);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ constant.Category.ForEach(x => this.UpsertCategory(transaction, partition, constant.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -332,6 +387,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Constant_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"Constant\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:constant, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Constant_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Constant\", \"Category\")");
+ sqlBuilder.Append(" = (:constant, :category);");
+
+ command.Parameters.Add("constant", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -435,6 +533,50 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", "true" }
+ };
+ sqlBuilder.AppendFormat("UPDATE \"{0}\".\"Constant\"", partition);
+ sqlBuilder.AppendFormat(" SET \"ValueTypeDictionary\" = :valueTypeDictionary");
+ sqlBuilder.AppendFormat(" WHERE \"Iid\" = :iid;");
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ result = this.ExecuteAndLogCommand(command) > 0;
+ }
+
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ContractChangeNoticeDao.cs b/CDP4Orm/AutoGenDao/ContractChangeNoticeDao.cs
index 7fe51c24..1db7ed30 100644
--- a/CDP4Orm/AutoGenDao/ContractChangeNoticeDao.cs
+++ b/CDP4Orm/AutoGenDao/ContractChangeNoticeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -263,6 +259,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, contractChangeNotice, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The contractChangeNotice DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ContractChangeNotice contractChangeNotice, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, contractChangeNotice, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ContractChangeNotice\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ChangeProposal\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :changeProposal)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = contractChangeNotice.Iid;
+ command.Parameters.Add("changeProposal", NpgsqlDbType.Uuid).Value = !this.IsDerived(contractChangeNotice, "ChangeProposal") ? contractChangeNotice.ChangeProposal : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ChangeProposal\"");
+ sqlBuilder.Append(" = :changeProposal;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -338,5 +383,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ContractDeviationDao.cs b/CDP4Orm/AutoGenDao/ContractDeviationDao.cs
index bf3f632e..0955f089 100644
--- a/CDP4Orm/AutoGenDao/ContractDeviationDao.cs
+++ b/CDP4Orm/AutoGenDao/ContractDeviationDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -92,6 +88,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, contractDeviation, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The contractDeviation DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ContractDeviation contractDeviation, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, contractDeviation, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ContractDeviation\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = contractDeviation.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -149,5 +191,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ConversionBasedUnitDao.cs b/CDP4Orm/AutoGenDao/ConversionBasedUnitDao.cs
index b864caee..f25d6951 100644
--- a/CDP4Orm/AutoGenDao/ConversionBasedUnitDao.cs
+++ b/CDP4Orm/AutoGenDao/ConversionBasedUnitDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -99,6 +95,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, conversionBasedUnit, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The conversionBasedUnit DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ConversionBasedUnit conversionBasedUnit, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, conversionBasedUnit, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "ConversionFactor", !this.IsDerived(conversionBasedUnit, "ConversionFactor") ? conversionBasedUnit.ConversionFactor.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ConversionBasedUnit\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"ReferenceUnit\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :referenceUnit)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = conversionBasedUnit.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("referenceUnit", NpgsqlDbType.Uuid).Value = !this.IsDerived(conversionBasedUnit, "ReferenceUnit") ? conversionBasedUnit.ReferenceUnit : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"ReferenceUnit\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :referenceUnit);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,5 +231,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/CyclicRatioScaleDao.cs b/CDP4Orm/AutoGenDao/CyclicRatioScaleDao.cs
index afeb8f0f..eb90ba69 100644
--- a/CDP4Orm/AutoGenDao/CyclicRatioScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/CyclicRatioScaleDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -289,6 +285,60 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, cyclicRatioScale, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The cyclicRatioScale DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CyclicRatioScale cyclicRatioScale, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, cyclicRatioScale, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Modulus", !this.IsDerived(cyclicRatioScale, "Modulus") ? cyclicRatioScale.Modulus.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"CyclicRatioScale\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = cyclicRatioScale.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -369,5 +419,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DateParameterTypeDao.cs b/CDP4Orm/AutoGenDao/DateParameterTypeDao.cs
index 7eb8f6c5..729d8682 100644
--- a/CDP4Orm/AutoGenDao/DateParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/DateParameterTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -239,6 +235,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, dateParameterType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The dateParameterType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DateParameterType dateParameterType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, dateParameterType, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DateParameterType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = dateParameterType.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -296,5 +338,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DateTimeParameterTypeDao.cs b/CDP4Orm/AutoGenDao/DateTimeParameterTypeDao.cs
index 270793ab..02d84870 100644
--- a/CDP4Orm/AutoGenDao/DateTimeParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/DateTimeParameterTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -239,6 +235,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, dateTimeParameterType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The dateTimeParameterType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DateTimeParameterType dateTimeParameterType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, dateTimeParameterType, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DateTimeParameterType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = dateTimeParameterType.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -296,5 +338,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DecompositionRuleDao.cs b/CDP4Orm/AutoGenDao/DecompositionRuleDao.cs
index 3d4dc08d..399944c3 100644
--- a/CDP4Orm/AutoGenDao/DecompositionRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/DecompositionRuleDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -255,6 +251,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, decompositionRule, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The decompositionRule DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DecompositionRule decompositionRule, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, decompositionRule, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "MaxContained", !this.IsDerived(decompositionRule, "MaxContained") && decompositionRule.MaxContained.HasValue ? decompositionRule.MaxContained.Value.ToString() : null },
+ { "MinContained", !this.IsDerived(decompositionRule, "MinContained") ? decompositionRule.MinContained.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DecompositionRule\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"ContainingCategory\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :containingCategory)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = decompositionRule.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("containingCategory", NpgsqlDbType.Uuid).Value = !this.IsDerived(decompositionRule, "ContainingCategory") ? decompositionRule.ContainingCategory : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"ContainingCategory\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :containingCategory);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ decompositionRule.ContainedCategory.ForEach(x => this.UpsertContainedCategory(transaction, partition, decompositionRule.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -335,6 +388,49 @@ public bool AddContainedCategory(NpgsqlTransaction transaction, string partition
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertContainedCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid containedCategory)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DecompositionRule_ContainedCategory\"", partition);
+ sqlBuilder.AppendFormat(" (\"DecompositionRule\", \"ContainedCategory\")");
+ sqlBuilder.Append(" VALUES (:decompositionRule, :containedCategory)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"DecompositionRule_ContainedCategory_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"DecompositionRule\", \"ContainedCategory\")");
+ sqlBuilder.Append(" = (:decompositionRule, :containedCategory);");
+
+ command.Parameters.Add("decompositionRule", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("containedCategory", NpgsqlDbType.Uuid).Value = containedCategory;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -418,6 +514,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/DefinedThingDao.cs b/CDP4Orm/AutoGenDao/DefinedThingDao.cs
index effd335a..cac241e4 100644
--- a/CDP4Orm/AutoGenDao/DefinedThingDao.cs
+++ b/CDP4Orm/AutoGenDao/DefinedThingDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -99,6 +95,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, definedThing, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The definedThing DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DefinedThing definedThing, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, definedThing, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Name", !this.IsDerived(definedThing, "Name") ? definedThing.Name.Escape() : string.Empty },
+ { "ShortName", !this.IsDerived(definedThing, "ShortName") ? definedThing.ShortName.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DefinedThing\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = definedThing.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,5 +231,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DefinitionDao.cs b/CDP4Orm/AutoGenDao/DefinitionDao.cs
index 58eb8573..5510c973 100644
--- a/CDP4Orm/AutoGenDao/DefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/DefinitionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -238,6 +234,66 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, definition, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The definition DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Definition definition, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, definition, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Content", !this.IsDerived(definition, "Content") ? definition.Content.Escape() : string.Empty },
+ { "LanguageCode", !this.IsDerived(definition, "LanguageCode") ? definition.LanguageCode.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Definition\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = definition.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ definition.Example.ForEach(x => this.UpsertExample(transaction, partition, definition.Iid, x));
+
+ definition.Note.ForEach(x => this.UpsertNote(transaction, partition, definition.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -324,6 +380,50 @@ public bool AddExample(NpgsqlTransaction transaction, string partition, Guid iid
return this.ExecuteAndLogCommand(command) > 0;
}
}
+
+ ///
+ /// Insert a new association record in the link table, or update an existing one if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertExample(NpgsqlTransaction transaction, string partition, Guid iid, CDP4Common.Types.OrderedItem example)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Definition_Example\"", partition);
+ sqlBuilder.AppendFormat(" (\"Definition\", \"Example\", \"Sequence\")");
+ sqlBuilder.Append(" VALUES (:definition, :example, :sequence)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Definition_Example_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Definition\", \"Example\", \"Sequence\")");
+ sqlBuilder.Append(" = (:definition, :example, :sequence);");
+
+ command.Parameters.Add("definition", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("example", NpgsqlDbType.Text).Value = (string)example.V;
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = example.K;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
///
/// Insert a new association record in the link table.
///
@@ -363,6 +463,50 @@ public bool AddNote(NpgsqlTransaction transaction, string partition, Guid iid, C
}
}
+ ///
+ /// Insert a new association record in the link table, or update an existing one if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertNote(NpgsqlTransaction transaction, string partition, Guid iid, CDP4Common.Types.OrderedItem note)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Definition_Note\"", partition);
+ sqlBuilder.AppendFormat(" (\"Definition\", \"Note\", \"Sequence\")");
+ sqlBuilder.Append(" VALUES (:definition, :note, :sequence)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Definition_Note_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Definition\", \"Note\", \"Sequence\")");
+ sqlBuilder.Append(" = (:definition, :note, :sequence);");
+
+ command.Parameters.Add("definition", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("note", NpgsqlDbType.Text).Value = (string)note.V;
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = note.K;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -580,6 +724,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/DependentParameterTypeAssignmentDao.cs b/CDP4Orm/AutoGenDao/DependentParameterTypeAssignmentDao.cs
index 841af206..105e73fb 100644
--- a/CDP4Orm/AutoGenDao/DependentParameterTypeAssignmentDao.cs
+++ b/CDP4Orm/AutoGenDao/DependentParameterTypeAssignmentDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -220,6 +216,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, dependentParameterTypeAssignment, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The dependentParameterTypeAssignment DTO that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DependentParameterTypeAssignment dependentParameterTypeAssignment, long sequence, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, dependentParameterTypeAssignment, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DependentParameterTypeAssignment\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Sequence\", \"Container\", \"MeasurementScale\", \"ParameterType\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :sequence, :container, :measurementScale, :parameterType)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = dependentParameterTypeAssignment.Iid;
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = sequence;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("measurementScale", NpgsqlDbType.Uuid).Value = !this.IsDerived(dependentParameterTypeAssignment, "MeasurementScale") ? Utils.NullableValue(dependentParameterTypeAssignment.MeasurementScale) : Utils.NullableValue(null);
+ command.Parameters.Add("parameterType", NpgsqlDbType.Uuid).Value = !this.IsDerived(dependentParameterTypeAssignment, "ParameterType") ? dependentParameterTypeAssignment.ParameterType : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Container\", \"MeasurementScale\", \"ParameterType\")");
+ sqlBuilder.Append(" = (:container, :measurementScale, :parameterType);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -336,5 +387,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DerivedQuantityKindDao.cs b/CDP4Orm/AutoGenDao/DerivedQuantityKindDao.cs
index d67d7680..464746e0 100644
--- a/CDP4Orm/AutoGenDao/DerivedQuantityKindDao.cs
+++ b/CDP4Orm/AutoGenDao/DerivedQuantityKindDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -248,6 +244,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, derivedQuantityKind, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The derivedQuantityKind DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DerivedQuantityKind derivedQuantityKind, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, derivedQuantityKind, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DerivedQuantityKind\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = derivedQuantityKind.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -305,5 +347,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DerivedUnitDao.cs b/CDP4Orm/AutoGenDao/DerivedUnitDao.cs
index ceff34e6..f76decbf 100644
--- a/CDP4Orm/AutoGenDao/DerivedUnitDao.cs
+++ b/CDP4Orm/AutoGenDao/DerivedUnitDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -233,6 +229,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, derivedUnit, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The derivedUnit DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DerivedUnit derivedUnit, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, derivedUnit, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DerivedUnit\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = derivedUnit.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -290,5 +332,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramCanvasDao.cs b/CDP4Orm/AutoGenDao/DiagramCanvasDao.cs
index 8d8074b8..000073a4 100644
--- a/CDP4Orm/AutoGenDao/DiagramCanvasDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramCanvasDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -232,6 +228,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramCanvas, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramCanvas DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramCanvas diagramCanvas, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramCanvas, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "CreatedOn", !this.IsDerived(diagramCanvas, "CreatedOn") ? diagramCanvas.CreatedOn.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramCanvas\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramCanvas.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -313,5 +364,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramEdgeDao.cs b/CDP4Orm/AutoGenDao/DiagramEdgeDao.cs
index f26897a2..99f36fd3 100644
--- a/CDP4Orm/AutoGenDao/DiagramEdgeDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramEdgeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -227,6 +223,56 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramEdge, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramEdge DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramEdge diagramEdge, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramEdge, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramEdge\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Source\", \"Target\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :source, :target)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramEdge.Iid;
+ command.Parameters.Add("source", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagramEdge, "Source") ? diagramEdge.Source : Utils.NullableValue(null);
+ command.Parameters.Add("target", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagramEdge, "Target") ? diagramEdge.Target : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Source\", \"Target\")");
+ sqlBuilder.Append(" = (:source, :target);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -303,5 +349,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramElementContainerDao.cs b/CDP4Orm/AutoGenDao/DiagramElementContainerDao.cs
index 1444e34d..67278f2f 100644
--- a/CDP4Orm/AutoGenDao/DiagramElementContainerDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramElementContainerDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -92,6 +88,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramElementContainer, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramElementContainer DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramElementContainer diagramElementContainer, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramElementContainer, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramElementContainer\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramElementContainer.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -149,5 +191,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramElementThingDao.cs b/CDP4Orm/AutoGenDao/DiagramElementThingDao.cs
index a4b5ba06..1ec6f314 100644
--- a/CDP4Orm/AutoGenDao/DiagramElementThingDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramElementThingDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -95,6 +91,57 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramElementThing, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramElementThing DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramElementThing diagramElementThing, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramElementThing, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramElementThing\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\", \"DepictedThing\", \"SharedStyle\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container, :depictedThing, :sharedStyle)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramElementThing.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("depictedThing", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagramElementThing, "DepictedThing") ? Utils.NullableValue(diagramElementThing.DepictedThing) : Utils.NullableValue(null);
+ command.Parameters.Add("sharedStyle", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagramElementThing, "SharedStyle") ? Utils.NullableValue(diagramElementThing.SharedStyle) : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Container\", \"DepictedThing\", \"SharedStyle\")");
+ sqlBuilder.Append(" = (:container, :depictedThing, :sharedStyle);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -172,5 +219,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramObjectDao.cs b/CDP4Orm/AutoGenDao/DiagramObjectDao.cs
index 923c6193..55904459 100644
--- a/CDP4Orm/AutoGenDao/DiagramObjectDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramObjectDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -241,6 +237,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramObject, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramObject DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramObject diagramObject, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramObject, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Documentation", !this.IsDerived(diagramObject, "Documentation") ? diagramObject.Documentation.Escape() : string.Empty },
+ { "Resolution", !this.IsDerived(diagramObject, "Resolution") ? diagramObject.Resolution.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramObject\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramObject.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -322,5 +373,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramShapeDao.cs b/CDP4Orm/AutoGenDao/DiagramShapeDao.cs
index ef69c73c..eb16eadb 100644
--- a/CDP4Orm/AutoGenDao/DiagramShapeDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramShapeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -92,6 +88,52 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramShape, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramShape DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramShape diagramShape, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramShape, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramShape\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramShape.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -149,5 +191,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagramThingBaseDao.cs b/CDP4Orm/AutoGenDao/DiagramThingBaseDao.cs
index 393d2e5a..a6777d8f 100644
--- a/CDP4Orm/AutoGenDao/DiagramThingBaseDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagramThingBaseDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -98,6 +94,60 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagramThingBase, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagramThingBase DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramThingBase diagramThingBase, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagramThingBase, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Name", !this.IsDerived(diagramThingBase, "Name") ? diagramThingBase.Name.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagramThingBase\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagramThingBase.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -178,5 +228,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiagrammingStyleDao.cs b/CDP4Orm/AutoGenDao/DiagrammingStyleDao.cs
index e0e312c0..7b7e6f3b 100644
--- a/CDP4Orm/AutoGenDao/DiagrammingStyleDao.cs
+++ b/CDP4Orm/AutoGenDao/DiagrammingStyleDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -109,6 +105,71 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, diagrammingStyle, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The diagrammingStyle DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagrammingStyle diagrammingStyle, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, diagrammingStyle, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "FillOpacity", !this.IsDerived(diagrammingStyle, "FillOpacity") && diagrammingStyle.FillOpacity.HasValue ? diagrammingStyle.FillOpacity.Value.ToString() : null },
+ { "FontBold", !this.IsDerived(diagrammingStyle, "FontBold") && diagrammingStyle.FontBold.HasValue ? diagrammingStyle.FontBold.Value.ToString() : null },
+ { "FontItalic", !this.IsDerived(diagrammingStyle, "FontItalic") && diagrammingStyle.FontItalic.HasValue ? diagrammingStyle.FontItalic.Value.ToString() : null },
+ { "FontName", !this.IsDerived(diagrammingStyle, "FontName") ? diagrammingStyle.FontName.Escape() : null },
+ { "FontSize", !this.IsDerived(diagrammingStyle, "FontSize") && diagrammingStyle.FontSize.HasValue ? diagrammingStyle.FontSize.Value.ToString() : null },
+ { "FontStrokeThrough", !this.IsDerived(diagrammingStyle, "FontStrokeThrough") && diagrammingStyle.FontStrokeThrough.HasValue ? diagrammingStyle.FontStrokeThrough.Value.ToString() : null },
+ { "FontUnderline", !this.IsDerived(diagrammingStyle, "FontUnderline") && diagrammingStyle.FontUnderline.HasValue ? diagrammingStyle.FontUnderline.Value.ToString() : null },
+ { "StrokeOpacity", !this.IsDerived(diagrammingStyle, "StrokeOpacity") && diagrammingStyle.StrokeOpacity.HasValue ? diagrammingStyle.StrokeOpacity.Value.ToString() : null },
+ { "StrokeWidth", !this.IsDerived(diagrammingStyle, "StrokeWidth") && diagrammingStyle.StrokeWidth.HasValue ? diagrammingStyle.StrokeWidth.Value.ToString() : null },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiagrammingStyle\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"FillColor\", \"FontColor\", \"StrokeColor\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :fillColor, :fontColor, :strokeColor)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = diagrammingStyle.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("fillColor", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagrammingStyle, "FillColor") ? Utils.NullableValue(diagrammingStyle.FillColor) : Utils.NullableValue(null);
+ command.Parameters.Add("fontColor", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagrammingStyle, "FontColor") ? Utils.NullableValue(diagrammingStyle.FontColor) : Utils.NullableValue(null);
+ command.Parameters.Add("strokeColor", NpgsqlDbType.Uuid).Value = !this.IsDerived(diagrammingStyle, "StrokeColor") ? Utils.NullableValue(diagrammingStyle.StrokeColor) : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"FillColor\", \"FontColor\", \"StrokeColor\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :fillColor, :fontColor, :strokeColor);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -200,5 +261,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DiscussionItemDao.cs b/CDP4Orm/AutoGenDao/DiscussionItemDao.cs
index 9fc698e2..ce7922c4 100644
--- a/CDP4Orm/AutoGenDao/DiscussionItemDao.cs
+++ b/CDP4Orm/AutoGenDao/DiscussionItemDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -93,6 +89,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, discussionItem, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The discussionItem DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiscussionItem discussionItem, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, discussionItem, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DiscussionItem\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ReplyTo\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :replyTo)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = discussionItem.Iid;
+ command.Parameters.Add("replyTo", NpgsqlDbType.Uuid).Value = !this.IsDerived(discussionItem, "ReplyTo") ? Utils.NullableValue(discussionItem.ReplyTo) : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ReplyTo\"");
+ sqlBuilder.Append(" = :replyTo;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -168,5 +213,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DomainFileStoreDao.cs b/CDP4Orm/AutoGenDao/DomainFileStoreDao.cs
index 09fd6851..feb900e3 100644
--- a/CDP4Orm/AutoGenDao/DomainFileStoreDao.cs
+++ b/CDP4Orm/AutoGenDao/DomainFileStoreDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -239,6 +235,61 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, domainFileStore, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The domainFileStore DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainFileStore domainFileStore, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, domainFileStore, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsHidden", !this.IsDerived(domainFileStore, "IsHidden") ? domainFileStore.IsHidden.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DomainFileStore\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = domainFileStore.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -320,5 +371,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/DomainOfExpertiseDao.cs b/CDP4Orm/AutoGenDao/DomainOfExpertiseDao.cs
index aaf7be33..32b3c7a0 100644
--- a/CDP4Orm/AutoGenDao/DomainOfExpertiseDao.cs
+++ b/CDP4Orm/AutoGenDao/DomainOfExpertiseDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -241,6 +237,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, domainOfExpertise, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The domainOfExpertise DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainOfExpertise domainOfExpertise, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, domainOfExpertise, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", !this.IsDerived(domainOfExpertise, "IsDeprecated") ? domainOfExpertise.IsDeprecated.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DomainOfExpertise\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = domainOfExpertise.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ domainOfExpertise.Category.ForEach(x => this.UpsertCategory(transaction, partition, domainOfExpertise.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -321,6 +373,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DomainOfExpertise_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"DomainOfExpertise\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:domainOfExpertise, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"DomainOfExpertise_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"DomainOfExpertise\", \"Category\")");
+ sqlBuilder.Append(" = (:domainOfExpertise, :category);");
+
+ command.Parameters.Add("domainOfExpertise", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -421,6 +516,50 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", "true" }
+ };
+ sqlBuilder.AppendFormat("UPDATE \"{0}\".\"DomainOfExpertise\"", partition);
+ sqlBuilder.AppendFormat(" SET \"ValueTypeDictionary\" = :valueTypeDictionary");
+ sqlBuilder.AppendFormat(" WHERE \"Iid\" = :iid;");
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ result = this.ExecuteAndLogCommand(command) > 0;
+ }
+
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/DomainOfExpertiseGroupDao.cs b/CDP4Orm/AutoGenDao/DomainOfExpertiseGroupDao.cs
index 94337de4..2717be9a 100644
--- a/CDP4Orm/AutoGenDao/DomainOfExpertiseGroupDao.cs
+++ b/CDP4Orm/AutoGenDao/DomainOfExpertiseGroupDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -241,6 +237,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, domainOfExpertiseGroup, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The domainOfExpertiseGroup DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainOfExpertiseGroup domainOfExpertiseGroup, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, domainOfExpertiseGroup, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", !this.IsDerived(domainOfExpertiseGroup, "IsDeprecated") ? domainOfExpertiseGroup.IsDeprecated.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DomainOfExpertiseGroup\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = domainOfExpertiseGroup.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ domainOfExpertiseGroup.Domain.ForEach(x => this.UpsertDomain(transaction, partition, domainOfExpertiseGroup.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -321,6 +373,49 @@ public bool AddDomain(NpgsqlTransaction transaction, string partition, Guid iid,
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertDomain(NpgsqlTransaction transaction, string partition, Guid iid, Guid domain)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"DomainOfExpertiseGroup_Domain\"", partition);
+ sqlBuilder.AppendFormat(" (\"DomainOfExpertiseGroup\", \"Domain\")");
+ sqlBuilder.Append(" VALUES (:domainOfExpertiseGroup, :domain)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"DomainOfExpertiseGroup_Domain_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"DomainOfExpertiseGroup\", \"Domain\")");
+ sqlBuilder.Append(" = (:domainOfExpertiseGroup, :domain);");
+
+ command.Parameters.Add("domainOfExpertiseGroup", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("domain", NpgsqlDbType.Uuid).Value = domain;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -421,6 +516,50 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", "true" }
+ };
+ sqlBuilder.AppendFormat("UPDATE \"{0}\".\"DomainOfExpertiseGroup\"", partition);
+ sqlBuilder.AppendFormat(" SET \"ValueTypeDictionary\" = :valueTypeDictionary");
+ sqlBuilder.AppendFormat(" WHERE \"Iid\" = :iid;");
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ result = this.ExecuteAndLogCommand(command) > 0;
+ }
+
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ElementBaseDao.cs b/CDP4Orm/AutoGenDao/ElementBaseDao.cs
index 4bfc5845..882cc53b 100644
--- a/CDP4Orm/AutoGenDao/ElementBaseDao.cs
+++ b/CDP4Orm/AutoGenDao/ElementBaseDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -94,6 +90,56 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, elementBase, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The elementBase DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementBase elementBase, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, elementBase, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementBase\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = elementBase.Iid;
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(elementBase, "Owner") ? elementBase.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Owner\"");
+ sqlBuilder.Append(" = :owner;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ elementBase.Category.ForEach(x => this.UpsertCategory(transaction, partition, elementBase.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -174,6 +220,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementBase_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"ElementBase\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:elementBase, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ElementBase_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ElementBase\", \"Category\")");
+ sqlBuilder.Append(" = (:elementBase, :category);");
+
+ command.Parameters.Add("elementBase", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -250,6 +339,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ElementDefinitionDao.cs b/CDP4Orm/AutoGenDao/ElementDefinitionDao.cs
index 4133826f..be439fb4 100644
--- a/CDP4Orm/AutoGenDao/ElementDefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/ElementDefinitionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -236,6 +232,57 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, elementDefinition, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The elementDefinition DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementDefinition elementDefinition, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, elementDefinition, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementDefinition\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = elementDefinition.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Container\"");
+ sqlBuilder.Append(" = :container;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ elementDefinition.OrganizationalParticipant.ForEach(x => this.UpsertOrganizationalParticipant(transaction, partition, elementDefinition.Iid, x));
+ elementDefinition.ReferencedElement.ForEach(x => this.UpsertReferencedElement(transaction, partition, elementDefinition.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -321,6 +368,49 @@ public bool AddOrganizationalParticipant(NpgsqlTransaction transaction, string p
return this.ExecuteAndLogCommand(command) > 0;
}
}
+
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertOrganizationalParticipant(NpgsqlTransaction transaction, string partition, Guid iid, Guid organizationalParticipant)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementDefinition_OrganizationalParticipant\"", partition);
+ sqlBuilder.AppendFormat(" (\"ElementDefinition\", \"OrganizationalParticipant\")");
+ sqlBuilder.Append(" VALUES (:elementDefinition, :organizationalParticipant)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ElementDefinition_OrganizationalParticipant_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ElementDefinition\", \"OrganizationalParticipant\")");
+ sqlBuilder.Append(" = (:elementDefinition, :organizationalParticipant);");
+
+ command.Parameters.Add("elementDefinition", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("organizationalParticipant", NpgsqlDbType.Uuid).Value = organizationalParticipant;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
///
/// Insert a new association record in the link table.
///
@@ -359,6 +449,49 @@ public bool AddReferencedElement(NpgsqlTransaction transaction, string partition
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertReferencedElement(NpgsqlTransaction transaction, string partition, Guid iid, Guid referencedElement)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementDefinition_ReferencedElement\"", partition);
+ sqlBuilder.AppendFormat(" (\"ElementDefinition\", \"ReferencedElement\")");
+ sqlBuilder.Append(" VALUES (:elementDefinition, :referencedElement)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ElementDefinition_ReferencedElement_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ElementDefinition\", \"ReferencedElement\")");
+ sqlBuilder.Append(" = (:elementDefinition, :referencedElement);");
+
+ command.Parameters.Add("elementDefinition", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("referencedElement", NpgsqlDbType.Uuid).Value = referencedElement;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -435,6 +568,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ElementUsageDao.cs b/CDP4Orm/AutoGenDao/ElementUsageDao.cs
index 38ea86f4..6e14fcba 100644
--- a/CDP4Orm/AutoGenDao/ElementUsageDao.cs
+++ b/CDP4Orm/AutoGenDao/ElementUsageDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -246,6 +242,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, elementUsage, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The elementUsage DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementUsage elementUsage, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, elementUsage, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "InterfaceEnd", !this.IsDerived(elementUsage, "InterfaceEnd") ? elementUsage.InterfaceEnd.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementUsage\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"ElementDefinition\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :elementDefinition)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = elementUsage.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("elementDefinition", NpgsqlDbType.Uuid).Value = !this.IsDerived(elementUsage, "ElementDefinition") ? elementUsage.ElementDefinition : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"ElementDefinition\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :elementDefinition);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ elementUsage.ExcludeOption.ForEach(x => this.UpsertExcludeOption(transaction, partition, elementUsage.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -326,6 +379,49 @@ public bool AddExcludeOption(NpgsqlTransaction transaction, string partition, Gu
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertExcludeOption(NpgsqlTransaction transaction, string partition, Guid iid, Guid excludeOption)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ElementUsage_ExcludeOption\"", partition);
+ sqlBuilder.AppendFormat(" (\"ElementUsage\", \"ExcludeOption\")");
+ sqlBuilder.Append(" VALUES (:elementUsage, :excludeOption)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ElementUsage_ExcludeOption_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ElementUsage\", \"ExcludeOption\")");
+ sqlBuilder.Append(" = (:elementUsage, :excludeOption);");
+
+ command.Parameters.Add("elementUsage", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("excludeOption", NpgsqlDbType.Uuid).Value = excludeOption;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -409,6 +505,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/EmailAddressDao.cs b/CDP4Orm/AutoGenDao/EmailAddressDao.cs
index 1322c3c9..0adb5ae5 100644
--- a/CDP4Orm/AutoGenDao/EmailAddressDao.cs
+++ b/CDP4Orm/AutoGenDao/EmailAddressDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -231,6 +227,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, emailAddress, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The emailAddress DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EmailAddress emailAddress, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, emailAddress, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Value", !this.IsDerived(emailAddress, "Value") ? emailAddress.Value.Escape() : string.Empty },
+ { "VcardType", !this.IsDerived(emailAddress, "VcardType") ? emailAddress.VcardType.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EmailAddress\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = emailAddress.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -313,5 +365,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/EngineeringModelDao.cs b/CDP4Orm/AutoGenDao/EngineeringModelDao.cs
index 0d0439e8..0e24629d 100644
--- a/CDP4Orm/AutoGenDao/EngineeringModelDao.cs
+++ b/CDP4Orm/AutoGenDao/EngineeringModelDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -225,6 +221,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, engineeringModel, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The engineeringModel DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModel engineeringModel, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, engineeringModel, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EngineeringModel\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"EngineeringModelSetup\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :engineeringModelSetup)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = engineeringModel.Iid;
+ command.Parameters.Add("engineeringModelSetup", NpgsqlDbType.Uuid).Value = !this.IsDerived(engineeringModel, "EngineeringModelSetup") ? engineeringModel.EngineeringModelSetup : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"EngineeringModelSetup\"");
+ sqlBuilder.Append(" = :engineeringModelSetup;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -301,6 +346,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Copy the tables from a source to a target Engineering-Model partition
///
diff --git a/CDP4Orm/AutoGenDao/EngineeringModelDataAnnotationDao.cs b/CDP4Orm/AutoGenDao/EngineeringModelDataAnnotationDao.cs
index f466bbbd..6026d4f9 100644
--- a/CDP4Orm/AutoGenDao/EngineeringModelDataAnnotationDao.cs
+++ b/CDP4Orm/AutoGenDao/EngineeringModelDataAnnotationDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -94,6 +90,56 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, engineeringModelDataAnnotation, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The engineeringModelDataAnnotation DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataAnnotation engineeringModelDataAnnotation, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, engineeringModelDataAnnotation, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EngineeringModelDataAnnotation\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Author\", \"PrimaryAnnotatedThing\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :author, :primaryAnnotatedThing)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = engineeringModelDataAnnotation.Iid;
+ command.Parameters.Add("author", NpgsqlDbType.Uuid).Value = !this.IsDerived(engineeringModelDataAnnotation, "Author") ? engineeringModelDataAnnotation.Author : Utils.NullableValue(null);
+ command.Parameters.Add("primaryAnnotatedThing", NpgsqlDbType.Uuid).Value = !this.IsDerived(engineeringModelDataAnnotation, "PrimaryAnnotatedThing") ? Utils.NullableValue(engineeringModelDataAnnotation.PrimaryAnnotatedThing) : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Author\", \"PrimaryAnnotatedThing\")");
+ sqlBuilder.Append(" = (:author, :primaryAnnotatedThing);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -170,5 +216,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/EngineeringModelDataDiscussionItemDao.cs b/CDP4Orm/AutoGenDao/EngineeringModelDataDiscussionItemDao.cs
index d7049c20..1833ad88 100644
--- a/CDP4Orm/AutoGenDao/EngineeringModelDataDiscussionItemDao.cs
+++ b/CDP4Orm/AutoGenDao/EngineeringModelDataDiscussionItemDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -233,6 +229,56 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, engineeringModelDataDiscussionItem, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The engineeringModelDataDiscussionItem DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataDiscussionItem engineeringModelDataDiscussionItem, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, engineeringModelDataDiscussionItem, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EngineeringModelDataDiscussionItem\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\", \"Author\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container, :author)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = engineeringModelDataDiscussionItem.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("author", NpgsqlDbType.Uuid).Value = !this.IsDerived(engineeringModelDataDiscussionItem, "Author") ? engineeringModelDataDiscussionItem.Author : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Container\", \"Author\")");
+ sqlBuilder.Append(" = (:container, :author);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -309,5 +355,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/EngineeringModelDataNoteDao.cs b/CDP4Orm/AutoGenDao/EngineeringModelDataNoteDao.cs
index a6c01eb9..613dbe9a 100644
--- a/CDP4Orm/AutoGenDao/EngineeringModelDataNoteDao.cs
+++ b/CDP4Orm/AutoGenDao/EngineeringModelDataNoteDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -234,6 +230,55 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, engineeringModelDataNote, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The engineeringModelDataNote DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataNote engineeringModelDataNote, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, engineeringModelDataNote, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EngineeringModelDataNote\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = engineeringModelDataNote.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Container\"");
+ sqlBuilder.Append(" = :container;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -309,5 +354,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/EngineeringModelSetupDao.cs b/CDP4Orm/AutoGenDao/EngineeringModelSetupDao.cs
index 1b9a3f2b..12b1d4d7 100644
--- a/CDP4Orm/AutoGenDao/EngineeringModelSetupDao.cs
+++ b/CDP4Orm/AutoGenDao/EngineeringModelSetupDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -268,6 +264,66 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, engineeringModelSetup, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The engineeringModelSetup DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelSetup engineeringModelSetup, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, engineeringModelSetup, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "EngineeringModelIid", !this.IsDerived(engineeringModelSetup, "EngineeringModelIid") ? engineeringModelSetup.EngineeringModelIid.ToString() : string.Empty },
+ { "Kind", !this.IsDerived(engineeringModelSetup, "Kind") ? engineeringModelSetup.Kind.ToString() : string.Empty },
+ { "SourceEngineeringModelSetupIid", !this.IsDerived(engineeringModelSetup, "SourceEngineeringModelSetupIid") && engineeringModelSetup.SourceEngineeringModelSetupIid.HasValue ? engineeringModelSetup.SourceEngineeringModelSetupIid.Value.ToString() : null },
+ { "StudyPhase", !this.IsDerived(engineeringModelSetup, "StudyPhase") ? engineeringModelSetup.StudyPhase.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EngineeringModelSetup\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"DefaultOrganizationalParticipant\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :defaultOrganizationalParticipant)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = engineeringModelSetup.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("defaultOrganizationalParticipant", NpgsqlDbType.Uuid).Value = !this.IsDerived(engineeringModelSetup, "DefaultOrganizationalParticipant") ? Utils.NullableValue(engineeringModelSetup.DefaultOrganizationalParticipant) : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"DefaultOrganizationalParticipant\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :defaultOrganizationalParticipant);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ engineeringModelSetup.ActiveDomain.ForEach(x => this.UpsertActiveDomain(transaction, partition, engineeringModelSetup.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -348,6 +404,49 @@ public bool AddActiveDomain(NpgsqlTransaction transaction, string partition, Gui
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertActiveDomain(NpgsqlTransaction transaction, string partition, Guid iid, Guid activeDomain)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EngineeringModelSetup_ActiveDomain\"", partition);
+ sqlBuilder.AppendFormat(" (\"EngineeringModelSetup\", \"ActiveDomain\")");
+ sqlBuilder.Append(" VALUES (:engineeringModelSetup, :activeDomain)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"EngineeringModelSetup_ActiveDomain_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"EngineeringModelSetup\", \"ActiveDomain\")");
+ sqlBuilder.Append(" = (:engineeringModelSetup, :activeDomain);");
+
+ command.Parameters.Add("engineeringModelSetup", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("activeDomain", NpgsqlDbType.Uuid).Value = activeDomain;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -434,6 +533,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/EnumerationParameterTypeDao.cs b/CDP4Orm/AutoGenDao/EnumerationParameterTypeDao.cs
index c6185af4..faa48e29 100644
--- a/CDP4Orm/AutoGenDao/EnumerationParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/EnumerationParameterTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -252,6 +248,60 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, enumerationParameterType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The enumerationParameterType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EnumerationParameterType enumerationParameterType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, enumerationParameterType, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "AllowMultiSelect", !this.IsDerived(enumerationParameterType, "AllowMultiSelect") ? enumerationParameterType.AllowMultiSelect.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EnumerationParameterType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = enumerationParameterType.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -332,5 +382,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/EnumerationValueDefinitionDao.cs b/CDP4Orm/AutoGenDao/EnumerationValueDefinitionDao.cs
index 16fedb52..e06a3f56 100644
--- a/CDP4Orm/AutoGenDao/EnumerationValueDefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/EnumerationValueDefinitionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -231,6 +227,59 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, enumerationValueDefinition, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The enumerationValueDefinition DTO that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EnumerationValueDefinition enumerationValueDefinition, long sequence, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, enumerationValueDefinition, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"EnumerationValueDefinition\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Sequence\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :sequence, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = enumerationValueDefinition.Iid;
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = sequence;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Container\"");
+ sqlBuilder.Append(" = :container;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -345,5 +394,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/ExclusiveOrExpressionDao.cs b/CDP4Orm/AutoGenDao/ExclusiveOrExpressionDao.cs
index d15096b9..055d61f7 100644
--- a/CDP4Orm/AutoGenDao/ExclusiveOrExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/ExclusiveOrExpressionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -213,6 +209,53 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, exclusiveOrExpression, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The exclusiveOrExpression DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ExclusiveOrExpression exclusiveOrExpression, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, exclusiveOrExpression, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ExclusiveOrExpression\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = exclusiveOrExpression.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO NOTHING; ");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ exclusiveOrExpression.Term.ForEach(x => this.UpsertTerm(transaction, partition, exclusiveOrExpression.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -293,6 +336,49 @@ public bool AddTerm(NpgsqlTransaction transaction, string partition, Guid iid, G
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertTerm(NpgsqlTransaction transaction, string partition, Guid iid, Guid term)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ExclusiveOrExpression_Term\"", partition);
+ sqlBuilder.AppendFormat(" (\"ExclusiveOrExpression\", \"Term\")");
+ sqlBuilder.Append(" VALUES (:exclusiveOrExpression, :term)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"ExclusiveOrExpression_Term_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ExclusiveOrExpression\", \"Term\")");
+ sqlBuilder.Append(" = (:exclusiveOrExpression, :term);");
+
+ command.Parameters.Add("exclusiveOrExpression", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("term", NpgsqlDbType.Uuid).Value = term;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -351,6 +437,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ExternalIdentifierMapDao.cs b/CDP4Orm/AutoGenDao/ExternalIdentifierMapDao.cs
index 5b0e5e71..55612083 100644
--- a/CDP4Orm/AutoGenDao/ExternalIdentifierMapDao.cs
+++ b/CDP4Orm/AutoGenDao/ExternalIdentifierMapDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -250,6 +246,66 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, externalIdentifierMap, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The externalIdentifierMap DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ExternalIdentifierMap externalIdentifierMap, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, externalIdentifierMap, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "ExternalModelName", !this.IsDerived(externalIdentifierMap, "ExternalModelName") ? externalIdentifierMap.ExternalModelName.Escape() : string.Empty },
+ { "ExternalToolName", !this.IsDerived(externalIdentifierMap, "ExternalToolName") ? externalIdentifierMap.ExternalToolName.Escape() : string.Empty },
+ { "ExternalToolVersion", !this.IsDerived(externalIdentifierMap, "ExternalToolVersion") ? externalIdentifierMap.ExternalToolVersion.Escape() : null },
+ { "Name", !this.IsDerived(externalIdentifierMap, "Name") ? externalIdentifierMap.Name.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"ExternalIdentifierMap\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"ExternalFormat\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :externalFormat, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = externalIdentifierMap.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("externalFormat", NpgsqlDbType.Uuid).Value = !this.IsDerived(externalIdentifierMap, "ExternalFormat") ? Utils.NullableValue(externalIdentifierMap.ExternalFormat) : Utils.NullableValue(null);
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(externalIdentifierMap, "Owner") ? externalIdentifierMap.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"ExternalFormat\", \"Owner\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :externalFormat, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -336,5 +392,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/FileDao.cs b/CDP4Orm/AutoGenDao/FileDao.cs
index fb95d67f..130b9d79 100644
--- a/CDP4Orm/AutoGenDao/FileDao.cs
+++ b/CDP4Orm/AutoGenDao/FileDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -219,6 +215,58 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, file, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The file DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.File file, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, file, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"File\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\", \"LockedBy\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container, :lockedBy, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = file.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("lockedBy", NpgsqlDbType.Uuid).Value = !this.IsDerived(file, "LockedBy") ? Utils.NullableValue(file.LockedBy) : Utils.NullableValue(null);
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(file, "Owner") ? file.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Container\", \"LockedBy\", \"Owner\")");
+ sqlBuilder.Append(" = (:container, :lockedBy, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ file.Category.ForEach(x => this.UpsertCategory(transaction, partition, file.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -299,6 +347,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"File_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"File\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:file, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"File_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"File\", \"Category\")");
+ sqlBuilder.Append(" = (:file, :category);");
+
+ command.Parameters.Add("file", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -377,6 +468,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/FileRevisionDao.cs b/CDP4Orm/AutoGenDao/FileRevisionDao.cs
index eec9a413..ebf189f5 100644
--- a/CDP4Orm/AutoGenDao/FileRevisionDao.cs
+++ b/CDP4Orm/AutoGenDao/FileRevisionDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -244,6 +240,66 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, fileRevision, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The fileRevision DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileRevision fileRevision, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, fileRevision, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "ContentHash", fileRevision.ContentHash.Escape() },
+ { "CreatedOn", !this.IsDerived(fileRevision, "CreatedOn") ? fileRevision.CreatedOn.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ { "Name", !this.IsDerived(fileRevision, "Name") ? fileRevision.Name.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"FileRevision\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"ContainingFolder\", \"Creator\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :containingFolder, :creator)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = fileRevision.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("containingFolder", NpgsqlDbType.Uuid).Value = !this.IsDerived(fileRevision, "ContainingFolder") ? Utils.NullableValue(fileRevision.ContainingFolder) : Utils.NullableValue(null);
+ command.Parameters.Add("creator", NpgsqlDbType.Uuid).Value = !this.IsDerived(fileRevision, "Creator") ? fileRevision.Creator : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"ContainingFolder\", \"Creator\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :containingFolder, :creator);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ fileRevision.FileType.ForEach(x => this.UpsertFileType(transaction, partition, fileRevision.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -325,6 +381,50 @@ public bool AddFileType(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertFileType(NpgsqlTransaction transaction, string partition, Guid iid, CDP4Common.Types.OrderedItem fileType)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"FileRevision_FileType\"", partition);
+ sqlBuilder.AppendFormat(" (\"FileRevision\", \"FileType\", \"Sequence\")");
+ sqlBuilder.Append(" VALUES (:fileRevision, :fileType, :sequence)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"FileRevision_FileType_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.AppendFormat(" SET (\"FileRevision\", \"FileType\", \"Sequence\")");
+ sqlBuilder.Append(" = (:fileRevision, :fileType, :sequence);");
+
+ command.Parameters.Add("fileRevision", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("fileType", NpgsqlDbType.Uuid).Value = Guid.Parse(fileType.V.ToString());
+ command.Parameters.Add("sequence", NpgsqlDbType.Bigint).Value = fileType.K;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -496,6 +596,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/FileStoreDao.cs b/CDP4Orm/AutoGenDao/FileStoreDao.cs
index 4634378d..663ee4ff 100644
--- a/CDP4Orm/AutoGenDao/FileStoreDao.cs
+++ b/CDP4Orm/AutoGenDao/FileStoreDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -100,6 +96,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, fileStore, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The fileStore DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileStore fileStore, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, fileStore, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "CreatedOn", !this.IsDerived(fileStore, "CreatedOn") ? fileStore.CreatedOn.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ { "Name", !this.IsDerived(fileStore, "Name") ? fileStore.Name.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"FileStore\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = fileStore.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(fileStore, "Owner") ? fileStore.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Owner\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -182,5 +234,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/FileTypeDao.cs b/CDP4Orm/AutoGenDao/FileTypeDao.cs
index 734ecfab..9df2514e 100644
--- a/CDP4Orm/AutoGenDao/FileTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/FileTypeDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -248,6 +244,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, fileType, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The fileType DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileType fileType, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, fileType, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Extension", !this.IsDerived(fileType, "Extension") ? fileType.Extension.Escape() : string.Empty },
+ { "IsDeprecated", !this.IsDerived(fileType, "IsDeprecated") ? fileType.IsDeprecated.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"FileType\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = fileType.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ fileType.Category.ForEach(x => this.UpsertCategory(transaction, partition, fileType.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -328,6 +381,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"FileType_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"FileType\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:fileType, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"FileType_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"FileType\", \"Category\")");
+ sqlBuilder.Append(" = (:fileType, :category);");
+
+ command.Parameters.Add("fileType", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -429,6 +525,50 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", "true" }
+ };
+ sqlBuilder.AppendFormat("UPDATE \"{0}\".\"FileType\"", partition);
+ sqlBuilder.AppendFormat(" SET \"ValueTypeDictionary\" = :valueTypeDictionary");
+ sqlBuilder.AppendFormat(" WHERE \"Iid\" = :iid;");
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ result = this.ExecuteAndLogCommand(command) > 0;
+ }
+
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/FolderDao.cs b/CDP4Orm/AutoGenDao/FolderDao.cs
index a4a56909..3b3c1285 100644
--- a/CDP4Orm/AutoGenDao/FolderDao.cs
+++ b/CDP4Orm/AutoGenDao/FolderDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -237,6 +233,65 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, folder, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The folder DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Folder folder, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, folder, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "CreatedOn", !this.IsDerived(folder, "CreatedOn") ? folder.CreatedOn.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ { "Name", !this.IsDerived(folder, "Name") ? folder.Name.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Folder\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\", \"ContainingFolder\", \"Creator\", \"Owner\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container, :containingFolder, :creator, :owner)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = folder.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ command.Parameters.Add("containingFolder", NpgsqlDbType.Uuid).Value = !this.IsDerived(folder, "ContainingFolder") ? Utils.NullableValue(folder.ContainingFolder) : Utils.NullableValue(null);
+ command.Parameters.Add("creator", NpgsqlDbType.Uuid).Value = !this.IsDerived(folder, "Creator") ? folder.Creator : Utils.NullableValue(null);
+ command.Parameters.Add("owner", NpgsqlDbType.Uuid).Value = !this.IsDerived(folder, "Owner") ? folder.Owner : Utils.NullableValue(null);
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\", \"ContainingFolder\", \"Creator\", \"Owner\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container, :containingFolder, :creator, :owner);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -322,5 +377,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/GenericAnnotationDao.cs b/CDP4Orm/AutoGenDao/GenericAnnotationDao.cs
index 69b87000..87b712fd 100644
--- a/CDP4Orm/AutoGenDao/GenericAnnotationDao.cs
+++ b/CDP4Orm/AutoGenDao/GenericAnnotationDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -100,6 +96,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, genericAnnotation, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The genericAnnotation DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.GenericAnnotation genericAnnotation, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, genericAnnotation, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Content", !this.IsDerived(genericAnnotation, "Content") ? genericAnnotation.Content.Escape() : string.Empty },
+ { "CreatedOn", !this.IsDerived(genericAnnotation, "CreatedOn") ? genericAnnotation.CreatedOn.ToString(Utils.DateTimeUtcSerializationFormat) : string.Empty },
+ { "LanguageCode", !this.IsDerived(genericAnnotation, "LanguageCode") ? genericAnnotation.LanguageCode.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"GenericAnnotation\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = genericAnnotation.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"ValueTypeDictionary\"");
+ sqlBuilder.Append(" = :valueTypeDictionary;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -182,5 +234,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/GlossaryDao.cs b/CDP4Orm/AutoGenDao/GlossaryDao.cs
index 92ecc5c7..0a3a67c6 100644
--- a/CDP4Orm/AutoGenDao/GlossaryDao.cs
+++ b/CDP4Orm/AutoGenDao/GlossaryDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -242,6 +238,62 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, glossary, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The glossary DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Glossary glossary, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, glossary, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", !this.IsDerived(glossary, "IsDeprecated") ? glossary.IsDeprecated.ToString() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Glossary\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = glossary.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ glossary.Category.ForEach(x => this.UpsertCategory(transaction, partition, glossary.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -322,6 +374,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Glossary_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"Glossary\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:glossary, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Glossary_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Glossary\", \"Category\")");
+ sqlBuilder.Append(" = (:glossary, :category);");
+
+ command.Parameters.Add("glossary", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -422,6 +517,50 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "IsDeprecated", "true" }
+ };
+ sqlBuilder.AppendFormat("UPDATE \"{0}\".\"Glossary\"", partition);
+ sqlBuilder.AppendFormat(" SET \"ValueTypeDictionary\" = :valueTypeDictionary");
+ sqlBuilder.AppendFormat(" WHERE \"Iid\" = :iid;");
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ result = this.ExecuteAndLogCommand(command) > 0;
+ }
+
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/GoalDao.cs b/CDP4Orm/AutoGenDao/GoalDao.cs
index a500ff65..9fc1366a 100644
--- a/CDP4Orm/AutoGenDao/GoalDao.cs
+++ b/CDP4Orm/AutoGenDao/GoalDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -229,6 +225,56 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, goal, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The goal DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Goal goal, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, goal, container);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Goal\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = goal.Iid;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET \"Container\"");
+ sqlBuilder.Append(" = :container;");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+ goal.Category.ForEach(x => this.UpsertCategory(transaction, partition, goal.Iid, x));
+
+ return true;
+ }
+
///
/// Add the supplied value collection to the association link table indicated by the supplied property name
///
@@ -309,6 +355,49 @@ public bool AddCategory(NpgsqlTransaction transaction, string partition, Guid ii
}
}
+ ///
+ /// Insert a new association record in the link table, or update if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The id that will be the source for each link table record.
+ ///
+ ///
+ /// The value for which a link table record wil be created.
+ ///
+ ///
+ /// True if the value link was successfully created.
+ ///
+ public bool UpsertCategory(NpgsqlTransaction transaction, string partition, Guid iid, Guid category)
+ {
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"Goal_Category\"", partition);
+ sqlBuilder.AppendFormat(" (\"Goal\", \"Category\")");
+ sqlBuilder.Append(" VALUES (:goal, :category)");
+ sqlBuilder.Append(" ON CONFLICT ON CONSTRAINT \"Goal_Category_PK\"");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"Goal\", \"Category\")");
+ sqlBuilder.Append(" = (:goal, :category);");
+
+ command.Parameters.Add("goal", NpgsqlDbType.Uuid).Value = iid;
+ command.Parameters.Add("category", NpgsqlDbType.Uuid).Value = category;
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ return this.ExecuteAndLogCommand(command) > 0;
+ }
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -385,6 +474,31 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/HyperLinkDao.cs b/CDP4Orm/AutoGenDao/HyperLinkDao.cs
index 0f09b3e4..0d17a3b4 100644
--- a/CDP4Orm/AutoGenDao/HyperLinkDao.cs
+++ b/CDP4Orm/AutoGenDao/HyperLinkDao.cs
@@ -1,20 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2020 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Kamil Wojnowski,
-// Nathanael Smiechowski
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -22,9 +21,6 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
-//
-// This is an auto-generated Dao class. Any manual changes on this file will be overwritten.
-//
// --------------------------------------------------------------------------------------------------------------------
namespace CDP4Orm.Dao
@@ -238,6 +234,63 @@ public virtual bool Write(NpgsqlTransaction transaction, string partition, CDP4C
return this.AfterWrite(beforeWrite, transaction, partition, hyperLink, container);
}
+ ///
+ /// Insert a new database record, or updates one if it already exists from the supplied data transfer object.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The hyperLink DTO that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ public virtual bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.HyperLink hyperLink, CDP4Common.DTO.Thing container = null)
+ {
+ var valueTypeDictionaryAdditions = new Dictionary();
+ base.Upsert(transaction, partition, hyperLink, container);
+
+ var valueTypeDictionaryContents = new Dictionary
+ {
+ { "Content", !this.IsDerived(hyperLink, "Content") ? hyperLink.Content.Escape() : string.Empty },
+ { "LanguageCode", !this.IsDerived(hyperLink, "LanguageCode") ? hyperLink.LanguageCode.Escape() : string.Empty },
+ { "Uri", !this.IsDerived(hyperLink, "Uri") ? hyperLink.Uri.Escape() : string.Empty },
+ }.Concat(valueTypeDictionaryAdditions).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+
+ using (var command = new NpgsqlCommand())
+ {
+ var sqlBuilder = new System.Text.StringBuilder();
+
+ sqlBuilder.AppendFormat("INSERT INTO \"{0}\".\"HyperLink\"", partition);
+ sqlBuilder.AppendFormat(" (\"Iid\", \"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.AppendFormat(" VALUES (:iid, :valueTypeDictionary, :container)");
+
+ command.Parameters.Add("iid", NpgsqlDbType.Uuid).Value = hyperLink.Iid;
+ command.Parameters.Add("valueTypeDictionary", NpgsqlDbType.Hstore).Value = valueTypeDictionaryContents;
+ command.Parameters.Add("container", NpgsqlDbType.Uuid).Value = container.Iid;
+ sqlBuilder.Append(" ON CONFLICT (\"Iid\")");
+ sqlBuilder.Append(" DO UPDATE ");
+ sqlBuilder.Append(" SET (\"ValueTypeDictionary\", \"Container\")");
+ sqlBuilder.Append(" = (:valueTypeDictionary, :container);");
+
+ command.CommandText = sqlBuilder.ToString();
+ command.Connection = transaction.Connection;
+ command.Transaction = transaction;
+
+ this.ExecuteAndLogCommand(command);
+ }
+
+ return true;
+ }
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -321,5 +374,30 @@ public override bool Delete(NpgsqlTransaction transaction, string partition, Gui
return this.AfterDelete(beforeDelete, transaction, partition, iid);
}
+
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ public override bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid)
+ {
+ var result = false;
+
+ result = base.Delete(transaction, partition, iid);
+ return result;
+ }
}
}
diff --git a/CDP4Orm/AutoGenDao/IActionItemDao.cs b/CDP4Orm/AutoGenDao/IActionItemDao.cs
index 4b54989b..ac5dbde4 100644
--- a/CDP4Orm/AutoGenDao/IActionItemDao.cs
+++ b/CDP4Orm/AutoGenDao/IActionItemDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IActionItemDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IActionItemDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActionItem actionItem, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActionItem actionItem, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IActionItemDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IActualFiniteStateDao.cs b/CDP4Orm/AutoGenDao/IActualFiniteStateDao.cs
index e43a6701..a1461d9c 100644
--- a/CDP4Orm/AutoGenDao/IActualFiniteStateDao.cs
+++ b/CDP4Orm/AutoGenDao/IActualFiniteStateDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IActualFiniteStateDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IActualFiniteStateDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActualFiniteState actualFiniteState, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActualFiniteState actualFiniteState, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IActualFiniteStateDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IActualFiniteStateListDao.cs b/CDP4Orm/AutoGenDao/IActualFiniteStateListDao.cs
index 9cacd662..760b9dae 100644
--- a/CDP4Orm/AutoGenDao/IActualFiniteStateListDao.cs
+++ b/CDP4Orm/AutoGenDao/IActualFiniteStateListDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IActualFiniteStateListDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IActualFiniteStateListDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActualFiniteStateList actualFiniteStateList, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ActualFiniteStateList actualFiniteStateList, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IActualFiniteStateListDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IAliasDao.cs b/CDP4Orm/AutoGenDao/IAliasDao.cs
index a896377b..2248eceb 100644
--- a/CDP4Orm/AutoGenDao/IAliasDao.cs
+++ b/CDP4Orm/AutoGenDao/IAliasDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IAliasDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IAliasDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Alias alias, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Alias alias, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IAliasDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IAndExpressionDao.cs b/CDP4Orm/AutoGenDao/IAndExpressionDao.cs
index 5262159b..24570a3e 100644
--- a/CDP4Orm/AutoGenDao/IAndExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/IAndExpressionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IAndExpressionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IAndExpressionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.AndExpression andExpression, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.AndExpression andExpression, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IAndExpressionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IApprovalDao.cs b/CDP4Orm/AutoGenDao/IApprovalDao.cs
index f2fb2d9f..cee7c259 100644
--- a/CDP4Orm/AutoGenDao/IApprovalDao.cs
+++ b/CDP4Orm/AutoGenDao/IApprovalDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IApprovalDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IApprovalDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Approval approval, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Approval approval, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IApprovalDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IArrayParameterTypeDao.cs b/CDP4Orm/AutoGenDao/IArrayParameterTypeDao.cs
index 0652f536..32f09b04 100644
--- a/CDP4Orm/AutoGenDao/IArrayParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/IArrayParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IArrayParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IArrayParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ArrayParameterType arrayParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ArrayParameterType arrayParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IArrayParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBinaryNoteDao.cs b/CDP4Orm/AutoGenDao/IBinaryNoteDao.cs
index 76bb1d86..c2ff120f 100644
--- a/CDP4Orm/AutoGenDao/IBinaryNoteDao.cs
+++ b/CDP4Orm/AutoGenDao/IBinaryNoteDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IBinaryNoteDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IBinaryNoteDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryNote binaryNote, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryNote binaryNote, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IBinaryNoteDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBinaryRelationshipDao.cs b/CDP4Orm/AutoGenDao/IBinaryRelationshipDao.cs
index ce86a535..0cd83bac 100644
--- a/CDP4Orm/AutoGenDao/IBinaryRelationshipDao.cs
+++ b/CDP4Orm/AutoGenDao/IBinaryRelationshipDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IBinaryRelationshipDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IBinaryRelationshipDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryRelationship binaryRelationship, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryRelationship binaryRelationship, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IBinaryRelationshipDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBinaryRelationshipRuleDao.cs b/CDP4Orm/AutoGenDao/IBinaryRelationshipRuleDao.cs
index 81b39f66..31b57295 100644
--- a/CDP4Orm/AutoGenDao/IBinaryRelationshipRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/IBinaryRelationshipRuleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IBinaryRelationshipRuleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IBinaryRelationshipRuleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryRelationshipRule binaryRelationshipRule, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BinaryRelationshipRule binaryRelationshipRule, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IBinaryRelationshipRuleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBookDao.cs b/CDP4Orm/AutoGenDao/IBookDao.cs
index eb92909e..e51c3b86 100644
--- a/CDP4Orm/AutoGenDao/IBookDao.cs
+++ b/CDP4Orm/AutoGenDao/IBookDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IBookDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IBookDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Book book, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Book book, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IBookDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBooleanParameterTypeDao.cs b/CDP4Orm/AutoGenDao/IBooleanParameterTypeDao.cs
index 28f3ddcc..3e8bc9fc 100644
--- a/CDP4Orm/AutoGenDao/IBooleanParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/IBooleanParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IBooleanParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IBooleanParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BooleanParameterType booleanParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BooleanParameterType booleanParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IBooleanParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBoundsDao.cs b/CDP4Orm/AutoGenDao/IBoundsDao.cs
index 39aeddaa..078a696b 100644
--- a/CDP4Orm/AutoGenDao/IBoundsDao.cs
+++ b/CDP4Orm/AutoGenDao/IBoundsDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IBoundsDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IBoundsDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Bounds bounds, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Bounds bounds, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IBoundsDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IBuiltInRuleVerificationDao.cs b/CDP4Orm/AutoGenDao/IBuiltInRuleVerificationDao.cs
index 65689398..81189c50 100644
--- a/CDP4Orm/AutoGenDao/IBuiltInRuleVerificationDao.cs
+++ b/CDP4Orm/AutoGenDao/IBuiltInRuleVerificationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IBuiltInRuleVerificationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IBuiltInRuleVerificationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BuiltInRuleVerification builtInRuleVerification, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.BuiltInRuleVerification builtInRuleVerification, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IBuiltInRuleVerificationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ICategoryDao.cs b/CDP4Orm/AutoGenDao/ICategoryDao.cs
index a5e82fc7..4a710452 100644
--- a/CDP4Orm/AutoGenDao/ICategoryDao.cs
+++ b/CDP4Orm/AutoGenDao/ICategoryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ICategoryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ICategoryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Category category, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Category category, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ICategoryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IChangeProposalDao.cs b/CDP4Orm/AutoGenDao/IChangeProposalDao.cs
index c9e653e4..385ab8c8 100644
--- a/CDP4Orm/AutoGenDao/IChangeProposalDao.cs
+++ b/CDP4Orm/AutoGenDao/IChangeProposalDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IChangeProposalDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IChangeProposalDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ChangeProposal changeProposal, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ChangeProposal changeProposal, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IChangeProposalDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IChangeRequestDao.cs b/CDP4Orm/AutoGenDao/IChangeRequestDao.cs
index 1efbbe54..5a602ad1 100644
--- a/CDP4Orm/AutoGenDao/IChangeRequestDao.cs
+++ b/CDP4Orm/AutoGenDao/IChangeRequestDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IChangeRequestDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IChangeRequestDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ChangeRequest changeRequest, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ChangeRequest changeRequest, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IChangeRequestDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ICitationDao.cs b/CDP4Orm/AutoGenDao/ICitationDao.cs
index 8ca8ad03..99589b9a 100644
--- a/CDP4Orm/AutoGenDao/ICitationDao.cs
+++ b/CDP4Orm/AutoGenDao/ICitationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ICitationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ICitationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Citation citation, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Citation citation, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ICitationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IColorDao.cs b/CDP4Orm/AutoGenDao/IColorDao.cs
index 3889f0ed..7ab13da9 100644
--- a/CDP4Orm/AutoGenDao/IColorDao.cs
+++ b/CDP4Orm/AutoGenDao/IColorDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IColorDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IColorDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Color color, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Color color, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IColorDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ICommonFileStoreDao.cs b/CDP4Orm/AutoGenDao/ICommonFileStoreDao.cs
index 55b650ee..d1ae63e7 100644
--- a/CDP4Orm/AutoGenDao/ICommonFileStoreDao.cs
+++ b/CDP4Orm/AutoGenDao/ICommonFileStoreDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ICommonFileStoreDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ICommonFileStoreDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CommonFileStore commonFileStore, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CommonFileStore commonFileStore, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ICommonFileStoreDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ICompoundParameterTypeDao.cs b/CDP4Orm/AutoGenDao/ICompoundParameterTypeDao.cs
index 7f99d782..30db92db 100644
--- a/CDP4Orm/AutoGenDao/ICompoundParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/ICompoundParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ICompoundParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ICompoundParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CompoundParameterType compoundParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CompoundParameterType compoundParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ICompoundParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IConstantDao.cs b/CDP4Orm/AutoGenDao/IConstantDao.cs
index 93675a05..c35af64e 100644
--- a/CDP4Orm/AutoGenDao/IConstantDao.cs
+++ b/CDP4Orm/AutoGenDao/IConstantDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IConstantDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IConstantDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Constant constant, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Constant constant, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IConstantDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IContractChangeNoticeDao.cs b/CDP4Orm/AutoGenDao/IContractChangeNoticeDao.cs
index 857f311f..2c4966ec 100644
--- a/CDP4Orm/AutoGenDao/IContractChangeNoticeDao.cs
+++ b/CDP4Orm/AutoGenDao/IContractChangeNoticeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IContractChangeNoticeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IContractChangeNoticeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ContractChangeNotice contractChangeNotice, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ContractChangeNotice contractChangeNotice, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IContractChangeNoticeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ICyclicRatioScaleDao.cs b/CDP4Orm/AutoGenDao/ICyclicRatioScaleDao.cs
index dd3f7491..0ffdabd4 100644
--- a/CDP4Orm/AutoGenDao/ICyclicRatioScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/ICyclicRatioScaleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ICyclicRatioScaleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ICyclicRatioScaleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CyclicRatioScale cyclicRatioScale, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.CyclicRatioScale cyclicRatioScale, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ICyclicRatioScaleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDateParameterTypeDao.cs b/CDP4Orm/AutoGenDao/IDateParameterTypeDao.cs
index 7adfe14d..1e70605e 100644
--- a/CDP4Orm/AutoGenDao/IDateParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/IDateParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDateParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDateParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DateParameterType dateParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DateParameterType dateParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDateParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDateTimeParameterTypeDao.cs b/CDP4Orm/AutoGenDao/IDateTimeParameterTypeDao.cs
index e7f0edcc..c4724516 100644
--- a/CDP4Orm/AutoGenDao/IDateTimeParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/IDateTimeParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDateTimeParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDateTimeParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DateTimeParameterType dateTimeParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DateTimeParameterType dateTimeParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDateTimeParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDecompositionRuleDao.cs b/CDP4Orm/AutoGenDao/IDecompositionRuleDao.cs
index 512ce1ca..e8294662 100644
--- a/CDP4Orm/AutoGenDao/IDecompositionRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/IDecompositionRuleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDecompositionRuleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDecompositionRuleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DecompositionRule decompositionRule, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DecompositionRule decompositionRule, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDecompositionRuleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDefinitionDao.cs b/CDP4Orm/AutoGenDao/IDefinitionDao.cs
index 89c57968..42b603b7 100644
--- a/CDP4Orm/AutoGenDao/IDefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/IDefinitionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDefinitionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDefinitionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Definition definition, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Definition definition, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDefinitionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDependentParameterTypeAssignmentDao.cs b/CDP4Orm/AutoGenDao/IDependentParameterTypeAssignmentDao.cs
index d196d986..cb37b307 100644
--- a/CDP4Orm/AutoGenDao/IDependentParameterTypeAssignmentDao.cs
+++ b/CDP4Orm/AutoGenDao/IDependentParameterTypeAssignmentDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IDependentParameterTypeAssignmentDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IDependentParameterTypeAssignmentDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DependentParameterTypeAssignment dependentParameterTypeAssignment, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DependentParameterTypeAssignment dependentParameterTypeAssignment, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IDependentParameterTypeAssignmentDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDerivedQuantityKindDao.cs b/CDP4Orm/AutoGenDao/IDerivedQuantityKindDao.cs
index 524e9d80..0887c02b 100644
--- a/CDP4Orm/AutoGenDao/IDerivedQuantityKindDao.cs
+++ b/CDP4Orm/AutoGenDao/IDerivedQuantityKindDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDerivedQuantityKindDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDerivedQuantityKindDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DerivedQuantityKind derivedQuantityKind, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DerivedQuantityKind derivedQuantityKind, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDerivedQuantityKindDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDerivedUnitDao.cs b/CDP4Orm/AutoGenDao/IDerivedUnitDao.cs
index 815a5a47..cecfc572 100644
--- a/CDP4Orm/AutoGenDao/IDerivedUnitDao.cs
+++ b/CDP4Orm/AutoGenDao/IDerivedUnitDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDerivedUnitDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDerivedUnitDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DerivedUnit derivedUnit, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DerivedUnit derivedUnit, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDerivedUnitDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDiagramCanvasDao.cs b/CDP4Orm/AutoGenDao/IDiagramCanvasDao.cs
index bf65d995..a45b9966 100644
--- a/CDP4Orm/AutoGenDao/IDiagramCanvasDao.cs
+++ b/CDP4Orm/AutoGenDao/IDiagramCanvasDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDiagramCanvasDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDiagramCanvasDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramCanvas diagramCanvas, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramCanvas diagramCanvas, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDiagramCanvasDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDiagramEdgeDao.cs b/CDP4Orm/AutoGenDao/IDiagramEdgeDao.cs
index 8256ddc5..246b99d2 100644
--- a/CDP4Orm/AutoGenDao/IDiagramEdgeDao.cs
+++ b/CDP4Orm/AutoGenDao/IDiagramEdgeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDiagramEdgeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDiagramEdgeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramEdge diagramEdge, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramEdge diagramEdge, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDiagramEdgeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDiagramObjectDao.cs b/CDP4Orm/AutoGenDao/IDiagramObjectDao.cs
index e62692ef..d95cc345 100644
--- a/CDP4Orm/AutoGenDao/IDiagramObjectDao.cs
+++ b/CDP4Orm/AutoGenDao/IDiagramObjectDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDiagramObjectDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDiagramObjectDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramObject diagramObject, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DiagramObject diagramObject, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDiagramObjectDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDomainFileStoreDao.cs b/CDP4Orm/AutoGenDao/IDomainFileStoreDao.cs
index c0878353..bb8f2e0e 100644
--- a/CDP4Orm/AutoGenDao/IDomainFileStoreDao.cs
+++ b/CDP4Orm/AutoGenDao/IDomainFileStoreDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDomainFileStoreDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDomainFileStoreDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainFileStore domainFileStore, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainFileStore domainFileStore, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDomainFileStoreDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDomainOfExpertiseDao.cs b/CDP4Orm/AutoGenDao/IDomainOfExpertiseDao.cs
index aee57961..79a54fb6 100644
--- a/CDP4Orm/AutoGenDao/IDomainOfExpertiseDao.cs
+++ b/CDP4Orm/AutoGenDao/IDomainOfExpertiseDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDomainOfExpertiseDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDomainOfExpertiseDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainOfExpertise domainOfExpertise, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainOfExpertise domainOfExpertise, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDomainOfExpertiseDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IDomainOfExpertiseGroupDao.cs b/CDP4Orm/AutoGenDao/IDomainOfExpertiseGroupDao.cs
index 8991c0e5..5d7fabfb 100644
--- a/CDP4Orm/AutoGenDao/IDomainOfExpertiseGroupDao.cs
+++ b/CDP4Orm/AutoGenDao/IDomainOfExpertiseGroupDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IDomainOfExpertiseGroupDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IDomainOfExpertiseGroupDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainOfExpertiseGroup domainOfExpertiseGroup, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.DomainOfExpertiseGroup domainOfExpertiseGroup, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IDomainOfExpertiseGroupDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IElementDefinitionDao.cs b/CDP4Orm/AutoGenDao/IElementDefinitionDao.cs
index 0a5a8d80..1f509b89 100644
--- a/CDP4Orm/AutoGenDao/IElementDefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/IElementDefinitionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IElementDefinitionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IElementDefinitionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementDefinition elementDefinition, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementDefinition elementDefinition, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IElementDefinitionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IElementUsageDao.cs b/CDP4Orm/AutoGenDao/IElementUsageDao.cs
index 2fabfa3b..f8fb48e9 100644
--- a/CDP4Orm/AutoGenDao/IElementUsageDao.cs
+++ b/CDP4Orm/AutoGenDao/IElementUsageDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IElementUsageDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IElementUsageDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementUsage elementUsage, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ElementUsage elementUsage, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IElementUsageDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEmailAddressDao.cs b/CDP4Orm/AutoGenDao/IEmailAddressDao.cs
index e46de83e..a38a95b1 100644
--- a/CDP4Orm/AutoGenDao/IEmailAddressDao.cs
+++ b/CDP4Orm/AutoGenDao/IEmailAddressDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IEmailAddressDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IEmailAddressDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EmailAddress emailAddress, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EmailAddress emailAddress, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IEmailAddressDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEngineeringModelDao.cs b/CDP4Orm/AutoGenDao/IEngineeringModelDao.cs
index 1583126a..50c85556 100644
--- a/CDP4Orm/AutoGenDao/IEngineeringModelDao.cs
+++ b/CDP4Orm/AutoGenDao/IEngineeringModelDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IEngineeringModelDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IEngineeringModelDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModel engineeringModel, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModel engineeringModel, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IEngineeringModelDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEngineeringModelDataDiscussionItemDao.cs b/CDP4Orm/AutoGenDao/IEngineeringModelDataDiscussionItemDao.cs
index 85e92b9d..8a061505 100644
--- a/CDP4Orm/AutoGenDao/IEngineeringModelDataDiscussionItemDao.cs
+++ b/CDP4Orm/AutoGenDao/IEngineeringModelDataDiscussionItemDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IEngineeringModelDataDiscussionItemDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IEngineeringModelDataDiscussionItemDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataDiscussionItem engineeringModelDataDiscussionItem, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataDiscussionItem engineeringModelDataDiscussionItem, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IEngineeringModelDataDiscussionItemDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEngineeringModelDataNoteDao.cs b/CDP4Orm/AutoGenDao/IEngineeringModelDataNoteDao.cs
index 54239720..399f2dc0 100644
--- a/CDP4Orm/AutoGenDao/IEngineeringModelDataNoteDao.cs
+++ b/CDP4Orm/AutoGenDao/IEngineeringModelDataNoteDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IEngineeringModelDataNoteDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IEngineeringModelDataNoteDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataNote engineeringModelDataNote, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelDataNote engineeringModelDataNote, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IEngineeringModelDataNoteDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEngineeringModelSetupDao.cs b/CDP4Orm/AutoGenDao/IEngineeringModelSetupDao.cs
index 913da032..6254edcf 100644
--- a/CDP4Orm/AutoGenDao/IEngineeringModelSetupDao.cs
+++ b/CDP4Orm/AutoGenDao/IEngineeringModelSetupDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IEngineeringModelSetupDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IEngineeringModelSetupDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelSetup engineeringModelSetup, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EngineeringModelSetup engineeringModelSetup, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IEngineeringModelSetupDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEnumerationParameterTypeDao.cs b/CDP4Orm/AutoGenDao/IEnumerationParameterTypeDao.cs
index 49904c2d..0c34c8b3 100644
--- a/CDP4Orm/AutoGenDao/IEnumerationParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/IEnumerationParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IEnumerationParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IEnumerationParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EnumerationParameterType enumerationParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EnumerationParameterType enumerationParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IEnumerationParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IEnumerationValueDefinitionDao.cs b/CDP4Orm/AutoGenDao/IEnumerationValueDefinitionDao.cs
index 88dd7a59..95fbe03a 100644
--- a/CDP4Orm/AutoGenDao/IEnumerationValueDefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/IEnumerationValueDefinitionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IEnumerationValueDefinitionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IEnumerationValueDefinitionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EnumerationValueDefinition enumerationValueDefinition, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.EnumerationValueDefinition enumerationValueDefinition, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IEnumerationValueDefinitionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IExclusiveOrExpressionDao.cs b/CDP4Orm/AutoGenDao/IExclusiveOrExpressionDao.cs
index ce2828be..89ad57fc 100644
--- a/CDP4Orm/AutoGenDao/IExclusiveOrExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/IExclusiveOrExpressionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IExclusiveOrExpressionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IExclusiveOrExpressionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ExclusiveOrExpression exclusiveOrExpression, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ExclusiveOrExpression exclusiveOrExpression, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IExclusiveOrExpressionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IExternalIdentifierMapDao.cs b/CDP4Orm/AutoGenDao/IExternalIdentifierMapDao.cs
index 20e1211d..7283d2e7 100644
--- a/CDP4Orm/AutoGenDao/IExternalIdentifierMapDao.cs
+++ b/CDP4Orm/AutoGenDao/IExternalIdentifierMapDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IExternalIdentifierMapDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IExternalIdentifierMapDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ExternalIdentifierMap externalIdentifierMap, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ExternalIdentifierMap externalIdentifierMap, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IExternalIdentifierMapDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IFileDao.cs b/CDP4Orm/AutoGenDao/IFileDao.cs
index 90061563..c68319ac 100644
--- a/CDP4Orm/AutoGenDao/IFileDao.cs
+++ b/CDP4Orm/AutoGenDao/IFileDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IFileDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IFileDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.File file, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.File file, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IFileDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IFileRevisionDao.cs b/CDP4Orm/AutoGenDao/IFileRevisionDao.cs
index ad796b29..46e69201 100644
--- a/CDP4Orm/AutoGenDao/IFileRevisionDao.cs
+++ b/CDP4Orm/AutoGenDao/IFileRevisionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IFileRevisionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IFileRevisionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileRevision fileRevision, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileRevision fileRevision, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IFileRevisionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IFileTypeDao.cs b/CDP4Orm/AutoGenDao/IFileTypeDao.cs
index 020d3213..39512f5c 100644
--- a/CDP4Orm/AutoGenDao/IFileTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/IFileTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IFileTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IFileTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileType fileType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.FileType fileType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IFileTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IFolderDao.cs b/CDP4Orm/AutoGenDao/IFolderDao.cs
index 15bf5899..cb833a84 100644
--- a/CDP4Orm/AutoGenDao/IFolderDao.cs
+++ b/CDP4Orm/AutoGenDao/IFolderDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IFolderDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IFolderDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Folder folder, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Folder folder, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IFolderDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IGlossaryDao.cs b/CDP4Orm/AutoGenDao/IGlossaryDao.cs
index e4a1426b..06836db9 100644
--- a/CDP4Orm/AutoGenDao/IGlossaryDao.cs
+++ b/CDP4Orm/AutoGenDao/IGlossaryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IGlossaryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IGlossaryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Glossary glossary, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Glossary glossary, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IGlossaryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IGoalDao.cs b/CDP4Orm/AutoGenDao/IGoalDao.cs
index e07a18ec..06f9bf23 100644
--- a/CDP4Orm/AutoGenDao/IGoalDao.cs
+++ b/CDP4Orm/AutoGenDao/IGoalDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IGoalDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IGoalDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Goal goal, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Goal goal, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IGoalDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IHyperLinkDao.cs b/CDP4Orm/AutoGenDao/IHyperLinkDao.cs
index 15764770..62e5fbcc 100644
--- a/CDP4Orm/AutoGenDao/IHyperLinkDao.cs
+++ b/CDP4Orm/AutoGenDao/IHyperLinkDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IHyperLinkDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IHyperLinkDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.HyperLink hyperLink, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.HyperLink hyperLink, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IHyperLinkDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IIdCorrespondenceDao.cs b/CDP4Orm/AutoGenDao/IIdCorrespondenceDao.cs
index b64f9c4b..6c66611d 100644
--- a/CDP4Orm/AutoGenDao/IIdCorrespondenceDao.cs
+++ b/CDP4Orm/AutoGenDao/IIdCorrespondenceDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IIdCorrespondenceDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IIdCorrespondenceDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IdCorrespondence idCorrespondence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IdCorrespondence idCorrespondence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IIdCorrespondenceDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IIndependentParameterTypeAssignmentDao.cs b/CDP4Orm/AutoGenDao/IIndependentParameterTypeAssignmentDao.cs
index 0fc7a7ed..b2d2dbda 100644
--- a/CDP4Orm/AutoGenDao/IIndependentParameterTypeAssignmentDao.cs
+++ b/CDP4Orm/AutoGenDao/IIndependentParameterTypeAssignmentDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IIndependentParameterTypeAssignmentDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IIndependentParameterTypeAssignmentDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IndependentParameterTypeAssignment independentParameterTypeAssignment, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IndependentParameterTypeAssignment independentParameterTypeAssignment, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IIndependentParameterTypeAssignmentDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IIntervalScaleDao.cs b/CDP4Orm/AutoGenDao/IIntervalScaleDao.cs
index 743bb57c..fa13d628 100644
--- a/CDP4Orm/AutoGenDao/IIntervalScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/IIntervalScaleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IIntervalScaleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IIntervalScaleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IntervalScale intervalScale, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IntervalScale intervalScale, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IIntervalScaleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IIterationDao.cs b/CDP4Orm/AutoGenDao/IIterationDao.cs
index 65f5ed1c..435f723f 100644
--- a/CDP4Orm/AutoGenDao/IIterationDao.cs
+++ b/CDP4Orm/AutoGenDao/IIterationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IIterationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IIterationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Iteration iteration, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Iteration iteration, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IIterationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IIterationSetupDao.cs b/CDP4Orm/AutoGenDao/IIterationSetupDao.cs
index 6399eafe..dbdad67f 100644
--- a/CDP4Orm/AutoGenDao/IIterationSetupDao.cs
+++ b/CDP4Orm/AutoGenDao/IIterationSetupDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IIterationSetupDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IIterationSetupDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IterationSetup iterationSetup, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.IterationSetup iterationSetup, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IIterationSetupDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ILinearConversionUnitDao.cs b/CDP4Orm/AutoGenDao/ILinearConversionUnitDao.cs
index 775d3838..509fe621 100644
--- a/CDP4Orm/AutoGenDao/ILinearConversionUnitDao.cs
+++ b/CDP4Orm/AutoGenDao/ILinearConversionUnitDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ILinearConversionUnitDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ILinearConversionUnitDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.LinearConversionUnit linearConversionUnit, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.LinearConversionUnit linearConversionUnit, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ILinearConversionUnitDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ILogEntryChangelogItemDao.cs b/CDP4Orm/AutoGenDao/ILogEntryChangelogItemDao.cs
index eb62ad63..83c719de 100644
--- a/CDP4Orm/AutoGenDao/ILogEntryChangelogItemDao.cs
+++ b/CDP4Orm/AutoGenDao/ILogEntryChangelogItemDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ILogEntryChangelogItemDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ILogEntryChangelogItemDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.LogEntryChangelogItem logEntryChangelogItem, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.LogEntryChangelogItem logEntryChangelogItem, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ILogEntryChangelogItemDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ILogarithmicScaleDao.cs b/CDP4Orm/AutoGenDao/ILogarithmicScaleDao.cs
index a426e7b4..c0502c8b 100644
--- a/CDP4Orm/AutoGenDao/ILogarithmicScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/ILogarithmicScaleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ILogarithmicScaleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ILogarithmicScaleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.LogarithmicScale logarithmicScale, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.LogarithmicScale logarithmicScale, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ILogarithmicScaleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IMappingToReferenceScaleDao.cs b/CDP4Orm/AutoGenDao/IMappingToReferenceScaleDao.cs
index 1ed5e387..20e46bc8 100644
--- a/CDP4Orm/AutoGenDao/IMappingToReferenceScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/IMappingToReferenceScaleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IMappingToReferenceScaleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IMappingToReferenceScaleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.MappingToReferenceScale mappingToReferenceScale, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.MappingToReferenceScale mappingToReferenceScale, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IMappingToReferenceScaleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IModelLogEntryDao.cs b/CDP4Orm/AutoGenDao/IModelLogEntryDao.cs
index 171d5265..e84afd62 100644
--- a/CDP4Orm/AutoGenDao/IModelLogEntryDao.cs
+++ b/CDP4Orm/AutoGenDao/IModelLogEntryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IModelLogEntryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IModelLogEntryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ModelLogEntry modelLogEntry, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ModelLogEntry modelLogEntry, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IModelLogEntryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IModelReferenceDataLibraryDao.cs b/CDP4Orm/AutoGenDao/IModelReferenceDataLibraryDao.cs
index 41c05c87..bd005144 100644
--- a/CDP4Orm/AutoGenDao/IModelReferenceDataLibraryDao.cs
+++ b/CDP4Orm/AutoGenDao/IModelReferenceDataLibraryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IModelReferenceDataLibraryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IModelReferenceDataLibraryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ModelReferenceDataLibrary modelReferenceDataLibrary, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ModelReferenceDataLibrary modelReferenceDataLibrary, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IModelReferenceDataLibraryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IModellingThingReferenceDao.cs b/CDP4Orm/AutoGenDao/IModellingThingReferenceDao.cs
index c06f3cb7..b68b63d4 100644
--- a/CDP4Orm/AutoGenDao/IModellingThingReferenceDao.cs
+++ b/CDP4Orm/AutoGenDao/IModellingThingReferenceDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IModellingThingReferenceDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IModellingThingReferenceDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ModellingThingReference modellingThingReference, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ModellingThingReference modellingThingReference, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IModellingThingReferenceDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IMultiRelationshipDao.cs b/CDP4Orm/AutoGenDao/IMultiRelationshipDao.cs
index c5dce4b1..59a349f7 100644
--- a/CDP4Orm/AutoGenDao/IMultiRelationshipDao.cs
+++ b/CDP4Orm/AutoGenDao/IMultiRelationshipDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IMultiRelationshipDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IMultiRelationshipDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.MultiRelationship multiRelationship, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.MultiRelationship multiRelationship, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IMultiRelationshipDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IMultiRelationshipRuleDao.cs b/CDP4Orm/AutoGenDao/IMultiRelationshipRuleDao.cs
index a41115db..ad2ee1bb 100644
--- a/CDP4Orm/AutoGenDao/IMultiRelationshipRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/IMultiRelationshipRuleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IMultiRelationshipRuleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IMultiRelationshipRuleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.MultiRelationshipRule multiRelationshipRule, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.MultiRelationshipRule multiRelationshipRule, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IMultiRelationshipRuleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/INaturalLanguageDao.cs b/CDP4Orm/AutoGenDao/INaturalLanguageDao.cs
index b81d2a72..791d7b38 100644
--- a/CDP4Orm/AutoGenDao/INaturalLanguageDao.cs
+++ b/CDP4Orm/AutoGenDao/INaturalLanguageDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface INaturalLanguageDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface INaturalLanguageDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NaturalLanguage naturalLanguage, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NaturalLanguage naturalLanguage, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface INaturalLanguageDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/INestedElementDao.cs b/CDP4Orm/AutoGenDao/INestedElementDao.cs
index 43f80341..470afdc7 100644
--- a/CDP4Orm/AutoGenDao/INestedElementDao.cs
+++ b/CDP4Orm/AutoGenDao/INestedElementDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface INestedElementDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface INestedElementDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NestedElement nestedElement, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NestedElement nestedElement, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface INestedElementDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/INestedParameterDao.cs b/CDP4Orm/AutoGenDao/INestedParameterDao.cs
index fee1fc42..8c1ccb7f 100644
--- a/CDP4Orm/AutoGenDao/INestedParameterDao.cs
+++ b/CDP4Orm/AutoGenDao/INestedParameterDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface INestedParameterDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface INestedParameterDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NestedParameter nestedParameter, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NestedParameter nestedParameter, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface INestedParameterDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/INotExpressionDao.cs b/CDP4Orm/AutoGenDao/INotExpressionDao.cs
index f4a5a63c..4770b703 100644
--- a/CDP4Orm/AutoGenDao/INotExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/INotExpressionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface INotExpressionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface INotExpressionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NotExpression notExpression, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.NotExpression notExpression, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface INotExpressionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IOptionDao.cs b/CDP4Orm/AutoGenDao/IOptionDao.cs
index 884766b0..ecd0b466 100644
--- a/CDP4Orm/AutoGenDao/IOptionDao.cs
+++ b/CDP4Orm/AutoGenDao/IOptionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IOptionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IOptionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Option option, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Option option, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IOptionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IOrExpressionDao.cs b/CDP4Orm/AutoGenDao/IOrExpressionDao.cs
index f38efa3f..fc75f9e1 100644
--- a/CDP4Orm/AutoGenDao/IOrExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/IOrExpressionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IOrExpressionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IOrExpressionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OrExpression orExpression, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OrExpression orExpression, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IOrExpressionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IOrdinalScaleDao.cs b/CDP4Orm/AutoGenDao/IOrdinalScaleDao.cs
index 2cc9b94a..d66ce7b5 100644
--- a/CDP4Orm/AutoGenDao/IOrdinalScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/IOrdinalScaleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IOrdinalScaleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IOrdinalScaleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OrdinalScale ordinalScale, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OrdinalScale ordinalScale, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IOrdinalScaleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IOrganizationDao.cs b/CDP4Orm/AutoGenDao/IOrganizationDao.cs
index 90f6e83a..ec80a778 100644
--- a/CDP4Orm/AutoGenDao/IOrganizationDao.cs
+++ b/CDP4Orm/AutoGenDao/IOrganizationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IOrganizationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IOrganizationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Organization organization, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Organization organization, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IOrganizationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IOrganizationalParticipantDao.cs b/CDP4Orm/AutoGenDao/IOrganizationalParticipantDao.cs
index 918d7233..ce4b9458 100644
--- a/CDP4Orm/AutoGenDao/IOrganizationalParticipantDao.cs
+++ b/CDP4Orm/AutoGenDao/IOrganizationalParticipantDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IOrganizationalParticipantDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IOrganizationalParticipantDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OrganizationalParticipant organizationalParticipant, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OrganizationalParticipant organizationalParticipant, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IOrganizationalParticipantDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IOwnedStyleDao.cs b/CDP4Orm/AutoGenDao/IOwnedStyleDao.cs
index 45ce798f..b27b58f4 100644
--- a/CDP4Orm/AutoGenDao/IOwnedStyleDao.cs
+++ b/CDP4Orm/AutoGenDao/IOwnedStyleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IOwnedStyleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IOwnedStyleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OwnedStyle ownedStyle, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.OwnedStyle ownedStyle, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IOwnedStyleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPageDao.cs b/CDP4Orm/AutoGenDao/IPageDao.cs
index 5f479e4d..59ef3811 100644
--- a/CDP4Orm/AutoGenDao/IPageDao.cs
+++ b/CDP4Orm/AutoGenDao/IPageDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IPageDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IPageDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Page page, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Page page, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IPageDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterDao.cs b/CDP4Orm/AutoGenDao/IParameterDao.cs
index 3091c5fd..5120857e 100644
--- a/CDP4Orm/AutoGenDao/IParameterDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Parameter parameter, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Parameter parameter, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterGroupDao.cs b/CDP4Orm/AutoGenDao/IParameterGroupDao.cs
index d2310fa1..6fc549bd 100644
--- a/CDP4Orm/AutoGenDao/IParameterGroupDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterGroupDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterGroupDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterGroupDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterGroup parameterGroup, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterGroup parameterGroup, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterGroupDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterOverrideDao.cs b/CDP4Orm/AutoGenDao/IParameterOverrideDao.cs
index ef5ed59c..c869f00a 100644
--- a/CDP4Orm/AutoGenDao/IParameterOverrideDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterOverrideDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterOverrideDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterOverrideDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterOverride parameterOverride, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterOverride parameterOverride, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterOverrideDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterOverrideValueSetDao.cs b/CDP4Orm/AutoGenDao/IParameterOverrideValueSetDao.cs
index d8a737a2..0e7fc315 100644
--- a/CDP4Orm/AutoGenDao/IParameterOverrideValueSetDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterOverrideValueSetDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterOverrideValueSetDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterOverrideValueSetDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterOverrideValueSet parameterOverrideValueSet, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterOverrideValueSet parameterOverrideValueSet, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterOverrideValueSetDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterSubscriptionDao.cs b/CDP4Orm/AutoGenDao/IParameterSubscriptionDao.cs
index 592f9c72..d4d727d4 100644
--- a/CDP4Orm/AutoGenDao/IParameterSubscriptionDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterSubscriptionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterSubscriptionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterSubscriptionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterSubscription parameterSubscription, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterSubscription parameterSubscription, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterSubscriptionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterSubscriptionValueSetDao.cs b/CDP4Orm/AutoGenDao/IParameterSubscriptionValueSetDao.cs
index 85493999..2c60d856 100644
--- a/CDP4Orm/AutoGenDao/IParameterSubscriptionValueSetDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterSubscriptionValueSetDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterSubscriptionValueSetDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterSubscriptionValueSetDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterSubscriptionValueSet parameterSubscriptionValueSet, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterSubscriptionValueSet parameterSubscriptionValueSet, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterSubscriptionValueSetDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterTypeComponentDao.cs b/CDP4Orm/AutoGenDao/IParameterTypeComponentDao.cs
index 7eccef51..3705b925 100644
--- a/CDP4Orm/AutoGenDao/IParameterTypeComponentDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterTypeComponentDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IParameterTypeComponentDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IParameterTypeComponentDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterTypeComponent parameterTypeComponent, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterTypeComponent parameterTypeComponent, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IParameterTypeComponentDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterValueSetDao.cs b/CDP4Orm/AutoGenDao/IParameterValueSetDao.cs
index 3ba187c0..e5ff6d4f 100644
--- a/CDP4Orm/AutoGenDao/IParameterValueSetDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterValueSetDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterValueSetDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterValueSetDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterValueSet parameterValueSet, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterValueSet parameterValueSet, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterValueSetDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParameterizedCategoryRuleDao.cs b/CDP4Orm/AutoGenDao/IParameterizedCategoryRuleDao.cs
index 243baca4..f17280af 100644
--- a/CDP4Orm/AutoGenDao/IParameterizedCategoryRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/IParameterizedCategoryRuleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParameterizedCategoryRuleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParameterizedCategoryRuleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterizedCategoryRule parameterizedCategoryRule, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParameterizedCategoryRule parameterizedCategoryRule, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParameterizedCategoryRuleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParametricConstraintDao.cs b/CDP4Orm/AutoGenDao/IParametricConstraintDao.cs
index 30764dc0..8356c220 100644
--- a/CDP4Orm/AutoGenDao/IParametricConstraintDao.cs
+++ b/CDP4Orm/AutoGenDao/IParametricConstraintDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IParametricConstraintDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IParametricConstraintDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParametricConstraint parametricConstraint, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParametricConstraint parametricConstraint, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IParametricConstraintDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParticipantDao.cs b/CDP4Orm/AutoGenDao/IParticipantDao.cs
index f2bfce05..8085d725 100644
--- a/CDP4Orm/AutoGenDao/IParticipantDao.cs
+++ b/CDP4Orm/AutoGenDao/IParticipantDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParticipantDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParticipantDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Participant participant, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Participant participant, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParticipantDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParticipantPermissionDao.cs b/CDP4Orm/AutoGenDao/IParticipantPermissionDao.cs
index 6a3a3de0..73efcbc1 100644
--- a/CDP4Orm/AutoGenDao/IParticipantPermissionDao.cs
+++ b/CDP4Orm/AutoGenDao/IParticipantPermissionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParticipantPermissionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParticipantPermissionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParticipantPermission participantPermission, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParticipantPermission participantPermission, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParticipantPermissionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IParticipantRoleDao.cs b/CDP4Orm/AutoGenDao/IParticipantRoleDao.cs
index 97990a8f..6313f6d9 100644
--- a/CDP4Orm/AutoGenDao/IParticipantRoleDao.cs
+++ b/CDP4Orm/AutoGenDao/IParticipantRoleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IParticipantRoleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IParticipantRoleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParticipantRole participantRole, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ParticipantRole participantRole, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IParticipantRoleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPersonDao.cs b/CDP4Orm/AutoGenDao/IPersonDao.cs
index 794b197f..575b6390 100644
--- a/CDP4Orm/AutoGenDao/IPersonDao.cs
+++ b/CDP4Orm/AutoGenDao/IPersonDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IPersonDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IPersonDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Person person, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Person person, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IPersonDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPersonPermissionDao.cs b/CDP4Orm/AutoGenDao/IPersonPermissionDao.cs
index ba64030c..19d41a5b 100644
--- a/CDP4Orm/AutoGenDao/IPersonPermissionDao.cs
+++ b/CDP4Orm/AutoGenDao/IPersonPermissionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IPersonPermissionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IPersonPermissionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PersonPermission personPermission, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PersonPermission personPermission, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IPersonPermissionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPersonRoleDao.cs b/CDP4Orm/AutoGenDao/IPersonRoleDao.cs
index c47720ab..8f5095ce 100644
--- a/CDP4Orm/AutoGenDao/IPersonRoleDao.cs
+++ b/CDP4Orm/AutoGenDao/IPersonRoleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IPersonRoleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IPersonRoleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PersonRole personRole, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PersonRole personRole, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IPersonRoleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPointDao.cs b/CDP4Orm/AutoGenDao/IPointDao.cs
index b7b21079..ca9588d8 100644
--- a/CDP4Orm/AutoGenDao/IPointDao.cs
+++ b/CDP4Orm/AutoGenDao/IPointDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IPointDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IPointDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Point point, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Point point, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IPointDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPossibleFiniteStateDao.cs b/CDP4Orm/AutoGenDao/IPossibleFiniteStateDao.cs
index 6b644045..adaeffb9 100644
--- a/CDP4Orm/AutoGenDao/IPossibleFiniteStateDao.cs
+++ b/CDP4Orm/AutoGenDao/IPossibleFiniteStateDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IPossibleFiniteStateDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IPossibleFiniteStateDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PossibleFiniteState possibleFiniteState, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PossibleFiniteState possibleFiniteState, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IPossibleFiniteStateDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPossibleFiniteStateListDao.cs b/CDP4Orm/AutoGenDao/IPossibleFiniteStateListDao.cs
index ee413667..13b753df 100644
--- a/CDP4Orm/AutoGenDao/IPossibleFiniteStateListDao.cs
+++ b/CDP4Orm/AutoGenDao/IPossibleFiniteStateListDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IPossibleFiniteStateListDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IPossibleFiniteStateListDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PossibleFiniteStateList possibleFiniteStateList, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PossibleFiniteStateList possibleFiniteStateList, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IPossibleFiniteStateListDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPrefixedUnitDao.cs b/CDP4Orm/AutoGenDao/IPrefixedUnitDao.cs
index 622ba5a2..cbdb535e 100644
--- a/CDP4Orm/AutoGenDao/IPrefixedUnitDao.cs
+++ b/CDP4Orm/AutoGenDao/IPrefixedUnitDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IPrefixedUnitDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IPrefixedUnitDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PrefixedUnit prefixedUnit, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.PrefixedUnit prefixedUnit, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IPrefixedUnitDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IPublicationDao.cs b/CDP4Orm/AutoGenDao/IPublicationDao.cs
index d86206c1..22e2f0ed 100644
--- a/CDP4Orm/AutoGenDao/IPublicationDao.cs
+++ b/CDP4Orm/AutoGenDao/IPublicationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IPublicationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IPublicationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Publication publication, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Publication publication, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IPublicationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IQuantityKindFactorDao.cs b/CDP4Orm/AutoGenDao/IQuantityKindFactorDao.cs
index 1d0363ef..3a217a2b 100644
--- a/CDP4Orm/AutoGenDao/IQuantityKindFactorDao.cs
+++ b/CDP4Orm/AutoGenDao/IQuantityKindFactorDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface IQuantityKindFactorDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface IQuantityKindFactorDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.QuantityKindFactor quantityKindFactor, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.QuantityKindFactor quantityKindFactor, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface IQuantityKindFactorDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRatioScaleDao.cs b/CDP4Orm/AutoGenDao/IRatioScaleDao.cs
index 9acb7bd2..9f30e891 100644
--- a/CDP4Orm/AutoGenDao/IRatioScaleDao.cs
+++ b/CDP4Orm/AutoGenDao/IRatioScaleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRatioScaleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRatioScaleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RatioScale ratioScale, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RatioScale ratioScale, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRatioScaleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IReferenceSourceDao.cs b/CDP4Orm/AutoGenDao/IReferenceSourceDao.cs
index b12eca35..978a22c1 100644
--- a/CDP4Orm/AutoGenDao/IReferenceSourceDao.cs
+++ b/CDP4Orm/AutoGenDao/IReferenceSourceDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IReferenceSourceDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IReferenceSourceDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ReferenceSource referenceSource, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ReferenceSource referenceSource, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IReferenceSourceDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IReferencerRuleDao.cs b/CDP4Orm/AutoGenDao/IReferencerRuleDao.cs
index 4d353b26..7e8370d4 100644
--- a/CDP4Orm/AutoGenDao/IReferencerRuleDao.cs
+++ b/CDP4Orm/AutoGenDao/IReferencerRuleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IReferencerRuleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IReferencerRuleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ReferencerRule referencerRule, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ReferencerRule referencerRule, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IReferencerRuleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRelationalExpressionDao.cs b/CDP4Orm/AutoGenDao/IRelationalExpressionDao.cs
index 1e2e88c1..00ac554e 100644
--- a/CDP4Orm/AutoGenDao/IRelationalExpressionDao.cs
+++ b/CDP4Orm/AutoGenDao/IRelationalExpressionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRelationalExpressionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRelationalExpressionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RelationalExpression relationalExpression, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RelationalExpression relationalExpression, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRelationalExpressionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRelationshipParameterValueDao.cs b/CDP4Orm/AutoGenDao/IRelationshipParameterValueDao.cs
index 5a7fb46d..3b6d26d0 100644
--- a/CDP4Orm/AutoGenDao/IRelationshipParameterValueDao.cs
+++ b/CDP4Orm/AutoGenDao/IRelationshipParameterValueDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRelationshipParameterValueDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRelationshipParameterValueDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RelationshipParameterValue relationshipParameterValue, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RelationshipParameterValue relationshipParameterValue, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRelationshipParameterValueDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRequestForDeviationDao.cs b/CDP4Orm/AutoGenDao/IRequestForDeviationDao.cs
index 6d541521..24013750 100644
--- a/CDP4Orm/AutoGenDao/IRequestForDeviationDao.cs
+++ b/CDP4Orm/AutoGenDao/IRequestForDeviationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRequestForDeviationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRequestForDeviationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequestForDeviation requestForDeviation, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequestForDeviation requestForDeviation, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRequestForDeviationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRequestForWaiverDao.cs b/CDP4Orm/AutoGenDao/IRequestForWaiverDao.cs
index 25935983..2cf8732a 100644
--- a/CDP4Orm/AutoGenDao/IRequestForWaiverDao.cs
+++ b/CDP4Orm/AutoGenDao/IRequestForWaiverDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRequestForWaiverDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRequestForWaiverDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequestForWaiver requestForWaiver, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequestForWaiver requestForWaiver, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRequestForWaiverDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRequirementDao.cs b/CDP4Orm/AutoGenDao/IRequirementDao.cs
index 4feb94c8..ca45a6ac 100644
--- a/CDP4Orm/AutoGenDao/IRequirementDao.cs
+++ b/CDP4Orm/AutoGenDao/IRequirementDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRequirementDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRequirementDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Requirement requirement, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Requirement requirement, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRequirementDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRequirementsContainerParameterValueDao.cs b/CDP4Orm/AutoGenDao/IRequirementsContainerParameterValueDao.cs
index 4d331f2c..94263850 100644
--- a/CDP4Orm/AutoGenDao/IRequirementsContainerParameterValueDao.cs
+++ b/CDP4Orm/AutoGenDao/IRequirementsContainerParameterValueDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRequirementsContainerParameterValueDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRequirementsContainerParameterValueDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequirementsContainerParameterValue requirementsContainerParameterValue, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequirementsContainerParameterValue requirementsContainerParameterValue, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRequirementsContainerParameterValueDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRequirementsGroupDao.cs b/CDP4Orm/AutoGenDao/IRequirementsGroupDao.cs
index dd025276..4fbef6c6 100644
--- a/CDP4Orm/AutoGenDao/IRequirementsGroupDao.cs
+++ b/CDP4Orm/AutoGenDao/IRequirementsGroupDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRequirementsGroupDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRequirementsGroupDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequirementsGroup requirementsGroup, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequirementsGroup requirementsGroup, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRequirementsGroupDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRequirementsSpecificationDao.cs b/CDP4Orm/AutoGenDao/IRequirementsSpecificationDao.cs
index 36ce288c..bf69be20 100644
--- a/CDP4Orm/AutoGenDao/IRequirementsSpecificationDao.cs
+++ b/CDP4Orm/AutoGenDao/IRequirementsSpecificationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRequirementsSpecificationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRequirementsSpecificationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequirementsSpecification requirementsSpecification, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RequirementsSpecification requirementsSpecification, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRequirementsSpecificationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IReviewItemDiscrepancyDao.cs b/CDP4Orm/AutoGenDao/IReviewItemDiscrepancyDao.cs
index 4a7d1b63..e11fe35a 100644
--- a/CDP4Orm/AutoGenDao/IReviewItemDiscrepancyDao.cs
+++ b/CDP4Orm/AutoGenDao/IReviewItemDiscrepancyDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IReviewItemDiscrepancyDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IReviewItemDiscrepancyDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ReviewItemDiscrepancy reviewItemDiscrepancy, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ReviewItemDiscrepancy reviewItemDiscrepancy, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IReviewItemDiscrepancyDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRuleVerificationListDao.cs b/CDP4Orm/AutoGenDao/IRuleVerificationListDao.cs
index f7149134..7dc22a57 100644
--- a/CDP4Orm/AutoGenDao/IRuleVerificationListDao.cs
+++ b/CDP4Orm/AutoGenDao/IRuleVerificationListDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRuleVerificationListDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRuleVerificationListDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RuleVerificationList ruleVerificationList, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RuleVerificationList ruleVerificationList, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRuleVerificationListDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IRuleViolationDao.cs b/CDP4Orm/AutoGenDao/IRuleViolationDao.cs
index ff47a47b..eeeb5471 100644
--- a/CDP4Orm/AutoGenDao/IRuleViolationDao.cs
+++ b/CDP4Orm/AutoGenDao/IRuleViolationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IRuleViolationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IRuleViolationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RuleViolation ruleViolation, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.RuleViolation ruleViolation, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IRuleViolationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISampledFunctionParameterTypeDao.cs b/CDP4Orm/AutoGenDao/ISampledFunctionParameterTypeDao.cs
index 7d68a7e0..bd2734cb 100644
--- a/CDP4Orm/AutoGenDao/ISampledFunctionParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/ISampledFunctionParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISampledFunctionParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISampledFunctionParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SampledFunctionParameterType sampledFunctionParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SampledFunctionParameterType sampledFunctionParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISampledFunctionParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IScaleReferenceQuantityValueDao.cs b/CDP4Orm/AutoGenDao/IScaleReferenceQuantityValueDao.cs
index 0fbb662f..f0f6c4bc 100644
--- a/CDP4Orm/AutoGenDao/IScaleReferenceQuantityValueDao.cs
+++ b/CDP4Orm/AutoGenDao/IScaleReferenceQuantityValueDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IScaleReferenceQuantityValueDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IScaleReferenceQuantityValueDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ScaleReferenceQuantityValue scaleReferenceQuantityValue, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ScaleReferenceQuantityValue scaleReferenceQuantityValue, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IScaleReferenceQuantityValueDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IScaleValueDefinitionDao.cs b/CDP4Orm/AutoGenDao/IScaleValueDefinitionDao.cs
index 52e811e7..401c5031 100644
--- a/CDP4Orm/AutoGenDao/IScaleValueDefinitionDao.cs
+++ b/CDP4Orm/AutoGenDao/IScaleValueDefinitionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IScaleValueDefinitionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IScaleValueDefinitionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ScaleValueDefinition scaleValueDefinition, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.ScaleValueDefinition scaleValueDefinition, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IScaleValueDefinitionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISectionDao.cs b/CDP4Orm/AutoGenDao/ISectionDao.cs
index e8019ca1..09ac780c 100644
--- a/CDP4Orm/AutoGenDao/ISectionDao.cs
+++ b/CDP4Orm/AutoGenDao/ISectionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,11 +67,9 @@ public partial interface ISectionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The order sequence used to persist this instance.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -80,6 +78,30 @@ public partial interface ISectionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Section section, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The order sequence used to persist this instance.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Section section, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -180,6 +202,25 @@ public partial interface ISectionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISharedStyleDao.cs b/CDP4Orm/AutoGenDao/ISharedStyleDao.cs
index 32dad1a9..0e177845 100644
--- a/CDP4Orm/AutoGenDao/ISharedStyleDao.cs
+++ b/CDP4Orm/AutoGenDao/ISharedStyleDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISharedStyleDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISharedStyleDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SharedStyle sharedStyle, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SharedStyle sharedStyle, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISharedStyleDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISimpleParameterValueDao.cs b/CDP4Orm/AutoGenDao/ISimpleParameterValueDao.cs
index 4a9a17e5..2059ea70 100644
--- a/CDP4Orm/AutoGenDao/ISimpleParameterValueDao.cs
+++ b/CDP4Orm/AutoGenDao/ISimpleParameterValueDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISimpleParameterValueDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISimpleParameterValueDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SimpleParameterValue simpleParameterValue, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SimpleParameterValue simpleParameterValue, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISimpleParameterValueDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISimpleQuantityKindDao.cs b/CDP4Orm/AutoGenDao/ISimpleQuantityKindDao.cs
index d25accdd..e5e57ba2 100644
--- a/CDP4Orm/AutoGenDao/ISimpleQuantityKindDao.cs
+++ b/CDP4Orm/AutoGenDao/ISimpleQuantityKindDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISimpleQuantityKindDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISimpleQuantityKindDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SimpleQuantityKind simpleQuantityKind, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SimpleQuantityKind simpleQuantityKind, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISimpleQuantityKindDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISimpleUnitDao.cs b/CDP4Orm/AutoGenDao/ISimpleUnitDao.cs
index d1fd6386..c874138f 100644
--- a/CDP4Orm/AutoGenDao/ISimpleUnitDao.cs
+++ b/CDP4Orm/AutoGenDao/ISimpleUnitDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISimpleUnitDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISimpleUnitDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SimpleUnit simpleUnit, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SimpleUnit simpleUnit, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISimpleUnitDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISiteDirectoryDao.cs b/CDP4Orm/AutoGenDao/ISiteDirectoryDao.cs
index 39d0abbc..803e1556 100644
--- a/CDP4Orm/AutoGenDao/ISiteDirectoryDao.cs
+++ b/CDP4Orm/AutoGenDao/ISiteDirectoryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISiteDirectoryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISiteDirectoryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectory siteDirectory, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectory siteDirectory, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISiteDirectoryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISiteDirectoryDataAnnotationDao.cs b/CDP4Orm/AutoGenDao/ISiteDirectoryDataAnnotationDao.cs
index 1cab409b..ac25bce8 100644
--- a/CDP4Orm/AutoGenDao/ISiteDirectoryDataAnnotationDao.cs
+++ b/CDP4Orm/AutoGenDao/ISiteDirectoryDataAnnotationDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISiteDirectoryDataAnnotationDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISiteDirectoryDataAnnotationDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectoryDataAnnotation siteDirectoryDataAnnotation, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectoryDataAnnotation siteDirectoryDataAnnotation, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISiteDirectoryDataAnnotationDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISiteDirectoryDataDiscussionItemDao.cs b/CDP4Orm/AutoGenDao/ISiteDirectoryDataDiscussionItemDao.cs
index 9c51378f..89cfda53 100644
--- a/CDP4Orm/AutoGenDao/ISiteDirectoryDataDiscussionItemDao.cs
+++ b/CDP4Orm/AutoGenDao/ISiteDirectoryDataDiscussionItemDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISiteDirectoryDataDiscussionItemDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISiteDirectoryDataDiscussionItemDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectoryDataDiscussionItem siteDirectoryDataDiscussionItem, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectoryDataDiscussionItem siteDirectoryDataDiscussionItem, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISiteDirectoryDataDiscussionItemDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISiteDirectoryThingReferenceDao.cs b/CDP4Orm/AutoGenDao/ISiteDirectoryThingReferenceDao.cs
index 69d3a8b4..941d4734 100644
--- a/CDP4Orm/AutoGenDao/ISiteDirectoryThingReferenceDao.cs
+++ b/CDP4Orm/AutoGenDao/ISiteDirectoryThingReferenceDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISiteDirectoryThingReferenceDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISiteDirectoryThingReferenceDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectoryThingReference siteDirectoryThingReference, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteDirectoryThingReference siteDirectoryThingReference, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISiteDirectoryThingReferenceDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISiteLogEntryDao.cs b/CDP4Orm/AutoGenDao/ISiteLogEntryDao.cs
index 23ade376..06e719ca 100644
--- a/CDP4Orm/AutoGenDao/ISiteLogEntryDao.cs
+++ b/CDP4Orm/AutoGenDao/ISiteLogEntryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISiteLogEntryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISiteLogEntryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteLogEntry siteLogEntry, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteLogEntry siteLogEntry, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISiteLogEntryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISiteReferenceDataLibraryDao.cs b/CDP4Orm/AutoGenDao/ISiteReferenceDataLibraryDao.cs
index 2873c815..3e5982ce 100644
--- a/CDP4Orm/AutoGenDao/ISiteReferenceDataLibraryDao.cs
+++ b/CDP4Orm/AutoGenDao/ISiteReferenceDataLibraryDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISiteReferenceDataLibraryDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISiteReferenceDataLibraryDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteReferenceDataLibrary siteReferenceDataLibrary, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SiteReferenceDataLibrary siteReferenceDataLibrary, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISiteReferenceDataLibraryDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISolutionDao.cs b/CDP4Orm/AutoGenDao/ISolutionDao.cs
index b7d17621..354affd3 100644
--- a/CDP4Orm/AutoGenDao/ISolutionDao.cs
+++ b/CDP4Orm/AutoGenDao/ISolutionDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISolutionDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISolutionDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Solution solution, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Solution solution, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISolutionDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ISpecializedQuantityKindDao.cs b/CDP4Orm/AutoGenDao/ISpecializedQuantityKindDao.cs
index bc90d227..3f5d21eb 100644
--- a/CDP4Orm/AutoGenDao/ISpecializedQuantityKindDao.cs
+++ b/CDP4Orm/AutoGenDao/ISpecializedQuantityKindDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ISpecializedQuantityKindDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ISpecializedQuantityKindDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SpecializedQuantityKind specializedQuantityKind, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.SpecializedQuantityKind specializedQuantityKind, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ISpecializedQuantityKindDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IStakeHolderValueMapDao.cs b/CDP4Orm/AutoGenDao/IStakeHolderValueMapDao.cs
index e61ce9e1..0dafbfa8 100644
--- a/CDP4Orm/AutoGenDao/IStakeHolderValueMapDao.cs
+++ b/CDP4Orm/AutoGenDao/IStakeHolderValueMapDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IStakeHolderValueMapDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IStakeHolderValueMapDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.StakeHolderValueMap stakeHolderValueMap, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.StakeHolderValueMap stakeHolderValueMap, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IStakeHolderValueMapDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IStakeHolderValueMapSettingsDao.cs b/CDP4Orm/AutoGenDao/IStakeHolderValueMapSettingsDao.cs
index 591fd564..dfa96805 100644
--- a/CDP4Orm/AutoGenDao/IStakeHolderValueMapSettingsDao.cs
+++ b/CDP4Orm/AutoGenDao/IStakeHolderValueMapSettingsDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IStakeHolderValueMapSettingsDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IStakeHolderValueMapSettingsDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.StakeHolderValueMapSettings stakeHolderValueMapSettings, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.StakeHolderValueMapSettings stakeHolderValueMapSettings, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IStakeHolderValueMapSettingsDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IStakeholderDao.cs b/CDP4Orm/AutoGenDao/IStakeholderDao.cs
index 4c587c8a..d596896f 100644
--- a/CDP4Orm/AutoGenDao/IStakeholderDao.cs
+++ b/CDP4Orm/AutoGenDao/IStakeholderDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IStakeholderDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IStakeholderDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Stakeholder stakeholder, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Stakeholder stakeholder, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IStakeholderDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/IStakeholderValueDao.cs b/CDP4Orm/AutoGenDao/IStakeholderValueDao.cs
index 406fbc34..6ca56dd5 100644
--- a/CDP4Orm/AutoGenDao/IStakeholderValueDao.cs
+++ b/CDP4Orm/AutoGenDao/IStakeholderValueDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface IStakeholderValueDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface IStakeholderValueDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.StakeholderValue stakeholderValue, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.StakeholderValue stakeholderValue, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface IStakeholderValueDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ITelephoneNumberDao.cs b/CDP4Orm/AutoGenDao/ITelephoneNumberDao.cs
index eabaf02a..be4560c2 100644
--- a/CDP4Orm/AutoGenDao/ITelephoneNumberDao.cs
+++ b/CDP4Orm/AutoGenDao/ITelephoneNumberDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ITelephoneNumberDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ITelephoneNumberDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.TelephoneNumber telephoneNumber, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.TelephoneNumber telephoneNumber, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ITelephoneNumberDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ITermDao.cs b/CDP4Orm/AutoGenDao/ITermDao.cs
index ce802a3a..c7ab991c 100644
--- a/CDP4Orm/AutoGenDao/ITermDao.cs
+++ b/CDP4Orm/AutoGenDao/ITermDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ITermDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ITermDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Term term, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.Term term, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ITermDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ITextParameterTypeDao.cs b/CDP4Orm/AutoGenDao/ITextParameterTypeDao.cs
index d98d45a2..d64a48fd 100644
--- a/CDP4Orm/AutoGenDao/ITextParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/ITextParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ITextParameterTypeDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ITextParameterTypeDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.TextParameterType textParameterType, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.TextParameterType textParameterType, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ITextParameterTypeDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ITextualNoteDao.cs b/CDP4Orm/AutoGenDao/ITextualNoteDao.cs
index 2d1918fd..b95d9154 100644
--- a/CDP4Orm/AutoGenDao/ITextualNoteDao.cs
+++ b/CDP4Orm/AutoGenDao/ITextualNoteDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ITextualNoteDao : IDao
///
/// The that is to be persisted.
///
-
///
/// The container of the DTO to be persisted.
///
@@ -76,6 +75,27 @@ public partial interface ITextualNoteDao : IDao
///
bool Write(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.TextualNote textualNote, long sequence, CDP4Common.DTO.Thing container = null);
+ ///
+ /// Insert a database record from the supplied data transfer object and updates it if it already exists.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be stored.
+ ///
+ ///
+ /// The that is to be persisted.
+ ///
+ ///
+ /// The container of the DTO to be persisted.
+ ///
+ ///
+ /// True if the concept was successfully persisted.
+ ///
+ bool Upsert(NpgsqlTransaction transaction, string partition, CDP4Common.DTO.TextualNote textualNote, long sequence, CDP4Common.DTO.Thing container = null);
+
///
/// Update a database record from the supplied data transfer object.
///
@@ -159,6 +179,25 @@ public partial interface ITextualNoteDao : IDao
///
bool Delete(NpgsqlTransaction transaction, string partition, Guid iid);
+ ///
+ /// Delete a database record from the supplied data transfer object.
+ /// A "Raw" Delete means that the delete is performed without calling BeforeDelete or AfterDelete.
+ /// This is typically used during the import of existing data to the Database.
+ ///
+ ///
+ /// The current to the database.
+ ///
+ ///
+ /// The database partition (schema) where the requested resource will be deleted.
+ ///
+ ///
+ /// The id that is to be deleted.
+ ///
+ ///
+ /// True if the concept was successfully deleted.
+ ///
+ bool RawDelete(NpgsqlTransaction transaction, string partition, Guid iid);
+
///
/// Delete the supplied value from the association link table indicated by the supplied property name.
///
diff --git a/CDP4Orm/AutoGenDao/ITimeOfDayParameterTypeDao.cs b/CDP4Orm/AutoGenDao/ITimeOfDayParameterTypeDao.cs
index 7c02b033..ea7c9b23 100644
--- a/CDP4Orm/AutoGenDao/ITimeOfDayParameterTypeDao.cs
+++ b/CDP4Orm/AutoGenDao/ITimeOfDayParameterTypeDao.cs
@@ -1,19 +1,19 @@
// --------------------------------------------------------------------------------------------------------------------
//
-// Copyright (c) 2015-2019 RHEA System S.A.
+// Copyright (c) 2015-2021 RHEA System S.A.
//
-// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft.
+// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft, Nathanael Smiechowski
//
-// This file is part of CDP4 Web Services Community Edition.
-// The CDP4 Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
+// This file is part of COMET Web Services Community Edition.
+// The COMET Web Services Community Edition is the RHEA implementation of ECSS-E-TM-10-25 Annex A and Annex C.
// This is an auto-generated class. Any manual changes to this file will be overwritten!
//
-// The CDP4 Web Services Community Edition is free software; you can redistribute it and/or
+// The COMET Web Services Community Edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
-// The CDP4 Web Services Community Edition is distributed in the hope that it will be useful,
+// The COMET Web Services Community Edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
@@ -67,7 +67,6 @@ public partial interface ITimeOfDayParameterTypeDao : IDao
///