Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Awrapado.cxx   Sprache: C

 


/*java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  of LibreOffice project.
 
      0java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    -get_Prepared(&java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 41
  java.lang.StringIndexOutOfBoundsException: Range [1, 7) out of bounds for length 0
 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 * java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
 *
 *   Licensed    java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 43
    >bPrepared =java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 37
 *withthiswork for additional information regarding 
 *
bool :ExecuteOLEVariant& , Params
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 84
 *   the java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

#     java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 26
#include <)
#
#includejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
# <java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
#nclude </hxxjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
#include <
#void

using java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1

 :Createjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
rjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 42
    pInterface.java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
}


assert(pInterface;
{
        returneType;  >(e;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return
}} (java.lang.StringIndexOutOfBoundsException: Range [34, 21) out of bounds for length 62

OUStringpInterfacejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
     aValVar;
    >&;
    DataTypeEnum java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 1
    return java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 17
}


{
pInterface)
    return SUCCEEDED(pInterface->put_ConnectionString(sal::java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
}

sal_Int32 WpADOConnection::GetCommandTimeout()java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    sal_Int :ejava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 46
    =0IID_ADORECORDSET_21
    ADOSG(,
    return nRet;
}

voidjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 23
    -put_CommandTimeout(nRet;
}

java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 54
{
    assert(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
    sal_Int32 nRet=0;
    pInterface->get_ConnectionTimeout(&nRet);
returnjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
}

void WpADOConnection::java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1
{
    assert       /* [optional][in] */ VARIANT Source,
pInterface>n);
} java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 42

bool WpADOConnection::Close()
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return (SUCCEEDEDC,&bSupports);
}

