C# Class OpenSim.Data.SQLite.SQLiteInventoryStore

An Inventory Interface to the SQLite database
Inheritance: OpenSim.Data.SQLite.SQLiteUtil, IInventoryDataPlugin
Afficher le fichier Open project: N3X15/VoxelSim

Méthodes publiques

Méthode Description
Dispose ( ) : void

Closes the inventory interface

Initialise ( ) : void
Initialise ( string dbconnect ) : void

Initialises Inventory interface Loads and initialises a new SQLite connection and maintains it. use default URI if connect string string is empty.

Shutdown ( ) : void

TODO : DataSet commit

addInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void

Adds a new folder specified by folder

addInventoryItem ( OpenSim.Framework.InventoryItemBase item ) : void

Creates a new inventory item based on item

buildItem ( DataRow row ) : OpenSim.Framework.InventoryItemBase

deleteInventoryFolder ( UUID folderID ) : void

Delete a folder

This will clean-up any child folders and child items as well

deleteInventoryItem ( UUID itemID ) : void

Delete an inventory item

fetchActiveGestures ( UUID avatarID ) : List
getFolderHierarchy ( UUID parentID ) : List

See IInventoryDataPlugin

getInventoryFolder ( UUID folder ) : OpenSim.Framework.InventoryFolderBase

Returns a specified inventory folder by its UUID

getInventoryFolders ( UUID parentID ) : List

Returns a list of inventory folders contained in the folder 'parentID'

getInventoryInFolder ( UUID folderID ) : List

Returns a list of inventory items contained within the specified folder

getInventoryItem ( UUID item ) : OpenSim.Framework.InventoryItemBase

Returns an inventory item by its UUID

getUserRootFolder ( UUID user ) : OpenSim.Framework.InventoryFolderBase
getUserRootFolders ( UUID user ) : List

Returns a list of the root folders within a users inventory

moveInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void

Moves a folder based on its ID with folder

queryInventoryFolder ( UUID folderID ) : OpenSim.Framework.InventoryFolderBase
queryInventoryItem ( UUID itemID ) : OpenSim.Framework.InventoryItemBase
updateInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void

Updates a folder based on its ID with folder

updateInventoryItem ( OpenSim.Framework.InventoryItemBase item ) : void

Updates an inventory item with item (updates based on ID)

Méthodes protégées

Méthode Description
CreateDataSetMapping ( IDataAdapter da, string tableName ) : void
getInventoryFolders ( List &folders, UUID parentID ) : void

Append a list of all the child folders of a parent folder

Private Methods

Méthode Description
addFolder ( OpenSim.Framework.InventoryFolderBase folder, bool add ) : void

Add inventory folder

nasty

addItem ( OpenSim.Framework.InventoryItemBase item, bool add ) : void

add an item in inventory

buildFolder ( DataRow row ) : OpenSim.Framework.InventoryFolderBase

createInventoryFoldersTable ( ) : DataTable

Creates the "inventoryfolders" table

createInventoryItemsTable ( ) : DataTable

Create the "inventoryitems" table

deleteItemsInFolder ( UUID folderId ) : void

Delete all items in the specified folder

fillFolderRow ( DataRow row, OpenSim.Framework.InventoryFolderBase folder ) : void

fillItemRow ( DataRow row, OpenSim.Framework.InventoryItemBase item ) : void

Fill a database row with item data

moveFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void

Move an inventory folder

moveFolderRow ( DataRow row, OpenSim.Framework.InventoryFolderBase folder ) : void

setupFoldersCommands ( SqliteDataAdapter da, SqliteConnection conn ) : void

setupItemsCommands ( SqliteDataAdapter da, SqliteConnection conn ) : void

Method Details

CreateDataSetMapping() protected méthode

protected CreateDataSetMapping ( IDataAdapter da, string tableName ) : void
da IDataAdapter
tableName string
Résultat void

Dispose() public méthode

Closes the inventory interface
public Dispose ( ) : void
Résultat void

Initialise() public méthode

public Initialise ( ) : void
Résultat void

Initialise() public méthode

