diff options
author | Melanie | 2011-03-27 21:41:54 +0100 |
---|---|---|
committer | Melanie | 2011-03-27 21:41:54 +0100 |
commit | a62b435a396a5837fd1e26ac905520f895d8610a (patch) | |
tree | 743b8cb91fa101ce461b2fc8ebf7078165e3c7d1 /OpenSim/Data/SQLite | |
parent | Upgrade terse to full update on root rotation change. Not entirely sure why, ... (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-a62b435a396a5837fd1e26ac905520f895d8610a.zip opensim-SC-a62b435a396a5837fd1e26ac905520f895d8610a.tar.gz opensim-SC-a62b435a396a5837fd1e26ac905520f895d8610a.tar.bz2 opensim-SC-a62b435a396a5837fd1e26ac905520f895d8610a.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteEstateData.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteEstateData.cs b/OpenSim/Data/SQLite/SQLiteEstateData.cs index 63252aa..6afc540 100644 --- a/OpenSim/Data/SQLite/SQLiteEstateData.cs +++ b/OpenSim/Data/SQLite/SQLiteEstateData.cs | |||
@@ -357,6 +357,17 @@ namespace OpenSim.Data.SQLite | |||
357 | 357 | ||
358 | return DoLoad(cmd, UUID.Zero, false); | 358 | return DoLoad(cmd, UUID.Zero, false); |
359 | } | 359 | } |
360 | |||
361 | public List<EstateSettings> LoadEstateSettingsAll() | ||
362 | { | ||
363 | List<EstateSettings> estateSettings = new List<EstateSettings>(); | ||
364 | |||
365 | List<int> estateIds = GetEstatesAll(); | ||
366 | foreach (int estateId in estateIds) | ||
367 | estateSettings.Add(LoadEstateSettings(estateId)); | ||
368 | |||
369 | return estateSettings; | ||
370 | } | ||
360 | 371 | ||
361 | public List<int> GetEstates(string search) | 372 | public List<int> GetEstates(string search) |
362 | { | 373 | { |
@@ -379,6 +390,27 @@ namespace OpenSim.Data.SQLite | |||
379 | 390 | ||
380 | return result; | 391 | return result; |
381 | } | 392 | } |
393 | |||
394 | public List<int> GetEstatesAll() | ||
395 | { | ||
396 | List<int> result = new List<int>(); | ||
397 | |||
398 | string sql = "select EstateID from estate_settings"; | ||
399 | |||
400 | SqliteCommand cmd = (SqliteCommand)m_connection.CreateCommand(); | ||
401 | |||
402 | cmd.CommandText = sql; | ||
403 | |||
404 | IDataReader r = cmd.ExecuteReader(); | ||
405 | |||
406 | while (r.Read()) | ||
407 | { | ||
408 | result.Add(Convert.ToInt32(r["EstateID"])); | ||
409 | } | ||
410 | r.Close(); | ||
411 | |||
412 | return result; | ||
413 | } | ||
382 | 414 | ||
383 | public bool LinkRegion(UUID regionID, int estateID) | 415 | public bool LinkRegion(UUID regionID, int estateID) |
384 | { | 416 | { |