CMS 3D CMS Logo

Public Member Functions | Private Attributes

ora::CArrayUpdater Class Reference

#include <CArrayStreamer.h>

Inheritance diagram for ora::CArrayUpdater:
ora::IRelationalUpdater

List of all members.

Public Member Functions

bool build (DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)
 CArrayUpdater (const Reflex::Type &objectType, MappingElement &mapping, ContainerSchema &contSchema)
 Constructor.
void setRecordId (const std::vector< int > &identity)
void update (int oid, const void *data)
 Updates a data element.
virtual ~CArrayUpdater ()

Private Attributes

RelationalDeleter m_deleter
CArrayWriter m_writer

Detailed Description

Definition at line 50 of file CArrayStreamer.h.


Constructor & Destructor Documentation

ora::CArrayUpdater::CArrayUpdater ( const Reflex::Type &  objectType,
MappingElement mapping,
ContainerSchema contSchema 
)

Constructor.

Definition at line 142 of file CArrayStreamer.cc.

                                                               :
  m_deleter( mapping ),
  m_writer( objectType, mapping, contSchema ){
}
ora::CArrayUpdater::~CArrayUpdater ( ) [virtual]

Definition at line 149 of file CArrayStreamer.cc.

                                {
}

Member Function Documentation

bool ora::CArrayUpdater::build ( DataElement offset,
IRelationalData relationalData,
RelationalBuffer operationBuffer 
) [virtual]

Implements ora::IRelationalUpdater.

Definition at line 152 of file CArrayStreamer.cc.

                                                                  {
  m_deleter.build( operationBuffer );
  m_writer.build( offset, relationalData, operationBuffer );
  return true;
}
void ora::CArrayUpdater::setRecordId ( const std::vector< int > &  identity) [virtual]

Implements ora::IRelationalUpdater.

Definition at line 160 of file CArrayStreamer.cc.

                                                                  {
  m_writer.setRecordId( identity );
}
void ora::CArrayUpdater::update ( int  oid,
const void *  data 
) [virtual]

Updates a data element.

Implements ora::IRelationalUpdater.

Definition at line 164 of file CArrayStreamer.cc.

                                                   {
  m_deleter.erase( oid );
  m_writer.write( oid, data );
}

Member Data Documentation

Definition at line 68 of file CArrayStreamer.h.

Definition at line 69 of file CArrayStreamer.h.