C# Class OpenSim.Data.MySQL.MySQLAssetData

A MySQL Interface for the Asset Server
Inheritance: AssetDataBase
Datei anzeigen Open project: N3X15/VoxelSim

Public Methods

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

check if the asset UUID 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 assetID ) : OpenSim.Framework.AssetBase

Fetch Asset assetID from database

On failure : throw an exception and attempt to reconnect to database

Initialise ( ) : void
Initialise ( string connect ) : void

Initialises Asset interface

Loads and initialises the MySQL storage plugin. Warns and uses the obsolete mysql_connection.ini if connect string is empty. Check for migration

StoreAsset ( OpenSim.Framework.AssetBase asset ) : void

Create an asset in database, or update it if existing.

On failure : Throw an exception and attempt to reconnect to database

Private Methods

Method Description
UpdateAccessTime ( OpenSim.Framework.AssetBase asset ) : void

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 the asset UUID 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 assetID from database
On failure : throw an exception and attempt to reconnect to database
public GetAsset ( UUID assetID ) : OpenSim.Framework.AssetBase
assetID UUID Asset UUID to fetch
return OpenSim.Framework.AssetBase

Initialise() public method

public Initialise ( ) : void
return void

Initialise() public method

Initialises Asset interface

Loads and initialises the MySQL storage plugin. Warns and uses the obsolete mysql_connection.ini if connect string is empty. Check for migration

public Initialise ( string connect ) : void
connect string connect string
return void

StoreAsset() public method

Create an asset in database, or update it if existing.
On failure : Throw an exception and attempt to reconnect to database
public StoreAsset ( OpenSim.Framework.AssetBase asset ) : void
asset OpenSim.Framework.AssetBase Asset UUID to create
return void