bool Cancel()java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
{
    assert(pInterface;
    return SUCCEEDED(pInterface->Execute(sal::systools::
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

bool
{
    assert(java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
    Sup=;
    return SUCCEEDED(pInterface->java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 0
}

bool WpADOConnection &const OLEVariant right
{
    assert(pInterface);
    return SUCCEEDED(pInterface-java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
}

bool WpADOConnection    assert(Interfacejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
{
    assert(pInterface);
    
}

bool void WpADORecordset:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    assert(pInterface);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
sal:::B(UserID)
                                       & SUCCEEDEDpInterface-oveNext(;
}

bool WpADOConnection::GetErrors(ADOErrors
{
    assert(pInterface>(bIsAtBOF)
     OLEVariant
}

OUString WpADOConnection pInterface->get_Bookmark(&java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1
{
    assert(pInterface);
    sal::java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
-(BStrrPwd:::);
}

bool java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    assert(pInterface);
    return SUCCEEDED(pInterface->java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 1
}

 :java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 35
{
    assert(pInterface);
IsolationLevelEnum eNum=;
    pInterface->get_IsolationLevel(&eNum
    return eNum;
}

bool WpADOConnection:pctTypeObjectTypeId&Rights);
{
    assert(pInterface);
    return SUCCEEDED(pInterfacejava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}

WpADOConnectiong)
{
    assert
    sal_Int32::etExportedKeys  ::no:&catalog  &schema,std:u16string_viewtable java.lang.StringIndexOutOfBoundsException: Index 129 out of bounds for length 129
    (&nRet     ObjectTypeIdjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    return nRet;
}

bool WpADOConnection::put_Attributes(sal_Int32 nRet)
{
    assert(pInterface);
    return SUCCEEDEDSafeArrayPutElementp,&&[Pos];+;// TABLE_CATALOG
}java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 39

 
{
    assert(pInterface);
 =    CursorLocationEnum eNum=adUseNone
    pInterface->SafeArrayPutElement(psa,&nPos[]+/
    ;
}

bool    / fill SafeArray

    assert(pInterface);
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
}

ConnectModeEnum WpADOConnection::get_Mode() const
{
    assert(// Create elements used in the array
     java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 32
    pInterface->java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
     eNumjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
}

bool WpADOConnection // Create initialize  array
{
    nterface)
    return     // Create SafeArteria;
}

OUString WpADOConnection] :(java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
{
    assert(pInterface);
sal:B   varCriterian]::java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 70
     aBSTR)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1

bool         java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 44
{
    (&,varCriteriajava.lang.StringIndexOutOfBoundsException: Range [60, 51) out of bounds for length 74
        ADORecordset *pRecordset nullptr;
}

sal_Int32 WpADOConnection::get_State() const
{
    assert(pInterface);

    pInterface->get_State(&nRet);
    return nRet;
}

boolADORecordset* WpADOConnection:getCrossReference(java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
{
       (pInterface);
    
}

OUString WpADOConnection::java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 22
{
    assert(pInterface);
    sal                                                  OUString
&;
    return OUString(aBSTR);
}

bool WpADOCommand::putref_ActiveConnection(const WpADOConnection& rCon)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->putref_ActiveConnection(rCon));
}

void WpADOCommand::put_ActiveConnection(/* [in] */
 const
{
    assert(pInterface);
    pInterface->put_ActiveConnection(vConnconst& 
}

void WpADOCommand::Create()
{
    sal::systools::COMReference<IClassFactory2> pInterface2;
    VER)))
    {
        sal::systools::COMReference<ADOCommand> pCommand;

        HRESULT     // Create elem usedin the array
                               ,
                                            psa=nullptrjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
:(,
                                            reinterpret_cast<void**>(&pCommand             = SafeArrayCreate, 1 rgsabound)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

        if(         nPosjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 70
            pInterface = std(getLength  java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 66
    }
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

sal_Int32         varCriteriajava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 58
{
    assert(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
    sal_Int32 =0;
    pInterface->get_State(&nRet);
     ;
}

OUString WpADOCommand::get_CommandText() const
{
    assert(pInterface);
     aBSTR
    pInterface->get_CommandText(&aBSTR);
    return OUString(aBSTR);
}

 WpADOCommand::put_CommandText(::16string_view aCon)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->put_CommandText
}

sal_Int32 WpADOCommand:    OLEVariant vsa;
{
    vsa.etArraypsaVT_VARIANT)
    sal_Int32 nRet0;
    pInterface->get_CommandTimeout(&nRet);
    return nRet;
}

void WpADOCommand::put_CommandTimeout(sal_Int32 nRet)
{
    assert(pInterface);
    -put_CommandTimeout(nRet)
}

bool WpADOCommand::get_Prepared() const
{
    assert(pInterface);
    VARIANT_BOOL bPrepared = VARIANT_FALSE    [.=
    pInterface->get_Prepared    SAFEARRAY *psa         = SafeArrayPutElement(psa,&nPos&varCriterianPos);Pos+;// TABLE_SCHEMA
    return bPrepared == VARIANT_TRUE;
}

    
{
    assert(pInterface);
    -    (LONGi  0  < &SUCCEEDED hr ;+)
}

bool WpADOCommand::Execute(OLEVariant& RecordsAffected
{
    assert(pInterface);
    return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

*)
{
        setNoArg)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      =nullptr;
    bool bErg = SUCCEEDED(
                                                      (,T_VARIANT

    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

OLEVariant vsa;
{
    assertvsasetArray
    ADOParameters* pPara=nullptr;
    pInterface->get_Parameters(&pPara);
    ADORecordset*  ;
}

bool WpADOCommand::put_CommandType(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    assertOpenSchema(dSchemaTablePrivileges,vsa,vtEmpty,&)                                                 &,
    return                                                    )ORecordset  :(const :Any ,
}

CommandTypeEnum WpADOCommand::get_CommandType() const
{
    assert(pInterface     *sa=nullptrjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    CommandTypeEnumconst::A foreignCatalog
    pInterface->get_CommandType(&eNum);
    return eNum;
}

// returns the name of the field
OUStringWpADOCommand:GetName( const
{
        assert[] = std:()java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
salsystools: ;
    pInterface->get_Name    SAFEARRAYBOUND rgsabound[java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return OUString(aBSTR);
}

bool WpADOCommand::put_Name(std::u16string_view Name    SAFEARRAY * =nullptr;
{
    assertOLEVariant varCriteria[6];
    return SUCCEEDED(pInterface->put_Name(sal::systools::BStr(Name)));
}
bool WpADOCommand::Cancel()
{
    varCriteriavarCriteria[].etString(::comphelper:getStringcatalog)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
    return SUCCEEDED(pInterface->Cancel());


java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 52
{
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface->        varCriteria[nPos[Pos.()
    return OUString(aBSTR);
}

OUString WpADOError::GetSource() const
{
   assert(    (o3tlth(tableNamePattern, u"%))
    sal::systools:        varCriteria]].etStringtableNamePattern);
    pInterface->get_Source(&aBSTR);
    return OUString(aBSTR);
}

      SafeArrayPutElement,&Pos,varCriterianPos];+/ 
{
    assert
    sal_Int32nErrNr=0n]setStringc);
    pInterface->get_Number(&nErrNr);
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 18
}

OUString WpADOError::GetSQLStateOLEVariant  ;
{
    assert(pInterface);
    sal:systools:     setNoArg)
    pInterface->get_SQLState(&aBSTR);
    returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

sal_Int32 WpADOError:G( const
{
        assert
    sal_Int32 nErrNr=0;if(oreignCatalog.()java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    >java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 41
    return nErrNr;
}

WpADOProperties WpADOField::get_Properties()
{
    assert(pInterface);
    WpADOProperties     OpenSchema(adSchemaColu,vsa,tEmpty&pRecordset);
    pInterface->get_Properties(&);
    return pProps;
}

sal_Int32 WpADOField::GetActualSize() const
{
    assert(pInterface);
    long nActualSize    varCriteria[nPos].java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    pInterface->et_ActualSizejava.lang.StringIndexOutOfBoundsException: Range [31, 12) out of bounds for length 81

}

sal_Int32WpADOField:GetAttributes) const
{
    assert(pInterface);
    sal_Int32 eADOSFieldAttributes=                                     std:u16string_viewvtEmptysetNoArg)
    pInterface->get_Attributes(&eADOSFieldAttributes);
    return eADOSFieldAttributes;
}

sal_Int32 WpADOField::    // Create elements used)
{
assert(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
//-get_Status&eADOSFieldAttributes)
    return 0;
}

sal_Int32 WpADOField::GetDefinedSize() const
{
    assert(pInterface);
    long nDefinedSize = 0;
     pRecordset
    return nDefinedSize;
}

// returns the name of the field
  [0].ADORecordset ::getProcedures(const::::& ,
{
    assert(pInterface)
    sal::systools::BStr aBSTR;
    pInterface->get_Name(&aBSTR); =0
    return OUString(aBSTR);
}

DataTypeEnum WpADOField::GetADOType()     if(schema.getLength() && schema.toChar// Create SafeArray Bounds and initialize the array
{
    assert(pInterface);
        0.=std:sv   ,nPos,varCriteria[osnPos+;/
    pInterface->get_Type(&eType
    return eType;
}

void WpADOField::get_Value(OLEVariant& 
{
    assert(;
    aValVar.setEmpty();
pInterface>get_Value&)
}

OLEVariant WpADOField::    SafeArrayPutElement(psa,&nPosvarCriterianPos.(:comphelper:cjava.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 70
{
        schemaPattern    )
    OLEVariant aValVar;
    pInterface->get_Value(&aValVar    SafeArrayPutElement&,&n];Pos+// 
    return aValVar;
}

bool WpADOField::        nPos.
{
    assert(    ADORecordset *pRe=nullptr;
    return (SUCCEEDED(    OpenSchemaadSchemaColumnPrivilegessa,,pRecordset)
}

sal_Int32    return pRecordset
{
        assert
    sal_uInt8 eType=0;
    pInterface-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return eType;
    OLEVariant vsa;

sal_Int32    .setArray(saVT_VARIANT);
{
    assert(pInterface);
    sal_uInt8 eType=0;
    >get_NumericScale&eType)
    return eType;
}

bool WpADOField::AppendChunk(const OLEVariant& Variant)
{
    assert(pInterface);
    return (SUCCEEDED    // Create SafeArray Bounds and initialize the array
}

OLEVariant WpADOField::GetChunk(long Length) const
{
    (pInterface)
    OLEVariant aValVar;
    -GetChunk(Length&aValVar)
    return aValVar;
}

void WpADOField:
 std:u16string_view,
    assert(pInterface);
    pInterface->GetChunk(Length, std::u16string_viewcolumnNamePattern)
}

OLEVariant WpADOField::GetOriginalValue() const
{
    assert(pInterface);
    OLEVariant aValVar;
    pInterfacejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return aValVar;SAFEARRAYOLEVariant ;
}

void WpADOField::GetOriginalValue    .setArraypsa,VT_VARIANTvarCriteria[4];
{
    assert(pInterface);
    pInterface->get_OriginalValue(&aValVar);
}

OLEVariant WpADOField::GetUnderlyingValue() // Create SafeArray Bounds and initialize the
{
    assert(pInterface)
    aValVar;
    pInterface->get_UnderlyingValue(&aValVar);
    return    OpenSchemaadSchemaProviderTypesvsaa    ;
}

void WpADOField::GetUnderlyingValue(OLEVariant &aValVar) const
{
    assert(pInterface);
    pInterface->get_UnderlyingValue(&aValVar);
}

bool if(catalog.hasValue())
{
    assert(pInterface);
    return (SUCCEEDED(pInterface->put_Precision(_prec        varCriteria[Pos]setString(:::(java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 1
}

bool WpADOField::PutNumericScale(sal_Int8 _prec
{
    assert(Interface;
    return-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}

void WpADOField::PutADOType(DataTypeEnum eType)
{
    assert(Interface;
    pInterface->put_Type(eType);
}

bool WpADOField::PutDefinedSize(sal_Int32 _nDefSize)
{
    (!    (o3tl:starts_withprocedureNamePattern, u%")
    return (SUCCEEDED(pInterface->put_DefinedSize(_nDefSize)));
}

bool WpADOFieldvoid OToolsputValueconst &_Props,onst  _,  _)
{
    assert(pInterface
        (_.(    (::arts_withcolumnNamePattern,u")
}

OLEVariant aProprGetItem_Position)
{
OLEVariantaValVarjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    if(pInterface)
        pInterface-get_Value(&ValVar)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    SAL_WARN_IFbRet java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24
}

void WpADOPropertyvtEmpty.
{
    assert(pInterface);
    if(pInterface)
        pInterface->get_Value(&OLEVariant OTools::getValue(const WpADOP _,  &   // Initialize and fill the SafeArray
}

boolvsa.(psaVT_VARIANT)    java.lang.StringIndexOutOfBoundsException: Range [31, 17) out of bounds for length 53
{
    java.lang.StringIndexOutOfBoundsException: Range [21, 10) out of bounds for length 23
    return (SUCCEEDED(pInterface->put_Value(aValVar)))
}

OUString WpADOProperty::GetName() const
{
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface-    return pRecordset;
    return OUString(aBSTR);
}

DataTypeEnum WpADOProperty
{
    assert(pInterface);
    DataTypeEnum =;
    pInterface->get_Type(&eType);
    return                                                  OUString& schemaPattern
}

sal_Int32 WpADOProperty::GetAttributes() const
{
    assert(pInterface);
    sal_Int32 eADOSFieldAttributes=0;
    pInterface->get_Attributes(&eADOSFieldAttributes);java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    return eADOSFieldAttributes;
}

bool WpADOProperty::PutAttributes(sal_Int32 _nDefSize)
{
    assert(pInterface);
    return (SUCCEEDED(pInterface->put_Attributes(_nDefSize)));
}
 void WpADORecordset::Create()
{
    sal::systools::COMReference<IClassFactory2>      0java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    if (!FAILED(pInterface2.CoGetClassObject(ADOS::java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 55
    {
        sal::systools::COMReference<ADORecordset> pRec;
               HRESULT hr = pInterface2->reateInstanceLic(nullptr,
                                            nullptr,
                                            ADOS::IID_ADORECORDSET_21,
                                            ADOS::GetKeyStr(),
                                            reinterpret_cast<void**>(

        if( !FAILED( hr ) )
            pInterface = stdvarCriteria[nPos]setString(schemaPattern);
    }
}

bool WpADORecordset::Open(
        /* [optional][in] */ VARIANT Source,
        /* [optional][in] */ VARIANT ActiveConnection,
        /* [defaultvalue][in] */ CursorTypeEnum CursorType,
        /* [defaultvalue][in] */ LockTypeEnum LockType,
        /* [defaultvalue][in] */ sal_Int32 Options)
{
    assert(pInterface);
    return (SUCCEEDED(pInterface->Open(Source,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 26
}


LockTypeEnum WpADORecordset::GetLockType()
{
    assert(pInterface);
    LockTypeEnum eTypeadLockUnspecified;
    pInterface->get_LockType(&eType);
    return eType;
}

void WpADORecordset::Close()
{
    assert(pInterface);
    pInterface->Close();
}

bool WpADORecordset::Cancel() const
{
    assert(pInterface);
    return (SUCCEEDED(pInterface->Cancel))
}

sal_Int32 WpADORecordset::get_State()
{
    assert(pInterface);
    sal_Int32 nState = 0;
    pInterface->get_State(&nState);
    return nState;
}

bool WpADORecordset::Supports( /* [in] */ CursorOptionEnum CursorOptions)
{
    assert(pInterface);
    VARIANT_BOOL bSupports=VARIANT_FALSE;
    pInterface->Supports(CursorOptions,&bSupports);
    return bSupports == VARIANT_TRUE;
}

PositionEnum WpADORecordset::get_AbsolutePosition()
{
    ssertpInterface);
    PositionEnum aTemp = adPosUnknown;
    pInterface->get_AbsolutePosition(&aTemp);
    return aTemp;
}

void WpADORecordset::GetDataSource(IUnknown** _pInterface) const
{
    assert(pInterface);
    pInterface    vtEmpty;
}

voidWpADORecordset::PutRefDataSource(Unknown*_pInterface)
{
    assert(pInterface);
    pInterface->putref_DataSource(_pInterface)
}

void WpADORecordset:GetBookmark( var)
{
    assert(pInterface);
    pInterface-get_Bookmark(var)
}

OLEVariant     vsa.setArraypsaVT_VARIANT);
{
    assert(pInterface);
    OLEVariant var;
    pInterface->get_Bookmark(&var);
    return     ADORecordseADORecordset *pRecordset = nullptr;
}

CompareEnum WpADORecordset::CompareBookmarks(const OLEVariant& left,const OLEVariant& right)
{
    assert(pInterface);
    CompareEnum eNum=adCompareNotComparable;
    pInterface->java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
    return eNum;
}

bool WpADORecordset::SetBookmark(                                       OUString&,
{
           std::u16string_view tableNamePattern,
    return SUCCEEDED(pInterface->put_Bookmark(pSafeAr));
}


WpADOFields WpADORecordset::GetFields() const
{
    assert{
    WpADOFields pFields;
    pInterface->get_Fields(&pFields);
    return pFields;
}


bool WpADORecordset::Move(sal_Int32 nRowsjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 29
bool WpADORecordset::MoveNext() {return pInterface java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bool WpADORecordset::ovePrevious() {return pInterface & SUCCEEDED(pInterface->MovePrevious();}
bool WpADORecordset::MoveFirst() {return pInterface && SUCCEEDED(pInterface->MoveFirst());}
bool     rgsabound[0.lLbound   =0;

bool WpADORecordset:IsAtBOF()const
{
    assert(pInterface);
     bIsAtBOF=ARIANT_FALSE;
    pInterface->get_BOF(&bIsAtBOF);
    return bIsAtBOF == VARIANT_TRUE;
}

bool WpADORecordset::IsAtEOF() const
{
    assert(pInterface);
    VARIANT_BOOL bIsAtEOF=VARIANT_FALSE;
    pInterface->get_EOF(&bIsAtEOF);
       return bIsAtEOF = VARIANT_TRUE;
}

bool WpADORecordset::Delete(AffectEnum eNum)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->Delete(eNum));
}

bool WpADORecordset::AddNew(const OLEVariant &FieldList,const OLEVariant &Values)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->AddNew(FieldList,Values));
}

bool WpADORecordset::Update(const OLEVariant &FieldList,const OLEVariant &Values)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->Update(FieldList,Values));
}

bool WpADORecordset::CancelUpdate()
{
    assert(pInterface);
    return     if(.getLength( && schemaPattern.toChar() != '%')
}

WpADOProperties WpADORecordset::get_Properties() const
{
    assert(pInterface);
    WpADOProperties pProps;
    java.lang.StringIndexOutOfBoundsException: Range [30, 14) out of bounds for length 40
    return pProps;
}

boolWpADORecordset:NextRecordset(OLEVariant& ecordsAffected,ADORecordset** ppiRset)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->NextRecordset(&RecordsAffected,ppiRset));
}

bool WpADORecordset::get_RecordCount(long& _nRet) const
{
    assert(pInterface);
    return     SafeArrayPutElement(psa,nPos,&varCriteria[nPos]);nPos++// TABLE_NAME
}

bool WpADORecordset::get_MaxRecords(long& _nRet) const
{
    assert(pInterface);
    return SUCCEEDED(pInterface->get_MaxRecords(&_nRet));
}

bool WpADORecordset::put_MaxRecords(ADO_LONGPTR _nRet)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->put_MaxRecords(_nRet));
}

bool WpADORecordset::get_CursorType(CursorTypeEnum &_nRet) const
{
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    return(pInterface->get_CursorType(&_nRet));
}

bool WpADORecordset::put_CursorType(CursorTypeEnum _nRet)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->put_CursorType(_nRet));
}

bool WpADORecordset::get_LockType(LockTypeEnum &_nRet) const
{
    assert(pInterface);
    return SUCCEEDED(pInterface->get_LockType(&_nRet)    // Initialize and fill the SafeArray
}

bool WpADORecordset::put_LockType(LockTypeEnum _nRet)
{
    assert(pInterface);
    return SUCCEEDED(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}

bool WpADORecordset::get_CacheSize(sal_Int32 &_nRet) const
{
    assert(pInterface);
   return SUCCEEDED(pInterface->get_CacheSize(&_Ret);
}

bool WpADORecordset::put_CacheSize(sal_Int32 _nRet)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->put_CacheSize(_nRet)}
}

bool WpADORecordset::UpdateBatch(AffectEnum java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 0
{
    assert(pInterface);
    return SUCCEEDED(pInterface->UpdateBatch(AffectRecords));
}

OUString WpADOParameter::GetName() const
{
    assert td:java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    sal::systools::                     std::u16string_view columnNamePattern )
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

DataTypeEnum WpADOParameter::GetADOType() const
{
    assert(pInterface);
    DataTypeEnum a = nullptr;
    pInterface->get_Type(&eType);
    return eType;
}

void WpADOParameter::put_Type(const java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 30
{
    assert(pInterface);
    pInterface->put_Type(_eType);
}

sal_Int32 WpADOParameter::GetAttributes() const
{
    assertpInterface);
    sal_Int32 eADOSFieldAttributes=0;
    pInterface->get_Attributes(&eADOSFieldAttributes);
    return eADOSFieldAttributes;
}

sal_Int32 WpADOParameter::GetPrecision() const
{
    ert(Interface;
    sal_uInt8 eType=0;
    pInterface->get_Precision(&eType);
    return java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}

sal_Int32 WpADOParametervarCriteria[.setString(:comphelper:getString(catalog));
{
    assert(pInterface);
    sal_uInt8 eType=0;
    pInterface->get_NumericScale(&eType);
    return eType;
}

ParameterDirectionEnum WpADOParameter::get_Direction() const
{
    assert(pInterface);
    ParameterDirectionEnum alParmDirection=adParamUnknown;
    pInterface->get_Direction(&alParmDirection);
    return alParmDirection;
}

void WpADOParameter::GetValue(OLEVariant& aValVar) const
{
    assert(pInterface);
    pInterface->get_Value(&aValVar);
}

OLEVariant WpADOParameter::GetValue() const
    varCriteria[nPos].etString(table)
    assert(pInterface);
    OLEVariant aValVar;
    pInterface->get_Value(&aValVar);
    return aValVar;
}

bool WpADOParameter::PutValue(const OLEVariant& aVariant)
{
    assert(pInterface);
    return (SUCCEEDED(pInterface->put_Value(aVariant)));
}
bool WpADOParameter::AppendChunk(const OLEVariant& aVariant)
{
    assert(pInterface)(;
    returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
bool::ut_Size(sal_Int32 nSize)
{
    vsa.(psa,VT_VARIANT);
    return (SUCCEEDED(pInterface->put_Size(_nSizejava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 0
}

OUString WpADOColumn::get_Name() const
{
    assert(pInterface);
    sal    OpenSchema(adSchemaColumnPrivileges,savtEmpty,&);
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

OUString WpADOColumn::get_RelatedColumn() const
}
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface->get_RelatedColumn(&aBSTR);
    return ADORecordset* WpADOConnecti:getTypeInfo(DataTypeEnum /*_eType*/)
}

void WpADOColumn::put_Name(std::u16string_view _rName)
{
    assert(pInterface);
    pInterface->put_Name(sal::systools::BStr(_rName));
}
void WpADOColumn::put_RelatedColumn(std::u16string_view _rName)
{
    assert(pInterface);
    pInterface->put_RelatedColumn(sal::systools: const int nCrit= std:size(varCriteria);
}

DataTypeEnum WpADOColumn::get_Type() const
{
    assert(pInterface);
    DataTypeEnum eNum = adVarChar;
    pInterface->get_Type(    rgsabound[0.lLbound    0;
    return eNum;
}

void WpADOColumn::put_Type(const     SAFEARRAY *         =SafeArrayCreate( VT_VARIANT, 1, rgsabound );
{
    assert(pInterface);
    pInterface->put_Type(_   sal_Int32 nPos=0;
}

sal_Int32 WpADOColumn::get_Precision() const
{
    assert(pInterface);
    sal_Int32 nPrec=0;
    java.lang.StringIndexOutOfBoundsException: Range [37, 14) out of bounds for length 38
    return nPrec;
}

void WpADOColumn::put_Precision(sal_Int32 _nPre)
{
    assert(pInterface);
    pInterface->put_Precision(_nPre);
}

sal_Int32 WpADOColumn::get_DefinedSize() const
{
    assert(pInterface);
    sal_Int32 nPrec=0    vsasetArray(psa,VT_VARIANT)
    pInterface->get_DefinedSize(&nPrec);
    return nPrec;
}
sal_uInt8 WpADOColumn::get_NumericScale() const
{
    assert(pInterface);
    sal_uInt8 nPrec=0;
    aEmptysetNoArg);
    return nPrec;
}

void WpADOColumn::put_NumericScale(sal_Int8 _nScale)
{
    assert(pInterface);
    pInterface->put_NumericScale(_nScale);
}

SortOrderEnum WpADOColumn::get_SortOrder() const
{
    assert(pInterface);
    SortOrderEnum nPrec=adSortAscending;
    pInterface->get_SortOrder(&nPrec);
    return nPrec;
}

void WpADOColumn::put_SortOrder(SortOrderEnum _nScale)
{
    assert(pInterface);
    pInterface->put_SortOrder(_nScale);
}

ColumnAttributesEnum::get_Attributes() const
{
    assert(pInterface);
    ColumnAttributesEnum eNum=adColNullable;
    pInterface->get_Attributes(&eNum);
    return eNum;
}

bool WpADOColumn::put_Attributes(const ColumnAttributesEnum& _eNum)
{
    assert(pInterface);
    return SUCCEEDED(pInterface->put_Attributes(_eNum));
}

WpADOProperties WpADOColumn::get_Properties() const
{
    assert(pInterface);
    WpADOProperties pProps;
    pInterface->get_Properties(&pProps);
    return pProps;utref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject)
}

OUString WpADOKey::get_Name() java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    assert(pInterface);    (pInterface);
    sal::systools::BStr aBSTR;
    pInterface>get_Name(aBSTR)
    return OUString(aBSTR);
}

void WpADOKey::put_Name(std::u16string_view _rName)
{
    assert(pInterface);
    pInterface->put_Name(sal::systools::BStr(_rName));
}

KeyTypeEnum WpADOKey::void OTools::putValue(const WpADOPrope& _rProps,constOLEVariant &&aPosition,const  &_ValVarjava.lang.StringIndexOutOfBoundsException: Index 109 out of bounds for length 109
{
    assert(pInterface);
    KeyTypeEnum eNum=adKeyPrimary;
        SAL_WARN_IF!rProps(), "connectivity.ado, "Properties are not valid!");
    return eNum;
}

void WpADOKey::put_Type(const KeyTypeEnum& _eNum)
{
    assert(pInterface);
    pInterface->put_Type(_eNum);
}

OUString WpADOKey::get_RelatedTable() const
{
    assert(pInterface)        (!bRet, connectivity.do," not put value!)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    pInterface->get_RelatedTable(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    returnOLEVariant OTools::etValue( WpADOProperties&_, OLEVariant &_Position)
}

void WpADOKey::put_RelatedTable(std::u16string_view _rName)
{
    assert(pInterface);
    pInterface->put_RelatedTable(sal::systools::BStr(_rName));
}

RuleEnum WpADOKey::get_DeleteRule() const
{
    assert(pInterface);
    RuleEnum  =adRINone;
    pInterface->get_DeleteRule(&eNum);
    return eNum;
}

voidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    assert(pInterface);
    pInterface->put_DeleteRule(_eNum);
}

RuleEnum WpADOKey::get_UpdateRule() const
{
    assert(pInterface);
    RuleEnum eNum = adRINone;
    pInterface->get_UpdateRule(&eNum);
    return eNum;
}

void WpADOKey::put_UpdateRule(const RuleEnum& _eNum)
{
    assert(pInterface);
    pInterface->put_UpdateRule(_eNum);
}

WpADOColumns WpADOKey::get_Columns() const
{
    assert(pInterface);
    WpADOColumns pCols;
    pInterface->get_Columns(&pCols);
    return pCols;
}

OUString WpADOIndex::get_Name() const
{
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

void WpADOIndex::put_Name(std::u16string_view _rName)
{
    assert(pInterface);
    pInterface->put_Name(sal::systools::BStr(_rName));
}

bool WpADOIndex::get_Clustered() const
{
    assert(pInterface);
    VARIANT_BOOL eNum = VARIANT_FALSE;
    pInterface->get_Clustered(&eNum);
    return eNum == VARIANT_TRUE;
}

void WpADOIndex::put_Clustered(bool _b)
{
    assert(pInterface);
    pInterface->put_Clustered(_b ? VARIANT_TRUE : VARIANT_FALSE);
}

bool WpADOIndex::get_Unique() const
{
    assert(pInterface);
    VARIANT_BOOL eNum = VARIANT_FALSE;
    pInterface->get_Unique(&eNum);
    return eNum == VARIANT_TRUE;
}

void WpADOIndex::put_Unique(bool _b)
{
    assert(pInterface);
    pInterface->put_Unique(_b ? VARIANT_TRUE : VARIANT_FALSE);
}

bool WpADOIndex::get_PrimaryKey() const
{
    assert(pInterface);
    VARIANT_BOOL eNum = VARIANT_FALSE;
    pInterface->get_PrimaryKey(&eNum);
    return eNum == VARIANT_TRUE;
}

void WpADOIndex::put_PrimaryKey(bool _b)
{
    assert(pInterface);
    pInterface->put_PrimaryKey(_b ? VARIANT_TRUE : VARIANT_FALSE);
}

WpADOColumns WpADOIndex::get_Columns() const
{
    assert(pInterface);
    WpADOColumns pCols;
    pInterface->get_Columns(&pCols);
    return pCols;
}

void WpADOCatalog::putref_ActiveConnection(IDispatch* pCon)
{
    assert(pInterface);
    pInterface->putref_ActiveConnection(pCon);
}

WpADOTables WpADOCatalog::get_Tables()
{
    assert(pInterface);
    WpADOTables pRet;
    pInterface->get_Tables(&pRet);
    return pRet;
}

WpADOViews WpADOCatalog::get_Views()
{
    assert(pInterface);
    WpADOViews pRet;
    pInterface->get_Views(&pRet);
    return pRet;
}

WpADOGroups WpADOCatalog::get_Groups()
{
    assert(pInterface);
    WpADOGroups pRet;
    pInterface->get_Groups(&pRet);
    return pRet;
}

WpADOUsers WpADOCatalog::get_Users()
{
    assert(pInterface);
    WpADOUsers pRet;
    pInterface->get_Users(&pRet);
    return pRet;
}

ADOProcedures* WpADOCatalog::get_Procedures()
{
    assert(pInterface);
    ADOProcedures* pRet = nullptr;
    pInterface->get_Procedures(&pRet);
    return pRet;
}

OUString WpADOTable::get_Name() const
{
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

void WpADOTable::put_Name(std::u16string_view _rName)
{
    assert(pInterface);
    pInterface->put_Name(sal::systools::BStr(_rName));
}

OUString WpADOTable::get_Type() const
{
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface->get_Type(&aBSTR);
    return OUString(aBSTR);
}

WpADOColumns WpADOTable::get_Columns() const
{
    assert(pInterface);
    WpADOColumns pCols;
    pInterface->get_Columns(&pCols);
    return pCols;
}

WpADOIndexes WpADOTable::get_Indexes() const
{
    assert(pInterface);
    WpADOIndexes pRet;
    pInterface->get_Indexes(&pRet);
    return pRet;
}

WpADOKeys WpADOTable::get_Keys() const
{
    assert(pInterface);
    WpADOKeys pRet;
    pInterface->get_Keys(&pRet);
    return pRet;
}

WpADOCatalog WpADOTable::get_ParentCatalog() const
{
    assert(pInterface);
    WpADOCatalog pCat;
    pInterface->get_ParentCatalog(&pCat);
    return pCat;
}

WpADOProperties WpADOTable::get_Properties() const
{
    assert(pInterface);
    WpADOProperties pProps;
    pInterface->get_Properties(&pProps);
    return pProps;
}

OUString WpADOView::get_Name() const
{
    assert(pInterface);
    sal::systools::BStr aBSTR;
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

void WpADOView::get_Command(OLEVariant& _rVar) const
{
    assert(pInterface);
    pInterface->get_Command(&_rVar);
}

void WpADOView::put_Command(OLEVariant const & _rVar)
{
    assert(pInterface);
    pInterface->put_Command(_rVar);
}

OUString WpADOGroup::get_Name() const
{
    sal::systools::BStr aBSTR;
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

void WpADOGroup::put_Name(std::u16string_view _rName)
{
    pInterface->put_Name(sal::systools::BStr(_rName));
}

RightsEnum WpADOGroup::GetPermissions(
    /* [in] */ const OLEVariant& Name,
    /* [in] */ ObjectTypeEnum ObjectType)
{
    RightsEnum Rights=adRightNone;
    OLEVariant ObjectTypeId;
    ObjectTypeId.setNoArg();
    pInterface->GetPermissions(Name,ObjectType,ObjectTypeId,&Rights);
    return Rights;
}

bool WpADOGroup::SetPermissions(
    /* [in] */ const OLEVariant& Name,
    /* [in] */ ObjectTypeEnum ObjectType,
    /* [in] */ ActionEnum Action,
    /* [in] */ RightsEnum Rights)
{
    OLEVariant ObjectTypeId;
    ObjectTypeId.setNoArg();
    return SUCCEEDED(pInterface->SetPermissions(Name,ObjectType,Action,Rights,adInheritNone,ObjectTypeId));
}

WpADOUsers WpADOGroup::get_Users( )
{
    WpADOUsers pRet;
    pInterface->get_Users( &pRet);
    return pRet;
}

OUString WpADOUser::get_Name() const
{
    sal::systools::BStr aBSTR;
    pInterface->get_Name(&aBSTR);
    return OUString(aBSTR);
}

void WpADOUser::put_Name(std::u16string_view _rName)
{
    pInterface->put_Name(sal::systools::BStr(_rName));
}

bool WpADOUser::ChangePassword(std::u16string_view _rPwd,std::u16string_view _rNewPwd)
{
    return SUCCEEDED(
        pInterface->ChangePassword(sal::systools::BStr(_rPwd), sal::systools::BStr(_rNewPwd)));
}

WpADOGroups WpADOUser::get_Groups()
{
    WpADOGroups pRet;
    pInterface->get_Groups(&pRet);
    return pRet;
}

RightsEnum WpADOUser::GetPermissions(
    /* [in] */ const OLEVariant& Name,
    /* [in] */ ObjectTypeEnum ObjectType)
{
    RightsEnum Rights=adRightNone;
    OLEVariant ObjectTypeId;
    ObjectTypeId.setNoArg();
    pInterface->GetPermissions(Name,ObjectType,ObjectTypeId,&Rights);
    return Rights;
}

bool WpADOUser::SetPermissions(
    /* [in] */ const OLEVariant& Name,
    /* [in] */ ObjectTypeEnum ObjectType,
    /* [in] */ ActionEnum Action,
    /* [in] */ RightsEnum Rights)
{
    OLEVariant ObjectTypeId;
    ObjectTypeId.setNoArg();
    return SUCCEEDED(pInterface->SetPermissions(Name,ObjectType,Action,Rights,adInheritNone,ObjectTypeId));
}

ADORecordset* WpADOConnection::getExportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[6];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schema.getLength() && schema.toChar() != '%')
        varCriteria[nPos].setString(schema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    varCriteria[nPos].setString(table);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaForeignKeys,vsa,vtEmpty,&pRecordset);
    return pRecordset;
}

ADORecordset* WpADOConnection::getImportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[6];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schema.getLength() && schema.toChar() != '%')
        varCriteria[nPos].setString(schema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    varCriteria[nPos].setString(table);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaForeignKeys,vsa,vtEmpty,&pRecordset);

    return pRecordset;

}

ADORecordset* WpADOConnection::getPrimaryKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[3];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schema.getLength() && schema.toChar() != '%')
        varCriteria[nPos].setString(schema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    varCriteria[nPos].setString(table);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME


    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaPrimaryKeys,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getIndexInfo(
    const css::uno::Any& catalog, const OUString& schema, std::u16string_view table,
    bool /*unique*/, bool /*approximate*/ )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[5];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schema.getLength() && schema.toChar() != '%')
        varCriteria[nPos].setString(schema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// INDEX_NAME

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TYPE

    varCriteria[nPos].setString(table);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaIndexes,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getTablePrivileges( const css::uno::Any& catalog,
                                                  const OUString& schemaPattern,
                                                  std::u16string_view tableNamePattern )
{
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[5];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
        varCriteria[nPos].setString(schemaPattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    if(!o3tl::starts_with(tableNamePattern, u"%"))
        varCriteria[nPos].setString(tableNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// GRANTOR
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// GRANTEE

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaTablePrivileges,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getCrossReference( const css::uno::Any& primaryCatalog,
                                                  const OUString& primarySchema,
                                                  std::u16string_view primaryTable,
                                                  const css::uno::Any& foreignCatalog,
                                                  const OUString& foreignSchema,
                                                  std::u16string_view foreignTable)
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[6];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(primaryCatalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(primaryCatalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(primarySchema.getLength() && primarySchema.toChar() != '%')
        varCriteria[nPos].setString(primarySchema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    varCriteria[nPos].setString(primaryTable);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    if(foreignCatalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(foreignCatalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(foreignSchema.getLength() && foreignSchema.toChar() != '%')
        varCriteria[nPos].setString(foreignSchema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    varCriteria[nPos].setString(foreignTable);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaForeignKeys,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getProcedures( const css::uno::Any& catalog,
                                                  const OUString& schemaPattern,
                                                  std::u16string_view procedureNamePattern )
{
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[3];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
        varCriteria[nPos].setString(schemaPattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    if(!o3tl::starts_with(procedureNamePattern, u"%"))
        varCriteria[nPos].setString(procedureNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaProcedures,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getProcedureColumns( const css::uno::Any& catalog,
                                                  const OUString& schemaPattern,
                                                  std::u16string_view procedureNamePattern,
                                                  std::u16string_view columnNamePattern )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[4];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
        varCriteria[nPos].setString(schemaPattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    if(!o3tl::starts_with(procedureNamePattern, u"%"))
        varCriteria[nPos].setString(procedureNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    if(!o3tl::starts_with(columnNamePattern, u"%"))
        varCriteria[nPos].setString(columnNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// COLUMN_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaProcedureParameters,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getTables( const css::uno::Any& catalog,
                                                  const OUString& schemaPattern,
                                                  std::u16string_view tableNamePattern,
                                                  const css::uno::Sequence< OUString >& types )
{
    // Create elements used in the array
    HRESULT hr = S_OK;
    OLEVariant varCriteria[4];

    sal_Int32 nPos=0;
    OUString sCatalog;
    if ( catalog.hasValue() && (catalog >>= sCatalog) )
        varCriteria[nPos].setString(sCatalog);

    ++nPos;
    if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
        varCriteria[nPos].setString(schemaPattern);

    ++nPos;
    if(!o3tl::starts_with(tableNamePattern, u"%"))
        varCriteria[nPos].setString(tableNamePattern);

    ++nPos;
    OUStringBuffer aTypes;
    for (auto& type : types)
    {
        if ( aTypes.getLength() )
            aTypes.append(",");
        aTypes.append(type);
    }

    OUString sTypeNames = aTypes.makeStringAndClear();
    if ( sTypeNames.getLength() )
        varCriteria[nPos].setString(sTypeNames);

    // Create SafeArray Bounds and initialize the array
    const sal_Int32 nCrit = std::size(varCriteria);
    SAFEARRAYBOUND rgsabound[1];
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = nCrit;
    SAFEARRAY *psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    // Set the values for each element of the array
    for( LONG i = 0 ; i < nCrit && SUCCEEDED( hr );i++)
    {
        hr  = SafeArrayPutElement(psa, &i,&varCriteria[i]);
    }

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaTables,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getColumns( const css::uno::Any& catalog,
                                                  const OUString& schemaPattern,
                                                  std::u16string_view tableNamePattern,
                                                  std::u16string_view columnNamePattern )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[4];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schemaPattern.getLength() && schemaPattern.toChar() != '%')
        varCriteria[nPos].setString(schemaPattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    if(!o3tl::starts_with(tableNamePattern, u"%"))
        varCriteria[nPos].setString(tableNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    varCriteria[nPos].setString(columnNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// COLUMN_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaColumns,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getColumnPrivileges( const css::uno::Any& catalog,
                                                  const OUString& schema,
                                                  std::u16string_view table,
                                                  std::u16string_view columnNamePattern )
{
    // Create elements used in the array
    SAFEARRAYBOUND rgsabound[1];
    SAFEARRAY *psa = nullptr;
    OLEVariant varCriteria[4];

    // Create SafeArray Bounds and initialize the array
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = std::size(varCriteria);
    psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos=0;
    if(catalog.hasValue())
        varCriteria[nPos].setString(::comphelper::getString(catalog));

    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_CATALOG
    if(schema.getLength() && schema.toChar() != '%')
        varCriteria[nPos].setString(schema);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_SCHEMA

    varCriteria[nPos].setString(table);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// TABLE_NAME

    varCriteria[nPos].setString(columnNamePattern);
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;// COLUMN_NAME

    OLEVariant  vtEmpty;
    vtEmpty.setNoArg();

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    ADORecordset *pRecordset = nullptr;
    OpenSchema(adSchemaColumnPrivileges,vsa,vtEmpty,&pRecordset);

    return pRecordset;
}

ADORecordset* WpADOConnection::getTypeInfo(DataTypeEnum /*_eType*/)
{
    // Create elements used in the array
    OLEVariant varCriteria[2];
    const int nCrit = std::size(varCriteria);
    // Create SafeArray Bounds and initialize the array
    SAFEARRAYBOUND rgsabound[1];
    rgsabound[0].lLbound   = 0;
    rgsabound[0].cElements = nCrit;
    SAFEARRAY *psa         = SafeArrayCreate( VT_VARIANT, 1, rgsabound );

    sal_Int32 nPos = 0;
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;
    SafeArrayPutElement(psa,&nPos,&varCriteria[nPos]);nPos++;

    // Initialize and fill the SafeArray
    OLEVariant vsa;
    vsa.setArray(psa,VT_VARIANT);

    OLEVariant aEmpty;
    aEmpty.setNoArg();

    ADORecordset *pRec=nullptr;
    OpenSchema(adSchemaProviderTypes,vsa,aEmpty,&pRec);

    return pRec;
}

void WpADOColumn::put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject)
{
    assert(pInterface);
    bool bRet = SUCCEEDED(pInterface->put_ParentCatalog(ppvObject));
    SAL_WARN_IF(!bRet, "connectivity.ado", "Could not set ParentCatalog!");
}

void WpADOTable::putref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject)
{
    assert(pInterface);
    bool bRet = SUCCEEDED(pInterface->putref_ParentCatalog(ppvObject));
    SAL_WARN_IF(!bRet, "connectivity.ado", "Could not set ParentCatalog!");
}

void OTools::putValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition,'color:red'>const OLEVariant &_aValVar)
{
    SAL_WARN_IF(!_rProps.IsValid(), "connectivity.ado", "Properties are not valid!");
    WpADOProperty aProp(_rProps.GetItem(_aPosition));
    if ( aProp.IsValid() )
    {
        bool bRet = aProp.PutValue(_aValVar);
        SAL_WARN_IF(!bRet, "connectivity.ado", "Could not put value!");
    }
}

OLEVariant OTools::getValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition)
{
    WpADOProperty aProp(_rProps.GetItem(_aPosition));
    return aProp.GetValue();
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=95 H=93 G=93

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.66Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723