OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Data.MySQL.MySQLXAssetData Class Reference
Inheritance diagram for OpenSim.Data.MySQL.MySQLXAssetData:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.MySQL.MySQLXAssetData:
Collaboration graph
[legend]

Public Member Functions

void Initialise (string connect)
 
void Initialise ()
 Default-initialises the plugin More...
 
void Dispose ()
 
AssetBase GetAsset (UUID assetID)
 Fetch Asset assetID from database More...
 
void StoreAsset (AssetBase asset)
 Create an asset in database, or update it if existing. More...
 
bool[] AssetsExist (UUID[] uuids)
 Check if the assets exist in the database. More...
 
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...
 
bool Delete (string id)
 

Properties

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

Detailed Description

Definition at line 44 of file MySQLXAssetData.cs.

Member Function Documentation

bool [] OpenSim.Data.MySQL.MySQLXAssetData.AssetsExist ( UUID[]  uuids)
inline

Check if the assets exist in the database.

Parameters
uuidsThe asset UUID's
Returns
For each asset: true if it exists, false otherwise

Implements OpenSim.Data.IXAssetDataPlugin.

Definition at line 395 of file MySQLXAssetData.cs.

bool OpenSim.Data.MySQL.MySQLXAssetData.Delete ( string  id)
inline

Implements OpenSim.Data.IXAssetDataPlugin.

Definition at line 480 of file MySQLXAssetData.cs.

void OpenSim.Data.MySQL.MySQLXAssetData.Dispose ( )
inline

Definition at line 108 of file MySQLXAssetData.cs.

List<AssetMetadata> OpenSim.Data.MySQL.MySQLXAssetData.FetchAssetMetadataSet ( int  start,
int  count 
)
inline

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.IXAssetDataPlugin.

Definition at line 436 of file MySQLXAssetData.cs.

AssetBase OpenSim.Data.MySQL.MySQLXAssetData.GetAsset ( UUID  assetID)
inline

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.IXAssetDataPlugin.

Definition at line 128 of file MySQLXAssetData.cs.

void OpenSim.Data.MySQL.MySQLXAssetData.Initialise ( string  connect)
inline

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.IXAssetDataPlugin.

Definition at line 81 of file MySQLXAssetData.cs.

void OpenSim.Data.MySQL.MySQLXAssetData.Initialise ( )
inline

Default-initialises the plugin

Implements OpenSim.Framework.IPlugin.

Definition at line 103 of file MySQLXAssetData.cs.

void OpenSim.Data.MySQL.MySQLXAssetData.StoreAsset ( AssetBase  asset)
inline

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.IXAssetDataPlugin.

Definition at line 197 of file MySQLXAssetData.cs.

Property Documentation

virtual Assembly OpenSim.Data.MySQL.MySQLXAssetData.Assembly
getprotected

Definition at line 49 of file MySQLXAssetData.cs.

string OpenSim.Data.MySQL.MySQLXAssetData.Name
get

The name of this DB provider

Definition at line 114 of file MySQLXAssetData.cs.

string OpenSim.Data.MySQL.MySQLXAssetData.Version
get

Definition at line 68 of file MySQLXAssetData.cs.


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