/**************************************************************
*
* 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.
*
*************************************************************/
package mod._dbaccess;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.DBTools;
import util.utils;
import com.sun.star.beans.XPropertySet;
import com.sun.star.container.XNameAccess;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.sdb.CommandType;
import com.sun.star.sdb.XSingleSelectQueryAnalyzer;
import com.sun.star.sdb.XSingleSelectQueryComposer;
import com.sun.star.sdbc.XConnection;
import com.sun.star.sdbc.XDataSource;
import com.sun.star.sdbcx.XColumnsSupplier;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.Type;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface;
/**
* Test for object which is represented by service
* com.sun.star.sdb.DataSource
.
* * Object implements the following interfaces : *
com::sun::star::sdbc::RowSet
com::sun::star::sdbcx::XRowLocate
com::sun::star::sdbc::XResultSetUpdate
com::sun::star::util::XCancellable
com::sun::star::sdbc::XParameters
com::sun::star::sdbc::XResultSetMetaDataSupplier
com::sun::star::sdbcx::XDeleteRows
com::sun::star::sdbc::XCloseable
com::sun::star::sdbcx::XColumnsSupplier
com::sun::star::sdb::XResultSetAccess
com::sun::star::sdbc::XResultSet
com::sun::star::sdbc::XColumnLocate
com::sun::star::sdbc::XRowSet
com::sun::star::sdb::RowSet
com::sun::star::sdbc::XRowUpdate
com::sun::star::sdb::XRowSetApproveBroadcaster
com::sun::star::beans::XPropertySet
com::sun::star::sdbc::XRow
com::sun::star::sdbc::XWarningsSupplier
com::sun::star::lang::XComponent
com::sun::star::sdbcx::ResultSet
com::sun::star::sdbc::ResultSet
* The following files used by this test : *
util.DBTools
.
* The copy of this file is always made in temp directory for
* testing purposes.* The following parameters in ini-file used by this test: *
test.db.url
- URL to MySQL database.
* For example: mysql://mercury:3306/api_current
test.db.user
- user for MySQL databasetest.db.password
- password for MySQL database* * @see com.sun.star.sdbc.RowSet * @see com.sun.star.sdbcx.XRowLocate * @see com.sun.star.sdbc.XResultSetUpdate * @see com.sun.star.util.XCancellable * @see com.sun.star.sdbc.XParameters * @see com.sun.star.sdbc.XResultSetMetaDataSupplier * @see com.sun.star.sdbcx.XDeleteRows * @see com.sun.star.sdbc.XCloseable * @see com.sun.star.sdbcx.XColumnsSupplier * @see com.sun.star.sdb.XResultSetAccess * @see com.sun.star.sdbc.XResultSet * @see com.sun.star.sdbc.XColumnLocate * @see com.sun.star.sdbc.XRowSet * @see com.sun.star.sdb.RowSet * @see com.sun.star.sdbc.XRowUpdate * @see com.sun.star.sdb.XRowSetApproveBroadcaster * @see com.sun.star.beans.XPropertySet * @see com.sun.star.sdbc.XRow * @see com.sun.star.sdbc.XWarningsSupplier * @see com.sun.star.lang.XComponent * @see com.sun.star.sdbcx.ResultSet * @see com.sun.star.sdbc.ResultSet * @see ifc.sdbc._RowSet * @see ifc.sdbcx._XRowLocate * @see ifc.sdbc._XResultSetUpdate * @see ifc.util._XCancellable * @see ifc.sdbc._XParameters * @see ifc.sdbc._XResultSetMetaDataSupplier * @see ifc.sdbcx._XDeleteRows * @see ifc.sdbc._XCloseable * @see ifc.sdbcx._XColumnsSupplier * @see ifc.sdb._XResultSetAccess * @see ifc.sdbc._XResultSet * @see ifc.sdbc._XColumnLocate * @see ifc.sdbc._XRowSet * @see ifc.sdb._RowSet * @see ifc.sdbc._XRowUpdate * @see ifc.sdb._XRowSetApproveBroadcaster * @see ifc.beans._XPropertySet * @see ifc.sdbc._XRow * @see ifc.sdbc._XWarningsSupplier * @see ifc.lang._XComponent * @see ifc.sdbcx._ResultSet * @see ifc.sdbc._ResultSet */ public class OSingleSelectQueryComposer extends TestCase { private static int uniqueSuffix = 0 ; private DBTools dbTools = null ; private static String origDB = null ; private PrintWriter log = null ; private static String tmpDir = null ; String tableName = null; DBTools.DataSourceInfo srcInf = null; boolean isMySQLDB = false; protected final static String dbSourceName = "OSingleSelectQueryComposerDataSource"; public XConnection conn = null; protected void initialize ( TestParameters Param, PrintWriter log) throws StatusException { } /** * Creating a Testenvironment for the interfaces to be tested. * * Object relations created : *
'xComposer'
for
* {@link ifc.sdb._XSingleSelectQueryAnalyzer} interface
* 'xQueryAna'
for
* {@link ifc.sdb._XSingleSelectQueryComposer} interface
* 'xProp'
for
* {@link ifc.sdb._XSingleSelectQueryComposer} interface
* 'colName'
for
* {@link ifc.sdb._XSingleSelectQueryComposer} interface
* RowSet
instance created.
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
}
}