LibreOffice Module connectivity (master) 1
Public Member Functions | Private Attributes | List of all members
connectivity::firebird::ColumnTypeInfo Class Reference

#include <Util.hxx>

Public Member Functions

 ColumnTypeInfo (short aType, short aSubType=0, short nScale=0, OUString sCharset=OUString())
 
 ColumnTypeInfo (short aType, OUString sCharset)
 
short getType () const
 
short getSubType () const
 
short getScale () const
 
OUString const & getCharacterSet () const
 
sal_Int32 getSdbcType () const
 
OUString getColumnTypeName () const
 

Private Attributes

short m_aType
 
short m_aSubType
 
short m_nScale
 
OUString m_sCharsetName
 

Detailed Description

Definition at line 43 of file Util.hxx.

Constructor & Destructor Documentation

◆ ColumnTypeInfo() [1/2]

connectivity::firebird::ColumnTypeInfo::ColumnTypeInfo ( short  aType,
short  aSubType = 0,
short  nScale = 0,
OUString  sCharset = OUString() 
)
inlineexplicit
Parameters
tTypeSQL type of column defined by Firebird (e.g. SQL_DOUBLE)
aSubTypeSQL sub type as in firebird API. See NumberSubType.
scaleScale of the number. It is ignored in case it's not a number. Scale obtained from the Firebird API is negative, so that should be negated before passing to this constructor.

Definition at line 60 of file Util.hxx.

◆ ColumnTypeInfo() [2/2]

connectivity::firebird::ColumnTypeInfo::ColumnTypeInfo ( short  aType,
OUString  sCharset 
)
inlineexplicit

Definition at line 66 of file Util.hxx.

Member Function Documentation

◆ getCharacterSet()

OUString const & connectivity::firebird::ColumnTypeInfo::getCharacterSet ( ) const
inline

Definition at line 74 of file Util.hxx.

References m_sCharsetName.

◆ getColumnTypeName()

OUString firebird::ColumnTypeInfo::getColumnTypeName ( ) const

Definition at line 183 of file Util.cxx.

References nDataType.

Referenced by connectivity::firebird::OResultSetMetaData::getColumnTypeName().

◆ getScale()

short connectivity::firebird::ColumnTypeInfo::getScale ( ) const
inline

Definition at line 73 of file Util.hxx.

References m_nScale.

◆ getSdbcType()

sal_Int32 firebird::ColumnTypeInfo::getSdbcType ( ) const

◆ getSubType()

short connectivity::firebird::ColumnTypeInfo::getSubType ( ) const
inline

Definition at line 72 of file Util.hxx.

References m_aSubType.

◆ getType()

short connectivity::firebird::ColumnTypeInfo::getType ( ) const
inline

Definition at line 71 of file Util.hxx.

References m_aType.

Member Data Documentation

◆ m_aSubType

short connectivity::firebird::ColumnTypeInfo::m_aSubType
private

Definition at line 46 of file Util.hxx.

Referenced by getSubType().

◆ m_aType

short connectivity::firebird::ColumnTypeInfo::m_aType
private

Definition at line 45 of file Util.hxx.

Referenced by getType().

◆ m_nScale

short connectivity::firebird::ColumnTypeInfo::m_nScale
private

Definition at line 47 of file Util.hxx.

Referenced by getScale().

◆ m_sCharsetName

OUString connectivity::firebird::ColumnTypeInfo::m_sCharsetName
private

Definition at line 48 of file Util.hxx.

Referenced by getCharacterSet().


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