LibreOffice Module connectivity (master) 1
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
connectivity::evoab Namespace Reference

Namespaces

namespace  SDBCAddress
 

Classes

struct  ColumnProperty
 
struct  ComparisonData
 
class  EBookQueryWrapper
 
struct  FieldSort
 
class  OCommonStatement
 
class  OEvoabCatalog
 
class  OEvoabColumns
 
class  OEvoabConnection
 
class  OEvoabDatabaseMetaData
 
class  OEvoabDriver
 
class  OEvoabPreparedStatement
 
class  OEvoabResultSet
 
class  OEvoabResultSetMetaData
 
class  OEvoabTable
 
class  OEvoabTables
 
class  OEvoabVersionHelper
 
class  OStatement
 
struct  QueryData
 
struct  SplitEvoColumns
 

Typedefs

typedef connectivity::OMetaConnection OConnection_BASE
 
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo > ODriver_BASE
 
typedef ::cppu::ImplHelper5< css::sdbc::XPreparedStatement, css::sdbc::XParameters, css::sdbc::XResultSetMetaDataSupplier, css::sdbc::XMultipleResults, css::lang::XServiceInfo > OPreparedStatement_BASE
 
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XResultSet, css::sdbc::XRow, css::sdbc::XResultSetMetaDataSupplier, css::util::XCancellable, css::sdbc::XWarningsSupplier, css::sdbc::XCloseable, css::sdbc::XColumnLocate, css::lang::XServiceInfo > OResultSet_BASE
 
typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData > OResultSetMetaData_BASE
 
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XWarningsSupplier, css::sdbc::XCloseable > OCommonStatement_IBase
 
typedef std::vector< FieldSortSortDescriptor
 
typedef ::cppu::ImplHelper2< css::lang::XServiceInfo, css::sdbc::XStatement > OStatement_IBase
 
typedef connectivity::sdbcx::OTable OEvoabTable_TYPEDEF
 

Enumerations

enum  ColumnNumber {
  DEFAULT_ADDR_LINE1 =1 ,
  DEFAULT_ADDR_LINE2 ,
  DEFAULT_CITY ,
  DEFAULT_STATE ,
  DEFAULT_COUNTRY ,
  DEFAULT_ZIP ,
  WORK_ADDR_LINE1 ,
  WORK_ADDR_LINE2 ,
  WORK_CITY ,
  WORK_STATE ,
  WORK_COUNTRY ,
  WORK_ZIP ,
  HOME_ADDR_LINE1 ,
  HOME_ADDR_LINE2 ,
  HOME_CITY ,
  HOME_STATE ,
  HOME_COUNTRY ,
  HOME_ZIP ,
  OTHER_ADDR_LINE1 ,
  OTHER_ADDR_LINE2 ,
  OTHER_CITY ,
  OTHER_STATE ,
  OTHER_COUNTRY ,
  OTHER_ZIP
}
 
enum  QueryFilterType {
  eFilterAlwaysFalse ,
  eFilterNone ,
  eFilterOther
}
 

Functions

const SplitEvoColumnsget_evo_addr ()
 
static void splitColumn (ColumnProperty **pToBeFields)
 
static void initFields ()
 
const ColumnPropertygetField (guint n)
 
GType getGFieldType (guint nCol)
 
sal_Int32 getFieldType (guint nCol)
 
guint findEvoabField (std::u16string_view aColName)
 
OUString getFieldTypeName (guint nCol)
 
OUString getFieldName (guint nCol)
 
void free_column_resources ()
 
static OUString valueToOUString (GValue &_rValue)
 
static bool valueToBool (GValue &_rValue)
 
static int whichAddress (int value)
 
static EContactAddressgetDefaultContactAddress (EContact *pContact, int *value)
 
static EContactAddressgetContactAddress (EContact *pContact, int *address_enum)
 
static bool handleSplitAddress (EContact *pContact, GValue *pStackValue, int value)
 
