* Access NHibernate Manager as read-only property rather than public field
* Thanks Tommil
GenericGridServerConcept
Justin Clarke Casey 2009-02-20 14:36:53 +00:00
parent 01f70de2ea
commit acf112ac40
30 changed files with 73 additions and 30 deletions

View File

@ -39,7 +39,14 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public NHibernateManager manager;
private NHibernateManager manager;
public NHibernateManager Manager
{
get
{
return manager;
}
}
override public void Dispose() { }

View File

@ -47,7 +47,14 @@ namespace OpenSim.Data.NHibernate
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public NHibernateManager manager;
private NHibernateManager manager;
public NHibernateManager Manager
{
get
{
return manager;
}
}
public string Name
{

View File

@ -45,7 +45,15 @@ namespace OpenSim.Data.NHibernate
public class NHibernateGridData : GridDataBase
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public NHibernateManager manager;
private NHibernateManager manager;
public NHibernateManager Manager
{
get
{
return manager;
}
}
public override void Initialise()
{

View File

@ -40,7 +40,14 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public NHibernateManager manager;
private NHibernateManager manager;
public NHibernateManager Manager
{
get
{
return manager;
}
}
/// <summary>
/// The plugin being loaded

View File

@ -45,7 +45,14 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public NHibernateManager manager;
private NHibernateManager manager;
public NHibernateManager Manager
{
get
{
return manager;
}
}
public void Initialise(string connect)
{

View File

@ -42,7 +42,14 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public NHibernateManager manager;
private NHibernateManager manager;
public NHibernateManager Manager
{
get
{
return manager;
}
}
public override void Initialise()
{

View File

@ -51,7 +51,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateAssetData();
db.Initialise(connect);
database = ((NHibernateAssetData)db).manager;
database = ((NHibernateAssetData)db).Manager;
}
catch (Exception e)
{

View File

@ -51,7 +51,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateEstateData();
db.Initialise(connect);
database = ((NHibernateEstateData)db).manager;
database = ((NHibernateEstateData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateGridData();
db.Initialise(connect);
database = ((NHibernateGridData)db).manager;
database = ((NHibernateGridData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateInventoryData();
db.Initialise(connect);
database = ((NHibernateInventoryData)db).manager;
database = ((NHibernateInventoryData)db).Manager;
}
catch (Exception e)
{

View File

@ -51,7 +51,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateRegionData();
db.Initialise(connect);
database = ((NHibernateRegionData)db).manager;
database = ((NHibernateRegionData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateUserData();
db.Initialise(connect);
database = ((NHibernateUserData)db).manager;
database = ((NHibernateUserData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateAssetData();
db.Initialise(connect);
database = ((NHibernateAssetData)db).manager;
database = ((NHibernateAssetData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateGridData();
db.Initialise(connect);
database = ((NHibernateGridData)db).manager;
database = ((NHibernateGridData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateInventoryData();
db.Initialise(connect);
database = ((NHibernateInventoryData)db).manager;
database = ((NHibernateInventoryData)db).Manager;
}
catch (Exception e)
{

View File

@ -51,7 +51,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateRegionData();
db.Initialise(connect);
database = ((NHibernateRegionData)db).manager;
database = ((NHibernateRegionData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateUserData();
db.Initialise(connect);
database = ((NHibernateUserData)db).manager;
database = ((NHibernateUserData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateEstateData();
db.Initialise(connect);
database = ((NHibernateEstateData)db).manager;
database = ((NHibernateEstateData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateAssetData();
db.Initialise(connect);
database = ((NHibernateAssetData)db).manager;
database = ((NHibernateAssetData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateEstateData();
db.Initialise(connect);
database = ((NHibernateEstateData)db).manager;
database = ((NHibernateEstateData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateGridData();
db.Initialise(connect);
database = ((NHibernateGridData)db).manager;
database = ((NHibernateGridData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateInventoryData();
db.Initialise(connect);
database = ((NHibernateInventoryData)db).manager;
database = ((NHibernateInventoryData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateRegionData();
db.Initialise(connect);
database = ((NHibernateRegionData)db).manager;
database = ((NHibernateRegionData)db).Manager;
}
catch (Exception e)
{

View File

@ -50,7 +50,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateUserData();
db.Initialise(connect);
database = ((NHibernateUserData)db).manager;
database = ((NHibernateUserData)db).Manager;
}
catch (Exception e)
{

View File

@ -52,7 +52,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateAssetData();
db.Initialise(connect);
database = ((NHibernateAssetData)db).manager;
database = ((NHibernateAssetData)db).Manager;
}
catch (Exception e)
{

View File

@ -52,7 +52,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateEstateData();
db.Initialise(connect);
database = ((NHibernateEstateData)db).manager;
database = ((NHibernateEstateData)db).Manager;
}
catch (Exception e)
{

View File

@ -51,7 +51,7 @@ namespace OpenSim.Data.NHibernate.Tests
{
db = new NHibernateGridData();
db.Initialise(connect);
database = ((NHibernateGridData)db).manager;
database = ((NHibernateGridData)db).Manager;
}
catch (Exception e)
{

View File

@ -52,7 +52,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateInventoryData();
db.Initialise(connect);
database = ((NHibernateInventoryData)db).manager;
database = ((NHibernateInventoryData)db).Manager;
}
catch (Exception e)
{

View File

@ -52,7 +52,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateRegionData();
db.Initialise(connect);
database = ((NHibernateRegionData)db).manager;
database = ((NHibernateRegionData)db).Manager;
}
catch (Exception e)
{

View File

@ -52,7 +52,7 @@ namespace OpenSim.Data.NHibernate.Tests
db = new NHibernateUserData();
db.Initialise(connect);
database = ((NHibernateUserData)db).manager;
database = ((NHibernateUserData)db).Manager;
}
catch (Exception e)
{