diff options
author | lbsa71 | 2008-03-28 14:54:20 +0000 |
---|---|---|
committer | lbsa71 | 2008-03-28 14:54:20 +0000 |
commit | 8c901e93474af5fcd17a7f37acd711622c5286e0 (patch) | |
tree | 732b8db3dd2480d7cdeed49f4d086194e529ba6f /OpenSim/Framework/Data | |
parent | Applied patch from mantis# 825, thanks A_Biondi (diff) | |
download | opensim-SC_OLD-8c901e93474af5fcd17a7f37acd711622c5286e0.zip opensim-SC_OLD-8c901e93474af5fcd17a7f37acd711622c5286e0.tar.gz opensim-SC_OLD-8c901e93474af5fcd17a7f37acd711622c5286e0.tar.bz2 opensim-SC_OLD-8c901e93474af5fcd17a7f37acd711622c5286e0.tar.xz |
* Introduced common abstract AssetDataBase implementing IAssetProvider
* changed the semantics of SQLiteBase to SQLiteUtils
* Added abstract placeholder files for the other db providers
Diffstat (limited to 'OpenSim/Framework/Data')
-rw-r--r-- | OpenSim/Framework/Data/AssetDataBase.cs | 20 | ||||
-rw-r--r-- | OpenSim/Framework/Data/DataStoreBase.cs | 10 | ||||
-rw-r--r-- | OpenSim/Framework/Data/GridDataBase.cs | 10 | ||||
-rw-r--r-- | OpenSim/Framework/Data/InventoryDataBase.cs | 10 | ||||
-rw-r--r-- | OpenSim/Framework/Data/UserDataBase.cs | 10 |
5 files changed, 60 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data/AssetDataBase.cs b/OpenSim/Framework/Data/AssetDataBase.cs new file mode 100644 index 0000000..2162358 --- /dev/null +++ b/OpenSim/Framework/Data/AssetDataBase.cs | |||
@@ -0,0 +1,20 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | |||
6 | namespace OpenSim.Framework.Data | ||
7 | { | ||
8 | public abstract class AssetDataBase : IAssetProvider | ||
9 | { | ||
10 | public abstract AssetBase FetchAsset(LLUUID uuid); | ||
11 | public abstract void CreateAsset(AssetBase asset); | ||
12 | public abstract void UpdateAsset(AssetBase asset); | ||
13 | public abstract bool ExistsAsset(LLUUID uuid); | ||
14 | public abstract void CommitAssets(); | ||
15 | |||
16 | public abstract string Version { get; } | ||
17 | public abstract string Name { get; } | ||
18 | public abstract void Initialise(); | ||
19 | } | ||
20 | } | ||
diff --git a/OpenSim/Framework/Data/DataStoreBase.cs b/OpenSim/Framework/Data/DataStoreBase.cs new file mode 100644 index 0000000..671d0f0 --- /dev/null +++ b/OpenSim/Framework/Data/DataStoreBase.cs | |||
@@ -0,0 +1,10 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Framework.Data | ||
6 | { | ||
7 | public abstract class DataStoreBase | ||
8 | { | ||
9 | } | ||
10 | } | ||
diff --git a/OpenSim/Framework/Data/GridDataBase.cs b/OpenSim/Framework/Data/GridDataBase.cs new file mode 100644 index 0000000..e7333b4 --- /dev/null +++ b/OpenSim/Framework/Data/GridDataBase.cs | |||
@@ -0,0 +1,10 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Framework.Data | ||
6 | { | ||
7 | public abstract class GridDataBase | ||
8 | { | ||
9 | } | ||
10 | } | ||
diff --git a/OpenSim/Framework/Data/InventoryDataBase.cs b/OpenSim/Framework/Data/InventoryDataBase.cs new file mode 100644 index 0000000..d88acff --- /dev/null +++ b/OpenSim/Framework/Data/InventoryDataBase.cs | |||
@@ -0,0 +1,10 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Framework.Data | ||
6 | { | ||
7 | public abstract class InventoryDataBase | ||
8 | { | ||
9 | } | ||
10 | } | ||
diff --git a/OpenSim/Framework/Data/UserDataBase.cs b/OpenSim/Framework/Data/UserDataBase.cs new file mode 100644 index 0000000..a704ed4 --- /dev/null +++ b/OpenSim/Framework/Data/UserDataBase.cs | |||
@@ -0,0 +1,10 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Framework.Data | ||
6 | { | ||
7 | public abstract class UserDataBase | ||
8 | { | ||
9 | } | ||
10 | } | ||