BSchemaTableNode::DataAccessor Class Reference
[CoreDataManagerProvider]

#include <dmprovider/SchemaTableNode.h>

Inheritance diagram for BSchemaTableNode::DataAccessor:

SAtom BSchemaTableNode::QueryIterator BSchemaTableNode::RowNode List of all members.

Detailed Description

Class providing direct access to BSchemaTableNode data.

This class provides efficient access to data in the table.


Column Management

Bind to columns, retrieve column information.

size_t ColumnIDLocked (size_t column) const
const column_info & ColumnInfoLocked (size_t column) const
size_t CountColumnsLocked () const
status_t SetColumnsLocked (const SValue &columns, SValue *outSelectedColumns=NULL)

Data setting/retrieval

Get/set data from table from a particular row.

size_t ColumnSizeLocked (uint32_t rowID, size_t column) const
SValue ColumnValueLocked (uint32_t rowID, size_t column, uint32_t flags, size_t maxDataSize=2048) const
status_t LoadDataLocked (uint32_t rowID, uint32_t flags, SValue *outData, size_t maxDataSize=256)
status_t SetColumnValueLocked (uint32_t rowID, size_t column, const SValue &value)

Bookkeeping

Creation, destruction.

 DataAccessor (const sptr< BSchemaTableNode > &table)
 Instantiate object and create connection to table.
const sptr< BSchemaTableNode > & Table () const
 Instantiate object and create connection to table.
virtual void InitAtom ()
 Attach to the owning BSchemaTableNode.
virtual ~DataAccessor ()
 Instantiate object and create connection to table.


Constructor & Destructor Documentation

DataAccessor const sptr< BSchemaTableNode > &  table  ) 
 

Instantiate object and create connection to table.

~DataAccessor  )  [protected, virtual]
 

Instantiate object and create connection to table.


Member Function Documentation

size_t ColumnIDLocked size_t  column  )  const
 

const BSchemaTableNode::column_info & ColumnInfoLocked size_t  column  )  const
 

size_t ColumnSizeLocked uint32_t  rowID,
size_t  column
const
 

SValue ColumnValueLocked uint32_t  rowID,
size_t  column,
uint32_t  flags,
size_t  maxDataSize = 2048
const
 

size_t CountColumnsLocked  )  const
 

void InitAtom  )  [protected, virtual]
 

Attach to the owning BSchemaTableNode.

Reimplemented from SAtom.

Reimplemented in BSchemaTableNode::RowNode, and BSchemaTableNode::QueryIterator.

status_t LoadDataLocked uint32_t  rowID,
uint32_t  flags,
SValue outData,
size_t  maxDataSize = 256
 

status_t SetColumnsLocked const SValue columns,
SValue outSelectedColumns = NULL
 

status_t SetColumnValueLocked uint32_t  rowID,
size_t  column,
const SValue value
 

const sptr<BSchemaTableNode>& Table  )  const [inline]
 

Instantiate object and create connection to table.


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