📄 dao360.tli
字号:
}
inline HRESULT Database::PopulatePartial ( _bstr_t DbPathName ) {
HRESULT _hr = raw_PopulatePartial(DbPathName);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface TableDefs wrapper method implementations
//
inline _TableDefPtr TableDefs::GetItem ( const _variant_t & Item ) {
struct _TableDef * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _TableDefPtr(_result, false);
}
//
// interface _TableDef wrapper method implementations
//
inline long _TableDef::GetAttributes ( ) {
long _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _TableDef::PutAttributes ( long pl ) {
HRESULT _hr = put_Attributes(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _TableDef::GetConnect ( ) {
BSTR _result;
HRESULT _hr = get_Connect(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _TableDef::PutConnect ( _bstr_t pbstr ) {
HRESULT _hr = put_Connect(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _TableDef::GetDateCreated ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DateCreated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _variant_t _TableDef::GetLastUpdated ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_LastUpdated(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline _bstr_t _TableDef::GetName ( ) {
BSTR _result;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _TableDef::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _TableDef::GetSourceTableName ( ) {
BSTR _result;
HRESULT _hr = get_SourceTableName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _TableDef::PutSourceTableName ( _bstr_t pbstr ) {
HRESULT _hr = put_SourceTableName(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _TableDef::GetUpdatable ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Updatable(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _TableDef::GetValidationText ( ) {
BSTR _result;
HRESULT _hr = get_ValidationText(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _TableDef::PutValidationText ( _bstr_t pbstr ) {
HRESULT _hr = put_ValidationText(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _TableDef::GetValidationRule ( ) {
BSTR _result;
HRESULT _hr = get_ValidationRule(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _TableDef::PutValidationRule ( _bstr_t pbstr ) {
HRESULT _hr = put_ValidationRule(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _TableDef::GetRecordCount ( ) {
long _result;
HRESULT _hr = get_RecordCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline FieldsPtr _TableDef::GetFields ( ) {
struct Fields * _result;
HRESULT _hr = get_Fields(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FieldsPtr(_result, false);
}
inline IndexesPtr _TableDef::GetIndexes ( ) {
struct Indexes * _result;
HRESULT _hr = get_Indexes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return IndexesPtr(_result, false);
}
inline RecordsetPtr _TableDef::OpenRecordset ( const _variant_t & Type, const _variant_t & Options ) {
struct Recordset * _result;
HRESULT _hr = raw_OpenRecordset(Type, Options, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return RecordsetPtr(_result, false);
}
inline HRESULT _TableDef::RefreshLink ( ) {
HRESULT _hr = raw_RefreshLink();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _FieldPtr _TableDef::CreateField ( const _variant_t & Name, const _variant_t & Type, const _variant_t & Size ) {
struct _Field * _result;
HRESULT _hr = raw_CreateField(Name, Type, Size, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _FieldPtr(_result, false);
}
inline _IndexPtr _TableDef::CreateIndex ( const _variant_t & Name ) {
struct _Index * _result;
HRESULT _hr = raw_CreateIndex(Name, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _IndexPtr(_result, false);
}
inline PropertyPtr _TableDef::CreateProperty ( const _variant_t & Name, const _variant_t & Type, const _variant_t & Value, const _variant_t & DDL ) {
struct Property * _result;
HRESULT _hr = raw_CreateProperty(Name, Type, Value, DDL, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PropertyPtr(_result, false);
}
inline _bstr_t _TableDef::GetConflictTable ( ) {
BSTR _result;
HRESULT _hr = get_ConflictTable(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _variant_t _TableDef::GetReplicaFilter ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_ReplicaFilter(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _TableDef::PutReplicaFilter ( const _variant_t & pFilter ) {
HRESULT _hr = put_ReplicaFilter(pFilter);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Fields wrapper method implementations
//
inline _FieldPtr Fields::GetItem ( const _variant_t & Item ) {
struct _Field * _result;
HRESULT _hr = get_Item(Item, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _FieldPtr(_result, false);
}
//
// interface _Field wrapper method implementations
//
inline long _Field::GetCollatingOrder ( ) {
long _result;
HRESULT _hr = get_CollatingOrder(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline short _Field::GetType ( ) {
short _result;
HRESULT _hr = get_Type(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutType ( short ps ) {
HRESULT _hr = put_Type(ps);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Field::GetName ( ) {
BSTR _result;
HRESULT _hr = get_Name(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Field::PutName ( _bstr_t pbstr ) {
HRESULT _hr = put_Name(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Field::GetSize ( ) {
long _result;
HRESULT _hr = get_Size(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutSize ( long pl ) {
HRESULT _hr = put_Size(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Field::GetSourceField ( ) {
BSTR _result;
HRESULT _hr = get_SourceField(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _bstr_t _Field::GetSourceTable ( ) {
BSTR _result;
HRESULT _hr = get_SourceTable(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline _variant_t _Field::GetValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_Value(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Field::PutValue ( const _variant_t & pvar ) {
HRESULT _hr = put_Value(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long _Field::GetAttributes ( ) {
long _result;
HRESULT _hr = get_Attributes(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutAttributes ( long pl ) {
HRESULT _hr = put_Attributes(pl);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline short _Field::GetOrdinalPosition ( ) {
short _result;
HRESULT _hr = get_OrdinalPosition(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutOrdinalPosition ( short ps ) {
HRESULT _hr = put_OrdinalPosition(ps);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Field::GetValidationText ( ) {
BSTR _result;
HRESULT _hr = get_ValidationText(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Field::PutValidationText ( _bstr_t pbstr ) {
HRESULT _hr = put_ValidationText(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Field::GetValidateOnSet ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_ValidateOnSet(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutValidateOnSet ( VARIANT_BOOL pb ) {
HRESULT _hr = put_ValidateOnSet(pb);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t _Field::GetValidationRule ( ) {
BSTR _result;
HRESULT _hr = get_ValidationRule(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void _Field::PutValidationRule ( _bstr_t pbstr ) {
HRESULT _hr = put_ValidationRule(pbstr);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _variant_t _Field::GetDefaultValue ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = get_DefaultValue(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline void _Field::PutDefaultValue ( const _variant_t & pvar ) {
HRESULT _hr = put_DefaultValue(pvar);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Field::GetRequired ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Required(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutRequired ( VARIANT_BOOL pb ) {
HRESULT _hr = put_Required(pb);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Field::GetAllowZeroLength ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_AllowZeroLength(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void _Field::PutAllowZeroLength ( VARIANT_BOOL pb ) {
HRESULT _hr = put_AllowZeroLength(pb);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL _Field::GetDataUpdatable ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_DataUpdatable(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t _Field::GetForeignName ( ) {
BSTR _result;
HRESULT _hr = get_ForeignName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -