[longomatch] Replace db4o deprecated Set() with Store()
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Replace db4o deprecated Set() with Store()
- Date: Mon, 5 Jul 2010 18:47:00 +0000 (UTC)
commit d6a5208b0b753376a9f24ccf20ea161765fb1e18
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Jun 27 02:17:51 2010 +0200
Replace db4o deprecated Set() with Store()
LongoMatch/DB/DataBase.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch/DB/DataBase.cs b/LongoMatch/DB/DataBase.cs
index d5e6bd8..84392bc 100644
--- a/LongoMatch/DB/DataBase.cs
+++ b/LongoMatch/DB/DataBase.cs
@@ -66,7 +66,7 @@ namespace LongoMatch.DB
IObjectContainer db = Db4oFactory.OpenFile(file);
try {
dbVersion= new Version(MAYOR,MINOR);
- db.Set(dbVersion);
+ db.Store(dbVersion);
}
finally {
db.Close();
@@ -136,7 +136,7 @@ namespace LongoMatch.DB
Catalog.GetString("Error retrieving the file info for project:")+" "+p.Title+"\n"+
Catalog.GetString("This value will be reset. Remember to change it later with the projects manager"));
p.File = new PreviewMediaFile(Catalog.GetString("Change Me"),0,0,false,false,"","",0,0,null);
- db.Set(p);
+ db.Store(p);
}
ProjectDescription pd = new ProjectDescription {
File = p.File.FilePath,
@@ -209,7 +209,7 @@ namespace LongoMatch.DB
try
{
if (!this.Exists(project.File.FilePath,db)) {
- db.Set(project);
+ db.Store(project);
db.Commit();
}
else throw new Exception(Catalog.GetString("The Project for this video file already exists.")+"\n"+Catalog.GetString("Try to edit it with the Database Manager"));
@@ -275,7 +275,7 @@ namespace LongoMatch.DB
Project fd = (Project)result.Next();
db.Delete(fd);
// Add the updated project
- db.Set(project);
+ db.Store(project);
db.Commit();
}
else
@@ -307,7 +307,7 @@ namespace LongoMatch.DB
//Get the stored project and replace it with the new one
Project fd = (Project)result.Next();
db.Delete(fd);
- db.Set(project);
+ db.Store(project);
db.Commit();
}
finally
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]