C# Class OpenSim.Data.MySQL.MySQLAssetData

A MySQL Interface for the Asset Server
Inheritance: AssetDataBase
Afficher le fichier Open project: N3X15/VoxelSim

Méthodes publiques

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

Méthode Description
UpdateAccessTime ( OpenSim.Framework.AssetBase asset ) : void

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 the asset UUID 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 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
Résultat OpenSim.Framework.AssetBase

Initialise() public méthode

public Initialise ( ) : void
Résultat void

Initialise() public méthode

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

StoreAsset() public méthode

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