diff options
author | Mike Mazur | 2009-03-09 07:29:34 +0000 |
---|---|---|
committer | Mike Mazur | 2009-03-09 07:29:34 +0000 |
commit | a2f07ecd2e248966957a8ea70d772276359b02e8 (patch) | |
tree | 5050ec85024e44e4946bfc29782875b3f50f5d37 /OpenSim/Data/NHibernate/NHibernateAssetData.cs | |
parent | * Tweak llMoveToTarget per mantis 3265 (diff) | |
download | opensim-SC-a2f07ecd2e248966957a8ea70d772276359b02e8.zip opensim-SC-a2f07ecd2e248966957a8ea70d772276359b02e8.tar.gz opensim-SC-a2f07ecd2e248966957a8ea70d772276359b02e8.tar.bz2 opensim-SC-a2f07ecd2e248966957a8ea70d772276359b02e8.tar.xz |
Implemented FetchAssetMetadataSet in DB backends.
This method fetches metadata for a subset of the entries in the assets
database. This functionality is used in the ForEach calls in the asset
storage providers in AssetInventoryServer. With this implemented,
frontends such as the BrowseFrontend should now work.
- MySQL: implemented, sanity tested
- SQLite: implemented, sanity tested
- MSSQL: implemented, not tested
- NHibernate: not implemented
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateAssetData.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index 387d3d4..4e8f708 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Reflection; | 28 | using System.Reflection; |
29 | using System.Collections.Generic; | ||
29 | using log4net; | 30 | using log4net; |
30 | using OpenMetaverse; | 31 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
@@ -109,6 +110,20 @@ namespace OpenSim.Data.NHibernate | |||
109 | return (FetchAsset(uuid) != null); | 110 | return (FetchAsset(uuid) != null); |
110 | } | 111 | } |
111 | 112 | ||
113 | /// <summary> | ||
114 | /// Returns a list of AssetMetadata objects. The list is a subset of | ||
115 | /// the entire data set offset by <paramref name="start" /> containing | ||
116 | /// <paramref name="count" /> elements. | ||
117 | /// </summary> | ||
118 | /// <param name="start">The number of results to discard from the total data set.</param> | ||
119 | /// <param name="count">The number of rows the returned list should contain.</param> | ||
120 | /// <returns>A list of AssetMetadata objects.</returns> | ||
121 | public override List<AssetMetadata> FetchAssetMetadataSet(int start, int count) | ||
122 | { | ||
123 | List<AssetMetadata> retList = new List<AssetMetadata>(count); | ||
124 | return retList; | ||
125 | } | ||
126 | |||
112 | public void DeleteAsset(UUID uuid) | 127 | public void DeleteAsset(UUID uuid) |
113 | { | 128 | { |
114 | 129 | ||