RDbView Class Reference

class RDbView : public RDbRowSet

Generates rowsets from an SQL query. The query is prepared and evaluated using the interface to this class, while the rowset is manipulated using the RDbRowset base class.

There are no special rules to consider when deriving from this class.

Inherits from

Public Member Functions
IMPORT_C TInt Evaluate ()
IMPORT_C TInt EvaluateAll ()
IMPORT_C TInt Prepare ( RDbDatabase &, const TDbQuery &, TAccess )
IMPORT_C TInt Prepare ( RDbDatabase &, const TDbQuery &, const TDbWindow &)
IMPORT_C TInt Prepare ( RDbDatabase &, const TDbQuery &, const TDbWindow &, TAccess )
IMPORT_C TBool Unevaluated ()
Inherited Functions
RDbRowSet::AtBeginning()const
RDbRowSet::AtEnd()const
RDbRowSet::AtRow()const
RDbRowSet::BeginningL()
RDbRowSet::Bookmark()const
RDbRowSet::Cancel()
RDbRowSet::Close()
RDbRowSet::ColCount()const
RDbRowSet::ColDef(TDbColNo)const
RDbRowSet::ColDes(TDbColNo)const
RDbRowSet::ColDes16(TDbColNo)const
RDbRowSet::ColDes8(TDbColNo)const
RDbRowSet::ColInt(TDbColNo)const
RDbRowSet::ColInt16(TDbColNo)const
RDbRowSet::ColInt32(TDbColNo)const
RDbRowSet::ColInt64(TDbColNo)const
RDbRowSet::ColInt8(TDbColNo)const
RDbRowSet::ColLength(TDbColNo)const
RDbRowSet::ColReal(TDbColNo)const
RDbRowSet::ColReal32(TDbColNo)const
RDbRowSet::ColReal64(TDbColNo)const
RDbRowSet::ColSetL()const
RDbRowSet::ColSize(TDbColNo)const
RDbRowSet::ColTime(TDbColNo)const
RDbRowSet::ColType(TDbColNo)const
RDbRowSet::ColUint(TDbColNo)const
RDbRowSet::ColUint16(TDbColNo)const
RDbRowSet::ColUint32(TDbColNo)const
RDbRowSet::ColUint8(TDbColNo)const
RDbRowSet::CountL(TAccuracy)const
RDbRowSet::DeleteL()
RDbRowSet::EndL()
RDbRowSet::FindL(TDirection,TDbQuery)
RDbRowSet::FirstL()
RDbRowSet::GetL()
RDbRowSet::GotoL(TPosition)
RDbRowSet::GotoL(const TDbBookmark &)
RDbRowSet::InsertCopyL()
RDbRowSet::InsertL()
RDbRowSet::IsColNull(TDbColNo)const
RDbRowSet::IsEmptyL()const
RDbRowSet::LastL()
RDbRowSet::MatchL(const RDbRowConstraint &)
RDbRowSet::NextL()
RDbRowSet::PreviousL()
RDbRowSet::PutL()
RDbRowSet::Reset()
RDbRowSet::SetColL(TDbColNo,TInt)
RDbRowSet::SetColL(TDbColNo,TInt32)
RDbRowSet::SetColL(TDbColNo,TInt64)
RDbRowSet::SetColL(TDbColNo,TReal32)
RDbRowSet::SetColL(TDbColNo,TReal64)
RDbRowSet::SetColL(TDbColNo,TTime)
RDbRowSet::SetColL(TDbColNo,TUint)
RDbRowSet::SetColL(TDbColNo,TUint32)
RDbRowSet::SetColL(TDbColNo,const TDesC16 &)
RDbRowSet::SetColL(TDbColNo,const TDesC8 &)
RDbRowSet::SetColNullL(TDbColNo)
RDbRowSet::UpdateL()
Inherited Enumerations
RDbRowSet:TAccess
RDbRowSet:TAccuracy
RDbRowSet:TDirection
RDbRowSet:TPosition
Inherited Attributes
RDbRowSet::iCursor

Member Functions Documentation

Evaluate()

IMPORT_C TInt Evaluate ( )

EvaluateAll()

IMPORT_C TInt EvaluateAll ( )

Prepare(RDbDatabase &, const TDbQuery &, TAccess)

IMPORT_C TInt Prepare ( RDbDatabase & aDatabase,
const TDbQuery & aQuery,
TAccess anAccess = EUpdatable
)

Prepares the view object for evaluating an SQL select-statement.

Following preparation, the rowset object can always provide schema information, but the view may first require evaluation to generate the rowset for navigation.

capability
Note For a secure shared database, the caller must satisfy the read access policy for the table.

Parameters

RDbDatabase & aDatabase The database on which to execute the query.
const TDbQuery & aQuery The SQL query and the text comparison mode for the constraint.
TAccess anAccess = EUpdatable The access specification for the rowset. By default, updatable access is given.

Prepare(RDbDatabase &, const TDbQuery &, const TDbWindow &)

IMPORT_C TInt Prepare ( RDbDatabase & aDatabase,
const TDbQuery & aQuery,
const TDbWindow & aWindow
)

Parameters

RDbDatabase & aDatabase
const TDbQuery & aQuery
const TDbWindow & aWindow

Prepare(RDbDatabase &, const TDbQuery &, const TDbWindow &, TAccess)

IMPORT_C TInt Prepare ( RDbDatabase & aDatabase,
const TDbQuery & aQuery,
const TDbWindow & aWindow,
TAccess anAccess
)

Parameters

RDbDatabase & aDatabase
const TDbQuery & aQuery
const TDbWindow & aWindow
TAccess anAccess

Unevaluated()

IMPORT_C TBool Unevaluated ( ) const

Tests whether any more evaluation can be done to a view.