LibreOffice Module connectivity (master) 1
|
#include <MacabRecords.hxx>
Classes | |
class | iterator |
Public Member Functions | |
MacabRecords (const ABAddressBookRef _addressBook, MacabHeader *_header, MacabRecord **_records, sal_Int32 _numRecords) | |
MacabRecords (const MacabRecords *_copy) | |
MacabRecords (const ABAddressBookRef _addressBook) | |
~MacabRecords () | |
void | initialize () |
void | setHeader (MacabHeader *_header) |
MacabHeader * | getHeader () const |
void | setName (const OUString &_sName) |
OUString const & | getName () const |
MacabRecord * | insertRecord (MacabRecord *_newRecord, const sal_Int32 _location) |
void | insertRecord (MacabRecord *_newRecord) |
MacabRecord * | getRecord (const sal_Int32 _location) const |
void | swap (const sal_Int32 _id1, const sal_Int32 _id2) |
macabfield * | getField (const sal_Int32 _recordNumber, const sal_Int32 _columnNumber) const |
macabfield * | getField (const sal_Int32 _recordNumber, std::u16string_view _columnName) const |
sal_Int32 | getFieldNumber (std::u16string_view _columnName) const |
sal_Int32 | size () const |
MacabHeader * | createHeaderForRecordType (const CFArrayRef _records, const CFStringRef _recordType) const |
MacabRecord * | createMacabRecord (const ABRecordRef _abrecord, const MacabHeader *_header, const CFStringRef _recordType) const |
MacabRecords * | begin () |
sal_Int32 | end () const |
Protected Attributes | |
sal_Int32 | recordsSize |
sal_Int32 | currentRecord |
CFStringRef | recordType |
MacabHeader * | header |
MacabRecord ** | records |
ABAddressBookRef | addressBook |
OUString | m_sName |
std::vector< lcl_CFType > | lcl_CFTypes |
std::vector< CFStringRef > | requiredProperties |
Private Member Functions | |
void | bootstrap_CF_types () |
void | bootstrap_requiredProperties () |
MacabHeader * | createHeaderForProperty (const ABRecordRef _record, const CFStringRef _propertyName, const CFStringRef _recordType, const bool _isPropertyRequired) const |
MacabHeader * | createHeaderForProperty (const ABPropertyType _propertyType, const CFTypeRef _propertyValue, const CFStringRef _propertyName) const |
ABPropertyType | getABTypeFromCFType (const CFTypeID cf_type) const |
void | insertPropertyIntoMacabRecord (MacabRecord *_abrecord, const MacabHeader *_header, const OUString &_propertyName, const CFTypeRef _propertyValue) const |
void | insertPropertyIntoMacabRecord (const ABPropertyType _propertyType, MacabRecord *_abrecord, const MacabHeader *_header, const OUString &_propertyName, const CFTypeRef _propertyValue) const |
Definition at line 46 of file MacabRecords.hxx.
MacabRecords::MacabRecords | ( | const ABAddressBookRef | _addressBook, |
MacabHeader * | _header, | ||
MacabRecord ** | _records, | ||
sal_Int32 | _numRecords | ||
) |
Definition at line 75 of file MacabRecords.cxx.
References bootstrap_CF_types(), bootstrap_requiredProperties(), and header.
|
explicit |
Definition at line 93 of file MacabRecords.cxx.
References bootstrap_CF_types(), bootstrap_requiredProperties(), header, and m_sName.
|
explicit |
Definition at line 104 of file MacabRecords.cxx.
References bootstrap_CF_types(), bootstrap_requiredProperties(), and header.
MacabRecords::~MacabRecords | ( | ) |
Definition at line 164 of file MacabRecords.cxx.
MacabRecords * MacabRecords::begin | ( | ) |
Definition at line 1091 of file MacabRecords.cxx.
Referenced by connectivity::macab::MacabResultSet::someMacabRecords().
|
private |
Definition at line 290 of file MacabRecords.cxx.
References lcl_CFTypes.
Referenced by MacabRecords().
|
private |
Definition at line 306 of file MacabRecords.cxx.
References requiredProperties.
Referenced by MacabRecords().
|
private |
Definition at line 503 of file MacabRecords.cxx.
References connectivity::macab::CFStringToOUString(), connectivity::macab::MacabRecord::copy(), createHeaderForProperty(), connectivity::macab::fixLabel(), getABTypeFromCFType(), connectivity::macab::MacabRecord::getSize(), i, length, connectivity::macab::OUStringToCFString(), connectivity::macab::macabfield::type, and connectivity::macab::macabfield::value.
|
private |
Definition at line 474 of file MacabRecords.cxx.
References addressBook, createHeaderForProperty(), and result.
Referenced by createHeaderForProperty(), and createHeaderForRecordType().
MacabHeader * MacabRecords::createHeaderForRecordType | ( | const CFArrayRef | _records, |
const CFStringRef | _recordType | ||
) | const |
Definition at line 320 of file MacabRecords.cxx.
References addressBook, connectivity::macab::CFStringToOUString(), createHeaderForProperty(), i, pq_sdbc_driver::OUStringToOString(), requiredProperties, and connectivity::macab::MacabHeader::sortRecord().
Referenced by initialize().
MacabRecord * MacabRecords::createMacabRecord | ( | const ABRecordRef | _abrecord, |
const MacabHeader * | _header, | ||
const CFStringRef | _recordType | ||
) | const |
Definition at line 818 of file MacabRecords.cxx.
References addressBook, connectivity::macab::CFStringToOUString(), connectivity::macab::MacabRecord::getSize(), i, and insertPropertyIntoMacabRecord().
Referenced by initialize().
sal_Int32 MacabRecords::end | ( | ) | const |
Definition at line 1134 of file MacabRecords.cxx.
References currentRecord.
Referenced by connectivity::macab::MacabResultSet::someMacabRecords().
|
private |
Definition at line 1071 of file MacabRecords.cxx.
References i, and lcl_CFTypes.
Referenced by createHeaderForProperty(), and insertPropertyIntoMacabRecord().
macabfield * MacabRecords::getField | ( | const sal_Int32 | _recordNumber, |
const sal_Int32 | _columnNumber | ||
) | const |
Definition at line 233 of file MacabRecords.cxx.
References connectivity::macab::MacabRecord::get(), connectivity::macab::MacabRecord::getSize(), records, and recordsSize.
Referenced by connectivity::macab::MacabResultSet::getBookmark(), connectivity::macab::MacabResultSet::getDouble(), getField(), connectivity::macab::MacabResultSet::getFloat(), connectivity::macab::MacabResultSet::getInt(), connectivity::macab::MacabResultSet::getLong(), connectivity::macab::MacabResultSet::getString(), connectivity::macab::MacabResultSet::getTimestamp(), connectivity::macab::MacabGroup::MacabGroup(), and connectivity::macab::MacabResultSet::moveToBookmark().
macabfield * MacabRecords::getField | ( | const sal_Int32 | _recordNumber, |
std::u16string_view | _columnName | ||
) | const |
Definition at line 247 of file MacabRecords.cxx.
References connectivity::macab::MacabHeader::getColumnNumber(), getField(), and header.
sal_Int32 MacabRecords::getFieldNumber | ( | std::u16string_view | _columnName | ) | const |
Definition at line 266 of file MacabRecords.cxx.
References connectivity::macab::MacabHeader::getColumnNumber(), and header.
MacabHeader * MacabRecords::getHeader | ( | ) | const |
Definition at line 177 of file MacabRecords.cxx.
References header.
Referenced by connectivity::macab::MacabCommonStatement::executeQuery(), connectivity::macab::MacabResultSetMetaData::getColumnName(), connectivity::macab::MacabDatabaseMetaData::getColumns(), connectivity::macab::MacabResultSetMetaData::getColumnType(), connectivity::macab::MacabGroup::MacabGroup(), and connectivity::macab::MacabResultSetMetaData::setMacabFields().
OUString const & MacabRecords::getName | ( | ) | const |
Definition at line 1155 of file MacabRecords.cxx.
References m_sName.
Referenced by connectivity::macab::MacabDatabaseMetaData::getColumns(), and connectivity::macab::MacabDatabaseMetaData::getTables().
MacabRecord * MacabRecords::getRecord | ( | const sal_Int32 | _location | ) | const |
Definition at line 225 of file MacabRecords.cxx.
References records, and recordsSize.
Referenced by connectivity::macab::MacabGroup::MacabGroup(), and connectivity::macab::MacabResultSet::sortMacabRecords().
void MacabRecords::initialize | ( | ) |
Definition at line 114 of file MacabRecords.cxx.
References addressBook, createHeaderForRecordType(), createMacabRecord(), currentRecord, header, i, records, recordsSize, and recordType.
Referenced by connectivity::macab::MacabAddressBook::getMacabGroups(), and connectivity::macab::MacabAddressBook::getMacabRecords().
|
private |
Definition at line 874 of file MacabRecords.cxx.
References connectivity::macab::CFStringToOUString(), columnName, connectivity::macab::fixLabel(), connectivity::macab::MacabRecord::get(), connectivity::macab::MacabHeader::getColumnNumber(), i, connectivity::macab::MacabRecord::insertAtColumn(), and insertPropertyIntoMacabRecord().
|
private |
Definition at line 861 of file MacabRecords.cxx.
References getABTypeFromCFType(), and insertPropertyIntoMacabRecord().
Referenced by createMacabRecord(), and insertPropertyIntoMacabRecord().
void MacabRecords::insertRecord | ( | MacabRecord * | _newRecord | ) |
Definition at line 219 of file MacabRecords.cxx.
References currentRecord, and insertRecord().
MacabRecord * MacabRecords::insertRecord | ( | MacabRecord * | _newRecord, |
const sal_Int32 | _location | ||
) |
Definition at line 186 of file MacabRecords.cxx.
References currentRecord, i, records, and recordsSize.
Referenced by insertRecord(), connectivity::macab::MacabGroup::MacabGroup(), and connectivity::macab::MacabResultSet::someMacabRecords().
void MacabRecords::setHeader | ( | MacabHeader * | _header | ) |
Definition at line 169 of file MacabRecords.cxx.
References header.
Referenced by connectivity::macab::MacabGroup::MacabGroup().
void MacabRecords::setName | ( | const OUString & | _sName | ) |
Definition at line 1149 of file MacabRecords.cxx.
References m_sName.
Referenced by connectivity::macab::MacabAddressBook::getMacabGroups(), and connectivity::macab::MacabAddressBook::getMacabRecords().
sal_Int32 MacabRecords::size | ( | ) | const |
Definition at line 1085 of file MacabRecords.cxx.
References currentRecord.
Referenced by connectivity::macab::MacabResultSet::absolute(), connectivity::macab::MacabResultSet::afterLast(), connectivity::macab::MacabResultSet::first(), connectivity::macab::MacabResultSet::getBookmark(), connectivity::macab::MacabResultSet::getDouble(), connectivity::macab::MacabResultSet::getFloat(), connectivity::macab::MacabResultSet::getInt(), connectivity::macab::MacabResultSet::getLong(), connectivity::macab::MacabResultSet::getString(), connectivity::macab::MacabResultSet::getTimestamp(), connectivity::macab::MacabResultSet::isAfterLast(), connectivity::macab::MacabResultSet::isLast(), connectivity::macab::MacabResultSet::last(), connectivity::macab::MacabGroup::MacabGroup(), connectivity::macab::MacabResultSet::moveRelativeToBookmark(), connectivity::macab::MacabResultSet::moveToBookmark(), and connectivity::macab::MacabResultSet::sortMacabRecords().
void MacabRecords::swap | ( | const sal_Int32 | _id1, |
const sal_Int32 | _id2 | ||
) |
Definition at line 1140 of file MacabRecords.cxx.
References records.
Referenced by connectivity::macab::MacabResultSet::sortMacabRecords().
|
protected |
Definition at line 57 of file MacabRecords.hxx.
Referenced by createHeaderForProperty(), createHeaderForRecordType(), createMacabRecord(), and initialize().
|
protected |
Definition at line 53 of file MacabRecords.hxx.
Referenced by end(), initialize(), insertRecord(), and size().
|
protected |
Definition at line 55 of file MacabRecords.hxx.
Referenced by getField(), getFieldNumber(), getHeader(), initialize(), and setHeader().
|
protected |
Definition at line 61 of file MacabRecords.hxx.
Referenced by bootstrap_CF_types(), and getABTypeFromCFType().
|
protected |
Definition at line 58 of file MacabRecords.hxx.
Referenced by getName(), connectivity::macab::MacabGroup::MacabGroup(), and setName().
|
protected |
Definition at line 56 of file MacabRecords.hxx.
Referenced by getField(), getRecord(), initialize(), insertRecord(), connectivity::macab::MacabGroup::MacabGroup(), connectivity::macab::MacabRecords::iterator::operator*(), connectivity::macab::MacabRecords::iterator::operator=(), and swap().
|
protected |
Definition at line 52 of file MacabRecords.hxx.
Referenced by getField(), getRecord(), initialize(), insertRecord(), and connectivity::macab::MacabGroup::MacabGroup().
|
protected |
Definition at line 54 of file MacabRecords.hxx.
Referenced by initialize().
|
protected |
Definition at line 64 of file MacabRecords.hxx.
Referenced by bootstrap_requiredProperties(), and createHeaderForRecordType().