aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-05-01 16:03:53 +0000
committerAdam Frisby2008-05-01 16:03:53 +0000
commit523190377861292dfecdaddebe1204301a0c7912 (patch)
treec003fa3c03389fc2d701d6797557c693a4eb29fc /OpenSim/Data/SQLite/SQLiteInventoryStore.cs
parentAdd basic OS X support to LaunchSLClient (diff)
downloadopensim-SC_OLD-523190377861292dfecdaddebe1204301a0c7912.zip
opensim-SC_OLD-523190377861292dfecdaddebe1204301a0c7912.tar.gz
opensim-SC_OLD-523190377861292dfecdaddebe1204301a0c7912.tar.bz2
opensim-SC_OLD-523190377861292dfecdaddebe1204301a0c7912.tar.xz
* In ur code. Making it static.
* Converted a bunch of functions to static functions.
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteInventoryStore.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteInventoryStore.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index 4b28795..40978da 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -124,7 +124,7 @@ namespace OpenSim.Data.SQLite
124 return item; 124 return item;
125 } 125 }
126 126
127 private void fillItemRow(DataRow row, InventoryItemBase item) 127 private static void fillItemRow(DataRow row, InventoryItemBase item)
128 { 128 {
129 row["UUID"] = Util.ToRawUuidString(item.ID); 129 row["UUID"] = Util.ToRawUuidString(item.ID);
130 row["assetID"] = Util.ToRawUuidString(item.AssetID); 130 row["assetID"] = Util.ToRawUuidString(item.AssetID);
@@ -576,7 +576,7 @@ namespace OpenSim.Data.SQLite
576 return inv; 576 return inv;
577 } 577 }
578 578
579 private DataTable createInventoryFoldersTable() 579 private static DataTable createInventoryFoldersTable()
580 { 580 {
581 DataTable fol = new DataTable("inventoryfolders"); 581 DataTable fol = new DataTable("inventoryfolders");
582 582
@@ -625,7 +625,7 @@ namespace OpenSim.Data.SQLite
625 } 625 }
626 } 626 }
627 627
628 private InventoryFolderBase buildFolder(DataRow row) 628 private static InventoryFolderBase buildFolder(DataRow row)
629 { 629 {
630 InventoryFolderBase folder = new InventoryFolderBase(); 630 InventoryFolderBase folder = new InventoryFolderBase();
631 folder.ID = new LLUUID((string) row["UUID"]); 631 folder.ID = new LLUUID((string) row["UUID"]);
@@ -637,7 +637,7 @@ namespace OpenSim.Data.SQLite
637 return folder; 637 return folder;
638 } 638 }
639 639
640 private void fillFolderRow(DataRow row, InventoryFolderBase folder) 640 private static void fillFolderRow(DataRow row, InventoryFolderBase folder)
641 { 641 {
642 row["UUID"] = Util.ToRawUuidString(folder.ID); 642 row["UUID"] = Util.ToRawUuidString(folder.ID);
643 row["name"] = folder.Name; 643 row["name"] = folder.Name;
@@ -647,7 +647,7 @@ namespace OpenSim.Data.SQLite
647 row["version"] = folder.Version; 647 row["version"] = folder.Version;
648 } 648 }
649 649
650 private void moveFolderRow(DataRow row, InventoryFolderBase folder) 650 private static void moveFolderRow(DataRow row, InventoryFolderBase folder)
651 { 651 {
652 row["UUID"] = Util.ToRawUuidString(folder.ID); 652 row["UUID"] = Util.ToRawUuidString(folder.ID);
653 row["parentID"] = Util.ToRawUuidString(folder.ParentID); 653 row["parentID"] = Util.ToRawUuidString(folder.ParentID);
@@ -659,7 +659,7 @@ namespace OpenSim.Data.SQLite
659 * 659 *
660 **********************************************************************/ 660 **********************************************************************/
661 661
662 private void InitDB(SqliteConnection conn) 662 private static void InitDB(SqliteConnection conn)
663 { 663 {
664 string createInventoryItems = defineTable(createInventoryItemsTable()); 664 string createInventoryItems = defineTable(createInventoryItemsTable());
665 string createInventoryFolders = defineTable(createInventoryFoldersTable()); 665 string createInventoryFolders = defineTable(createInventoryFoldersTable());
@@ -671,7 +671,7 @@ namespace OpenSim.Data.SQLite
671 scmd.ExecuteNonQuery(); 671 scmd.ExecuteNonQuery();
672 } 672 }
673 673
674 private bool TestTables(SqliteConnection conn) 674 private static bool TestTables(SqliteConnection conn)
675 { 675 {
676 SqliteCommand invItemsSelectCmd = new SqliteCommand(invItemsSelect, conn); 676 SqliteCommand invItemsSelectCmd = new SqliteCommand(invItemsSelect, conn);
677 SqliteDataAdapter pDa = new SqliteDataAdapter(invItemsSelectCmd); 677 SqliteDataAdapter pDa = new SqliteDataAdapter(invItemsSelectCmd);