C# 클래스 OpenSim.Data.SQLite.SQLiteInventoryStore

An Inventory Interface to the SQLite database
상속: OpenSim.Data.SQLite.SQLiteUtil, IInventoryDataPlugin
파일 보기 프로젝트 열기: N3X15/VoxelSim

공개 메소드들

메소드 설명
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)

보호된 메소드들

메소드 설명
CreateDataSetMapping ( IDataAdapter da, string tableName ) : void
getInventoryFolders ( List &folders, UUID parentID ) : void

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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateDataSetMapping() 보호된 메소드

protected CreateDataSetMapping ( IDataAdapter da, string tableName ) : void
da IDataAdapter
tableName string
리턴 void

Dispose() 공개 메소드

Closes the inventory interface
public Dispose ( ) : void
리턴 void

Initialise() 공개 메소드

public Initialise ( ) : void
리턴 void

Initialise() 공개 메소드

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
리턴 void

Shutdown() 공개 메소드

TODO : DataSet commit
public Shutdown ( ) : void
리턴 void

addInventoryFolder() 공개 메소드

Adds a new folder specified by folder
public addInventoryFolder ( OpenSim.Framework.InventoryFolderBase folder ) : void
folder OpenSim.Framework.InventoryFolderBase The inventory folder
리턴 void

addInventoryItem() 공개 메소드

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

buildItem() 공개 메소드

public buildItem ( DataRow row ) : OpenSim.Framework.InventoryItemBase
row System.Data.DataRow
리턴 OpenSim.Framework.InventoryItemBase

deleteInventoryFolder() 공개 메소드

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
리턴 void

deleteInventoryItem() 공개 메소드

Delete an inventory item
public deleteInventoryItem ( UUID itemID ) : void
itemID UUID
리턴 void

fetchActiveGestures() 공개 메소드

public fetchActiveGestures ( UUID avatarID ) : List
avatarID UUID
리턴 List

getFolderHierarchy() 공개 메소드

See IInventoryDataPlugin
public getFolderHierarchy ( UUID parentID ) : List
parentID UUID
리턴 List

getInventoryFolder() 공개 메소드

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
리턴 OpenSim.Framework.InventoryFolderBase

getInventoryFolders() 공개 메소드

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

getInventoryFolders() 보호된 메소드

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
리턴 void

getInventoryInFolder() 공개 메소드

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

getInventoryItem() 공개 메소드

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

getUserRootFolder() 공개 메소드

public getUserRootFolder ( UUID user ) : OpenSim.Framework.InventoryFolderBase
user UUID
리턴 OpenSim.Framework.InventoryFolderBase

getUserRootFolders() 공개 메소드

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
리턴 List

moveInventoryFolder() 공개 메소드

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

queryInventoryFolder() 공개 메소드

public queryInventoryFolder ( UUID folderID ) : OpenSim.Framework.InventoryFolderBase
folderID UUID
리턴 OpenSim.Framework.InventoryFolderBase

queryInventoryItem() 공개 메소드

public queryInventoryItem ( UUID itemID ) : OpenSim.Framework.InventoryItemBase
itemID UUID
리턴 OpenSim.Framework.InventoryItemBase

updateInventoryFolder() 공개 메소드

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

updateInventoryItem() 공개 메소드

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