static bool getValue (EContact *pContact, sal_Int32 nColumnNum, GType nType, GValue *pStackValue, bool &_out_rWasNull)
 
static int CompareContacts (gconstpointer _lhs, gconstpointer _rhs, gpointer _userData)
 
 IMPLEMENT_SERVICE_INFO (OStatement, "com.sun.star.comp.sdbcx.evoab.OStatement", "com.sun.star.sdbc.Statement")
 

Variables

sal_Int32 const s_nCOLUMN_SIZE = 256
 
sal_Int32 const s_nDECIMAL_DIGITS = 0
 
sal_Int32 const s_nNULLABLE = 1
 
sal_Int32 const s_nCHAR_OCTET_LENGTH = 65535
 
static ColumnProperty ** pFields =nullptr
 
static guint nFields = 0
 
static const char * pDenyList []
 

Typedef Documentation

◆ OCommonStatement_IBase

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XWarningsSupplier , css::sdbc::XCloseable > connectivity::evoab::OCommonStatement_IBase

Definition at line 49 of file NStatement.hxx.

◆ OConnection_BASE

Definition at line 44 of file NConnection.hxx.

◆ ODriver_BASE

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver, css::lang::XServiceInfo > connectivity::evoab::ODriver_BASE

Definition at line 36 of file NDriver.hxx.

◆ OEvoabTable_TYPEDEF

Definition at line 27 of file NTable.hxx.

◆ OPreparedStatement_BASE

typedef ::cppu::ImplHelper5< css::sdbc::XPreparedStatement, css::sdbc::XParameters, css::sdbc::XResultSetMetaDataSupplier, css::sdbc::XMultipleResults, css::lang::XServiceInfo> connectivity::evoab::OPreparedStatement_BASE

Definition at line 40 of file NPreparedStatement.hxx.

◆ OResultSet_BASE

typedef ::cppu::WeakComponentImplHelper< css::sdbc::XResultSet , css::sdbc::XRow , css::sdbc::XResultSetMetaDataSupplier , css::util::XCancellable , css::sdbc::XWarningsSupplier , css::sdbc::XCloseable , css::sdbc::XColumnLocate , css::lang::XServiceInfo > connectivity::evoab::OResultSet_BASE

Definition at line 72 of file NResultSet.hxx.

◆ OResultSetMetaData_BASE

typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData> connectivity::evoab::OResultSetMetaData_BASE

Definition at line 33 of file NResultSetMetaData.hxx.

◆ OStatement_IBase

typedef ::cppu::ImplHelper2< css::lang::XServiceInfo , css::sdbc::XStatement > connectivity::evoab::OStatement_IBase

Definition at line 240 of file NStatement.hxx.

◆ SortDescriptor

Definition at line 58 of file NStatement.hxx.

Enumeration Type Documentation

◆ ColumnNumber

Enumerator
DEFAULT_ADDR_LINE1 
DEFAULT_ADDR_LINE2 
DEFAULT_CITY 
DEFAULT_STATE 
DEFAULT_COUNTRY 
DEFAULT_ZIP 
WORK_ADDR_LINE1 
WORK_ADDR_LINE2 
WORK_CITY 
WORK_STATE 
WORK_COUNTRY 
WORK_ZIP 
HOME_ADDR_LINE1 
HOME_ADDR_LINE2 
HOME_CITY 
HOME_STATE 
HOME_COUNTRY 
HOME_ZIP 
OTHER_ADDR_LINE1 
OTHER_ADDR_LINE2 
OTHER_CITY 
OTHER_STATE 
OTHER_COUNTRY 
OTHER_ZIP 

Definition at line 41 of file NDatabaseMetaData.hxx.

◆ QueryFilterType

Enumerator
eFilterAlwaysFalse 
eFilterNone 
eFilterOther 

Definition at line 60 of file NStatement.hxx.

Function Documentation

