C# Class OpenSim.Data.SQLite.SQLiteAssetData

An asset storage interface for the SQLite database system
Inheritance: AssetDataBase
Mostra file Open project: mcortez/opensim

Public Methods

Method Description
Delete ( string id ) : bool
Dispose ( ) : void
ExistsAsset ( UUID uuid ) : bool

Check if an asset exist in database

FetchAssetMetadataSet ( int start, int count ) : List

Returns a list of AssetMetadata objects. The list is a subset of the entire data set offset by start containing count elements.

GetAsset ( UUID uuid ) : OpenSim.Framework.AssetBase

Fetch Asset

Initialise ( ) : void

Initialise the AssetData interface using default URI

Initialise ( string dbconnect ) : void

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

StoreAsset ( OpenSim.Framework.AssetBase asset ) : void

Create an asset

Private Methods

Method Description
buildAsset ( IDataReader row ) : OpenSim.Framework.AssetBase

buildAssetMetadata ( IDataReader row ) : OpenSim.Framework.AssetMetadata

Method Details

Delete() public method

public Delete ( string id ) : bool
id string
return bool

Dispose() public method

public Dispose ( ) : void
return void

ExistsAsset() public method

Check if an asset exist in database
public ExistsAsset ( UUID uuid ) : bool
uuid UUID The asset UUID
return bool

FetchAssetMetadataSet() public method

Returns a list of AssetMetadata objects. The list is a subset of the entire data set offset by start containing count elements.
public FetchAssetMetadataSet ( int start, int count ) : List
start int The number of results to discard from the total data set.
count int The number of rows the returned list should contain.
return List

GetAsset() public method

Fetch Asset
public GetAsset ( UUID uuid ) : OpenSim.Framework.AssetBase
uuid UUID UUID of ... ?
return OpenSim.Framework.AssetBase

Initialise() public method

Initialise the AssetData interface using default URI
public Initialise ( ) : void
return void

Initialise() public method

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

StoreAsset() public method

Create an asset
public StoreAsset ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase Asset Base
return void