Initialises Inventory interface Loads and initialises a new SQLite connection and maintains it. use default URI if connect string string is empty.
public Initialise ( string dbconnect ) : void
dbconnect string connect string
Résultat void

Shutdown() public méthode

TODO : DataSet commit
public Shutdown ( ) : void
Résultat void

addInventoryFolder() public méthode

Adds a new folder specified by folder
public addInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void
folder OpenSim.Framework.InventoryFolderBase The inventory folder
Résultat void

addInventoryItem() public méthode

Creates a new inventory item based on item
public addInventoryItem ( OpenSim.Framework.InventoryItemBase item ) : void
item OpenSim.Framework.InventoryItemBase The item to be created
Résultat void

buildItem() public méthode

public buildItem ( DataRow row ) : OpenSim.Framework.InventoryItemBase
row System.Data.DataRow
Résultat OpenSim.Framework.InventoryItemBase

deleteInventoryFolder() public méthode

Delete a folder
This will clean-up any child folders and child items as well
public deleteInventoryFolder ( UUID folderID ) : void
folderID UUID the folder UUID
Résultat void

deleteInventoryItem() public méthode

Delete an inventory item
public deleteInventoryItem ( UUID itemID ) : void
itemID UUID
Résultat void

fetchActiveGestures() public méthode

public fetchActiveGestures ( UUID avatarID ) : List
avatarID UUID
Résultat List

getFolderHierarchy() public méthode

See IInventoryDataPlugin
public getFolderHierarchy ( UUID parentID ) : List
parentID UUID
Résultat List

getInventoryFolder() public méthode

Returns a specified inventory folder by its UUID
public getInventoryFolder ( UUID folder ) : OpenSim.Framework.InventoryFolderBase
folder UUID The UUID of the folder to be returned
Résultat OpenSim.Framework.InventoryFolderBase

getInventoryFolders() public méthode

Returns a list of inventory folders contained in the folder 'parentID'
public getInventoryFolders ( UUID parentID ) : List
parentID UUID The folder to get subfolders for
Résultat List

getInventoryFolders() protected méthode

Append a list of all the child folders of a parent folder
protected getInventoryFolders ( List &folders, UUID parentID ) : void
folders List list where folders will be appended
parentID UUID ID of parent
Résultat void

getInventoryInFolder() public méthode

Returns a list of inventory items contained within the specified folder
public getInventoryInFolder ( UUID folderID ) : List
folderID UUID The UUID of the target folder
Résultat List

getInventoryItem() public méthode

Returns an inventory item by its UUID
public getInventoryItem ( UUID item ) : OpenSim.Framework.InventoryItemBase
item UUID The UUID of the item to be returned
Résultat OpenSim.Framework.InventoryItemBase

getUserRootFolder() public méthode

public getUserRootFolder ( UUID user ) : OpenSim.Framework.InventoryFolderBase
user UUID
Résultat OpenSim.Framework.InventoryFolderBase

getUserRootFolders() public méthode

Returns a list of the root folders within a users inventory
public getUserRootFolders ( UUID user ) : List
user UUID The user whos inventory is to be searched
Résultat List

moveInventoryFolder() public méthode

Moves a folder based on its ID with folder
public moveInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void
folder OpenSim.Framework.InventoryFolderBase The inventory folder
Résultat void

queryInventoryFolder() public méthode

public queryInventoryFolder ( UUID folderID ) : OpenSim.Framework.InventoryFolderBase
folderID UUID
Résultat OpenSim.Framework.InventoryFolderBase

queryInventoryItem() public méthode

public queryInventoryItem ( UUID itemID ) : OpenSim.Framework.InventoryItemBase
itemID UUID
Résultat OpenSim.Framework.InventoryItemBase

updateInventoryFolder() public méthode

Updates a folder based on its ID with folder
public updateInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void
folder OpenSim.Framework.InventoryFolderBase The inventory folder
Résultat void

updateInventoryItem() public méthode

Updates an inventory item with item (updates based on ID)
public updateInventoryItem ( OpenSim.Framework.InventoryItemBase item ) : void
item OpenSim.Framework.InventoryItemBase The updated item
Résultat void