OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey > Class Reference

Inheritance diagram for OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >:

OpenSim::Data::Base::BaseTableMapper OpenSim::Data::OpenSimTableMapper< TRowMapper, TPrimaryKey > List of all members.

Public Member Functions

 BaseTableMapper (BaseDatabaseConnector database, string tableName)
bool TryGetValue (TPrimaryKey primaryKey, out TRowMapper value)
virtual bool Remove (TPrimaryKey id)
DbCommand CreateDeleteCommand (DbConnection connection, string fieldName, TPrimaryKey primaryKey)
virtual bool Update (TPrimaryKey primaryKey, TRowMapper value)
virtual bool Add (TRowMapper value)
abstract TRowMapper FromReader (BaseDataReader reader)

Protected Member Functions

virtual void TryDelete (DbConnection connection, TPrimaryKey id, ref int deleted)
 HACK: This is a temporary function used by Remove(). Due to a bug in mono 1.2.6, delegate blocks cannot contain a using block. This has been fixed in SVN, so the next mono release should work.
void TryUpdate (DbConnection connection, TPrimaryKey primaryKey, TRowMapper value, ref int updated)
 HACK: This is a temporary function used by Update(). Due to a bug in mono 1.2.6, delegate blocks cannot contain a using block. This has been fixed in SVN, so the next mono release should work.
void TryAdd (DbConnection connection, TRowMapper value, ref int added)
 HACK: This is a temporary function used by Add(). Due to a bug in mono 1.2.6, delegate blocks cannot contain a using block. This has been fixed in SVN, so the next mono release should work.

Detailed Description

<typeparam name="TRowMapper"></typeparam> <typeparam name="TPrimaryKey"></typeparam>


Constructor & Destructor Documentation

OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::BaseTableMapper ( BaseDatabaseConnector  database,
string  tableName 
) [inline]

Parameters:
database 
tableName 

Reimplemented from OpenSim::Data::Base::BaseTableMapper.


Member Function Documentation

bool OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::TryGetValue ( TPrimaryKey  primaryKey,
out TRowMapper  value 
) [inline]

Parameters:
primaryKey 
value 
Returns:

virtual void OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::TryDelete ( DbConnection  connection,
TPrimaryKey  id,
ref int  deleted 
) [inline, protected, virtual]

HACK: This is a temporary function used by Remove(). Due to a bug in mono 1.2.6, delegate blocks cannot contain a using block. This has been fixed in SVN, so the next mono release should work.

Parameters:
connection 
id 
deleted 

virtual bool OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::Remove ( TPrimaryKey  id  )  [inline, virtual]

Parameters:
id 
Returns:

DbCommand OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::CreateDeleteCommand ( DbConnection  connection,
string  fieldName,
TPrimaryKey  primaryKey 
) [inline]

Parameters:
connection 
fieldName 
primaryKey 
Returns:

void OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::TryUpdate ( DbConnection  connection,
TPrimaryKey  primaryKey,
TRowMapper  value,
ref int  updated 
) [inline, protected]

HACK: This is a temporary function used by Update(). Due to a bug in mono 1.2.6, delegate blocks cannot contain a using block. This has been fixed in SVN, so the next mono release should work.

Parameters:
connection 
primaryKey 
value 
updated 

virtual bool OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::Update ( TPrimaryKey  primaryKey,
TRowMapper  value 
) [inline, virtual]

Parameters:
primaryKey 
value 
Returns:

void OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::TryAdd ( DbConnection  connection,
TRowMapper  value,
ref int  added 
) [inline, protected]

HACK: This is a temporary function used by Add(). Due to a bug in mono 1.2.6, delegate blocks cannot contain a using block. This has been fixed in SVN, so the next mono release should work.

Parameters:
connection 
value 
added 

virtual bool OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::Add ( TRowMapper  value  )  [inline, virtual]

Parameters:
value 
Returns:

abstract TRowMapper OpenSim::Data::Base::BaseTableMapper< TRowMapper, TPrimaryKey >::FromReader ( BaseDataReader  reader  )  [pure virtual]


The documentation for this class was generated from the following file:
Generated on Mon Jan 5 01:00:38 2009 for OpenSim by  doxygen 1.5.1