C# Class OpenSim.Data.SQLite.SQLiteAssetData

An asset storage interface for the SQLite database system
Inheritance: AssetDataBase
Afficher le fichier Open project: mcortez/opensim

Méthodes publiques

Méthode 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

Méthode Description
buildAsset ( IDataReader row ) : OpenSim.Framework.AssetBase

buildAssetMetadata ( IDataReader row ) : OpenSim.Framework.AssetMetadata

Method Details

Delete() public méthode

public Delete ( string id ) : bool
id string
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ExistsAsset() public méthode

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

FetchAssetMetadataSet() public méthode

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.
Résultat List

GetAsset() public méthode

Fetch Asset
public GetAsset ( UUID uuid ) : OpenSim.Framework.AssetBase
uuid UUID UUID of ... ?
Résultat OpenSim.Framework.AssetBase

Initialise() public méthode

Initialise the AssetData interface using default URI
public Initialise ( ) : void
Résultat void

Initialise() public méthode

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
Résultat void

StoreAsset() public méthode

Create an asset
public StoreAsset ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase Asset Base
Résultat void