LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
dbaui::OTableRow Class Reference

#include <TableRow.hxx>

Collaboration diagram for dbaui::OTableRow:
[legend]

Public Member Functions

 OTableRow ()
 
 OTableRow (const OTableRow &rRow, tools::Long nPosition=-1)
 
 ~OTableRow ()
 
OFieldDescriptionGetActFieldDescr () const
 
bool isValid () const
 
void SetFieldType (const TOTypeInfoSP &_pType, bool _bForce=false)
 
void SetPrimaryKey (bool bSet)
 
bool IsPrimaryKey () const
 
sal_Int32 GetPos () const
 returns the current position in the table. More...
 
void SetPos (sal_Int32 _nPos)
 
void SetReadOnly (bool _bRead=true)
 set the row readonly More...
 
bool IsReadOnly () const
 returns if the row is readonly More...
 

Private Attributes

OFieldDescriptionm_pActFieldDescr
 
sal_Int32 m_nPos
 
bool m_bReadOnly
 
bool m_bOwnsDescriptions
 

Friends

SvStreamWriteOTableRow (SvStream &rStr, const OTableRow &_rRow)
 
SvStreamReadOTableRow (SvStream &rStr, OTableRow &_rRow)
 

Detailed Description

Definition at line 29 of file TableRow.hxx.

Constructor & Destructor Documentation

◆ OTableRow() [1/2]

OTableRow::OTableRow ( )

Definition at line 30 of file TableRow.cxx.

References m_bReadOnly, and m_nPos.

◆ OTableRow() [2/2]

OTableRow::OTableRow ( const OTableRow rRow,
tools::Long  nPosition = -1 
)

◆ ~OTableRow()

OTableRow::~OTableRow ( )

Definition at line 53 of file TableRow.cxx.

References m_bOwnsDescriptions, and m_pActFieldDescr.

Member Function Documentation

◆ GetActFieldDescr()

OFieldDescription * dbaui::OTableRow::GetActFieldDescr ( ) const
inline

Definition at line 43 of file TableRow.hxx.

References m_pActFieldDescr.

Referenced by isValid(), and OTableRow().

◆ GetPos()

sal_Int32 dbaui::OTableRow::GetPos ( ) const
inline

returns the current position in the table.

Returns
the current position in the table

Definition at line 55 of file TableRow.hxx.

References m_nPos.

◆ IsPrimaryKey()

bool OTableRow::IsPrimaryKey ( ) const

Definition at line 65 of file TableRow.cxx.

References dbaui::OFieldDescription::IsPrimaryKey(), and m_pActFieldDescr.

◆ IsReadOnly()

bool dbaui::OTableRow::IsReadOnly ( ) const
inline

returns if the row is readonly

Returns
<TRUE> if readonly, otherwise <FALSE>

Definition at line 68 of file TableRow.hxx.

References m_bReadOnly.

◆ isValid()

bool dbaui::OTableRow::isValid ( ) const
inline

◆ SetFieldType()

void OTableRow::SetFieldType ( const TOTypeInfoSP _pType,
bool  _bForce = false 
)

◆ SetPos()

void dbaui::OTableRow::SetPos ( sal_Int32  _nPos)
inline

Definition at line 56 of file TableRow.hxx.

References _nPos, and m_nPos.

◆ SetPrimaryKey()

void OTableRow::SetPrimaryKey ( bool  bSet)

Definition at line 59 of file TableRow.cxx.

References m_pActFieldDescr, and dbaui::OFieldDescription::SetPrimaryKey().

◆ SetReadOnly()

void dbaui::OTableRow::SetReadOnly ( bool  _bRead = true)
inline

set the row readonly

Parameters
_bReadif <TRUE> then the row is readonly, otherwise not

Definition at line 62 of file TableRow.hxx.

References m_bReadOnly.

Friends And Related Function Documentation

◆ ReadOTableRow

SvStream & ReadOTableRow ( SvStream rStr,
OTableRow _rRow 
)
friend

Definition at line 128 of file TableRow.cxx.

◆ WriteOTableRow

SvStream & WriteOTableRow ( SvStream rStr,
const OTableRow _rRow 
)
friend

Definition at line 90 of file TableRow.cxx.

Member Data Documentation

◆ m_bOwnsDescriptions

bool dbaui::OTableRow::m_bOwnsDescriptions
private

Definition at line 35 of file TableRow.hxx.

Referenced by OTableRow(), SetFieldType(), and ~OTableRow().

◆ m_bReadOnly

bool dbaui::OTableRow::m_bReadOnly
private

Definition at line 34 of file TableRow.hxx.

Referenced by IsReadOnly(), and SetReadOnly().

◆ m_nPos

sal_Int32 dbaui::OTableRow::m_nPos
private

Definition at line 33 of file TableRow.hxx.

Referenced by GetPos(), and SetPos().

◆ m_pActFieldDescr

OFieldDescription* dbaui::OTableRow::m_pActFieldDescr
private

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