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

nAutoIncrement: column is auto incremented started with value nAutoIncrement More...

#include <columndef.hxx>

Public Member Functions

 ColumnDefinition (OUString sName, sal_Int32 eType, std::vector< sal_Int32 > &&aParams, bool bPrimary=false, sal_Int32 nAutoIncr=-1, bool bNullable=true, bool bCaseInsensitive=false, OUString sDefault=OUString{})
 
OUString const & getName () const
 
sal_Int32 getDataType () const
 
bool isPrimaryKey () const
 
bool isNullable () const
 
bool isAutoIncremental () const
 
bool isCaseInsensitive () const
 
sal_Int32 getStartValue () const
 
const std::vector< sal_Int32 > & getParams () const
 
OUString const & getDefault () const
 

Private Attributes

OUString m_sName
 
sal_Int32 m_eType
 
std::vector< sal_Int32 > m_aParams
 
bool m_bPrimaryKey
 
sal_Int32 m_nAutoIncrement
 
bool m_bNullable
 
bool m_bCaseInsensitive
 
OUString m_sDefaultValue
 

Detailed Description

nAutoIncrement: column is auto incremented started with value nAutoIncrement

Definition at line 18 of file columndef.hxx.

Constructor & Destructor Documentation

◆ ColumnDefinition()

dbahsql::ColumnDefinition::ColumnDefinition ( OUString  sName,
sal_Int32  eType,
std::vector< sal_Int32 > &&  aParams,
bool  bPrimary = false,
sal_Int32  nAutoIncr = -1,
bool  bNullable = true,
bool  bCaseInsensitive = false,
OUString  sDefault = OUString{} 
)

Definition at line 29 of file columndef.cxx.

References m_eType.

Member Function Documentation

◆ getDataType()

sal_Int32 dbahsql::ColumnDefinition::getDataType ( ) const
inline

Definition at line 36 of file columndef.hxx.

References m_eType.

◆ getDefault()

OUString const & dbahsql::ColumnDefinition::getDefault ( ) const
inline

Definition at line 43 of file columndef.hxx.

References m_sDefaultValue.

◆ getName()

OUString const & dbahsql::ColumnDefinition::getName ( ) const
inline

Definition at line 35 of file columndef.hxx.

References m_sName.

◆ getParams()

const std::vector< sal_Int32 > & dbahsql::ColumnDefinition::getParams ( ) const
inline

Definition at line 42 of file columndef.hxx.

References m_aParams.

◆ getStartValue()

sal_Int32 dbahsql::ColumnDefinition::getStartValue ( ) const
inline

Definition at line 41 of file columndef.hxx.

References m_nAutoIncrement.

◆ isAutoIncremental()

bool dbahsql::ColumnDefinition::isAutoIncremental ( ) const
inline

Definition at line 39 of file columndef.hxx.

References m_nAutoIncrement.

◆ isCaseInsensitive()

bool dbahsql::ColumnDefinition::isCaseInsensitive ( ) const
inline

Definition at line 40 of file columndef.hxx.

References m_bCaseInsensitive.

◆ isNullable()

bool dbahsql::ColumnDefinition::isNullable ( ) const
inline

Definition at line 38 of file columndef.hxx.

References m_bNullable.

◆ isPrimaryKey()

bool dbahsql::ColumnDefinition::isPrimaryKey ( ) const
inline

Definition at line 37 of file columndef.hxx.

References m_bPrimaryKey.

Member Data Documentation

◆ m_aParams

std::vector<sal_Int32> dbahsql::ColumnDefinition::m_aParams
private

Definition at line 23 of file columndef.hxx.

Referenced by getParams().

◆ m_bCaseInsensitive

bool dbahsql::ColumnDefinition::m_bCaseInsensitive
private

Definition at line 27 of file columndef.hxx.

Referenced by isCaseInsensitive().

◆ m_bNullable

bool dbahsql::ColumnDefinition::m_bNullable
private

Definition at line 26 of file columndef.hxx.

Referenced by isNullable().

◆ m_bPrimaryKey

bool dbahsql::ColumnDefinition::m_bPrimaryKey
private

Definition at line 24 of file columndef.hxx.

Referenced by isPrimaryKey().

◆ m_eType

sal_Int32 dbahsql::ColumnDefinition::m_eType
private

Definition at line 22 of file columndef.hxx.

Referenced by getDataType().

◆ m_nAutoIncrement

sal_Int32 dbahsql::ColumnDefinition::m_nAutoIncrement
private

Definition at line 25 of file columndef.hxx.

Referenced by getStartValue(), and isAutoIncremental().

◆ m_sDefaultValue

OUString dbahsql::ColumnDefinition::m_sDefaultValue
private

Definition at line 28 of file columndef.hxx.

Referenced by getDefault().

◆ m_sName

OUString dbahsql::ColumnDefinition::m_sName
private

Definition at line 21 of file columndef.hxx.

Referenced by getName().


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