◆ CompareContacts()

static int connectivity::evoab::CompareContacts ( gconstpointer  _lhs,
gconstpointer  _rhs,
gpointer  _userData 
)
static

◆ findEvoabField()

guint connectivity::evoab::findEvoabField ( std::u16string_view  aColName)

◆ free_column_resources()

void connectivity::evoab::free_column_resources ( )

Definition at line 222 of file NDatabaseMetaData.cxx.

References i, nFields, and pFields.

Referenced by connectivity::evoab::OEvoabPreparedStatement::close().

◆ get_evo_addr()

const SplitEvoColumns * connectivity::evoab::get_evo_addr ( )

◆ getContactAddress()

static EContactAddress * connectivity::evoab::getContactAddress ( EContact pContact,
int address_enum 
)
static

◆ getDefaultContactAddress()

static EContactAddress * connectivity::evoab::getDefaultContactAddress ( EContact pContact,
int value 
)
static

◆ getField()

const ColumnProperty * connectivity::evoab::getField ( guint  n)

Definition at line 147 of file NDatabaseMetaData.cxx.

References initFields(), n, nFields, and pFields.

Referenced by getFieldName(), and getValue().

◆ getFieldName()

OUString connectivity::evoab::getFieldName ( guint  nCol)

◆ getFieldType()

sal_Int32 connectivity::evoab::getFieldType ( guint  nCol)

◆ getFieldTypeName()

OUString connectivity::evoab::getFieldTypeName ( guint  nCol)

◆ getGFieldType()

GType connectivity::evoab::getGFieldType ( guint  nCol)

◆ getValue()

static bool connectivity::evoab::getValue ( EContact pContact,
sal_Int32  nColumnNum,
GType  nType,
GValue *  pStackValue,
bool &  _out_rWasNull 
)
static

◆ handleSplitAddress()

static bool connectivity::evoab::handleSplitAddress ( EContact pContact,
GValue *  pStackValue,
int  value 
)
static

◆ IMPLEMENT_SERVICE_INFO()

connectivity::evoab::IMPLEMENT_SERVICE_INFO ( OStatement  ,
"com.sun.star.comp.sdbcx.evoab.OStatement"  ,
"com.sun.star.sdbc.Statement"   
)

◆ initFields()

static void connectivity::evoab::initFields ( )
static

◆ splitColumn()

static void connectivity::evoab::splitColumn ( ColumnProperty **  pToBeFields)
static

◆ valueToBool()

static bool connectivity::evoab::valueToBool ( GValue &  _rValue)
static

◆ valueToOUString()

static OUString connectivity::evoab::valueToOUString ( GValue &  _rValue)
static

Definition at line 88 of file NResultSet.cxx.

References aStr.

Referenced by CompareContacts(), and connectivity::evoab::OEvoabResultSet::getString().

◆ whichAddress()

static int connectivity::evoab::whichAddress ( int  value)
static

Variable Documentation

◆ nFields

guint connectivity::evoab::nFields = 0
static

◆ pDenyList

const char* connectivity::evoab::pDenyList[]
static
Initial value:
=
{
"id",
"list-show-addresses",
"address-label-home",
"address-label-work",
"address-label-other"
}

Definition at line 60 of file NDatabaseMetaData.cxx.

Referenced by initFields().

◆ pFields

ColumnProperty** connectivity::evoab::pFields =nullptr
static

◆ s_nCHAR_OCTET_LENGTH

sal_Int32 const connectivity::evoab::s_nCHAR_OCTET_LENGTH = 65535

◆ s_nCOLUMN_SIZE

sal_Int32 const connectivity::evoab::s_nCOLUMN_SIZE = 256

◆ s_nDECIMAL_DIGITS

sal_Int32 const connectivity::evoab::s_nDECIMAL_DIGITS = 0

◆ s_nNULLABLE

sal_Int32 const connectivity::evoab::s_nNULLABLE = 1