OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Data.MySQL.MySQLAssetData Class Reference

A MySQL Interface for the Asset Server More...

Inheritance diagram for OpenSim.Data.MySQL.MySQLAssetData:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.MySQL.MySQLAssetData:
Collaboration graph
[legend]

Public Member Functions

override void Initialise (string connect)
 
override void Initialise ()
 Default-initialises the plugin More...
 
override void Dispose ()
 
override AssetBase GetAsset (UUID assetID)
 Fetch Asset assetID from database More...
 
override bool StoreAsset (AssetBase asset)
 Create an asset in database, or update it if existing. More...
 
override bool[] AssetsExist (UUID[] uuids)
 Check if the assets exist in the database. More...
 
override List< AssetMetadataFetchAssetMetadataSet (int start, int count)
 Returns a list of AssetMetadata objects. The list is a subset of the entire data set offset by start containing count elements. More...
 
override bool Delete (string id)
 

Properties

virtual Assembly Assembly [get]
 
override string Version [get]
 
override string Name [get]
 The name of this DB provider More...
 
- Properties inherited from OpenSim.Data.AssetDataBase
abstract string Version [get]
 
abstract string Name [get]
 
- Properties inherited from OpenSim.Framework.IPlugin
string Version [get]
 Returns the plugin version More...
 
string Name [get]
 Returns the plugin name More...
 

Detailed Description

A MySQL Interface for the Asset Server

Definition at line 43 of file MySQLAssetData.cs.

Member Function Documentation

override bool [] OpenSim.Data.MySQL.MySQLAssetData.AssetsExist ( UUID[]  uuids)
inlinevirtual

Check if the assets exist in the database.

Parameters
uuidssThe assets' IDs
Returns
For each asset: true if it exists, false otherwise

Implements OpenSim.Data.AssetDataBase.

Definition at line 249 of file MySQLAssetData.cs.

override bool OpenSim.Data.MySQL.MySQLAssetData.Delete ( string  id)
inlinevirtual

Implements OpenSim.Data.AssetDataBase.

Definition at line 342 of file MySQLAssetData.cs.

override void OpenSim.Data.MySQL.MySQLAssetData.Dispose ( )
inlinevirtual

Implements OpenSim.Data.AssetDataBase.

Definition at line 86 of file MySQLAssetData.cs.

override List<AssetMetadata> OpenSim.Data.MySQL.MySQLAssetData.FetchAssetMetadataSet ( int  start,
int  count 
)
inlinevirtual

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

Parameters
startThe number of results to discard from the total data set.
countThe number of rows the returned list should contain.
Returns
A list of AssetMetadata objects.

Implements OpenSim.Data.AssetDataBase.

Definition at line 290 of file MySQLAssetData.cs.

override AssetBase OpenSim.Data.MySQL.MySQLAssetData.GetAsset ( UUID  assetID)
inlinevirtual

Fetch Asset assetID from database

Parameters
assetIDAsset UUID to fetch
Returns
Return the asset

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

Implements OpenSim.Data.AssetDataBase.

Definition at line 106 of file MySQLAssetData.cs.

override void OpenSim.Data.MySQL.MySQLAssetData.Initialise ( string  connect)
inlinevirtual

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
Parameters
connectconnect string

Implements OpenSim.Data.AssetDataBase.

Definition at line 69 of file MySQLAssetData.cs.

override void OpenSim.Data.MySQL.MySQLAssetData.Initialise ( )
inlinevirtual

Default-initialises the plugin

Implements OpenSim.Data.AssetDataBase.

Definition at line 81 of file MySQLAssetData.cs.

override bool OpenSim.Data.MySQL.MySQLAssetData.StoreAsset ( AssetBase  asset)
inlinevirtual

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

Parameters
assetAsset UUID to create

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

Implements OpenSim.Data.AssetDataBase.

Definition at line 157 of file MySQLAssetData.cs.

Property Documentation

virtual Assembly OpenSim.Data.MySQL.MySQLAssetData.Assembly
getprotected

Definition at line 50 of file MySQLAssetData.cs.

override string OpenSim.Data.MySQL.MySQLAssetData.Name
get

The name of this DB provider

Definition at line 92 of file MySQLAssetData.cs.

override string OpenSim.Data.MySQL.MySQLAssetData.Version
get

Definition at line 56 of file MySQLAssetData.cs.


The documentation for this class was generated from the following file: