| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> |
| <script:module xmlns:script="http://openoffice.org/2000/script" script:name="sdb_RowSet" script:language="StarBasic"> |
| |
| |
| '************************************************************************* |
| ' |
| ' Licensed to the Apache Software Foundation (ASF) under one |
| ' or more contributor license agreements. See the NOTICE file |
| ' distributed with this work for additional information |
| ' regarding copyright ownership. The ASF licenses this file |
| ' to you under the Apache License, Version 2.0 (the |
| ' "License"); you may not use this file except in compliance |
| ' with the License. You may obtain a copy of the License at |
| ' |
| ' http://www.apache.org/licenses/LICENSE-2.0 |
| ' |
| ' Unless required by applicable law or agreed to in writing, |
| ' software distributed under the License is distributed on an |
| ' "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ' KIND, either express or implied. See the License for the |
| ' specific language governing permissions and limitations |
| ' under the License. |
| ' |
| '************************************************************************* |
| |
| |
| |
| |
| |
| |
| |
| Sub RunTest() |
| |
| '************************************************************************* |
| ' SERVICE: |
| ' com.sun.star.sdb.RowSet |
| '************************************************************************* |
| On Error Goto ErrHndl |
| Dim bOK As Boolean |
| |
| |
| PropertyTester.TestProperty("ActiveConnection") |
| |
| PropertyTester.TestProperty("DataSourceName") |
| |
| PropertyTester.TestProperty("Command") |
| |
| Test.StartMethod("CommandType") |
| bOK = true |
| oldVal = oObj.CommandType |
| Out.Log("value before: "+oldVal) |
| if (oldVal <> 9999) then |
| oObj.CommandType = 9999 |
| else |
| oObj.CommandType = 10000 |
| endif |
| newVal = oObj.CommandType |
| Out.Log("value after: "+newVal) |
| bOK = bOK AND (newVal <> oldVal) |
| Test.MethodTested("CommandType",bOK) |
| |
| PropertyTester.TestProperty("ActiveCommand") |
| |
| PropertyTester.TestProperty("IgnoreResult") |
| |
| PropertyTester.TestProperty("Filter") |
| |
| PropertyTester.TestProperty("ApplyFilter") |
| |
| PropertyTester.TestProperty("Order") |
| |
| PropertyTester.TestProperty("Privileges") |
| |
| PropertyTester.TestProperty("IsModified") |
| |
| PropertyTester.TestProperty("IsNew") |
| |
| PropertyTester.TestProperty("RowCount") |
| |
| PropertyTester.TestProperty("IsRowCountFinal") |
| |
| PropertyTester.TestProperty("UpdateTableName") |
| |
| PropertyTester.TestProperty("UpdateCatalogName") |
| |
| PropertyTester.TestProperty("UpdateSchemaName") |
| |
| Exit Sub |
| ErrHndl: |
| Test.Exception() |
| bOK = false |
| resume next |
| End Sub |
| </script:module> |