OpenSim::Data::MSSQL::MSSQLRegionDataStore Class Reference

A MSSQL Interface for the Region Server. More...

Inheritance diagram for OpenSim::Data::MSSQL::MSSQLRegionDataStore:

OpenSim::Region::Environment::Interfaces::IRegionDataStore List of all members.

Public Member Functions

void Initialise (string connectionString)
 Initialises the region datastore.
void Dispose ()
 Dispose the database.
List< SceneObjectGroupLoadObjects (UUID regionUUID)
 Loads the objects present in the region.
void StoreObject (SceneObjectGroup obj, UUID regionUUID)
 Stores all object's details apart from inventory.
void RemoveObject (UUID objectID, UUID regionUUID)
 Removes a object from the database. Meaning removing it from tables Prims, PrimShapes and PrimItems.
void StorePrimInventory (UUID primID, ICollection< TaskInventoryItem > items)
 Store the inventory of a prim. Warning deletes everything first and then adds all again.
double[,] LoadTerrain (UUID regionID)
 Loads the terrain map.
void StoreTerrain (double[,] terrain, UUID regionID)
 Stores the terrain map to DB.
List< LandDataLoadLandObjects (UUID regionUUID)
 Loads all the land objects of a region.
void StoreLandObject (ILandObject parcel)
 Stores land object with landaccess list.
void RemoveLandObject (UUID globalID)
 Removes a land object from DB.
RegionSettings LoadRegionSettings (UUID regionUUID)
 Loads the settings of a region.
void StoreRegionSettings (RegionSettings regionSettings)
 Store region settings, need to check if the check is really necesary. If we can make something for creating new region.
void Shutdown ()

Detailed Description

A MSSQL Interface for the Region Server.


Member Function Documentation

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::Initialise ( string  connectionString  )  [inline]

Initialises the region datastore.

Parameters:
connectionString The connection string.

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::Dispose (  )  [inline]

Dispose the database.

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

List<SceneObjectGroup> OpenSim::Data::MSSQL::MSSQLRegionDataStore::LoadObjects ( UUID  regionUUID  )  [inline]

Loads the objects present in the region.

Parameters:
regionUUID The region UUID.
Returns:

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::StoreObject ( SceneObjectGroup  obj,
UUID  regionUUID 
) [inline]

Stores all object's details apart from inventory.

Parameters:
obj 
regionUUID 

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::RemoveObject ( UUID  objectID,
UUID  regionUUID 
) [inline]

Removes a object from the database. Meaning removing it from tables Prims, PrimShapes and PrimItems.

Parameters:
objectID id of scenegroup
regionUUID regionUUID (is this used anyway

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::StorePrimInventory ( UUID  primID,
ICollection< TaskInventoryItem items 
) [inline]

Store the inventory of a prim. Warning deletes everything first and then adds all again.

Parameters:
primID 
items 

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

double [,] OpenSim::Data::MSSQL::MSSQLRegionDataStore::LoadTerrain ( UUID  regionID  )  [inline]

Loads the terrain map.

Parameters:
regionID regionID.
Returns:

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::StoreTerrain ( double  terrain[,],
UUID  regionID 
) [inline]

Stores the terrain map to DB.

Parameters:
terrain terrain map data.
regionID regionID.

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

List<LandData> OpenSim::Data::MSSQL::MSSQLRegionDataStore::LoadLandObjects ( UUID  regionUUID  )  [inline]

Loads all the land objects of a region.

Parameters:
regionUUID The region UUID.
Returns:

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::StoreLandObject ( ILandObject  parcel  )  [inline]

Stores land object with landaccess list.

Parameters:
parcel parcel data.

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::RemoveLandObject ( UUID  globalID  )  [inline]

Removes a land object from DB.

Parameters:
globalID UUID of landobject

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

RegionSettings OpenSim::Data::MSSQL::MSSQLRegionDataStore::LoadRegionSettings ( UUID  regionUUID  )  [inline]

Loads the settings of a region.

Parameters:
regionUUID The region UUID.
Returns:

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::StoreRegionSettings ( RegionSettings  regionSettings  )  [inline]

Store region settings, need to check if the check is really necesary. If we can make something for creating new region.

Parameters:
regionSettings region settings.

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.

void OpenSim::Data::MSSQL::MSSQLRegionDataStore::Shutdown (  )  [inline]

Implements OpenSim::Region::Environment::Interfaces::IRegionDataStore.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 01:00:46 2009 for OpenSim by  doxygen 1.5.1