teiid SVN: r1628 - in trunk/test-integration/db/src/main/java/org/teiid/test: client/ctc and 6 other directories.
by teiid-commits@lists.jboss.org
Author: vhalbert(a)redhat.com
Date: 2009-12-09 15:17:56 -0500 (Wed, 09 Dec 2009)
New Revision: 1628
Added:
trunk/test-integration/db/src/main/java/org/teiid/test/client/ExpectedResults.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryReader.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryScenario.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ResultsGenerator.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClient.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/TestProperties.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResult.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResultsSummary.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/TransactionFactory.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/CTCQueryScenario.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ListNestedSortComparator.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/QueryResults.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ResultsHolder.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/TagNames.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLExpectedResults.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLGenerateResults.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryReader.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryVisitationStrategy.java
trunk/test-integration/db/src/main/java/org/teiid/test/client/results/TestResultStat.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/TestLogger.java
Modified:
trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyLoader.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyNames.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionContainer.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionQueryTestCase.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategy.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategyFactory.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DataSourceConnection.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DriverConnection.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceFactory.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataStore.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/JNDITransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/LocalTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OffWrapTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OnWrapTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OptimisticWrapTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/PessimisticWrapTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/StandaloneGlobalTransaction.java
trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/XATransaction.java
Log:
Teiid-781 - adding the CTC framework and related changes to support it
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ExpectedResults.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ExpectedResults.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ExpectedResults.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+import java.io.File;
+import java.sql.ResultSet;
+
+import org.teiid.test.framework.exception.QueryTestFailedException;
+
+/**
+ * An ExpectedResults represents one set of expected results (referred to as the queryset) identified by the {@link #getQuerySetID}.
+ * The <code>queryidentifier</code> identify a unique query and corresponds to the expected results file.
+ *
+ *
+ * @author vanhalbert
+ *
+ */
+public interface ExpectedResults {
+
+ /**
+ * The results location is where expected result files can be found
+ */
+ public static final String PROP_EXPECTED_RESULTS_DIR_LOC = "results.loc";
+
+ /**
+ * {@link #PROP_EXPECTED_RESULTS_ROOT_DIR}, if specified, indicates the root directory
+ * to be prepended to the {@link #PROP_EXPECTED_RESULTS_DIR_LOC} to create the full
+ * directory to find the expected results files.
+ *
+ * This property is normally used during the nightly builds so that the query files
+ * will coming from other projects.
+ */
+
+ public static final String PROP_EXPECTED_RESULTS_ROOT_DIR = "results.dir.loc";
+
+
+
+ /**
+ * Return the unique identifier for this query set.
+ * @return
+ */
+ String getQuerySetID();
+
+
+ /**
+ * Returns the <code>File</code> location for the actual results for the specified
+ * query identifier.
+ * @param queryidentifier
+ * @return File location for actual results for the specified query
+ * @throws QueryTestFailedException
+ *
+ * @since
+ */
+ File getResultsFile(String queryidentifier) throws QueryTestFailedException;
+
+
+ /**
+ * Indicates if a query expects to have an <code>Exception</code> to be thrown when the
+ * query is executed.
+ * @param queryidentifier
+ * @return boolean true if the query expects an exception to be thrown
+ * @throws QueryTestFailedException
+ */
+ boolean isExceptionExpected(String queryidentifier) throws QueryTestFailedException;
+
+
+ Object getMetaData(String queryidentifier);
+
+
+ /**
+ * Called to compare the <code>ResultSet</code> from the executed query to the expected results.
+ * @param queryIdentifier
+ * @param sql
+ * @param resultSet
+ * @param actualException
+ * @param testStatus
+ * @param isOrdered
+ * @param batchSize
+ * @throws QueryTestFailedException
+ */
+ void compareResults(final String queryIdentifier,
+ final String sql,
+ final ResultSet resultSet,
+ final Throwable actualException,
+ final int testStatus,
+ final boolean isOrdered,
+ final int batchSize) throws QueryTestFailedException;
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ExpectedResults.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryReader.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryReader.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryReader.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+import java.util.Collection;
+import java.util.Map;
+
+import org.teiid.test.framework.exception.QueryTestFailedException;
+
+/**
+ * The QueryReader is responsible for providing a set queries for a given <code>querySetID</code>.
+ *
+ * The querySetID identifies a set of queries to executed.
+ * The Map structure is as follows:
+ *
+ * Map: Key - Value
+ * QueryIdentifier SQL Query
+ *
+ *
+ * Where:
+ * - QueryIdentifier uniquely identifies a sql query in the set.
+ * SQL Query is the query to be executed.
+ *
+ * @author vanhalbert
+ *
+ */
+public interface QueryReader {
+
+ /**
+ * {@link #PROP_QUERY_FILES_DIR_LOC} indicates the location to find the query files
+ */
+ public static final String PROP_QUERY_FILES_DIR_LOC = "queryfiles.loc";
+ /**
+ * {@link #PROP_QUERY_FILES_ROOT_DIR}, if specified, indicates the root directory
+ * to be prepended to the {@link #PROP_QUERY_FILES_DIR_LOC} to create the full
+ * directory to find the query files.
+ *
+ * This property is normally used during the nightly builds so that the query files
+ * will coming from other projects.
+ */
+ public static final String PROP_QUERY_FILES_ROOT_DIR = "queryfiles.root.dir";
+
+
+ /**
+ * Return the <code>querySetID</code>s that identifies all the query sets
+ * that are available to execute during this test.
+ *
+ * @return
+ */
+ Collection<String> getQuerySetIDs();
+
+ /**
+ * Return a <code>Map</code> containing the query identifier as the key, and
+ * the value is the query. In most simple cases, the query will be a <code>String</code>
+ * However, complex types (i.e., to execute prepared statements or other arguments), it maybe
+ * some other type.
+ *
+ * @return Map
+ * @throws QueryTestFailedException
+ *
+ * @since
+ */
+ Map<String, Object> getQueries(String querySetID)
+ throws QueryTestFailedException; // key=queryIdentifier
+ // Map<String, String> - key = queryIdentifier
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryReader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryScenario.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryScenario.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryScenario.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client;
+
+import java.util.Collection;
+import java.util.Map;
+import java.util.Properties;
+
+import org.teiid.test.client.TestProperties.RESULT_MODES;
+
+/**
+ * The QueryScenario manages all the information required to run one scenario of tests.
+ * This includes the following:
+ * <li>The queryreader and its query sets to be executed as a scenario </li>
+ * <li>Provides the expected results that correspond to a query set </li>
+ * <li>The results generator that would be used when {@link RESULT_MODES#GENERATE} is specified</li>
+ *
+ * @author vanhalbert
+ *
+ */
+public interface QueryScenario {
+
+
+ /**
+ * Return the identifier for the current scenario
+ * @return String name of scenario
+ */
+ String getQueryScenarioIdentifier() ;
+
+ /**
+ * Return the properties defined for this scenario
+ * @return Properties
+ */
+ Properties getProperties();
+
+ /**
+ * Return a <code>Map</code> containing the query identifier as the key, and
+ * the value is the query. In most simple cases, the query will be a <code>String</code>
+ * However, complex types (i.e., to execute prepared statements or other arguments), it maybe
+ * some other type.
+ * @param querySetID identifies a set of queries
+ * @return Map<String, Object>
+ */
+ Map<String, Object> getQueries(String querySetID);
+
+ /**
+ * Return a <code>Collection</code> of <code>querySetID</code>s that the {@link QueryReader} will be
+ * providing. The <code>querySetID</code> can be used to obtain it associated set of queries by
+ * call {@link #getQueries(String)}
+ * @return Collection of querySetIDs
+ */
+ Collection<String> getQuerySetIDs();
+
+ /**
+ * Return the result mode that was defined by the property {@link TestProperties#PROP_RESULT_MODE}
+ * @return String result mode
+ */
+ String getResultsMode();
+
+ /**
+ * Return the {@link ExpectedResults} for the specified <code>querySetID</code>. These expected
+ * results will be used to compare with the actual results in order to determine success or failure.
+ * @param querySetID
+ * @return ExpectedResults
+ */
+ ExpectedResults getExpectedResults(String querySetID);
+
+ /**
+ * Return the {@link ResultsGenerator} that is to be used to create new sets of expected results.
+ * @return
+ */
+ ResultsGenerator getResultsGenerator() ;
+
+ /**
+ * Return the root output directory where comparison reports or newly generated expected results should be located.
+ */
+ String getOutputDirectory();
+
+
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/QueryScenario.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ResultsGenerator.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ResultsGenerator.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ResultsGenerator.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+import java.io.File;
+import java.sql.ResultSet;
+
+import org.teiid.test.framework.exception.QueryTestFailedException;
+
+/**
+ * The ResultsGenerator represents how a new set of results will be written for a given <code>querySetID</code> and <code>queryIdentifier</code>. The implementor should write out
+ * one result file for each call that is made to {@link #generateQueryResultFile(String, String, String, ResultSet, Throwable, int) },
+ * however, it will control the format of the content.
+ *
+ * The testing process will only generate a new result file when the result mode is {@link TestClientTransaction.RESULT_MODES#GENERATE}
+ *
+ * @author vanhalbert
+ *
+ */
+public interface ResultsGenerator {
+ /**
+ * The {@link #PROP_GENERATE_DIR} property indicates where newly generated results
+ * files should be written to. The newly generated files should be written to
+ * a different location than the existing expected results.
+ */
+ public static final String PROP_GENERATE_DIR = "generatedir"; //$NON-NLS-1$
+
+ /**
+ * Return the location that output files are written to.
+ *
+ * @return
+ *
+ * @since
+ */
+ String getOutputDir();
+
+ /**
+ * Return the location that results will be generated to.
+ *
+ * @return
+ *
+ * @since
+ */
+ String getGenerateDir();
+
+ void generateQueryResultFile(String querySetID, String queryIdentfier,
+ String query, ResultSet result, Throwable queryError, int testStatus)
+ throws QueryTestFailedException;
+
+ String generateErrorFile(final String querySetID,
+ final String queryIdentifier, final String sql,
+ final ResultSet resultSet, final Throwable queryError,
+ final File expectedResultsFile) throws QueryTestFailedException;
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ResultsGenerator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClient.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClient.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClient.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,333 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+import java.io.File;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.junit.Assert;
+import org.teiid.test.client.ctc.CTCQueryScenario;
+import org.teiid.test.framework.ConfigPropertyLoader;
+import org.teiid.test.framework.TestLogger;
+import org.teiid.test.framework.TransactionContainer;
+import org.teiid.test.framework.connection.DataSourceConnection;
+import org.teiid.test.framework.connection.DriverConnection;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
+
+import com.metamatrix.common.util.PropertiesUtils;
+import com.metamatrix.core.util.FileUtils;
+import com.metamatrix.core.util.StringUtil;
+
+
+/**
+ * TestClient is the starter class for running bulk sql testing against a Teiid server.
+ * The bulk testing is about testing a lot of queries against a predefined set of
+ * expected results and providing error files when comparisons don't match.
+ * The process
+ * The bulk testing, in its simplicity, will do the following:
+ * <li>use a {@link QueryReader} to read the queries that it will execute</li>
+ * <li>based on the results of each query executed, the process will compare the results
+ * to the {@link ExpectedResults }.</li>
+ * <li>If the {@link TestProperties#PROP_RESULT_MODE} option is set to {@link TestProperties.RESULT_MODES#GENERATE}
+ * then the process will not perform a comparison, but generate a new set of expected result files that
+ * can in turn be used as the
+ * @author vanhalbert
+ *
+ */
+public class TestClient {
+
+ public static final SimpleDateFormat TSFORMAT = new SimpleDateFormat(
+ "HH:mm:ss.SSS"); //$NON-NLS-1$
+
+
+ public TestClient() {
+
+
+ }
+
+ public static void main(String[] args) {
+
+ TestClient tc = new TestClient();
+ tc.runTest();
+
+
+ }
+
+ public void runTest() {
+
+ try {
+
+ testScenarios();
+
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+
+ }
+
+ private void testScenarios() throws Exception {
+
+
+// String teiid_home = deployProperties.getProperty("teiid.home");
+// File f = new File(teiid_home);
+// if (f.exists() && f.isDirectory()) {
+// FileUtils.removeDirectoryAndChildren(f);
+// }
+
+ String scenaios_dir = ConfigPropertyLoader.getInstance().getProperty(TestProperties.PROP_SCENARIO_DIR);
+ if (scenaios_dir == null) {
+ throw new TransactionRuntimeException("scenariodir property was not defined");
+ }
+
+ File files[] = FileUtils.findAllFilesInDirectoryHavingExtension(scenaios_dir,
+ ".properties");
+ if (files == null || files.length == 0)
+ throw new QueryTestFailedException((new StringBuilder()).append(
+ "No scenario files found in directory ").append(scenaios_dir)
+ .toString());
+
+
+ // List<String> queryFiles = new ArrayList<String>(files.length);
+ for (int i = 0; i < files.length; i++) {
+ runTest(files[i]);
+ }
+
+
+ }
+
+
+ private void runTest(File scenariofile) throws Exception {
+
+ String scenario_name = FileUtils.getBaseFileNameWithoutExtension(scenariofile.getAbsolutePath());
+
+ TestLogger.log("Starting scenario " + scenario_name);
+
+ Properties sc_props = PropertiesUtils.load(scenariofile.getAbsolutePath());
+// updateProps(sc_props);
+
+ // add the scenario props to the configuration
+ ConfigPropertyLoader.getInstance().setProperties(sc_props);
+
+ // update the URL with the vdb that is to be used
+ String url = ConfigPropertyLoader.getInstance().getProperty(DriverConnection.DS_URL);
+ String vdb_name = ConfigPropertyLoader.getInstance().getProperty(DataSourceConnection.DS_DATABASENAME);
+
+ Assert.assertNotNull(DataSourceConnection.DS_DATABASENAME + " property not set, need it for the vdb name", vdb_name);
+ url = StringUtil.replace(url, "${vdb}", vdb_name);
+
+ ConfigPropertyLoader.getInstance().setProperty(DriverConnection.DS_URL, url);
+
+ QueryScenario set = new CTCQueryScenario(scenario_name, ConfigPropertyLoader.getInstance().getProperties());
+
+ TransactionContainer tc = getTransactionContainter();
+
+ runTestCase(set, tc);
+
+ TestLogger.log("Completed scenario " + scenario_name);
+ }
+
+ private void runTestCase(QueryScenario queryset, TransactionContainer tc) throws Exception {
+ String querySetID = null;
+ Map<String, Object> queryTests = null;
+
+ TestClientTransaction userTxn = new TestClientTransaction(queryset);
+
+ Iterator<String> qsetIt = queryset.getQuerySetIDs().iterator();
+
+ TestResultsSummary summary = new TestResultsSummary();
+
+ // iterate over the query set ID's, which there
+ // should be 1 for each file to be processed
+ while (qsetIt.hasNext()) {
+ querySetID = qsetIt.next();
+
+ TestLogger.logInfo("Start Query Set [" + querySetID + "]");
+
+ queryTests = queryset.getQueries(querySetID);
+
+ // the iterator to process the query tests
+ Iterator<String> queryTestIt = null;
+ queryTestIt = queryTests.keySet().iterator();
+
+ List<TestResult> testResults = new ArrayList<TestResult>();
+
+
+
+ long beginTS = System.currentTimeMillis();
+ long endTS = 0;
+
+ while (queryTestIt.hasNext()) {
+
+ String queryidentifier = queryTestIt.next();
+
+ Object sqlObject = queryTests.get(queryidentifier);
+
+ userTxn.init(querySetID, queryidentifier, sqlObject);
+
+ // run test
+
+ tc.runTransaction(userTxn);
+
+ testResults.add(userTxn.getTestResult());
+
+ }
+
+ endTS = System.currentTimeMillis();
+
+ TestLogger.logInfo("End Query Set [" + querySetID + "]");
+
+ printResultsForSet(summary, testResults, querySetID, queryset, beginTS, endTS);
+
+ testResults.clear();
+ }
+
+
+ summary.printTotals(queryset.getResultsGenerator().getOutputDir(), queryset.getQueryScenarioIdentifier());
+
+ // cleanup all connections created for this test.
+ userTxn.getConnectionStrategy().shutdown();
+ ConfigPropertyLoader.reset();
+
+
+
+ }
+
+
+ protected TransactionContainer getTransactionContainter() {
+ try {
+ return TransactionFactory.create(ConfigPropertyLoader.getInstance());
+ } catch (QueryTestFailedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ throw new TransactionRuntimeException(e);
+ }
+
+ }
+
+
+ private void printResultsForSet(final TestResultsSummary summary ,final List<TestResult> testResults, final String querySetID, final QueryScenario querySet, final long beginTS, final long endTS) {
+ TestLogger.logDebug("Print results for Query Set [" + querySetID
+ + "]");
+ try {
+ summary.printResults(querySet.getQueryScenarioIdentifier(),
+ testResults,
+ querySet.getProperties(),
+ beginTS, endTS, 1, 1,
+ querySet.getResultsGenerator().getOutputDir(),
+ querySetID);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ testResults.clear();
+
+ }
+
+ private void updateProps(Properties props) {
+ Properties configProps = ConfigPropertyLoader.getInstance().getProperties();
+
+ Iterator it = props.keySet().iterator();
+ while (it.hasNext()) {
+ String key = (String) it.next();
+ String value = props.getProperty( key );
+ String newValue = null;
+ int loc = value.indexOf("${");
+ while (loc >= -1) {
+
+ String prop_name = value.substring(loc, value.indexOf("}", loc) );
+
+ String prop_value = configProps.getProperty(prop_name);
+ if (prop_value != null) {
+
+ String newvalue = StringUtil.replace(value, "${" + prop_name + "}", prop_value);
+
+
+ }
+ loc = value.indexOf("${", loc + 1);
+
+
+ }
+ if (newValue != null) {
+ ConfigPropertyLoader.getInstance().setProperty(key, newValue);
+ }
+
+ }
+
+ }
+
+
+
+
+ /**
+ * One-time synchronization barrier that allows dynamically reducing the
+ * number of threads expected at the barrier. Captures the timestamp when
+ * all the expected threads arrive at the barrier.
+ *
+ * @since 4.3
+ */
+// private static final class TimestampedSynchronizationBarrier {
+// private int expectedThreads;
+// private int currentThreads = 0;
+// private long leaveBarrierTimestamp = -1;
+//
+// private TimestampedSynchronizationBarrier(int expectedThreads) {
+// this.expectedThreads = expectedThreads;
+// }
+//
+// private synchronized void barrier(final long waitTime) {
+// if ((++currentThreads) == expectedThreads) {
+// // If all the expected threads have arrived at the barrier, then
+// // wake them all.
+// leaveBarrierTimestamp = System.currentTimeMillis();
+// this.notifyAll();
+// } else {
+// // Otherwise, wait for other threads to arrive.
+// try {
+// wait(waitTime);
+// } catch (InterruptedException e) {
+// System.err
+// .println("A thread was unexpectedly interrupted while waiting for other threads to enter the barrier. The measurements for this test will not be accurate.");
+// e.printStackTrace(System.err);
+// // Let the thread continue on its merry way
+// }
+// }
+// }
+//
+// private synchronized void decrementExpectedThreads() {
+// if ((--expectedThreads) == currentThreads) {
+// // If all the remaining threads are already waiting, then wake
+// // them all.
+// leaveBarrierTimestamp = System.currentTimeMillis();
+// this.notifyAll();
+// }
+// }
+// }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,275 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+import org.teiid.test.client.results.TestResultStat;
+import org.teiid.test.framework.TestLogger;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
+import org.teiid.test.framework.query.AbstractQueryTransactionTest;
+
+/**
+ * TestClientTransaction
+ *
+ * @author vanhalbert
+ *
+ */
+public class TestClientTransaction extends AbstractQueryTransactionTest {
+
+ private QueryScenario querySet = null;
+ private ExpectedResults expectedResults = null;
+
+ // the current querySet info
+ private String querySetID = null;
+ private String queryIdentifier = null;
+ private Object queryObject = null;
+
+ private long endTS = 0;
+ private long beginTS = 0;
+
+ private int testStatus = TestResult.RESULT_STATE.TEST_SUCCESS;
+
+ private TestResult rs = null;
+
+ private boolean errorExpected = false;
+
+ private Throwable resultException = null;
+
+ private String sql = null;
+
+ public TestClientTransaction(QueryScenario querySet) {
+ super(querySet.getQueryScenarioIdentifier());
+ this.querySet = querySet;
+
+ }
+
+ public void init(String querySetID, String queryIdentifier, Object query) {
+ this.querySetID = querySetID;
+ this.queryIdentifier = queryIdentifier;
+ this.queryObject = query;
+
+ this.expectedResults = null;
+ endTS = 0;
+ beginTS = 0;
+
+ testStatus = TestResult.RESULT_STATE.TEST_SUCCESS;
+
+ rs = null;
+
+ errorExpected = false;
+ resultException = null;
+
+ }
+
+ @Override
+ public void before() {
+ // TODO Auto-generated method stub
+ super.before();
+
+ this.expectedResults = this.querySet
+ .getExpectedResults(this.querySetID);
+
+ try {
+ this.errorExpected = expectedResults
+ .isExceptionExpected(this.queryIdentifier);
+ } catch (QueryTestFailedException e) {
+ // TODO Auto-generated catch block
+ throw new TransactionRuntimeException("ProgramError: "
+ + e.getMessage());
+ }
+
+ }
+
+ @Override
+ public void testCase() throws Exception {
+ if (this.queryObject instanceof String) {
+ this.sql = (String) this.queryObject;
+ executeTest(this.querySetID, this.queryIdentifier, sql);
+ }
+
+ // TODO: support object types for queries (i.e., arguments for prepared statements, etc)
+
+ }
+
+ protected void executeTest(String querySetID, String queryidentifier,
+ String sql) throws Exception {
+
+
+ TestLogger.logDebug("execute: " + sql);
+
+ // int expectedRowCount=-1;
+ TestLogger.logDebug("expected error: " + this.errorExpected);
+
+ try {
+ System.out.println("QueryID: " + this.querySetID + ":"
+ + this.queryIdentifier);
+ // need to set this so the underlying query execution handles an
+ // error properly.
+
+ beginTS = System.currentTimeMillis();
+ execute(sql);
+
+ } catch (Throwable t) {
+
+ resultException = t;
+
+ } finally {
+ // Capture resp time
+ endTS = System.currentTimeMillis();
+ }
+
+ }
+
+ @Override
+ public void after() {
+ // TODO Auto-generated method stub
+ super.after();
+
+ String errorfile = null;
+
+ // TODO: uncomment
+ ResultSet erResultSet = null;
+ // this.internalResultSet;
+
+ ResultsGenerator genResults = this.querySet.getResultsGenerator();
+
+ resultException = (this.getLastException() != null ? this
+ .getLastException() : resultException);
+
+ if (resultException != null) {
+ if (this.exceptionExpected()) {
+ testStatus = TestResult.RESULT_STATE.TEST_EXPECTED_EXCEPTION;
+ } else {
+ testStatus = TestResult.RESULT_STATE.TEST_EXCEPTION;
+ }
+
+ }
+
+ if (this.querySet.getResultsMode().equalsIgnoreCase(
+ TestProperties.RESULT_MODES.COMPARE)) {
+ if (testStatus != TestResult.RESULT_STATE.TEST_EXCEPTION) {
+ try {
+ this.expectedResults.compareResults(this.queryIdentifier,
+ sql, this.internalResultSet, resultException,
+ testStatus, isOrdered(sql), this.fetchSize - 1);
+ } catch (QueryTestFailedException qtf) {
+ resultException = (resultException != null ? resultException
+ : qtf);
+ testStatus = TestResult.RESULT_STATE.TEST_EXCEPTION;
+
+ }
+ }
+
+ if (testStatus == TestResult.RESULT_STATE.TEST_EXCEPTION) {
+ try {
+ genResults.generateErrorFile(querySetID,
+ this.queryIdentifier, sql, this.internalResultSet,
+ resultException, expectedResults
+ .getResultsFile(this.queryIdentifier));
+
+ } catch (QueryTestFailedException qtfe) {
+ throw new TransactionRuntimeException(qtfe.getMessage());
+ }
+ }
+
+ } else if (this.querySet.getResultsMode().equalsIgnoreCase(
+ TestProperties.RESULT_MODES.GENERATE)) { //$NON-NLS-1$
+
+ try {
+ genResults.generateQueryResultFile(querySetID,
+ this.queryIdentifier, sql, erResultSet,
+ resultException, testStatus);
+ } catch (QueryTestFailedException qtfe) {
+ throw new TransactionRuntimeException(qtfe.getMessage());
+ }
+
+ } else {
+ // just create the error file for any failures
+ if (testStatus == TestResult.RESULT_STATE.TEST_EXCEPTION) {
+ try {
+ genResults.generateErrorFile(querySetID,
+ this.queryIdentifier, sql, this.internalResultSet,
+ resultException, expectedResults
+ .getResultsFile(this.queryIdentifier));
+
+ } catch (QueryTestFailedException qtfe) {
+ throw new TransactionRuntimeException(qtfe.getMessage());
+ }
+ }
+ }
+
+ rs = new TestResultStat(querySetID, this.queryIdentifier, sql,
+ testStatus, beginTS, endTS, resultException, errorfile);
+
+ }
+
+ public TestResult getTestResult() {
+ return this.rs;
+
+ }
+
+ @Override
+ protected Statement createStatement() throws SQLException {
+ return this.internalConnection.createStatement(
+ ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
+ }
+
+ // need to override this method because the abstract logic for throwing
+ // exceptions depends on this
+ @Override
+ public boolean exceptionExpected() {
+ // TODO Auto-generated method stub
+ return this.errorExpected;
+ }
+
+ private boolean isOrdered(String sql) {
+
+ if (sql.toLowerCase().indexOf(" order by ") > 0) {
+ return true;
+ }
+ return false;
+
+ }
+
+ /**
+ * Override the super cleanup() so that the connection to Teiid is not
+ * cleaned up at this time.
+ *
+ * This will be handled after all queries in the set have been executed.
+ *
+ * @see TestClient#runTest();
+ *
+ */
+ @Override
+ public void cleanup() {
+ //
+ // NOTE: do not cleanup TestResults because {@link #getTestResult} is called
+ // after cleanup
+
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestProperties.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/TestProperties.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/TestProperties.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client;
+
+/**
+ * @author vanhalbert
+ *
+ */
+public class TestProperties {
+
+ /**
+ * PROP_SCENARIO_DIR indicates where to find the scenario properties files.
+ * These files must have the .properties extension.
+ */
+ public static final String PROP_SCENARIO_DIR = "scenariodir";
+
+ /**
+ * PROP_RESULT_MODE controls what to do with the execution results.
+ *
+ * @see ExpectedResults.RESULT_MODES for the options.
+ */
+ public static final String PROP_RESULT_MODE = "resultmode";
+
+ /**
+ * All test options will produce the following basic information at the end
+ * of the test process: <li>how many queries were run</li> <li>how many were
+ * successfull</li> <li>how many errored</li> <li>the execution time for
+ * each query</li> <li>total time for all the tests to run</li>
+ */
+
+ public interface RESULT_MODES {
+ /**
+ * NONE - will provide the basic information
+ */
+ static final String NONE = "none";
+ /**
+ * COMPARE - will provide the following information, in addition to the
+ * basic information <li>compare actual results with expected results
+ * and produce error files where expected results were not accomplished</li>
+ */
+ static final String COMPARE = "compare";
+ /**
+ * GENERATE - will provide the following information, in addition to the
+ * basic information <li>will generate a new set of expected results
+ * files to the defined PROP_GENERATAE_DIR directory.
+ */
+ static final String GENERATE = "generate";
+ }
+
+ /**
+ * The {@link #PROP_OUTPUT_DIR} property indicates the root directory that output
+ * files will be written.
+ */
+ public static final String PROP_OUTPUT_DIR = "outputdir"; //$NON-NLS-1$
+
+
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestProperties.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResult.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResult.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResult.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,152 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+/**
+ * The TestResult represents the results from a single query.
+ *
+ * @author vanhalbert
+ *
+ */
+public interface TestResult {
+
+ /**
+ * The RESULT_STATE is the value assigned based the result of the executed
+ * query test
+ *
+ * @author vanhalbert
+ *
+ */
+ public interface RESULT_STATE {
+
+ /**
+ * TEST_SUCCESS - indicates the executed query performed as expected
+ */
+ public static final int TEST_SUCCESS = 0;
+ /**
+ * TEST_EXCEPTION - indicates an unexpected exception occurred during
+ * the execution of the query
+ */
+ public static final int TEST_EXCEPTION = 1;
+ /**
+ * TEST_EXPECTED_EXCEPTION - indicates the expected result was suppose
+ * to an exception, how, the query executed without error
+ */
+ public static final int TEST_EXPECTED_EXCEPTION = 4;
+ }
+
+ public interface RESULT_STATE_STRING {
+ /**
+ * The string value for when a
+ * {@link TestResult.RESULT_STATE#TEST_SUCCESS occurs
+ */
+ public static final String PASS = "pass";
+ /**
+ * The string value for when a
+ * {@link TestResult.RESULT_STATE#TEST_EXCEPTION occurs
+ */
+ public static final String FAIL = "fail";
+ /**
+ * The string value for when a
+ * {@link TestResult.RESULT_STATE#TEST_EXPECTED_EXCEPTION occurs
+ */
+ public static final String FAIL_EXPECTED_EXCEPTION = "fail-expected_exception";
+
+ /**
+ * The string value for when a status occurs that hasn't been defined
+ */
+ public static final String UNKNOWN = "unknown";
+
+ }
+
+ /**
+ * Return the id the uniquely identifies the query set.
+ *
+ * @return String is the query set id
+ */
+ String getQuerySetID();
+
+ /**
+ * Return the id that uniquely identifies the query within the query set
+ * {@link #getQuerySetID()}.
+ *
+ * @return
+ *
+ * @since
+ */
+ String getQueryID();
+
+ /**
+ * Return the query that was executed in order to produce this result.
+ *
+ * @return
+ *
+ * @since
+ */
+ String getQuery();
+
+ /**
+ * Return the status of the execution of this query {@link #getQuery();
+ * @see TestResult.RESULT_STATE
+ * @return
+ *
+ * @since
+ */
+ int getStatus();
+
+ String getResultStatusString();
+
+ /**
+ * If the result from this query produced an exception, then this method
+ * should return the <code>String</code> representation of the exception.
+ *
+ * @return
+ *
+ * @since
+ */
+ String getExceptionMsg();
+
+ /**
+ * Return the time (in a long value) that this query started.
+ *
+ * @return long representation of begin time
+ *
+ * @since
+ */
+ long getBeginTS();
+
+ /**
+ * Return the time (in a long value) that this query ended
+ *
+ * @return long representation of end time
+ *
+ * @since
+ */
+ long getEndTS();
+
+ /**
+ * @return Returns the name of errorfile where the error results were
+ * written.
+ */
+ String getErrorfile();
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResult.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResultsSummary.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResultsSummary.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResultsSummary.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,527 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.PrintStream;
+import java.text.SimpleDateFormat;
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+public class TestResultsSummary {
+ private static final SimpleDateFormat FILE_NAME_DATE_FORMATER = new SimpleDateFormat(
+ "yyyyMMdd_HHmmss"); //$NON-NLS-1$
+
+ private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
+
+ // totals for scenario
+ private int total_queries = 0;
+ private int total_pass = 0;
+ private int total_fail = 0;
+ private int total_scenarios = 0;
+
+ private static PrintStream getSummaryStream(String outputDir,
+ String summaryName) throws IOException {
+ File summaryFile = createSummaryFile(outputDir, summaryName);
+ OutputStream os = new FileOutputStream(summaryFile);
+ os = new BufferedOutputStream(os);
+ return new PrintStream(os);
+ }
+
+ /**
+ * Overloaded to overwrite the already existing files
+ */
+ private static PrintStream getSummaryStream(String outputDir,
+ String summaryName, boolean overwrite) throws IOException {
+
+ // Check Extension is already specified for the file, if not add the
+ // .txt
+ if (summaryName.indexOf(".") == -1) { //$NON-NLS-1$
+ summaryName = summaryName + ".txt"; //$NON-NLS-1$
+ }
+
+ File summaryFile = new File(outputDir, summaryName);
+ if (summaryFile.exists() && !overwrite) {
+ throw new IOException(
+ "Summary file already exists: " + summaryFile.getName()); //$NON-NLS-1$
+ }
+ summaryFile.createNewFile();
+ OutputStream os = new FileOutputStream(summaryFile);
+ os = new BufferedOutputStream(os);
+ return new PrintStream(os);
+ }
+
+ private static File createSummaryFile(String outputDir, String summaryName)
+ throws IOException {
+ File summaryFile = new File(outputDir, summaryName + ".txt"); //$NON-NLS-1$
+ if (summaryFile.exists()) {
+ System.err
+ .println("Summary file already exists: " + summaryFile.getName()); //$NON-NLS-1$
+ throw new IOException(
+ "Summary file already exists: " + summaryFile.getName()); //$NON-NLS-1$
+ }
+
+ try {
+ summaryFile.createNewFile();
+ } catch (IOException e) {
+ System.err
+ .println("Failed to create summary file at: " + summaryFile.getAbsolutePath()); //$NON-NLS-1$
+ throw new IOException(
+ "Failed to create summary file at: " + summaryFile.getAbsolutePath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ return summaryFile;
+ }
+
+ private static void printQueryTestResults(PrintStream outputStream,
+ long testStartTS, long endTS, int numberOfClients,
+ SimpleDateFormat formatter, Collection results) {
+ outputStream.println("Query Test Results"); //$NON-NLS-1$
+ outputStream.println("=================="); //$NON-NLS-1$
+ outputStream.println("Start Time: " + new Date(testStartTS)); //$NON-NLS-1$
+ outputStream.println("End Time: " + new Date(endTS)); //$NON-NLS-1$
+ outputStream
+ .println("Elapsed Time: " + ((endTS - testStartTS) / 1000) + " seconds"); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream.println("Number of Clients: " + numberOfClients); //$NON-NLS-1$
+
+ Map passFailGenMap = getPassFailGen(results);
+ outputStream
+ .println("Number of Queries: " + passFailGenMap.get("queries")); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream
+ .println("Number Passed : " + passFailGenMap.get("pass")); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream
+ .println("Number Failed : " + passFailGenMap.get("fail")); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream.println("Number Generated : " + passFailGenMap.get("gen")); //$NON-NLS-1$ //$NON-NLS-2$
+
+ ResponseTimes responseTimes = calcQueryResponseTimes(results);
+ outputStream.println("QPS : " + responseTimes.qps); //$NON-NLS-1$
+
+ outputStream.println("Ave First Resp : " + responseTimes.first); //$NON-NLS-1$
+
+ outputStream.println("Ave Full Resp : " + responseTimes.full); //$NON-NLS-1$
+
+ Iterator resultItr = results.iterator();
+ while (resultItr.hasNext()) {
+ TestResult stat = (TestResult) resultItr.next();
+ writeQueryResult(outputStream, formatter, stat);
+ }
+
+ }
+
+ private static Map getPassFailGen(Collection results) {
+ Map passFailGenMap = new HashMap();
+ int queries = 0;
+ int pass = 0;
+ int fail = 0;
+ int gen = 0;
+
+ for (Iterator resultsItr = results.iterator(); resultsItr.hasNext();) {
+ TestResult stat = (TestResult) resultsItr.next();
+ ++queries;
+ switch (stat.getStatus()) {
+ case TestResult.RESULT_STATE.TEST_EXCEPTION:
+ ++fail;
+ break;
+ case TestResult.RESULT_STATE.TEST_SUCCESS:
+ ++pass;
+ break;
+ case TestResult.RESULT_STATE.TEST_EXPECTED_EXCEPTION:
+ ++pass;
+ break;
+ }
+ }
+ passFailGenMap.put("queries", Integer.toString(queries)); //$NON-NLS-1$
+ passFailGenMap.put("pass", Integer.toString(pass)); //$NON-NLS-1$
+ passFailGenMap.put("fail", Integer.toString(fail)); //$NON-NLS-1$
+ // passFailGenMap.put("gen", Integer.toString(gen)); //$NON-NLS-1$
+ return passFailGenMap;
+ }
+
+ private void addTotalPassFailGen(Collection results) {
+
+ total_scenarios++;
+ for (Iterator resultsItr = results.iterator(); resultsItr.hasNext();) {
+ TestResult stat = (TestResult) resultsItr.next();
+ ++total_queries;
+ switch (stat.getStatus()) {
+ case TestResult.RESULT_STATE.TEST_EXCEPTION:
+ ++total_fail;
+ break;
+ case TestResult.RESULT_STATE.TEST_SUCCESS:
+ ++total_pass;
+ break;
+ case TestResult.RESULT_STATE.TEST_EXPECTED_EXCEPTION:
+ ++total_pass;
+ break;
+ }
+ }
+
+ }
+
+ /**
+ * Print test results.
+ *
+ * @param testStartTS
+ * The test start time.
+ * @param endTS
+ * The test end time.
+ * @throws Exception
+ */
+ public void printResults(String testname,
+ List<TestResult> testResults, Properties props, long testStartTS,
+ long endTS, int numberOfClients, int runNumber, String outputDir,
+ String querySetID) throws Exception {
+ // CombinedTestClient.log("Calculating and printing result statistics"); //$NON-NLS-1$
+ if (testResults.size() > 0) {
+ // Create output file
+ String outputFileName = generateFileName(querySetID, System
+ .currentTimeMillis(), runNumber);
+ // CombinedTestClient.log("Creating output file: " + outputFileName); //$NON-NLS-1$
+ PrintStream outputStream = null;
+ PrintStream overwriteStream = null;
+ try {
+ outputStream = getSummaryStream(outputDir, outputFileName);
+ overwriteStream = getSummaryStream(outputDir, querySetID, true); //$NON-NLS-1$
+ } catch (IOException e) {
+ // logError("Unable to get output stream for file: " + outputFileName); //$NON-NLS-1$
+ throw e;
+ }
+ addTotalPassFailGen(testResults);
+ // Text File output
+ printQueryTestResults(outputStream, testStartTS, endTS,
+ numberOfClients, TestClient.TSFORMAT, testResults);
+ printQueryTestResults(overwriteStream, testStartTS, endTS,
+ numberOfClients, TestClient.TSFORMAT, testResults);
+
+ // HTML Vesion of output
+ PrintStream htmlStream = getSummaryStream(outputDir, querySetID
+ + ".html", true); //$NON-NLS-1$
+ printHtmlQueryTestResults(htmlStream, testStartTS, endTS,
+ numberOfClients, TestClient.TSFORMAT, testResults);
+ htmlStream.close();
+
+ // Wiki Update
+ // CombinedTestUtil.publishResultsToWiki(props, outputDir+File.separator+querySetID+".html", testStartTS, endTS, numberOfClients, testResults); //$NON-NLS-1$ //$NON-NLS-2$
+
+ // Print results according to test type
+ // switch (CombinedTestClient.TEST_TYPE) {
+ // case CombinedTestClient.TEST_TYPE_QUERY:
+ // // Text File output
+ // printQueryTestResults(outputStream, testStartTS, endTS,
+ // numberOfClients, TestClientTransaction.TSFORMAT, testResults);
+ // printQueryTestResults(overwriteStream, testStartTS, endTS,
+ // numberOfClients, TestClientTransaction.TSFORMAT, testResults);
+ //
+ // // HTML Vesion of output
+ // PrintStream htmlStream = getSummaryStream(outputDir, CONFIG_ID+".html", true); //$NON-NLS-1$
+ // CombinedTestUtil.printHtmlQueryTestResults(htmlStream,
+ // testStartTS, endTS, numberOfClients,
+ // TestClientTransaction.TSFORMAT, testResults);
+ // htmlStream.close();
+ //
+ // // Wiki Update
+ // CombinedTestUtil.publishResultsToWiki(props, outputDir+File.separator+CONFIG_ID+".html", testStartTS, endTS, numberOfClients, testResults); //$NON-NLS-1$ //$NON-NLS-2$
+ // break;
+ // case CombinedTestClient.TEST_TYPE_LOAD:
+ // CombinedTestUtil.printLoadTestResults(outputStream, testStartTS,
+ // endTS, numberOfClients, TestClientTransaction.TSFORMAT,
+ // testResults);
+ // CombinedTestUtil.printLoadTestResults(overwriteStream,
+ // testStartTS, endTS, numberOfClients,
+ // TestClientTransaction.TSFORMAT, testResults);
+ // break;
+ // case CombinedTestClient.TEST_TYPE_PERF:
+ // CombinedTestUtil.printPerfTestResults(outputStream, testStartTS,
+ // endTS, numberOfClients, CONF_LVL, TestClientTransaction.TSFORMAT,
+ // testResults);
+ // CombinedTestUtil.printPerfTestResults(overwriteStream,
+ // testStartTS, endTS, numberOfClients, CONF_LVL,
+ // TestClientTransaction.TSFORMAT, testResults);
+ // break;
+ // case CombinedTestClient.TEST_TYPE_PROF:
+ // CombinedTestUtil.printProfTestResults();
+ // break;
+ // default:
+ // break;
+ // }
+
+ // CombinedTestClient.log("Closing output stream"); //$NON-NLS-1$
+ outputStream.close();
+ overwriteStream.close();
+ } else {
+ // logError("No results to print."); //$NON-NLS-1$
+ }
+ }
+
+ public void printTotals(String outputDir, String scenario_name) throws Exception {
+
+ PrintStream outputStream = null;
+ try {
+ outputStream = getSummaryStream(outputDir, "TotalSummary_" + scenario_name, true); //$NON-NLS-1$
+ } catch (IOException e) {
+ // logError("Unable to get output stream for file: " + outputFileName); //$NON-NLS-1$
+ throw e;
+ }
+
+ outputStream.println("Scenario " + scenario_name + " Total Results"); //$NON-NLS-1$
+ outputStream.println("=================="); //$NON-NLS-1$
+
+ outputStream
+ .println("Number of Scenarios: " + total_scenarios); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream
+ .println("Number of Queries: " + total_queries); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream
+ .println("Number Passed : " + total_pass); //$NON-NLS-1$ //$NON-NLS-2$
+ outputStream
+ .println("Number Failed : " + total_fail); //$NON-NLS-1$ //$NON-NLS-2$
+
+ outputStream.close();
+
+
+ }
+
+ private static String generateFileName(String configName, long timestamp,
+ int runNumber) {
+ return configName
+ + "_" + FILE_NAME_DATE_FORMATER.format(new Date(timestamp)) + "_Run-" + runNumber; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ private static void printHtmlQueryTestResults(PrintStream outputStream,
+ long testStartTS, long endTS, int numberOfClients,
+ SimpleDateFormat formatter, Collection results) {
+
+ StringBuffer htmlCode = new StringBuffer("<html>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<HEAD>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<TITLE>Query Test Results</TITLE>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<STYLE TYPE=\"text/css\">").append(NL); //$NON-NLS-1$
+ htmlCode
+ .append(
+ "td { font-family: \"New Century Schoolbook\", Times, serif }").append(NL); //$NON-NLS-1$
+ htmlCode.append("td { font-size: 8pt }").append(NL); //$NON-NLS-1$
+ htmlCode.append("</STYLE>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<SCRIPT type=\"text/javascript\">").append(NL); //$NON-NLS-1$
+ htmlCode.append("var scriptWin = null;").append(NL); //$NON-NLS-1$
+ htmlCode.append("function show(msg){").append(NL); //$NON-NLS-1$
+ //htmlCode.append("alert(msg);").append(nl); //$NON-NLS-1$
+ htmlCode
+ .append("if (scriptWin == null || scriptWin.closed){").append(NL); //$NON-NLS-1$
+ htmlCode
+ .append(
+ "scriptWin = window.open(\"\", \"script\", \"width=800,height=50,resizable\");").append(NL); //$NON-NLS-1$
+ htmlCode.append("scriptWin.document.open(\"text/plain\");").append(NL); //$NON-NLS-1$
+ htmlCode.append("}").append(NL); //$NON-NLS-1$
+ htmlCode.append("scriptWin.focus();").append(NL); //$NON-NLS-1$
+ htmlCode.append("msg = msg.replace(/#/g, '\"');").append(NL); //$NON-NLS-1$
+ htmlCode.append("scriptWin.document.writeln(msg);").append(NL); //$NON-NLS-1$
+ htmlCode.append("}").append(NL); //$NON-NLS-1$
+ htmlCode.append("</SCRIPT>").append(NL); //$NON-NLS-1$
+ htmlCode.append("</HEAD>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<body>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<h1>Query Test Results</h1>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<table border=\"1\">").append(NL); //$NON-NLS-1$
+
+ addTableRow(htmlCode, "StartTime", new Date(testStartTS).toString()); //$NON-NLS-1$
+ addTableRow(htmlCode, "EndTime", new Date(endTS).toString()); //$NON-NLS-1$
+ addTableRow(htmlCode,
+ "Elapsed Time", ((endTS - testStartTS) / 1000) + " seconds"); //$NON-NLS-1$ //$NON-NLS-2$
+ addTableRow(htmlCode,
+ "Number Of Clients", String.valueOf(numberOfClients)); //$NON-NLS-1$
+
+ Map passFailGenMap = getPassFailGen(results);
+ addTableRow(htmlCode,
+ "Number of Queries:", passFailGenMap.get("queries")); //$NON-NLS-1$ //$NON-NLS-2$
+ addTableRow(htmlCode, "Number Passed :", passFailGenMap.get("pass")); //$NON-NLS-1$ //$NON-NLS-2$
+ addTableRow(htmlCode, "Number Failed :", passFailGenMap.get("fail")); //$NON-NLS-1$ //$NON-NLS-2$
+ // addTableRow(htmlCode, "Number Generated :", passFailGenMap.get("gen")); //$NON-NLS-1$ //$NON-NLS-2$
+
+ ResponseTimes responseTimes = calcQueryResponseTimes(results);
+ addTableRow(htmlCode, "QPS :", Double.toString(responseTimes.qps)); //$NON-NLS-1$
+ // addTableRow(htmlCode, "Ave First Resp :", Double.toString(responseTimes.first)); //$NON-NLS-1$
+ // addTableRow(htmlCode, "Ave Full Resp :", Double.toString(responseTimes.full)); //$NON-NLS-1$
+
+ htmlCode.append("</table> <p>").append(NL); //$NON-NLS-1$
+ htmlCode.append("<table border=\"1\">").append(NL); //$NON-NLS-1$
+
+ // Add table headers
+ htmlCode.append("<tr style=\"background: #C0C0C0 \">"); //$NON-NLS-1$
+
+ addTableData(htmlCode, "QueryId"); //$NON-NLS-1$
+ addTableData(htmlCode, "Result"); //$NON-NLS-1$
+ addTableData(htmlCode, "First Response"); //$NON-NLS-1$
+ addTableData(htmlCode, "Total Time"); //$NON-NLS-1$
+ addTableData(htmlCode, "Exception"); //$NON-NLS-1$
+ addTableData(htmlCode, "Error File (if any)"); //$NON-NLS-1$
+ htmlCode.append("</tr>").append(NL); //$NON-NLS-1$
+
+ Iterator resultItr = results.iterator();
+ while (resultItr.hasNext()) {
+ TestResult stat = (TestResult) resultItr.next();
+ htmlCode.append("<tr>").append(NL); //$NON-NLS-1$
+ addTableDataLink(htmlCode, stat.getQueryID(),
+ "show('" + scrub(stat.getQuery()) + "')"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ addTableData(htmlCode, stat.getResultStatusString(),
+ "fail".equalsIgnoreCase(stat.getResultStatusString())); //$NON-NLS-1$
+ addTableData(htmlCode, Long.toString(stat.getBeginTS()));
+ addTableData(htmlCode, Long.toString(stat.getEndTS()));
+ if (stat.getStatus() == TestResult.RESULT_STATE.TEST_EXCEPTION) {
+ addTableData(htmlCode, stat.getExceptionMsg());
+ if (stat.getErrorfile() != null
+ && !stat.getErrorfile().equals("null")) { //$NON-NLS-1$
+ addTableDataLink(htmlCode, stat.getErrorfile(), ""); //$NON-NLS-1$
+ } else {
+ addTableData(htmlCode, ""); //$NON-NLS-1$
+ }
+ } else {
+ addTableData(htmlCode, ""); //$NON-NLS-1$
+ addTableData(htmlCode, ""); //$NON-NLS-1$
+ }
+ htmlCode.append("</tr>").append(NL); //$NON-NLS-1$
+ }
+ htmlCode.append("</table>").append(NL); //$NON-NLS-1$
+ outputStream.print(htmlCode.toString());
+ }
+
+ private static void addTableRow(StringBuffer table, String column,
+ Object msg) {
+ table.append("<tr>").append(NL); //$NON-NLS-1$
+ addTableData(table, column); //$NON-NLS-1$
+ addTableData(table, msg.toString());
+ table.append("</tr>").append(NL); //$NON-NLS-1$
+ }
+
+ private static void addTableData(StringBuffer table, String msg) {
+ addTableData(table, msg, false);
+ }
+
+ private static void addTableDataLink(StringBuffer table, String link,
+ String jsEvent) {
+ if (link.indexOf(".") == -1) //$NON-NLS-1$
+ table
+ .append("<td>").append("<a href=\"#" + link + "\" onclick=\"" + jsEvent + "\">" + link + "</a>").append("</td>").append(NL); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
+ else
+ table
+ .append("<td>").append("<a href=\"" + link + "\" onclick=\"" + jsEvent + "\">" + link + "</a>").append("</td>").append(NL); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
+ }
+
+ private static void addTableData(StringBuffer table, String msg,
+ boolean error) {
+ if (error)
+ table
+ .append("<td style=\"background: #ffccff \">").append(msg).append("</td>").append(NL); //$NON-NLS-1$ //$NON-NLS-2$
+ else
+ table.append("<td>").append(msg).append("</td>").append(NL); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * @param results
+ * @return
+ * @since 4.2
+ */
+ private static ResponseTimes calcQueryResponseTimes(Collection queryResults) {
+ ResponseTimes responseTimes = new ResponseTimes();
+ int nQueries = 0;
+ double startTS;
+ // double firstResponseTimeStamp;
+ double fullResponseTimeStamp;
+ double totalSecs = 0.0;
+ double totalFullMilliSecs = 0.0;
+ // double totalFirstMilliSecs = 0.0;
+
+ for (Iterator resultItr = queryResults.iterator(); resultItr.hasNext();) {
+ TestResult result = (TestResult) resultItr.next();
+ ++nQueries;
+
+ startTS = result.getBeginTS();
+ // firstResponseTimeStamp = result.getBeginTS();
+ fullResponseTimeStamp = result.getEndTS();
+ totalSecs += ((fullResponseTimeStamp - startTS) / 1000);
+
+ // totalFirstMilliSecs += (firstResponseTimeStamp - startTS);
+ totalFullMilliSecs += (fullResponseTimeStamp - startTS);
+ }
+
+ responseTimes.qps = (totalSecs > 0 ? nQueries / totalSecs : -1.0);
+ // responseTimes.first = (nQueries > 0 ? totalFirstMilliSecs / nQueries
+ // : -1.0);
+ responseTimes.full = (nQueries > 0 ? totalFullMilliSecs / nQueries
+ : -1.0);
+ return responseTimes;
+ }
+
+ private static String scrub(String str) {
+ // Scrub the query
+ if (str != null) {
+ str = str.replace('"', '#');
+ str = str.replace('\'', '#');
+ }
+ return str;
+ }
+
+ /**
+ * @param outputStream
+ * @param formatter
+ * @param stat
+ */
+ private static void writeQueryResult(PrintStream outputStream,
+ SimpleDateFormat formatter, TestResult stat) {
+ outputStream.print(stat.getQueryID());
+ outputStream.print(","); //$NON-NLS-1$
+ outputStream.print(stat.getResultStatusString());
+ outputStream.print(","); //$NON-NLS-1$
+ outputStream.print(stat.getBeginTS());
+ outputStream.print(","); //$NON-NLS-1$
+ outputStream.print(stat.getEndTS());
+ outputStream.print(","); //$NON-NLS-1$
+ outputStream.print(getFormattedTimestamp(formatter, stat.getBeginTS()));
+ // outputStream.print(","); //$NON-NLS-1$
+ // outputStream.print(getFormattedTimestamp(formatter,
+ // stat.getFirstRepsonseTimeStamp()));
+ outputStream.print(","); //$NON-NLS-1$
+ outputStream.print(getFormattedTimestamp(formatter, stat.getEndTS()));
+ outputStream.print(","); //$NON-NLS-1$
+ outputStream
+ .println((stat.getStatus() != TestResult.RESULT_STATE.TEST_SUCCESS ? stat
+ .getExceptionMsg()
+ : "")); //$NON-NLS-1$
+ }
+
+ private static String getFormattedTimestamp(SimpleDateFormat format,
+ long millis) {
+ return format.format(new Date(millis));
+ }
+
+ private static class ResponseTimes {
+ double first; // millis
+ double full; // millis
+ double qps; // secs
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/TestResultsSummary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/TransactionFactory.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/TransactionFactory.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/TransactionFactory.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client;
+
+import org.teiid.test.framework.ConfigPropertyLoader;
+import org.teiid.test.framework.TransactionContainer;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
+import org.teiid.test.framework.transaction.JNDITransaction;
+import org.teiid.test.framework.transaction.LocalTransaction;
+import org.teiid.test.framework.transaction.OffWrapTransaction;
+import org.teiid.test.framework.transaction.OnWrapTransaction;
+import org.teiid.test.framework.transaction.OptimisticWrapTransaction;
+import org.teiid.test.framework.transaction.PessimisticWrapTransaction;
+import org.teiid.test.framework.transaction.XATransaction;
+
+
+/**
+ * TransactionFactory is used so that the type of {@link TransactionContainer } can be dynamically loaded
+ * based on a property.
+ *
+ * Specify the property {@link #TRANSACTION_TYPE} in order to set the transaction type to use.
+ *
+ * @author vanhalbert
+ *
+ */
+public class TransactionFactory {
+
+
+ /**
+ * Transaction Type indicates the type of transaction container to use
+ * @see TransactionFactory
+ */
+ public static final String TRANSACTION_TYPE = "transaction-type"; //$NON-NLS-1$
+
+ public interface TRANSACTION_TYPES {
+ public static final String LOCAL_TRANSACTION = "local"; //$NON-NLS-1$
+ public static final String XATRANSACTION = "xa"; //$NON-NLS-1$
+ public static final String JNDI_TRANSACTION = "jndi"; //$NON-NLS-1$
+ public static final String OFFWRAP_TRANSACTION = "offwrap"; //$NON-NLS-1$
+ public static final String ONWRAP_TRANSACTION = "onwrap"; //$NON-NLS-1$
+ public static final String OPTIMISTICWRAP_TRANSACTION = "optwrap"; //$NON-NLS-1$
+ public static final String PESSIMISTICWRAP_TRANSACTION = "pesswrap"; //$NON-NLS-1$
+ }
+
+
+
+ private TransactionFactory(){}
+
+
+ public static TransactionContainer create(ConfigPropertyLoader config) throws QueryTestFailedException {
+ TransactionContainer transacton = null;
+
+ String type = config.getProperty(TRANSACTION_TYPE);
+ if (type == null) {
+ throw new TransactionRuntimeException(TRANSACTION_TYPE + " property was not specified" );
+ }
+
+ System.out.println("Create TransactionContainer: " + type);
+
+ if (type.equalsIgnoreCase(TRANSACTION_TYPES.LOCAL_TRANSACTION)) {
+ transacton = new LocalTransaction();
+ }
+ else if (type.equalsIgnoreCase(TRANSACTION_TYPES.XATRANSACTION)) {
+ transacton = new XATransaction();
+ }
+ else if (type.equalsIgnoreCase(TRANSACTION_TYPES.JNDI_TRANSACTION)) {
+ transacton = new JNDITransaction();
+ }
+ else if (type.equalsIgnoreCase(TRANSACTION_TYPES.OFFWRAP_TRANSACTION)) {
+ transacton = new OffWrapTransaction();
+ }
+ else if (type.equalsIgnoreCase(TRANSACTION_TYPES.ONWRAP_TRANSACTION)) {
+ transacton = new OnWrapTransaction();
+ }
+ else if (type.equalsIgnoreCase(TRANSACTION_TYPES.OPTIMISTICWRAP_TRANSACTION)) {
+ transacton = new OptimisticWrapTransaction();
+ }
+ else if (type.equalsIgnoreCase(TRANSACTION_TYPES.PESSIMISTICWRAP_TRANSACTION)) {
+ transacton = new PessimisticWrapTransaction();
+
+
+ } else {
+ throw new TransactionRuntimeException("Invalid property value of " + type + " for " + TRANSACTION_TYPE );
+ }
+
+ return transacton;
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/TransactionFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/CTCQueryScenario.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/CTCQueryScenario.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/CTCQueryScenario.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,200 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client.ctc;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Collection;
+import java.util.Map;
+import java.util.Properties;
+
+import org.junit.Assert;
+import org.teiid.test.client.ExpectedResults;
+import org.teiid.test.client.QueryReader;
+import org.teiid.test.client.QueryScenario;
+import org.teiid.test.client.ResultsGenerator;
+import org.teiid.test.client.TestProperties;
+import org.teiid.test.client.TestProperties.RESULT_MODES;
+import org.teiid.test.framework.ConfigPropertyLoader;
+import org.teiid.test.framework.TestLogger;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
+
+import com.metamatrix.common.util.PropertiesUtils;
+import com.metamatrix.core.util.FileUtils;
+
+/**
+ * The TestQuerySet contains all the information required to run one set of tests.
+ * This includes the following:
+ * <li>The queryreader and its query sets to be executed as a scenario </li>
+ * <li>Provides the expected results that correspond to a query set </li>
+ * <li>The results generator that would be used when {@link RESULT_MODES#GENERATE} is specified</li>
+ *
+ * @author vanhalbert
+ *
+ */
+public class CTCQueryScenario implements QueryScenario {
+
+ private String resultMode = TestProperties.RESULT_MODES.NONE;
+
+ private QueryReader reader = null;
+ private ResultsGenerator genResults = null;
+ private Properties props;
+ private String outputDir = null;
+
+ private String scenario_test_name;
+
+ public CTCQueryScenario(String scenarioName, Properties querySetProperties) {
+ this.props = querySetProperties;
+ this.scenario_test_name = scenarioName;
+ setup();
+ }
+
+
+
+ public String getQueryScenarioIdentifier() {
+ return this.scenario_test_name;
+ }
+
+
+ private void setup() {
+
+ TestLogger.logDebug("Perform TestClient Setup");
+ Properties props = ConfigPropertyLoader.getInstance().getProperties();
+
+ outputDir = props.getProperty(TestProperties.PROP_OUTPUT_DIR, ".");
+
+ Assert.assertNotNull("Property " + TestProperties.PROP_OUTPUT_DIR
+ + " was not specified", outputDir);
+
+ outputDir = outputDir + "/" + scenario_test_name;
+
+
+ try {
+
+
+ validateResultsMode(props);
+
+ setupVDBs(props);
+
+ reader = new XMLQueryReader(props);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ throw new TransactionRuntimeException(e.getMessage());
+ }
+
+ genResults = new XMLGenerateResults(this.props, scenario_test_name, outputDir);
+
+
+ if (reader.getQuerySetIDs() == null || reader.getQuerySetIDs().isEmpty()) {
+ throw new TransactionRuntimeException("No query set ID's were returned");
+ }
+
+ }
+
+ private void setupVDBs(Properties props) throws IOException {
+ // NOTE: this is probably a hack, because the only way I could get all
+ // the vdb's available when running multiple scenarions
+ // was to update the deploy.properties by setting the vdb.definition
+ // property containing the location of
+ // all the vdbs
+
+ String deployPropLoc = props.getProperty("deployprops.loc");
+ Properties deployProperties = PropertiesUtils.load(deployPropLoc);
+
+ // set the vdb.definition property that contains all the vdbs
+ String vdb_loc = props.getProperty("vdb.loc");
+ File vdbfiles[] = FileUtils.findAllFilesInDirectoryHavingExtension(vdb_loc, ".vdb");
+ if (vdbfiles == null || vdbfiles.length == 0) {
+ throw new TransactionRuntimeException((new StringBuilder()).append(
+ "No vdbs found in directory ").append(vdb_loc).toString());
+ }
+ StringBuffer vdbdef = new StringBuffer();
+
+ for (int i = 0; i < vdbfiles.length; i++) {
+ vdbdef.append(vdbfiles[i].getAbsolutePath() + ";");
+ }
+
+ deployProperties.setProperty("vdb.definition", vdbdef.toString());
+ PropertiesUtils.print(deployPropLoc, deployProperties,"Updated for vdb.definition");
+
+ }
+
+
+
+ private void validateResultsMode(Properties props) {
+ // Determine from property what to do with query results
+ String resultModeStr = props.getProperty(TestProperties.PROP_RESULT_MODE, "");
+ // No need to check for null prop here since we've just checked for this
+ // required property
+
+ if (resultModeStr.equalsIgnoreCase(TestProperties.RESULT_MODES.NONE) ||
+ resultModeStr.equalsIgnoreCase(TestProperties.RESULT_MODES.COMPARE) ||
+ resultModeStr.equalsIgnoreCase(TestProperties.RESULT_MODES.GENERATE)) { //$NON-NLS-1$
+ resultMode = resultModeStr;
+ }
+ // otherwise use default of NONE
+
+ TestLogger.log("\nResults mode: " + resultMode); //$NON-NLS-1$
+
+ }
+
+ public Properties getProperties() {
+ return this.props;
+ }
+
+ public Map<String, Object> getQueries(String querySetID) {
+ try {
+ return reader.getQueries(querySetID);
+ } catch (QueryTestFailedException e) {
+ throw new TransactionRuntimeException(e);
+ }
+ }
+
+ public Collection<String> getQuerySetIDs() {
+ return reader.getQuerySetIDs();
+ }
+
+ public String getResultsMode() {
+ return this.resultMode;
+ }
+
+ public ExpectedResults getExpectedResults(String querySetID) {
+ XMLExpectedResults expectedResults = new XMLExpectedResults(this.props, querySetID);
+ return expectedResults;
+ }
+
+
+ public ResultsGenerator getResultsGenerator() {
+ return this.genResults;
+ }
+
+
+
+ @Override
+ public String getOutputDirectory() {
+ return outputDir;
+ }
+
+
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/CTCQueryScenario.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ListNestedSortComparator.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ListNestedSortComparator.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ListNestedSortComparator.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,169 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client.ctc;
+
+import java.util.List;
+
+import com.metamatrix.core.util.ArgCheck;
+
+
+
+/**
+ * This class can be used for comparing lists of elements, when the fields to
+ * be sorted on and the comparison mechanism are dynamically specified. <p>
+ *
+ * Typically, the lists are records in a collection that is to be sorted. <p>
+ *
+ * <h3>Example</h3>
+ * <pre>
+ * Records...
+ * { "a1", "b1", "c1" }
+ * { "a1", "b1", "c2" }
+ * { "a1", "b2", "c1" }
+ * { "a1", "b2", "c2" }
+ * { "a2", "b1", "c1" }
+ * { "a2", "b1", "c2" }
+ * { "a2", "b2", "c1" }
+ * { "a2", "b2", "c2" }
+ *
+ * Records sorted in ascending order on columns 0, 2...
+ * { "a1", "b1", "c1" }
+ * { "a1", "b2", "c1" }
+ * { "a1", "b2", "c2" }
+ * { "a1", "b1", "c2" }
+ * { "a2", "b1", "c1" }
+ * { "a2", "b2", "c1" }
+ * { "a2", "b1", "c2" }
+ * { "a2", "b2", "c2" }
+ * </pre>
+ */
+public class ListNestedSortComparator implements java.util.Comparator, java.io.Serializable {
+
+ /**
+ * Specifies which fields to sort on.
+ */
+ private int[] sortParameters;
+
+ /**
+ * Indicates whether comparison should be based on ascending or descending
+ * order.
+ */
+ private boolean ascendingOrder = false;
+
+ /**
+ * List of booleans indicating the order in which each column should be sorted
+ */
+ private List orderTypes = null;
+
+ private boolean isDistinct = true;
+ private int distinctIndex;
+
+ /**
+ * Constructs an instance of this class given the indicies of the parameters
+ * to sort on, and whether the sort should be in ascending or descending
+ * order.
+ */
+ public ListNestedSortComparator( int[] sortParameters ) {
+ this( sortParameters, false );
+ }
+
+ /**
+ * Constructs an instance of this class given the indicies of the parameters
+ * to sort on, and whether the sort should be in ascending or descending
+ * order.
+ */
+ public ListNestedSortComparator( int[] sortParameters, boolean ascending ) {
+ this.sortParameters = sortParameters;
+ this.ascendingOrder = ascending;
+ }
+
+ /**
+ * Constructs an instance of this class given the indicies of the parameters
+ * to sort on, and orderList used to determine the order in which each column
+ * is sorted.
+ */
+ public ListNestedSortComparator( int[] sortParameters, List orderTypes ) {
+ this.sortParameters = sortParameters;
+ this.orderTypes = orderTypes;
+ }
+
+ public boolean isDistinct() {
+ return isDistinct;
+ }
+
+ public void setDistinctIndex(int distinctIndex) {
+ this.distinctIndex = distinctIndex;
+ }
+
+ /**
+ * Compares its two arguments for order. Returns a negative integer,
+ * zero, or a positive integer as the first argument is less than,
+ * equal to, or greater than the second. <p>
+ *
+ * The <code>compare</code> method returns <p>
+ * <ul>
+ * <li>-1 if object1 less than object 2 </li>
+ * <li> 0 if object1 equal to object 2 </li>
+ * <li>+1 if object1 greater than object 2 </li>
+ * </ul>
+ *
+ * @param o1 The first object being compared
+ * @param o2 The second object being compared
+ */
+ public int compare( Object o1, Object o2 ) {
+ List list1 = (List)o1;
+ List list2 = (List)o2;
+
+ int compare = 0;
+ for (int k = 0; k < sortParameters.length; k++) {
+ Object param1 = list1.get(sortParameters[k]);
+ Object param2 = list2.get(sortParameters[k]);
+
+ if( param1 == null ) {
+ if(param2 == null ) {
+ // Both are null
+ compare = 0;
+ } else {
+ // param1 = null, so is less than a non-null
+ compare = -1;
+ }
+ } else if( param2 == null ) {
+ // param1 != null, param2 == null
+ compare = 1;
+ } else if ( param1 instanceof Comparable ) {
+ compare = ((Comparable)param1).compareTo(param2);
+ } else {
+ ArgCheck.isTrue(false, "Expected comparable types");
+ }
+ if (compare != 0) {
+ boolean asc = orderTypes != null?((Boolean)orderTypes.get(k)).booleanValue():this.ascendingOrder;
+ return asc ? compare : -compare;
+ } else if (k == distinctIndex) {
+ isDistinct = false;
+ }
+ }
+ return 0;
+ }
+
+} // END CLASS
+
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ListNestedSortComparator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/QueryResults.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/QueryResults.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/QueryResults.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,745 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client.ctc;
+
+import java.io.Externalizable;
+import java.io.IOException;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import com.metamatrix.common.buffer.TupleBatch;
+import com.metamatrix.common.types.DataTypeManager;
+import com.metamatrix.query.sql.symbol.AliasSymbol;
+import com.metamatrix.query.sql.symbol.ElementSymbol;
+import com.metamatrix.query.sql.symbol.GroupSymbol;
+import com.metamatrix.query.sql.symbol.SingleElementSymbol;
+
+/**
+ * This class encapsulates results associated with a query.
+ * <p>
+ * Results are conceptually organized as a table of columns and rows, where the columns are the data fields that were specified in
+ * the query select statement, and the rows are individual records returned from the data set. The data values are arbitrary Java
+ * objects in each field/record cell.
+ * <p>
+ *
+ * <pre>
+ *
+ *
+ * Record # | Field1 Field2 Field3 ... FieldN
+ * ----------|---------------------------------------------
+ * 1 | Value11 Value12 Value13 Value1N
+ * 2 | Value21 Value22 Value23 Value2N
+ * : | : : : :
+ * M | ValueM1 ValueM2 ValueM3 ValueMN
+ *
+ *
+ * </pre>
+ *
+ * <p>
+ * Methods are provided to access data by:
+ * <p>
+ * <ul>
+ * <li>Cell value - specify field identifier and record number</li>
+ * <li>Field values - specify field identifier</li>
+ * <li>Record values - specify record number</li>
+ * <li>Record - specify record number; returns field idents mapped to values</li>
+ * </ul>
+ * <p>
+ * Results can be specified to be sorted based on a user-provided ordering. The ordering is a List of ElementSymbols, which should
+ * match the identifiers for the results fields. This list will typically be in the order that the parameters were specified in
+ * the query select statement. If no ordering list is specified, the order is the same as results fields are added to this object.
+ * <p>
+ */
+public class QueryResults implements
+ Externalizable {
+
+ /**
+ * Serialization ID - this must be changed if this class is no longer serialization-compatible with old versions.
+ */
+ static final long serialVersionUID = 5397138282301824378L;
+
+ /**
+ * The fields in the results object: List of String
+ */
+ private List fields;
+
+ /**
+ * The column info for each field: Map of String --> ColumnInfo
+ */
+ private Map columnInfos;
+
+ /**
+ * The set of results. Each result is keyed off the variable identifier that was defined in the query's select clause. This
+ * field will never be null.
+ */
+ private List records; // Rows of columns: List<List<Object>>
+
+ // =========================================================================
+ // C O N S T R U C T O R S
+ // =========================================================================
+
+ /**
+ * Construct a default instance of this class.
+ * <p>
+ * The number of fields returned by the {@link #getFieldCount}method will be 0 after this constructor has completed. The
+ * number of records returned by the {@link #getRecordCount}method will be 0 after this constructor has completed.
+ * <p>
+ */
+ public QueryResults() {
+ }
+
+ /**
+ * Construct an instance of this class, specifying the order that the elements should be inserted into the map. The number of
+ * fields returned by the {@link #getFieldCount}method will be the same as the number of <code>fields</code> passed in
+ * after this constructor has completed. The number of records returned by the {@link #getRecordCount}method will be 0 after
+ * this constructor has completed.
+ * <p>
+ *
+ * @param fields
+ * The set of field identifiers that will be in the result set
+ */
+ public QueryResults(List fields) {
+ this(fields, 0);
+ }
+
+ /**
+ * Construct an instance of this class, specifying the fields and the number of records that the result set should hold. The
+ * fields and number of records are used to pre-allocate memory for all the values that are expected to be indested into the
+ * results set.
+ * <p>
+ * The number of records returned by the {@link #getRecordCount}method will be <code>numberOfRecords</code> after this
+ * constructor has completed. The number of fields returned by the {@link #getFieldCount}will be the same as the size of the
+ * list of fields passed in after this constructor has completed.
+ * <p>
+ *
+ * @param fields
+ * The ordered list of variables in select statement
+ * @param numberOfRecords
+ * The number of blank records to create; records will all contain <code>null</code> values for all the fields
+ * @see #addField
+ */
+ public QueryResults(List fields,
+ int numberOfRecords) {
+ if (fields != null) {
+ Iterator fieldIter = fields.iterator();
+ while (fieldIter.hasNext()) {
+ ColumnInfo info = (ColumnInfo)fieldIter.next();
+ addField(info);
+ }
+ for (int k = 0; k < numberOfRecords; k++) {
+ addRecord();
+ }
+ }
+ }
+
+ /**
+ * Construct a QueryResults from a TupleBatch. Take all rows from the QueryBatch and put them into the QueryResults.
+ *
+ * @param elements
+ * List of SingleElementSymbols
+ * @param tupleBatch
+ * Batch of rows
+ */
+ public QueryResults(List elements,
+ TupleBatch tupleBatch) {
+ // Add fields
+ List columnInfos = createColumnInfos(elements);
+ for (int i = 0; i < columnInfos.size(); i++) {
+ ColumnInfo info = (ColumnInfo)columnInfos.get(i);
+ addField(info);
+ }
+
+ // Add records in bulk -
+ this.records = Arrays.asList(tupleBatch.getAllTuples());
+ }
+
+ // =========================================================================
+ // D A T A A C C E S S M E T H O D S
+ // =========================================================================
+
+ /**
+ * Returns all the field identifiers. If the parameters in the query select statement have been provided, then the set of
+ * field identifiers should be a subset of them, and ordered the same.
+ * <p>
+ * This method will never return <code>null</code>. The list of identifiers returned is not mutable -- changes made to this
+ * list will not affect the QueryResults object.
+ *
+ * @return The field identifiers
+ */
+ public List getFieldIdents() {
+ return (fields != null) ? fields : new ArrayList();
+ }
+
+ /**
+ * Get the column information given the column name.
+ *
+ * @param columnName
+ * The name of the column.
+ * @return Column information
+ */
+ public ColumnInfo getColumnInfo(String columnName) {
+ if (columnInfos != null) {
+ return (ColumnInfo)columnInfos.get(columnName);
+ }
+ return null;
+ }
+
+ /**
+ * Returns the number of fields in the result set.
+ *
+ * @return The number of fields
+ */
+ public int getFieldCount() {
+ return (fields != null) ? fields.size() : 0;
+ }
+
+ /**
+ * Returns the number of records in the result set.
+ * <p>
+ *
+ * @return The number of records
+ */
+ public int getRecordCount() {
+ return (records != null) ? records.size() : 0;
+ }
+
+ /**
+ * Get the value for the specified field and record.
+ * <p>
+ * The value returned is not mutable -- changes made to this value will not affect the QueryResults object.
+ * <p>
+ * <b>Note that results must be retrieved with the same type of data node identifier that was specified in the select
+ * statement. </b>
+ * <p>
+ *
+ * @param columnName
+ * The unique data element identifier for the field
+ * @param recordNumber
+ * The record number
+ * @return The data value at the specified field and record
+ * @exception IllegalArgumentException
+ * If field is not in result set
+ * @exception IndexOutOfBoundsException
+ * If record is not in result set
+ */
+ public Object getValue(String columnName,
+ int recordNumber) throws IllegalArgumentException,
+ IndexOutOfBoundsException {
+
+ // This throws an IllegalArgumentException if field not in result set
+ int columnNumber = getIndexOfField(columnName);
+
+ return (records != null) ? ((List)records.get(recordNumber)).get(columnNumber) : null;
+ }
+
+ /**
+ * Returns the values for the specified record. The values are ordered the same as the field identifiers in the result set,
+ * which will be the same as the order of the query select parameters if they have been provided.
+ * <p>
+ * The list of values returned is not mutable -- changes made to this list will not affect the QueryResults object.
+ * <p>
+ *
+ * @param recordNumber
+ * The record number
+ * @return A list containing the field values for the specified record, ordered according to the original select parameters,
+ * if defined
+ */
+ public List getRecordValues(int recordNumber) throws IndexOutOfBoundsException {
+
+ if (records != null) {
+ return (List)records.get(recordNumber);
+ }
+ throw new IndexOutOfBoundsException("Record number " + recordNumber + " is not valid.");
+ }
+
+ /**
+ * Get the records contained in this result. The records are returned as a list of field values (a list of lists).
+ *
+ * @return A list of lists contains the field values for each row.
+ */
+ public List getRecords() {
+ return records;
+ }
+
+ /**
+ * Returns true if the specified field is in the result set.
+ *
+ * @param field
+ * Unique identifier for a data element specified in result set
+ */
+ public boolean containsField(String field) {
+ if (fields != null && field != null) {
+ Iterator iter = fields.iterator();
+ while (iter.hasNext()) {
+ if (((String)iter.next()).equalsIgnoreCase(field)) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
+ public List getTypes() {
+ List typeNames = new ArrayList();
+
+ int nFields = getFieldCount();
+ for (int i = 0; i < nFields; i++) {
+ String aField = (String)fields.get(i);
+ typeNames.add(((ColumnInfo)columnInfos.get(aField)).getDataType());
+ }
+ return typeNames;
+ }
+
+ // =========================================================================
+ // D A T A M A N I P U L A T I O N M E T H O D S
+ // =========================================================================
+
+ /**
+ * Add a new field into this result set. The field will be inserted in the order of the parameters in the select statement if
+ * those parameters were specified upon construction of the result set; otherwise, the field will be appended to the result
+ * set.
+ * <p>
+ *
+ * @param info
+ * The column information.
+ */
+ public void addField(ColumnInfo info) {
+ // Add to ordered list of fields
+ if (fields == null) {
+ fields = new ArrayList();
+ }
+ fields.add(info.getName());
+
+ // Save column information
+ if (columnInfos == null) {
+ columnInfos = new HashMap();
+ }
+ columnInfos.put(info.getName(), info);
+
+ // Add new field to each record
+ if (records != null) {
+ for (int i = 0; i < records.size(); i++) {
+ List record = (List)records.get(i);
+ record.add(null);
+ }
+ }
+ }
+
+ /**
+ * Add a set of fields into this result set. The fields will be inserted in the order of the parameters in the select
+ * statement if those parameters were specified upon construction of the result set; otherwise, the field will be appended to
+ * the result set.
+ * <p>
+ *
+ * @param fields
+ * The field identifiers.
+ */
+ public void addFields(Collection fields) {
+ Iterator idents = fields.iterator();
+ while (idents.hasNext()) {
+ ColumnInfo ident = (ColumnInfo)idents.next();
+ addField(ident);
+ }
+ }
+
+ /**
+ * Add a new record for all fields. The record is populated with all null values, which act as placeholders for subsequent
+ * <code>setValue
+ * </code> calls.
+ * <p>
+ * Before this method is called, the fields must already be defined.
+ * <p>
+ *
+ * @return The updated number of records
+ */
+ public int addRecord() {
+ // Create a place-holder record
+ int nField = getFieldCount();
+ if (nField == 0) {
+ throw new IllegalArgumentException("Cannot add record; no fields have been defined");
+ }
+ // Create a record with all null values, one for each field
+ List record = new ArrayList(nField);
+ for (int j = 0; j < nField; j++) {
+ record.add(null);
+ }
+ return addRecord(record);
+ }
+
+ /**
+ * Add a new record for all fields. The record must contain the same number of values as there are fields.
+ * <p>
+ * Before this method is called, the fields must already be defined.
+ * <p>
+ *
+ * @return The updated number of records
+ */
+ public int addRecord(List record) {
+ if (record == null) {
+ throw new IllegalArgumentException("Attempt to add null record.");
+ }
+ if (record.size() != getFieldCount()) {
+ throw new IllegalArgumentException("Attempt to add record with " + record.size() + " values when " + getFieldCount() + " fields are defined.");
+ }
+ if (records == null) {
+ records = new ArrayList();
+ }
+ records.add(record);
+ return records.size();
+ }
+
+ /**
+ * Set the value at a particular record for a field.
+ * <p>
+ * The specified field and record must already exist in the data set, or an exception will be thrown. The
+ * {@link #addField(ColumnInfo)}method can be used to append values or new records for fields.
+ *
+ * @param field
+ * The unique data element identifier for the field
+ * @param recordNumber
+ * The record number
+ * @exception IndexOutOfBoundsException
+ * If the specified record does not exist
+ */
+ public void setValue(String field,
+ int recordNumber,
+ Object value) throws IllegalArgumentException,
+ IndexOutOfBoundsException {
+
+ List record = (List)records.get(recordNumber);
+ int fieldIndex = getIndexOfField(field);
+ record.set(fieldIndex, value);
+ }
+
+ // =========================================================================
+ // H E L P E R M E T H O D S
+ // =========================================================================
+
+ /**
+ * Returns the index of the specified field is in the result set. An exception is thrown if the field is not in the set.
+ *
+ * @param field
+ * Unique identifier for a data element specified in result set
+ * @return The index of the field in the set of fields
+ * @exception IllegalArgumentException
+ * If field is not in result set
+ */
+ public int getIndexOfField(String field) throws IllegalArgumentException {
+
+ int index = -1;
+ if (fields != null && field != null) {
+ Iterator iter = fields.iterator();
+ for (int i = 0; iter.hasNext(); i++) {
+ if (field.equalsIgnoreCase((String)iter.next())) {
+ index = i;
+ break;
+ }
+ }
+ }
+
+ if (index == -1) {
+ throw new IllegalArgumentException("Field with identifier " + field + " is not in result set");
+ }
+ return index;
+ }
+
+ /**
+ * Convert a list of SingleElementSymbols to a List of ColumnInfo objects.
+ *
+ * @param symbols
+ * List of SingleElementSymbols
+ * @return List of ColumnInfos
+ */
+ public static List createColumnInfos(List symbols) {
+ List infos = new ArrayList(symbols.size());
+ Iterator iter = symbols.iterator();
+ while (iter.hasNext()) {
+ SingleElementSymbol symbol = (SingleElementSymbol)iter.next();
+ String name = symbol.getName();
+ if (symbol instanceof AliasSymbol) {
+ AliasSymbol alias = (AliasSymbol)symbol;
+ symbol = alias.getSymbol();
+ }
+ if (symbol instanceof ElementSymbol) {
+ ElementSymbol element = (ElementSymbol)symbol;
+ GroupSymbol group = element.getGroupSymbol();
+ Object groupID = null;
+ if (group != null) {
+ groupID = group.getMetadataID();
+ }
+ infos.add(new ColumnInfo(name, DataTypeManager.getDataTypeName(element.getType()), element.getType(), groupID,
+ element.getMetadataID()));
+ } else { // ExpressionSymbol or AggregateSymbol
+ // Expressions don't map to a single element or group, so don't save that info
+ infos.add(new ColumnInfo(name, DataTypeManager.getDataTypeName(symbol.getType()), symbol.getType()));
+ }
+ }
+
+ return infos;
+ }
+
+ // =========================================================================
+ // O V E R R I D D E N O B J E C T M E T H O D S
+ // =========================================================================
+
+ /** Compares with another result set */
+ public boolean equals(Object object) {
+ if (this == object) {
+ return true;
+ }
+
+ if (!this.getClass().isInstance(object)) {
+ return false;
+ }
+
+ QueryResults other = (QueryResults)object;
+
+ // First compare fields
+ if (!this.getFieldIdents().equals(other.getFieldIdents())) {
+ return false;
+ }
+
+ List thisRecords = this.getRecords();
+ List otherRecords = other.getRecords();
+
+ if (thisRecords == null) {
+ if (otherRecords == null) {
+ return true;
+ }
+ return false;
+ }
+ if (otherRecords == null) {
+ return false;
+ }
+ return thisRecords.equals(otherRecords);
+ }
+
+ /** Returns a string representation of an instance of this class. */
+ public String toString() {
+ StringBuffer buffer = new StringBuffer("Query Results...\n"); //$NON-NLS-1$
+ buffer.append(printFieldIdentsAndTypes(this.getFieldIdents(), this.columnInfos));
+ buffer.append("\n"); //$NON-NLS-1$
+ for (int r = 0; r < this.getRecordCount(); r++) {
+ buffer.append(r);
+ buffer.append(": "); //$NON-NLS-1$
+
+ List record = this.getRecordValues(r);
+ for (int c = 0; c < this.getFieldCount(); c++) {
+ buffer.append(record.get(c));
+ if (c < this.getFieldCount() - 1) {
+ buffer.append(", "); //$NON-NLS-1$
+ }
+ }
+ buffer.append("\n"); //$NON-NLS-1$
+ }
+ return buffer.toString();
+ }
+
+ private static String printFieldIdentsAndTypes(List fieldIdents,
+ Map columnInfos) {
+ StringBuffer buf = new StringBuffer();
+ Iterator fieldItr = fieldIdents.iterator();
+ while (fieldItr.hasNext()) {
+ String aField = (String)fieldItr.next();
+ if (aField != null) {
+ buf.append("["); //$NON-NLS-1$
+ buf.append(aField);
+ buf.append(" - ["); //$NON-NLS-1$
+ ColumnInfo colInfo = (ColumnInfo)columnInfos.get(aField);
+ buf.append(colInfo.getDataType());
+ buf.append(", "); //$NON-NLS-1$
+ buf.append(colInfo.getJavaClass());
+ buf.append("]"); //$NON-NLS-1$
+ }
+ buf.append("] "); //$NON-NLS-1$
+ }
+
+ return buf.toString();
+ }
+
+ // =========================================================================
+ // S E R I A L I Z A T I O N
+ // =========================================================================
+
+ /**
+ * Implements Externalizable interface to read serialized form
+ *
+ * @param s
+ * Input stream to serialize from
+ */
+ public void readExternal(java.io.ObjectInput s) throws ClassNotFoundException,
+ IOException {
+ int numFields = s.readInt();
+ if (numFields > 0) {
+ fields = new ArrayList(numFields);
+ columnInfos = new HashMap();
+ for (int i = 0; i < numFields; i++) {
+ String fieldName = s.readUTF();
+ fields.add(fieldName);
+
+ Object colInfo = s.readObject();
+ columnInfos.put(fieldName, colInfo);
+ }
+ }
+
+ int numRows = s.readInt();
+ if (numRows > 0) {
+ records = new ArrayList(numRows);
+ for (int row = 0; row < numRows; row++) {
+ List record = new ArrayList(numFields);
+ for (int col = 0; col < numFields; col++) {
+ record.add(s.readObject());
+ }
+ records.add(record);
+ }
+ }
+ }
+
+ /**
+ * Implements Externalizable interface to write serialized form
+ *
+ * @param s
+ * Output stream to serialize to
+ */
+ public void writeExternal(java.io.ObjectOutput s) throws IOException {
+ // Write column names and column information
+ int numFields = 0;
+ if (fields == null) {
+ s.writeInt(0);
+ } else {
+ numFields = fields.size();
+ s.writeInt(numFields);
+ for (int i = 0; i < numFields; i++) {
+ String fieldName = (String)fields.get(i);
+ s.writeUTF(fieldName);
+ s.writeObject(columnInfos.get(fieldName));
+ }
+ }
+
+ // Write record data
+ if (records == null) {
+ s.writeInt(0);
+ } else {
+ int numRows = records.size();
+ s.writeInt(numRows);
+ for (int row = 0; row < numRows; row++) {
+ List record = (List)records.get(row);
+ for (int col = 0; col < numFields; col++) {
+ s.writeObject(record.get(col));
+ }
+ }
+ }
+ }
+
+ // =========================================================================
+ // I N N E R C L A S S E S
+ // =========================================================================
+
+ /**
+ * Represents all information about a column.
+ */
+ public static class ColumnInfo implements
+ Serializable {
+
+ /**
+ * Serialization ID - this must be changed if this class is no longer serialization-compatible with old versions.
+ */
+ static final long serialVersionUID = -7131157612965891051L;
+
+ private String name;
+ private String dataType;
+ private Class javaClass;
+
+ private Object groupID; // fully qualified group name
+ private Object elementID; // short name
+
+ public ColumnInfo(String name,
+ String dataType,
+ Class javaClass) {
+ if (name == null) {
+ throw new IllegalArgumentException("QueryResults column cannot have name==null");
+ }
+ this.name = name;
+ this.dataType = dataType;
+ this.javaClass = javaClass;
+ }
+
+ public ColumnInfo(String name,
+ String dataType,
+ Class javaClass,
+ Object groupID,
+ Object elementID) {
+ this(name, dataType, javaClass);
+ this.groupID = groupID;
+ this.elementID = elementID;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public String getDataType() {
+ return this.dataType;
+ }
+
+ public Class getJavaClass() {
+ return this.javaClass;
+ }
+
+ /**
+ * May be null
+ */
+ public Object getGroupID() {
+ return this.groupID;
+ }
+
+ /**
+ * May be null
+ */
+ public Object getElementID() {
+ return this.elementID;
+ }
+
+ public String toString() {
+ StringBuffer str = new StringBuffer("Column["); //$NON-NLS-1$
+ str.append(this.name);
+ str.append(", "); //$NON-NLS-1$
+ str.append(this.dataType);
+ if (this.groupID != null) {
+ str.append(", "); //$NON-NLS-1$
+ str.append(this.groupID);
+ str.append("."); //$NON-NLS-1$
+ str.append(this.elementID);
+ }
+ str.append("]"); //$NON-NLS-1$
+ return str.toString();
+ }
+ }
+
+} // END CLASS
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/QueryResults.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ResultsHolder.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ResultsHolder.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ResultsHolder.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,167 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client.ctc;
+
+import java.util.Iterator;
+import java.util.List;
+import java.util.ArrayList;
+
+
+
+/**
+ * ResultsHolder
+ * <p>
+ * Data structure. Holder of expected resutls and metadata.
+ * </p>
+ */
+public class ResultsHolder {
+
+ // either TagNames.Elements.QUERY_RESULTS or TagNames.Elements.EXCEPTION
+ private String resultType;
+
+ // Identifier
+ private String queryID;
+
+ // The SQl query if available.
+ private String query;
+
+ // Query Results
+ private List rows;
+ private List types;
+ private List identifiers;
+
+ // Exception
+ private String exceptionClassName;
+ private String exceptionMsg;
+
+ public ResultsHolder(final String type) {
+ this.resultType = type;
+ }
+
+ public String getQueryID() {
+ return queryID;
+ }
+
+ public void setQueryID(final String queryID) {
+ this.queryID = queryID;
+ }
+
+ /**
+ * @return Returns the query.
+ */
+ public String getQuery() {
+ return query;
+ }
+ /**
+ * @param query The query to set.
+ */
+ public void setQuery(String query) {
+ this.query = query;
+ }
+
+ public boolean isResult() {
+ return resultType.equals(TagNames.Elements.QUERY_RESULTS);
+ }
+
+ public boolean isException() {
+ return resultType.equals(TagNames.Elements.EXCEPTION);
+ }
+
+ public String getResultType() {
+ return resultType;
+ }
+
+ public void setResultType(final String resultType) {
+ this.resultType = resultType;
+ }
+
+ public List getRows() {
+ return (rows == null ? new ArrayList() : rows);
+ }
+
+ public void setRows(final List rows) {
+ this.rows = rows;
+ }
+
+ public List getTypes() {
+ return types;
+ }
+
+ public void setTypes(final List types) {
+ this.types = types;
+ }
+
+ public List getIdentifiers() {
+ return identifiers;
+ }
+
+ public void setIdentifiers(final List identifiers) {
+ this.identifiers = identifiers;
+ }
+
+ public String getExceptionClassName() {
+ return exceptionClassName;
+ }
+
+ public void setExceptionClassName(final String className) {
+ this.exceptionClassName = className;
+ }
+
+ public String getExceptionMsg() {
+ return exceptionMsg;
+ }
+
+ public void setExceptionMsg(final String msg) {
+ this.exceptionMsg = msg;
+ }
+
+ public boolean hasRows() {
+ return (rows != null && rows.size() > 0);
+ }
+
+ public String toString() {
+ StringBuffer buf = new StringBuffer();
+ buf.append("ResultsHolder... \n"); //$NON-NLS-1$
+ if (isResult()) {
+ for (int i = 0; i < this.identifiers.size(); i++) {
+ buf.append("["); //$NON-NLS-1$
+ buf.append(this.identifiers.get(i));
+ buf.append(" - "); //$NON-NLS-1$
+ buf.append(this.types.get(i));
+ buf.append("] "); //$NON-NLS-1$
+ }
+ buf.append("\n"); //$NON-NLS-1$
+ Iterator rowItr = this.rows.iterator();
+ int i = 1;
+ while (rowItr.hasNext()) {
+ buf.append(i++);
+ buf.append(": "); //$NON-NLS-1$
+ buf.append(rowItr.next());
+ buf.append("\n"); //$NON-NLS-1$
+ }
+ }
+ else {
+ buf.append(getExceptionClassName()).append(":").append(getExceptionMsg()); //$NON-NLS-1$
+ }
+ return buf.toString();
+ }
+}
\ No newline at end of file
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/ResultsHolder.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/TagNames.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/TagNames.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/TagNames.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client.ctc;
+
+import java.util.Map;
+import java.util.HashMap;
+
+/**
+ * Constants used in XML messaging.
+ */
+public final class TagNames {
+
+ private static final String DATA_ELE_TYPE_INT = "integer"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_STRING = "string"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_FLOAT = "float"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_LONG = "long"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_DOUBLE = "double"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_BYTE = "byte"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_DATE = "date"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_TIME = "time"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_TIMESTAMP = "timestamp"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_BOOLEAN = "boolean"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_CHAR = "char"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_SHORT = "short"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_BIG_INT = "biginteger"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_BIG_DEC = "bigdecimal"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_OBJECT = "object"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_XML = "xml"; //$NON-NLS-1$
+ private static final String DATA_ELE_TYPE_CLOB = "clob"; //$NON-NLS-1$
+
+ public static Map TYPE_MAP;
+
+ static {
+ TYPE_MAP = new HashMap();
+
+ TYPE_MAP.put(DATA_ELE_TYPE_OBJECT, java.lang.Object.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_INT, java.lang.Integer.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_STRING, java.lang.String.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_FLOAT, java.lang.Float.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_LONG, java.lang.Long.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_DOUBLE, java.lang.Double.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_BYTE, java.lang.Byte.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_BOOLEAN, java.lang.Boolean.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_CHAR, java.lang.Character.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_SHORT, java.lang.Short.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_BIG_INT, java.math.BigInteger.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_BIG_DEC, java.math.BigDecimal.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_DATE, java.sql.Date.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_TIME, java.sql.Time.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_TIMESTAMP, java.sql.Timestamp.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_XML, java.lang.String.class);
+ TYPE_MAP.put(DATA_ELE_TYPE_CLOB, java.lang.String.class);
+ }
+
+
+ /**
+ * Enumeration of XML element tag constants.
+ */
+ public static final class Elements {
+ public static final String STRING = "string"; //$NON-NLS-1$
+ public static final String BOOLEAN = "boolean"; //$NON-NLS-1$
+ public static final String BYTE = "byte"; //$NON-NLS-1$
+ public static final String SHORT = "short"; //$NON-NLS-1$
+ public static final String CHAR = "char"; //$NON-NLS-1$
+ public static final String INTEGER = "integer"; //$NON-NLS-1$
+ public static final String LONG = "long"; //$NON-NLS-1$
+ public static final String BIGINTEGER = "biginteger"; //$NON-NLS-1$
+ public static final String FLOAT = "float"; //$NON-NLS-1$
+ public static final String DOUBLE = "double"; //$NON-NLS-1$
+ public static final String BIGDECIMAL = "bigdecimal"; //$NON-NLS-1$
+ public static final String DATE = "date"; //$NON-NLS-1$
+ public static final String TIME = "time"; //$NON-NLS-1$
+ public static final String TIMESTAMP = "timestamp"; //$NON-NLS-1$
+ public static final String OBJECT = "object"; //$NON-NLS-1$
+
+ public static final String CLASS = "class"; //$NON-NLS-1$
+ public static final String TABLE = "table"; //$NON-NLS-1$
+ public static final String TABLE_ROW = "tableRow"; //$NON-NLS-1$
+ public static final String TABLE_CELL = "tableCell"; //$NON-NLS-1$
+ public static final String NULL = "null"; //$NON-NLS-1$
+ public static final String EXCEPTION = "exception"; //$NON-NLS-1$
+ public static final String ACTUAL_EXCEPTION = "actual_exception"; //$NON-NLS-1$
+ public static final String EXPECTED_EXCEPTION = "expected_exception"; //$NON-NLS-1$
+ public static final String EXCEPTION_TYPE = "exceptionType"; //$NON-NLS-1$
+ public static final String MESSAGE = "message"; //$NON-NLS-1$
+ public static final String DATA_ELEMENT = "dataElement"; //$NON-NLS-1$
+ public static final String QUERY_RESULTS = "queryResults"; //$NON-NLS-1$
+ public static final String ACTUAL_QUERY_RESULTS = "actual_queryResults"; //$NON-NLS-1$
+ public static final String EXPECTED_QUERY_RESULTS = "expected_queryResults"; //$NON-NLS-1$
+ public static final String QUERY = "query"; //$NON-NLS-1$
+ public static final String SELECT = "select"; //$NON-NLS-1$
+ public static final String ROOT_ELEMENT = "root"; //$NON-NLS-1$
+ }
+
+ /**
+ * Enumeration of XML element attribute names.
+ */
+ public static final class Attributes {
+ public static final String TYPE = "type"; //$NON-NLS-1$
+ public static final String SIZE = "size"; //$NON-NLS-1$
+ public static final String TABLE_ROW_COUNT = "rowCount"; //$NON-NLS-1$
+ public static final String TABLE_COLUMN_COUNT = "columnCount"; //$NON-NLS-1$
+ public static final String NAME = "name"; //$NON-NLS-1$
+ public static final String VALUE = "value"; //$NON-NLS-1$
+ public static final String DISTINCT = "distinct"; //$NON-NLS-1$
+ public static final String STAR = "star"; //$NON-NLS-1$
+ }
+
+ /**
+ * Enumeration of XML element attribute values.
+ */
+ public static final class Values {
+ public static final String TRUE = "true"; //$NON-NLS-1$
+ public static final String FALSE = "false"; //$NON-NLS-1$
+ }
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/TagNames.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLExpectedResults.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLExpectedResults.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLExpectedResults.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,775 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client.ctc;
+
+import java.io.File;
+import java.io.IOException;
+import java.sql.Blob;
+import java.sql.Clob;
+import java.sql.ResultSet;
+import java.sql.ResultSetMetaData;
+import java.sql.SQLException;
+import java.sql.SQLXML;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.jdom.JDOMException;
+import org.teiid.test.client.ExpectedResults;
+import org.teiid.test.client.QueryScenario;
+import org.teiid.test.client.ResultsGenerator;
+import org.teiid.test.client.TestResult;
+import org.teiid.test.framework.ConfigPropertyLoader;
+import org.teiid.test.framework.ConfigPropertyNames;
+import org.teiid.test.framework.TestLogger;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+
+import com.metamatrix.core.util.StringUtil;
+
+
+
+public class XMLExpectedResults implements ExpectedResults {
+
+ protected Properties props;
+ protected int resultMode = -1;
+ protected String generateDir = null;
+ protected String querySetIdentifier = null;
+ protected String results_dir_loc = null;
+
+ protected Map<String, ResultsHolder> loadedResults = new HashMap<String, ResultsHolder>();
+
+
+ public XMLExpectedResults(Properties properties, String querySetIdentifier) {
+ this.props = properties;
+ this.querySetIdentifier = querySetIdentifier;
+
+ this.results_dir_loc = props.getProperty(
+ PROP_EXPECTED_RESULTS_DIR_LOC, "");
+
+ String expected_root_loc = this.props
+ .getProperty(PROP_EXPECTED_RESULTS_ROOT_DIR);
+
+ if (expected_root_loc != null) {
+ File dir = new File(expected_root_loc, results_dir_loc);
+ this.results_dir_loc = dir.getAbsolutePath();
+ }
+
+
+ TestLogger.logInfo("Expected results loc: " + this.results_dir_loc);
+ }
+
+
+ @Override
+ public boolean isExceptionExpected(String queryidentifier) throws QueryTestFailedException {
+ ResultsHolder expectedResults = (ResultsHolder) getResults(queryidentifier);
+
+ return (expectedResults.getExceptionMsg() == null ? false : true);
+ }
+
+
+
+ @Override
+ public String getQuerySetID() {
+ return this.querySetIdentifier;
+ }
+
+
+
+ @Override
+ public synchronized File getResultsFile(String queryidentifier) throws QueryTestFailedException {
+ return findExpectedResultsFile(queryidentifier, this.querySetIdentifier);
+
+ }
+
+ private ResultsHolder getResults(String queryidentifier) throws QueryTestFailedException {
+ ResultsHolder rh = null;
+
+ if (!loadedResults.containsKey(queryidentifier)) {
+ rh = loadExpectedResults( findExpectedResultsFile(queryidentifier, this.querySetIdentifier));
+ } else {
+ rh = loadedResults.get(queryidentifier);
+ }
+
+ return rh;
+ }
+
+ /**
+ * Compare the results of a query with those that were expected.
+ *
+ * @param expectedResults
+ * The expected results.
+ * @param results
+ * The actual results - may be null if <code>actualException</code>.
+ * @param actualException
+ * The actual exception recieved durring query execution - may be null if <code>results</code>.
+ * @param isOrdered
+ * Are the actual results ordered?
+ * @param batchSize
+ * Size of the batch(es) used in determining when the first batch of results were read.
+ * @return The response time for comparing the first batch (sizes) of resutls.
+ * @throws QueryTestFailedException
+ * If comparison fails.
+ */
+ public void compareResults( final String queryIdentifier,
+ final String sql,
+ final ResultSet resultSet,
+ final Throwable actualException,
+ final int testStatus,
+ final boolean isOrdered,
+ final int batchSize) throws QueryTestFailedException {
+
+ final String eMsg = "CompareResults Error: "; //$NON-NLS-1$
+
+ ResultsHolder expectedResults = (ResultsHolder) getResults(queryIdentifier);
+ ResultsHolder actualResults;
+ String actualExceptionClass = null;
+
+
+ switch (testStatus) {
+ case TestResult.RESULT_STATE.TEST_EXCEPTION:
+
+
+ break;
+
+ case TestResult.RESULT_STATE.TEST_EXPECTED_EXCEPTION:
+
+ actualExceptionClass = actualException.getClass().getName();
+
+ if (!expectedResults.isException()) {
+ // The actual exception was expected, but the expected results was not
+ throw new QueryTestFailedException(eMsg + "TThe actual exception was expected, but the Expected results wasn't an exception. Actual exception: '" //$NON-NLS-1$
+ + actualException.getMessage() + "'"); //$NON-NLS-1$
+ }
+ // We got an exception that we expected - convert actual exception to ResultsHolder
+ actualResults = new ResultsHolder(TagNames.Elements.EXCEPTION);
+ actualResults.setQueryID(expectedResults.getQueryID());
+
+ actualResults = convertException(actualException, actualResults);
+
+ compareExceptions(actualResults, expectedResults, eMsg);
+
+
+ break;
+
+ // default success
+ default:
+
+
+ // is an expected exception
+ if (actualException != null) {
+
+ actualExceptionClass = actualException.getClass().getName();
+
+ if (!expectedResults.isException()) {
+ // We didn't get results but there was no expected exception either
+ throw new QueryTestFailedException(eMsg + "Actual was an exception, but expected results was not. '" //$NON-NLS-1$
+ + actualException.getMessage() + "'"); //$NON-NLS-1$
+ }
+ // We got an exception that we expected - convert actual exception to ResultsHolder
+ actualResults = new ResultsHolder(TagNames.Elements.EXCEPTION);
+ actualResults.setQueryID(expectedResults.getQueryID());
+
+ actualResults = convertException(actualException, actualResults);
+
+ compareExceptions(actualResults, expectedResults, eMsg);
+
+
+
+ } else {
+
+ actualResults = new ResultsHolder(TagNames.Elements.QUERY_RESULTS);
+ actualResults.setQueryID(expectedResults.getQueryID());
+ long firstBatchResponseTime =
+ convertResults(resultSet, batchSize, actualResults);
+
+ compareResultSets(actualResults.getRows(),
+ actualResults.getTypes(),
+ actualResults.getIdentifiers(),
+ expectedResults.getRows(),
+ expectedResults.getTypes(),
+ expectedResults.getIdentifiers(),
+ eMsg);
+
+
+ }
+
+ break;
+ }
+
+
+ }
+
+ private ResultsHolder convertException(final Throwable actualException,
+ final ResultsHolder actualResults) {
+ actualResults.setExceptionClassName(actualException.getClass()
+ .getName());
+ actualResults.setExceptionMsg(actualException.getMessage());
+ return actualResults;
+ }
+
+ /**
+ * Helper to convert results into records and record first batch response time.
+ *
+ * @param results
+ * @param batchSize
+ * @param resultsHolder
+ * Modified - results added by this method.
+ * @return List of sorted results.
+ * @throws QueryTestFailedException
+ * replaced SQLException.
+ */
+ private final long convertResults(final ResultSet results,
+ final int batchSize,
+ ResultsHolder resultsHolder) throws QueryTestFailedException {
+
+ long firstBatchResponseTime = 0;
+ final List records = new ArrayList();
+ final List columnTypeNames = new ArrayList();
+ final List columnTypes = new ArrayList();
+
+ final ResultSetMetaData rsMetadata;
+ final int colCount;
+
+ // Get column info
+ try {
+ rsMetadata = results.getMetaData();
+ colCount = rsMetadata.getColumnCount();
+ // Read types of all columns
+ for (int col = 1; col <= colCount; col++) {
+ columnTypeNames.add(rsMetadata.getColumnName(col));
+ columnTypes.add(rsMetadata.getColumnTypeName(col));
+ }
+ } catch (SQLException qre) {
+ throw new QueryTestFailedException("Can't get results metadata: " + qre.getMessage()); //$NON-NLS-1$
+ }
+
+ // Get rows
+ try {
+ // Read all the rows
+ for (int row = 0; results.next(); row++) {
+ final List currentRecord = new ArrayList(colCount);
+ // Read values for this row
+ for (int col = 1; col <= colCount; col++) {
+ currentRecord.add(results.getObject(col));
+ }
+ records.add(currentRecord);
+ // If this row is the (fetch size - 1)th row, record first batch response time
+ if (row == batchSize) {
+ firstBatchResponseTime = System.currentTimeMillis();
+ }
+ }
+ } catch (SQLException qre) {
+ throw new QueryTestFailedException("Can't get results: " + qre.getMessage()); //$NON-NLS-1$
+ }
+
+ // Set info on resultsHolder
+ resultsHolder.setRows(records);
+ resultsHolder.setIdentifiers(columnTypeNames);
+ resultsHolder.setTypes(columnTypes);
+
+ return firstBatchResponseTime;
+ }
+
+ /**
+ * Added primarily for public access to the compare code for testing.
+ *
+ * @param actualResults
+ * @param expectedResults
+ * @param eMsg
+ * @param isOrdered
+ * @throws QueryTestFailedException
+ */
+ protected void compareResults(final ResultsHolder actualResults,
+ final ResultsHolder expectedResults,
+ final String eMsg,
+ boolean isOrdered) throws QueryTestFailedException {
+ if (actualResults.isException() && expectedResults.isException()) {
+ // Compare exceptions
+ compareExceptions(actualResults, expectedResults, eMsg);
+ } else if (actualResults.isResult() && expectedResults.isResult()) {
+ // Compare results
+ if (isOrdered == false && actualResults.hasRows() && expectedResults.hasRows()) {
+ // If the results are not ordered, we can sort both
+ // results and expected results to compare record for record
+ // Otherwise, actual and expected results are already assumed
+ // to be in same order
+
+ //sort the sortedResults in ascending order
+ final List actualRows = actualResults.getRows();
+ sortRecords(actualRows, true);
+ actualResults.setRows(actualRows);
+
+ //sort the expectedResults with ascending order
+ final List expectedRows = expectedResults.getRows();
+ sortRecords(expectedRows, true);
+ expectedResults.setRows(expectedRows);
+ }
+
+ compareResultSets(actualResults.getRows(),
+ actualResults.getTypes(),
+ actualResults.getIdentifiers(),
+ expectedResults.getRows(),
+ expectedResults.getTypes(),
+ expectedResults.getIdentifiers(),
+ eMsg);
+ } else if (actualResults.isResult() && expectedResults.isException()) {
+ // Error - expected exception but got result
+ } else if (actualResults.isException() && expectedResults.isResult()) {
+ // Error - expected result but got exception
+ }
+ }
+
+ /**
+ * sort one result that is composed of records of all columns
+ */
+ private static void sortRecords(List records,
+ boolean ascending) {
+ //if record's size == 0, don't need to sort
+ if (records.size() != 0) {
+ int nFields = ((List)records.get(0)).size();
+ for (int k = 0; k < nFields; k++) {
+ for (int m = k; m < nFields; m++) {
+ int[] params = new int[m - k + 1];
+
+ for (int n = k, j = 0; n <= m; n++, j++) {
+ params[j] = n;
+ }
+
+ Collections.sort(records, new ListNestedSortComparator(params, ascending));
+ }
+ }
+ }
+ }
+
+ private void compareExceptions(final ResultsHolder actualResults,
+ final ResultsHolder expectedResults, String eMsg)
+ throws QueryTestFailedException {
+
+ final String expectedExceptionClass = expectedResults
+ .getExceptionClassName();
+ final String expectedExceptionMsg = expectedResults.getExceptionMsg().toLowerCase();
+ final String actualExceptionClass = actualResults
+ .getExceptionClassName();
+ final String actualExceptionMsg = actualResults.getExceptionMsg().toLowerCase();
+
+ if (actualExceptionClass == null) {
+ // We didn't get an actual exception, we should have
+ throw new QueryTestFailedException(eMsg + "Expected exception: " //$NON-NLS-1$
+ + expectedExceptionClass + " but got none."); //$NON-NLS-1$
+ }
+ // Compare exception classes
+ if (!expectedExceptionClass.equals(actualExceptionClass)) {
+ throw new QueryTestFailedException(eMsg
+ + "Got wrong exception, expected \"" //$NON-NLS-1$
+ + expectedExceptionClass + "\" but got \"" + //$NON-NLS-1$
+ actualExceptionClass + "\""); //$NON-NLS-1$
+ }
+ // Compare exception messages
+ if (!expectedExceptionMsg.equals(actualExceptionMsg)) {
+ // Give it another chance by comparing w/o line separators
+ if (!compareStrTokens(expectedExceptionMsg, actualExceptionMsg)) {
+ throw new QueryTestFailedException(
+ eMsg
+ + "Got expected exception but with wrong message. Got " + actualExceptionMsg); //$NON-NLS-1$
+ }
+ }
+ }
+
+ private boolean compareStrTokens(String expectedStr, String gotStr) {
+ String newline = System.getProperty("line.separator"); //$NON-NLS-1$
+ List expectedTokens = StringUtil.split(expectedStr, newline);
+ List gotTokens = StringUtil.split(gotStr, newline);
+ for (int i = 0; i < expectedTokens.size(); i++) {
+ String expected = (String) expectedTokens.get(i);
+ String got = (String) gotTokens.get(i);
+ if (!expected.equals(got)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Compare actual results, identifiers and types with expected. <br>
+ * <strong>Note </strong>: result list are expected to match element for element.</br>
+ *
+ * @param actualResults
+ * @param actualDatatypes
+ * @param actualIdentifiers
+ * @param expectedResults
+ * @param expectedDatatypes
+ * @param expectedIdentifiers
+ * @param eMsg
+ * @throws QueryTestFailedException
+ * If comparison fails.
+ */
+ protected void compareResultSets(final List actualResults,
+ final List actualDatatypes,
+ final List actualIdentifiers,
+ final List expectedResults,
+ final List expectedDatatypes,
+ final List expectedIdentifiers,
+ final String eMsg) throws QueryTestFailedException {
+ // Compare column names and types
+ compareIdentifiers(actualIdentifiers, expectedIdentifiers, actualDatatypes, expectedDatatypes);
+
+ // Walk through records and compare actual against expected
+ final int actualRowCount = actualResults.size();
+ final int expectedRowCount = expectedResults.size();
+ final int actualColumnCount = actualIdentifiers.size();
+
+ // Check for less records than in expected results
+ if (actualRowCount < expectedRowCount) {
+ throw new QueryTestFailedException(eMsg + "Expected " + expectedRowCount + //$NON-NLS-1$
+ " records but received only " + actualRowCount); //$NON-NLS-1$
+ } else if (actualRowCount > expectedRowCount) {
+ // Check also for more records than expected
+ throw new QueryTestFailedException(eMsg + "Expected " + expectedRowCount + //$NON-NLS-1$
+ " records but received " + actualRowCount); //$NON-NLS-1$
+ }
+
+ // DEBUG:
+ // debugOut.println("================== Compariing Rows ===================");
+
+ // Loop through rows
+ for (int row = 0; row < actualRowCount; row++) {
+
+ // Get actual record
+ final List actualRecord = (List)actualResults.get(row);
+
+ // Get expected record
+ final List expectedRecord = (List)expectedResults.get(row);
+
+ // DEBUG:
+ // debugOut.println("Row: " + (row + 1));
+ // debugOut.println(" expectedRecord: " + expectedRecord);
+ // debugOut.println(" actualRecord: " + actualRecord);
+ // Loop through columns
+ // Compare actual elements with expected elements column by column in this row
+ for (int col = 0; col < actualColumnCount; col++) {
+ // Get actual value
+ final Object actualValue = actualRecord.get(col);
+ // Get expected value
+ final Object expectedValue = expectedRecord.get(col);
+
+ // DEBUG:
+ // debugOut.println(" Col: " +(col +1) + ": expectedValue:[" + expectedValue + "] actualValue:[" + actualValue +
+ // "]");
+
+ // Compare these values
+ if (expectedValue == null) {
+ // Compare nulls
+ if (actualValue != null) {
+ throw new QueryTestFailedException(eMsg + "Value mismatch at row " + (row + 1) //$NON-NLS-1$
+ + " and column " + (col + 1) //$NON-NLS-1$
+ + ": expected = [" //$NON-NLS-1$
+ + expectedValue + "], actual = [" //$NON-NLS-1$
+ + actualValue + "]"); //$NON-NLS-1$
+
+ }
+ } else {
+ // Compare values with equals
+ if (!expectedValue.equals(actualValue)) {
+ // DEBUG:
+ // debugOut.println(" ExpectedType: " + expectedValue.getClass() + " ActualType: " +
+ // actualValue.getClass());
+ if (expectedValue instanceof String) {
+ final String expectedString = (String)expectedValue;
+ if (actualValue instanceof Blob || actualValue instanceof Clob || actualValue instanceof SQLXML) {
+ // LOB types are special case - metadata says they're Object types so
+ // expected results are of type String. Actual object type is MMBlob, MMClob.
+ // Must compare w/ String verion of actual!
+ if (!expectedValue.equals(actualValue.toString())) {
+ throw new QueryTestFailedException(eMsg + "LOB Value mismatch at row " + (row + 1) //$NON-NLS-1$
+ + " and column " + (col + 1) //$NON-NLS-1$
+ + ": expected = [" //$NON-NLS-1$
+ + expectedValue + "], actual = [" //$NON-NLS-1$
+ + actualValue + "]"); //$NON-NLS-1$
+ }
+ } else if (!(actualValue instanceof String)) {
+ throw new QueryTestFailedException(eMsg + "Value mismatch at row " + (row + 1) //$NON-NLS-1$
+ + " and column " + (col + 1) //$NON-NLS-1$
+ + ": expected = [" //$NON-NLS-1$
+ + expectedValue + "], actual = [" //$NON-NLS-1$
+ + actualValue + "]"); //$NON-NLS-1$
+ } else if (expectedString.length() > 0) {
+ // Check for String difference
+ assertStringsMatch(expectedString, (String)actualValue, (row + 1), (col + 1), eMsg);
+ }
+ }
+ }
+ }
+ } // end loop through columns
+ } // end loop through rows
+ }
+
+
+
+ protected void compareIdentifiers(List actualIdentifiers,
+ List expectedIdentifiers, List actualDataTypes,
+ List expectedDatatypes) throws QueryTestFailedException {
+
+ // Check sizes
+ if (expectedIdentifiers.size() != actualIdentifiers.size()) {
+ throw new QueryTestFailedException(
+ "Got incorrect number of columns, expected = " + expectedIdentifiers.size() + ", actual = " //$NON-NLS-1$ //$NON-NLS-2$
+ + actualIdentifiers.size());
+ }
+
+ // Compare identifier lists only by short name
+ for (int i = 0; i < actualIdentifiers.size(); i++) {
+ String actualIdent = (String) actualIdentifiers.get(i);
+ String expectedIdent = (String) expectedIdentifiers.get(i);
+ String actualType = (String) actualDataTypes.get(i);
+ String expectedType = (String) expectedDatatypes.get(i);
+
+ // Get short name for each identifier
+ String actualShort = getShortName(actualIdent);
+ String expectedShort = getShortName(expectedIdent);
+
+ if (!expectedShort.equalsIgnoreCase(actualShort)) {
+ throw new QueryTestFailedException(
+ "Got incorrect column name at column " + i + ", expected = " + expectedShort + " but got = " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ + actualShort);
+ }
+ if (actualType.equalsIgnoreCase("xml")) {//$NON-NLS-1$
+ actualType = "string";//$NON-NLS-1$
+ }
+ if (actualType.equalsIgnoreCase("clob")) {//$NON-NLS-1$
+ actualType = "string";//$NON-NLS-1$
+ }
+ if (!expectedType.equalsIgnoreCase(actualType)) {
+ throw new QueryTestFailedException(
+ "Got incorrect column type at column " + i + ", expected = " + expectedType + " but got = " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ + actualType);
+ }
+ }
+ }
+
+
+ protected String getShortName(String ident) {
+ int index = ident.lastIndexOf("."); //$NON-NLS-1$
+ if (index >= 0) {
+ return ident.substring(index + 1);
+ }
+ return ident;
+ }
+
+ private static final int MISMATCH_OFFSET = 20;
+ private static final int MAX_MESSAGE_SIZE = 50;
+
+
+
+ protected void assertStringsMatch(final String expectedStr, final String actualStr,
+ final int row, final int col, final String eMsg)
+ throws QueryTestFailedException {
+ // TODO: Replace stripCR() with XMLUnit comparison for XML results.
+ // stripCR() is a workaround for comparing XML Queries
+ // that have '\r'.
+ String expected = stripCR(expectedStr);
+ String actual = stripCR(actualStr);
+
+ String locationText = ""; //$NON-NLS-1$
+ int mismatchIndex = -1;
+ if (!expected.equals(actual)) {
+ if (expected != null && actual != null) {
+ int shortestStringLength = expected.length();
+ if (actual.length() < expected.length()) {
+ shortestStringLength = actual.length();
+ }
+ for (int i = 0; i < shortestStringLength; i++) {
+ if (expected.charAt(i) != actual.charAt(i)) {
+ locationText = " Strings do not match at character: " + (i + 1) + //$NON-NLS-1$
+ ". Expected [" + expected.charAt(i)
+ + "] but got [" + actual.charAt(i) + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ mismatchIndex = i;
+ break;
+ }
+ }
+ }
+
+ String expectedPartOfMessage = expected;
+ String actualPartOfMessage = actual;
+ if (expected.length() + actual.length() > MAX_MESSAGE_SIZE) {
+ expectedPartOfMessage = safeSubString(expected, mismatchIndex
+ - MISMATCH_OFFSET, mismatchIndex + MISMATCH_OFFSET);
+ actualPartOfMessage = safeSubString(actual, mismatchIndex
+ - MISMATCH_OFFSET, mismatchIndex + MISMATCH_OFFSET);
+ }
+
+ String message = eMsg + "Value mismatch at row " + row + //$NON-NLS-1$
+ " and column " + col + //$NON-NLS-1$
+ ". Expected: {0} but was: {1}" + locationText; //$NON-NLS-1$
+ message = MessageFormat.format(message, new Object[] {
+ expectedPartOfMessage, actualPartOfMessage });
+ throw new QueryTestFailedException(message);
+ }
+ }
+
+ private String safeSubString(String text, int startIndex,
+ int endIndex) {
+ String prefix = "...'"; //$NON-NLS-1$
+ String suffix = "'..."; //$NON-NLS-1$
+
+ int actualStartIndex = startIndex;
+ if (actualStartIndex < 0) {
+ actualStartIndex = 0;
+ prefix = "'"; //$NON-NLS-1$
+ }
+ int actualEndIndex = endIndex;
+ if (actualEndIndex > text.length() - 1) {
+ actualEndIndex = text.length() - 1;
+ if (actualEndIndex < 0) {
+ actualEndIndex = 0;
+ }
+ }
+ if (actualEndIndex == text.length() - 1 || text.length() == 0) {
+ suffix = "'"; //$NON-NLS-1$
+ }
+
+ return prefix + text.substring(actualStartIndex, actualEndIndex)
+ + suffix;
+ }
+
+
+
+ private String stripCR(final String text) {
+ if (text.indexOf('\r') >= 0) {
+ StringBuffer stripped = new StringBuffer(text.length());
+ int len = text.length();
+ for (int i = 0; i < len; i++) {
+ char current = text.charAt(i);
+ if (current != '\r') {
+ stripped.append(current);
+ }
+ }
+ return stripped.toString();
+ }
+ return text;
+ }
+
+
+ @Override
+ public Object getMetaData(String queryidentifier) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+ private ResultsHolder loadExpectedResults(File resultsFile) throws QueryTestFailedException {
+ XMLQueryVisitationStrategy jstrat = new XMLQueryVisitationStrategy();
+ final ResultsHolder expectedResult;
+ try {
+ expectedResult = jstrat.parseXMLResultsFile(resultsFile);
+ } catch (IOException e) {
+ throw new QueryTestFailedException("Unable to load expected results: " + e.getMessage()); //$NON-NLS-1$
+ } catch (JDOMException e) {
+ throw new QueryTestFailedException("Unable to load expected results: " + e.getMessage()); //$NON-NLS-1$
+ }
+ return expectedResult;
+ }
+
+ private File findExpectedResultsFile(String queryIdentifier,
+ String querySetIdentifier) throws QueryTestFailedException {
+ String resultFileName = queryIdentifier + ".xml"; //$NON-NLS-1$
+ File file = new File(results_dir_loc + "/" + querySetIdentifier, resultFileName);
+ if (!file.exists()) {
+ throw new QueryTestFailedException("Query results file " + file.getAbsolutePath() + " cannot be found");
+ }
+
+ return file;
+
+ }
+
+ public static void main(String[] args) {
+ System.setProperty(ConfigPropertyNames.CONFIG_FILE, "ctc-bqt-test.properties");
+
+ ConfigPropertyLoader _instance = ConfigPropertyLoader.getInstance();
+ Properties p = _instance.getProperties();
+ if (p == null || p.isEmpty()) {
+ throw new RuntimeException("Failed to load config properties file");
+
+ }
+
+ QueryScenario set = new CTCQueryScenario("testscenario", ConfigPropertyLoader.getInstance().getProperties());
+
+
+ _instance.setProperty(XMLQueryReader.PROP_QUERY_FILES_ROOT_DIR, new File("target/classes/").getAbsolutePath() );
+
+
+
+
+ try {
+
+ Iterator<String> it = set.getQuerySetIDs().iterator();
+ while (it.hasNext()) {
+ String querySetID = it.next();
+
+ Map queries = set.getQueries(querySetID);
+ if (queries.size() == 0l) {
+ System.out.println("Failed, didn't load any queries " );
+ }
+
+
+ ExpectedResults er = set.getExpectedResults(querySetID);
+ //new XMLExpectedResults(_instance.getProperties(), querySetID);
+
+ ResultsGenerator gr = set.getResultsGenerator();
+ //new XMLGenerateResults(_instance.getProperties(), "testname", set.getOutputDirectory());
+
+ Iterator qIt = queries.keySet().iterator();
+ while(qIt.hasNext()) {
+ String qId = (String) qIt.next();
+ String sql = (String) queries.get(qId);
+
+// System.out.println("SetID #: " + cnt + " Qid: " + qId + " sql: " + sql);
+
+ File resultsFile = er.getResultsFile(qId);
+ if (resultsFile == null) {
+ System.out.println("Failed to get results file for queryID " + qId);
+ }
+
+
+
+
+ }
+
+ }
+
+ System.out.println("Completed Test");
+
+ } catch (QueryTestFailedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ }
+
+
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLExpectedResults.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLGenerateResults.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLGenerateResults.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLGenerateResults.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,429 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client.ctc;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Properties;
+
+import org.jdom.Attribute;
+import org.jdom.CDATA;
+import org.jdom.Document;
+import org.jdom.Element;
+import org.jdom.JDOMException;
+import org.jdom.output.XMLOutputter;
+import org.junit.Assert;
+import org.teiid.test.client.ResultsGenerator;
+import org.teiid.test.client.TestProperties;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+
+import com.metamatrix.core.util.FileUtils;
+import com.metamatrix.core.util.StringUtil;
+import com.metamatrix.internal.core.xml.JdomHelper;
+
+public class XMLGenerateResults implements ResultsGenerator {
+ private static final SimpleDateFormat FILE_NAME_DATE_FORMATER = new SimpleDateFormat(
+ "yyyyMMdd_HHmmss"); //$NON-NLS-1$
+ private String outputDir = "";
+ private String generateDir = "";
+
+ public XMLGenerateResults(Properties props, String testname, String outputDirectory) {
+
+ Assert.assertNotNull("Property " + TestProperties.PROP_OUTPUT_DIR
+ + " was not passed in", outputDirectory);
+
+ this.outputDir = outputDirectory;
+
+ File d = new File(this.outputDir);
+ this.outputDir = d.getAbsolutePath();
+ d = new File(this.outputDir);
+ if (d.exists()) {
+ FileUtils.removeDirectoryAndChildren(d);
+
+ }
+ if (!d.exists()) {
+ d.mkdirs();
+ }
+
+ generateDir = props.getProperty(PROP_GENERATE_DIR, ".");
+ Assert.assertNotNull("Property " + PROP_GENERATE_DIR
+ + " was not specified", this.outputDir);
+
+ d = new File(generateDir, testname);
+ generateDir = d.getAbsolutePath();
+ d = new File(generateDir);
+ if (d.exists()) {
+ FileUtils.removeDirectoryAndChildren(d);
+ }
+ if (!d.exists()) {
+ d.mkdirs();
+ }
+
+ }
+
+ @Override
+ public String getGenerateDir() {
+ // TODO Auto-generated method stub
+ return this.generateDir;
+ }
+
+ @Override
+ public String getOutputDir() {
+ // TODO Auto-generated method stub
+ return outputDir;
+ }
+
+ /**
+ * Generate query results. These are actual results from the server and may
+ * be used for comparing to results from a later test run.
+ *
+ * @param queryID
+ * @param resultsFile
+ * @param result
+ * @param ex
+ * @throws QueryTestFailedException
+ */
+
+ public void generateQueryResultFile(String querySetID, String queryID,
+ String query, ResultSet result, Throwable ex, int testStatus)
+ throws QueryTestFailedException {
+
+ File resultsFile = createNewResultsFile(queryID, querySetID,
+ getGenerateDir());
+ OutputStream outputStream;
+ try {
+ FileOutputStream fos = new FileOutputStream(resultsFile);
+ outputStream = new BufferedOutputStream(fos);
+ } catch (IOException e) {
+ throw new QueryTestFailedException(
+ "Failed to open new results file: " + resultsFile.getPath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ try {
+ XMLQueryVisitationStrategy jstrat = new XMLQueryVisitationStrategy();
+
+ // Create root JDOM element
+ Element rootElement = new Element(TagNames.Elements.ROOT_ELEMENT);
+
+ // Create Query element
+ Element queryElement = new Element(TagNames.Elements.QUERY);
+ queryElement.addContent(new CDATA(query));
+ rootElement.addContent(queryElement);
+
+ // create a result attribute for the queryID
+ Attribute resultsIDAttribute = new Attribute(
+ TagNames.Attributes.NAME, queryID);
+
+ if (result != null) {
+ // produce a JDOM element from the results object
+ Element resultsElement = jstrat.produceResults(result);
+ // set the resultsIDAttribute on the results element
+ resultsElement.setAttribute(resultsIDAttribute);
+ // add the results elements to the root element
+ rootElement.addContent(resultsElement);
+ // debug:
+ // System.out.println("\n Result: " + printResultSet(result));
+ } else {
+ // create a JDOM element from the exception object with the
+ // results tag
+ Element exceptionElement = new Element(
+ TagNames.Elements.QUERY_RESULTS);
+ // produce xml for the actualException and this to the
+ // exceptionElement
+ if (ex != null) {
+ exceptionElement.addContent(jstrat.produceMsg(ex, null));
+ }
+ // set the resultsIDAttribute on the exception element
+ exceptionElement.setAttribute(resultsIDAttribute);
+ // add the results elements to the root element
+ rootElement.addContent(exceptionElement);
+
+ }
+
+ // Output xml
+ XMLOutputter outputter = new XMLOutputter(JdomHelper.getFormat(
+ " ", true)); //$NON-NLS-1$
+ outputter.output(new Document(rootElement), outputStream);
+
+ } catch (SQLException e) {
+ throw new QueryTestFailedException(
+ "Failed to convert results to JDOM: " + e.getMessage()); //$NON-NLS-1$
+ } catch (JDOMException e) {
+ throw new QueryTestFailedException(
+ "Failed to convert results to JDOM: " + e.getMessage()); //$NON-NLS-1$
+ } catch (IOException e) {
+ throw new QueryTestFailedException(
+ "Failed to output new results to " + resultsFile.getPath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
+ } catch (Throwable e) {
+ throw new QueryTestFailedException(
+ "Failed to convert results to JDOM: " + StringUtil.getStackTrace(e)); //$NON-NLS-1$
+ } finally {
+ try {
+ outputStream.close();
+ } catch (IOException e) {
+ }
+ }
+ }
+
+ public String generateErrorFile(final String querySetID,
+ final String queryID, final String sql, final ResultSet resultSet,
+ final Throwable queryError, final File expectedResultsFile)
+ throws QueryTestFailedException {
+
+ String errorFileName = null;
+ try {
+ // write actual results to error file
+ errorFileName = generateErrorFileName(queryID, querySetID);
+ // configID, queryID, Integer.toString(clientID));
+ // CombinedTestClient.log("\t" + this.clientID + ": Writing error file with actual results: " + errorFileName); //$NON-NLS-1$ //$NON-NLS-2$
+ File errorFile = new File(getOutputDir(), errorFileName);
+
+ // rewind resultset
+ if (resultSet != null) {
+ resultSet.beforeFirst();
+ }
+ generateErrorResults(querySetID, queryID, sql, errorFile,
+ resultSet, expectedResultsFile, queryError);
+
+ } catch (Throwable e) {
+ throw new QueryTestFailedException(e.getMessage());
+ // CombinedTestClient.logError("Error writing error file \"" + outputDir + "\"/" + errorFileName + ": " + e); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ }
+ return errorFileName;
+ }
+
+ private File createNewResultsFile(String queryID, String querySetID,
+ String genDir) {
+ String resultFileName = queryID + ".xml"; //$NON-NLS-1$
+
+ String targetDirname = genDir + File.separator + querySetID; //$NON-NLS-1$
+ File targetDir = new File(targetDirname);
+ targetDir.mkdirs();
+
+ return new File(targetDir, resultFileName);
+ }
+
+ //
+ // private String generateErrorFileName(String queryID,
+ // String querySetID,
+ // String outputdir) {
+ //
+ // File resultsFile = createNewResultsFile(queryID, querySetID,
+ // this.outputDir);
+ //
+ // // String queryFileName = queryFile.getName();
+ // String name =
+ // FileUtils.getFilenameWithoutExtension(resultsFile.getName());
+ // String errorFileName = "ERROR_"
+ // + name + "_" //$NON-NLS-1$
+ // + FILE_NAME_DATE_FORMATER.format(new Date(System.currentTimeMillis())) + ".xml"; //$NON-NLS-1$
+ // return errorFileName;
+ //
+ // }
+
+ public String generateErrorFileName(String queryID, String querySetID) {
+ String errorFileName = "ERROR_"
+ // configID + "_" //$NON-NLS-1$ //$NON-NLS-2$
+ // + querySetID + "_" //$NON-NLS-1$
+ + queryID
+ + "_" //$NON-NLS-1$
+ + FILE_NAME_DATE_FORMATER.format(new Date(System
+ .currentTimeMillis())) + ".xml"; //$NON-NLS-1$
+ return errorFileName;
+ }
+
+ /**
+ * Generate an error file for a query that failed comparison. File should
+ * have the SQL, the actual results returned from the server and the results
+ * that were expected.
+ *
+ * @param queryID
+ * @param sql
+ * @param resultsFile
+ * @param actualResult
+ * @param expectedResultFile
+ * @param ex
+ * @throws QueryTestFailedException
+ */
+ private void generateErrorResults(String querySetID, String queryID,
+ String sql, File resultsFile, ResultSet actualResult,
+ File expectedResultFile, Throwable ex)
+ throws QueryTestFailedException {
+ OutputStream outputStream;
+ try {
+ FileOutputStream fos = new FileOutputStream(resultsFile);
+ outputStream = new BufferedOutputStream(fos);
+ } catch (IOException e) {
+ throw new QueryTestFailedException(
+ "Failed to open error results file: " + resultsFile.getPath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ try {
+ XMLQueryVisitationStrategy jstrat = new XMLQueryVisitationStrategy();
+
+ // Create root JDOM element
+ Element rootElement = new Element(TagNames.Elements.ROOT_ELEMENT);
+
+ // create a JDOM element for the results
+ Element resultElement = new Element(TagNames.Elements.QUERY_RESULTS);
+ // set the queryIDAttr on the exception element
+ resultElement.setAttribute(new Attribute(TagNames.Attributes.NAME,
+ queryID));
+ // set the querySQLAttr on the exception element
+ resultElement.setAttribute(new Attribute(TagNames.Attributes.VALUE,
+ sql));
+
+ // ---------------------
+ // Actual Exception
+ // ---------------------
+ // create a JDOM element from the actual exception object
+ // produce xml for the actualException and this to the
+ // exceptionElement
+ if (ex != null) {
+ Element actualExceptionElement = new Element(
+ TagNames.Elements.ACTUAL_EXCEPTION);
+
+ actualExceptionElement = XMLQueryVisitationStrategy
+ .jdomException(ex, actualExceptionElement);
+ resultElement.addContent(actualExceptionElement);
+ }
+
+ if (actualResult != null) {
+ // ------------------------------
+ // Got a ResultSet from server
+ // error was in comparing results
+ // ------------------------------
+
+ // --------------------------
+ // Actual Result - ResultSet
+ // --------------------------
+ // produce a JDOM element from the actual results object
+ Element actualResultsElement = new Element(
+ TagNames.Elements.ACTUAL_QUERY_RESULTS);
+ actualResultsElement = jstrat.produceMsg(actualResult,
+ actualResultsElement);
+
+ // add the results elements to the root element
+ resultElement.addContent(actualResultsElement);
+
+ // ---------------------
+ // Expected Results - ...
+ // ---------------------
+ // produce xml for the expected results
+ // Get expected results
+ Element expectedResult = new Element("bogus"); //$NON-NLS-1$
+ expectedResult = jstrat.parseXMLResultsFile(expectedResultFile,
+ expectedResult);
+ if (expectedResult.getChild(TagNames.Elements.SELECT) != null) {
+ //----------------------------------------------------------
+ // -
+ // Expected result was a ResultSet set element name to
+ // reflect
+ //----------------------------------------------------------
+ // -
+ expectedResult
+ .setName(TagNames.Elements.EXPECTED_QUERY_RESULTS);
+ } else {
+ //----------------------------------------------------------
+ // --
+ // Expected result was an exception set element name to
+ // reflect
+ //----------------------------------------------------------
+ // --
+ expectedResult
+ .setName(TagNames.Elements.EXPECTED_EXCEPTION);
+ }
+ resultElement.addContent(expectedResult);
+ } else {
+
+ // ---------------------
+ // Expected Results - ...
+ // ---------------------
+ // produce xml for the expected results
+ // Get expected results
+ Element expectedResult = new Element("bogus"); //$NON-NLS-1$
+ expectedResult = jstrat.parseXMLResultsFile(expectedResultFile,
+ expectedResult);
+ if (expectedResult.getChild(TagNames.Elements.SELECT) != null) {
+ //----------------------------------------------------------
+ // -
+ // Expected result was a ResultSet set element name to
+ // reflect
+ //----------------------------------------------------------
+ // -
+ expectedResult
+ .setName(TagNames.Elements.EXPECTED_QUERY_RESULTS);
+ } else {
+ //----------------------------------------------------------
+ // --
+ // Expected result was an exception set element name to
+ // reflect
+ //----------------------------------------------------------
+ // --
+ expectedResult
+ .setName(TagNames.Elements.EXPECTED_EXCEPTION);
+ }
+ resultElement.addContent(expectedResult);
+ }
+
+ // ------------------------------
+ // Got an exeption from the server
+ // error was in comparing exceptions
+ // ------------------------------
+
+ // add the results elements to the root element
+ rootElement.addContent(resultElement);
+
+ // Output xml
+ XMLOutputter outputter = new XMLOutputter(JdomHelper.getFormat(
+ " ", true)); //$NON-NLS-1$
+ outputter.output(new Document(rootElement), outputStream);
+
+ } catch (SQLException e) {
+ throw new QueryTestFailedException(
+ "Failed to convert error results to JDOM: " + e.getMessage()); //$NON-NLS-1$
+ } catch (JDOMException e) {
+ throw new QueryTestFailedException(
+ "Failed to convert error results to JDOM: " + e.getMessage()); //$NON-NLS-1$
+ } catch (IOException e) {
+ throw new QueryTestFailedException(
+ "Failed to output error results to " + resultsFile.getPath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
+ } catch (Throwable e) {
+ throw new QueryTestFailedException(
+ "Failed to convert error results to JDOM: " + StringUtil.getStackTrace(e)); //$NON-NLS-1$
+ } finally {
+ try {
+ outputStream.close();
+ } catch (IOException e) {
+ }
+ }
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLGenerateResults.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryReader.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryReader.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryReader.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,193 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client.ctc;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.teiid.test.client.QueryReader;
+import org.teiid.test.framework.ConfigPropertyLoader;
+import org.teiid.test.framework.ConfigPropertyNames;
+import org.teiid.test.framework.TestLogger;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
+
+import com.metamatrix.core.util.FileUtils;
+import com.metamatrix.core.util.StringUtil;
+
+public class XMLQueryReader implements QueryReader {
+
+ private Properties props = null;
+
+// private Map<String, Map<String, String>> querySet = new HashMap<String, Map<String, String>>();
+// private Map<String, String> queryToFileMap = new HashMap<String, String>();
+
+ private Map<String, String> querySetIDToFileMap = new HashMap<String, String>();
+
+ public XMLQueryReader(Properties properties)
+ throws QueryTestFailedException {
+ this.props = properties;
+ loadQuerySets();
+ }
+
+ @Override
+ public Map<String, Object> getQueries(String querySetID)
+ throws QueryTestFailedException {
+ String queryFile = querySetIDToFileMap.get(querySetID);
+
+ try {
+ return loadQueries(querySetID, queryFile);
+ } catch (IOException e) {
+ throw new QueryTestFailedException((new StringBuilder()).append(
+ "Failed to load queries from file: ").append(queryFile).append(" error:").append(e.getMessage())
+ .toString());
+ }
+
+ }
+
+ @Override
+ public Collection<String> getQuerySetIDs() {
+ return new HashSet<String>(querySetIDToFileMap.keySet());
+ }
+
+
+ private void loadQuerySets() throws QueryTestFailedException {
+ String query_dir_loc = this.props.getProperty(PROP_QUERY_FILES_DIR_LOC);
+ if (query_dir_loc == null)
+ throw new QueryTestFailedException(
+ "queryfiles.loc property was not specified ");
+
+ String query_root_loc = this.props
+ .getProperty(PROP_QUERY_FILES_ROOT_DIR);
+
+ String loc = query_dir_loc;
+
+ if (query_root_loc != null) {
+ File dir = new File(query_root_loc, query_dir_loc);
+ loc = dir.getAbsolutePath();
+ }
+
+ TestLogger.log("Loading queries from " + loc);
+
+ File files[] = FileUtils.findAllFilesInDirectoryHavingExtension(loc,
+ ".xml");
+ if (files == null || files.length == 0)
+ throw new QueryTestFailedException((new StringBuilder()).append(
+ "No query files found in directory ").append(loc)
+ .toString());
+ // List<String> queryFiles = new ArrayList<String>(files.length);
+ for (int i = 0; i < files.length; i++) {
+ String queryfile = files[i].getAbsolutePath();
+ // Get query set name
+ String querySet = getQuerySetName(queryfile); //$NON-NLS-1$
+ querySetIDToFileMap.put(querySet, queryfile);
+ // queryFiles.add(files[i].getAbsolutePath());
+ }
+
+ }
+
+ private Map<String, Object> loadQueries(String querySetID, String queryFileName)
+ throws IOException {
+
+ Map<String, Object> queries = new HashMap<String, Object>();
+ File queryFile = new File(queryFileName);
+ if (!queryFile.exists() || !queryFile.canRead()) {
+ String msg = "Query file doesn't exist or cannot be read: " + queryFileName + ", ignoring and continuing";
+ TestLogger.log(msg);
+ throw new TransactionRuntimeException(msg); //$NON-NLS-1$ //$NON-NLS-2$
+ } else {
+ // Get query set name
+ // String querySet = getQuerySetName(queryFileName) ; //$NON-NLS-1$
+
+ XMLQueryVisitationStrategy jstrat = new XMLQueryVisitationStrategy();
+ try {
+ Map queryMap = jstrat.parseXMLQueryFile(queryFile);
+ Iterator iter = queryMap.keySet().iterator();
+ while (iter.hasNext()) {
+ String queryID = (String) iter.next();
+ String query = (String) queryMap.get(queryID);
+
+ String uniqueID = querySetID + "_" + queryID;
+ queries.put(uniqueID, query);
+ }
+
+ } catch (Exception e) {
+ String msg = "Error reading query file: " + queryFileName + ", " + e.getMessage(); //$NON-NLS-1$ //$NON-NLS-2$
+ TestLogger.log(msg);
+ throw new IOException(msg); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ }
+ return queries;
+ }
+
+ private static String getQuerySetName(String queryFileName) {
+ // Get query set name
+ String querySet = queryFileName;
+ List<String> nameParts = StringUtil.split(querySet, "./\\"); //$NON-NLS-1$
+ if (nameParts.size() > 1) {
+ querySet = (String) nameParts.get(nameParts.size() - 2);
+ }
+ return querySet;
+ }
+
+ public static void main(String[] args) {
+ System.setProperty(ConfigPropertyNames.CONFIG_FILE,
+ "ctc-bqt-test.properties");
+
+ ConfigPropertyLoader _instance = ConfigPropertyLoader.getInstance();
+ Properties p = _instance.getProperties();
+ if (p == null || p.isEmpty()) {
+ throw new RuntimeException("Failed to load config properties file");
+
+ }
+
+ _instance.setProperty(PROP_QUERY_FILES_ROOT_DIR, new File(
+ "target/classes/").getAbsolutePath());
+
+ try {
+ XMLQueryReader reader = new XMLQueryReader(_instance.getProperties());
+ Iterator<String> it = reader.getQuerySetIDs().iterator();
+ while (it.hasNext()) {
+ String querySetID = it.next();
+
+ Map queries = reader.getQueries(querySetID);
+
+ if (queries.size() == 0l) {
+ System.out.println("Failed, didn't load any queries ");
+ }
+ }
+ } catch (QueryTestFailedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryReader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryVisitationStrategy.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryVisitationStrategy.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryVisitationStrategy.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,1493 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+
+package org.teiid.test.client.ctc;
+
+import java.io.File;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.sql.ResultSet;
+import java.sql.ResultSetMetaData;
+import java.sql.SQLException;
+import java.sql.Time;
+import java.sql.Timestamp;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.jdom.Attribute;
+import org.jdom.Document;
+import org.jdom.Element;
+import org.jdom.JDOMException;
+import org.jdom.input.SAXBuilder;
+import org.teiid.test.client.ctc.QueryResults.ColumnInfo;
+import org.teiid.test.util.StringUtil;
+
+import com.metamatrix.common.types.DataTypeManager;
+import com.metamatrix.internal.core.xml.SAXBuilderHelper;
+import com.metamatrix.query.sql.lang.Select;
+import com.metamatrix.query.sql.symbol.ElementSymbol;
+
+/**
+ * <P> This program helps in parsing XML Query and Results files into
+ * map objects containing individual queries/ResultSets</P>
+ *
+ * <P> This program is useful to convert the JDBC ResultSet objects into
+ * XML format. We physically walk through the ResultSet object and use JDOM to
+ * convert the ResultSets into XML. This also helps convert Exceptions into XML
+ * format.</P>
+ */
+
+public class XMLQueryVisitationStrategy {
+
+ //the row from which we start converting ResultSets to XML
+ private static final int START_ROW = 1;
+
+ // list containing datatypes of field identifiers
+
+ public XMLQueryVisitationStrategy() {
+ }
+
+ /**
+ * Consume an XML Query File and produce a Map containing queries, with
+ * queryNames/IDs as Keys.
+ * <br>
+ * @param queryFile the XML file object that is to be parsed
+ * @return the Map containig query strings.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ public Map parseXMLQueryFile(File queryFile) throws IOException, JDOMException {
+
+ HashMap queryMap = new HashMap();
+ SAXBuilder builder = SAXBuilderHelper.createSAXBuilder(false);
+ Document queryDocument = builder.build(queryFile);
+ List queryElements = queryDocument.getRootElement().getChildren(TagNames.Elements.QUERY);
+ Iterator iter = queryElements.iterator();
+ while ( iter.hasNext() ) {
+ Element queryElement = (Element) iter.next();
+ String queryName = queryElement.getAttributeValue(TagNames.Attributes.NAME);
+ if ( queryElement.getChild(TagNames.Elements.EXCEPTION) == null ) {
+ String query = queryElement.getTextTrim();
+ queryMap.put(queryName, query);
+ } else {
+ Element exceptionElement = queryElement.getChild(TagNames.Elements.EXCEPTION);
+ String exceptionType = exceptionElement.getChild(TagNames.Elements.CLASS).getTextTrim();
+ queryMap.put(queryName, exceptionType);
+ }
+ }
+ return queryMap;
+ }
+
+ /**
+ * Consume an XML results File and produce a Map containing query results
+ * as List objects, with resultNames/IDs as Keys.
+ * <br>
+ * @param resultsFile the XML file object that is to be parsed
+ * @return the Map containig results.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ public ResultsHolder parseXMLResultsFile(final File resultsFile) throws IOException, JDOMException {
+
+ QueryResults queryResults;
+ ResultsHolder expectedResults = null;
+
+ final SAXBuilder builder = SAXBuilderHelper.createSAXBuilder(false);
+ final Document resultsDocument = builder.build(resultsFile);
+ final String query = resultsDocument.getRootElement().getChildText(TagNames.Elements.QUERY);
+ final List resultElements = resultsDocument.getRootElement().getChildren(TagNames.Elements.QUERY_RESULTS);
+ final Iterator iter = resultElements.iterator();
+ while ( iter.hasNext() ) {
+ final Element resultElement = (Element) iter.next();
+ final String resultName = resultElement.getAttributeValue(TagNames.Attributes.NAME);
+ queryResults = consumeMsg(new QueryResults(), resultElement);
+ if ( queryResults.getFieldCount() != 0 ) {
+ //
+ // We've got a ResultSet
+ //
+ expectedResults = new ResultsHolder( TagNames.Elements.QUERY_RESULTS );
+ expectedResults.setQueryID( resultName );
+ expectedResults.setQuery(query);
+ expectedResults.setIdentifiers( queryResults.getFieldIdents() );
+ expectedResults.setTypes( queryResults.getTypes() );
+ if ( queryResults.getRecordCount() > 0 ) {
+ expectedResults.setRows(queryResults.getRecords());
+ }
+ } else {
+ //
+ // We've got an exception
+ //
+ expectedResults = new ResultsHolder( TagNames.Elements.EXCEPTION );
+ expectedResults.setQueryID( resultName );
+ expectedResults.setQuery(query);
+
+ final Element exceptionElement = resultElement.getChild(TagNames.Elements.EXCEPTION);
+ if ( exceptionElement != null ) {
+ expectedResults.setExceptionClassName(exceptionElement.getChild(TagNames.Elements.CLASS).getTextTrim());
+ String msg = exceptionElement.getChild(TagNames.Elements.MESSAGE).getTextTrim();
+ expectedResults.setExceptionMsg(StringUtil.removeChars(msg, new char[] {'\r'}));
+ }
+ }
+ }
+ return expectedResults;
+ }
+
+ /**
+ * Consume an XML results File, produce results as JDOM and add results to the given parent.
+ * <br>
+ * @param resultsFile the XML file object that is to be parsed
+ * @param parent the parent Element to assign results to
+ * @return the modified parent
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ public Element parseXMLResultsFile(File resultsFile, Element parent) throws IOException, JDOMException {
+
+ SAXBuilder builder = SAXBuilderHelper.createSAXBuilder(false);
+ Document resultsDocument = builder.build(resultsFile);
+ List resultElements = resultsDocument.getRootElement().getChildren(TagNames.Elements.QUERY_RESULTS);
+ Iterator iter = resultElements.iterator();
+ while ( iter.hasNext() ) {
+ Element resultElement = (Element) iter.next();
+ if ( resultElement.getChild(TagNames.Elements.SELECT) == null ) {
+ // We've got an exception
+ Element exceptionElement = resultElement.getChild(TagNames.Elements.EXCEPTION);
+ if ( exceptionElement != null ) {
+ // ---------------------------------
+ // Add the ExceptionType element ...
+ // ---------------------------------
+ Element typeElement = new Element(TagNames.Elements.EXCEPTION_TYPE);
+ typeElement.setText(exceptionElement.getChild(TagNames.Elements.EXCEPTION_TYPE).getTextTrim());
+ parent.addContent(typeElement);
+
+ // ---------------------------
+ // Add the Message element ...
+ // ---------------------------
+ Element messageElement = new Element(TagNames.Elements.MESSAGE);
+ String msg = exceptionElement.getChild(TagNames.Elements.MESSAGE).getTextTrim();
+
+ messageElement.setText(StringUtil.removeChars(msg, new char[] {'\r'}));
+ parent.addContent(messageElement);
+
+ // -------------------------
+ // Add the Class element ...
+ // -------------------------
+ Element classElement = new Element(TagNames.Elements.CLASS);
+ classElement.setText(exceptionElement.getChild(TagNames.Elements.CLASS).getTextTrim());
+ parent.addContent(classElement);
+ }
+ } else {
+ // We've got results
+
+ // -------------------------------
+ // Read the SELECT elements
+ // -------------------------------
+ Element selectElement = resultElement.getChild(TagNames.Elements.SELECT);
+ resultElement.removeChild(TagNames.Elements.SELECT);
+ parent.addContent(selectElement);
+
+ // -------------------------------
+ // Read the TABLE of data
+ // -------------------------------
+ Element tableElement = resultElement.getChild(TagNames.Elements.TABLE);
+ resultElement.removeChild(TagNames.Elements.TABLE);
+ parent.addContent(tableElement);
+ }
+ }
+ return parent;
+ }
+
+ /*********************************************************************************************
+ *********************************************************************************************
+ CONSUME METHODS
+ *********************************************************************************************
+ ********************************************************************************************/
+
+ /**
+ * Generate XML for an exception in Object form.
+ *
+ * @param ex
+ * @param exceptionElement
+ * @return The JDOM exception element.
+ */
+ public static Element jdomException(Throwable ex, Element exceptionElement) {
+ // ---------------------------------
+ // Add the ExceptionType element ...
+ // ---------------------------------
+ String className = ex.getClass().getName();
+ int index = className.lastIndexOf('.');
+ if ( index != -1 && (++index) < className.length() ) {
+ className = className.substring(index);
+ }
+ Element typeElement = new Element(TagNames.Elements.EXCEPTION_TYPE);
+ typeElement.setText(className);
+ exceptionElement.addContent(typeElement);
+
+ // ---------------------------
+ // Add the Message element ...
+ // ---------------------------
+
+ Element messageElement = new Element(TagNames.Elements.MESSAGE);
+ messageElement.setText(StringUtil.removeChars(ex.getMessage(), new char[] {'\r'}));
+
+ exceptionElement.addContent(messageElement);
+
+ // -------------------------
+ // Add the Class element ...
+ // -------------------------
+ Element classElement = new Element(TagNames.Elements.CLASS);
+ classElement.setText(ex.getClass().getName());
+ exceptionElement.addContent(classElement);
+
+ return exceptionElement;
+ }
+
+ /**
+ * Consume an XML message and update the specified QueryResults instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param resultsElement the XML element that contains the data
+ * @return the updated instance.
+ */
+ private QueryResults consumeMsg(QueryResults object, Element resultsElement) throws JDOMException {
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ QueryResults results = object;
+ if ( results == null ) {
+ results = new QueryResults();
+ }
+
+ if ( resultsElement.getChild(TagNames.Elements.SELECT) == null ) {
+ return results;
+ }
+ // -------------------------------
+ // Read the SELECT elements
+ // -------------------------------
+ Element selectElement = resultsElement.getChild(TagNames.Elements.SELECT);
+ Select select = new Select();
+ select = consumeMsg(select, selectElement);
+
+ List listOfElementSymbols = select.getSymbols();
+ Iterator elementSymbolItr = listOfElementSymbols.iterator();
+ Collection collectionOfColumnInfos = new ArrayList();
+ while ( elementSymbolItr.hasNext() ) {
+ ElementSymbol elementSymbol = (ElementSymbol) elementSymbolItr.next();
+ Class elementType = elementSymbol.getType();
+ String dataType = DataTypeManager.getDataTypeName(elementType);
+ ColumnInfo columnInfo = new ColumnInfo(elementSymbol.getName(), dataType, elementType);
+ collectionOfColumnInfos.add(columnInfo);
+ }
+ // Save column info
+ results.addFields(collectionOfColumnInfos);
+ // -------------------------------
+ // Read the TABLE of data
+ // -------------------------------
+
+ Element tableElement = resultsElement.getChild(TagNames.Elements.TABLE);
+ List tableRows = tableElement.getChildren(TagNames.Elements.TABLE_ROW);
+ if ( tableRows.size() > 0 ) {
+ Iterator rowIter = tableRows.iterator();
+
+ while ( rowIter.hasNext() ) {
+ Element rowElement = (Element) rowIter.next();
+ List cellElements = rowElement.getChildren(TagNames.Elements.TABLE_CELL);
+ Iterator cellIter = cellElements.iterator();
+ // Read cells of the table
+ ArrayList row = new ArrayList();
+ Object evalue = null;
+ while ( cellIter.hasNext() ) {
+ Element cellElement = (Element) cellIter.next();
+ if ( cellElement.getTextTrim().equalsIgnoreCase(TagNames.Elements.NULL) ) {
+ row.add(null);
+ } else {
+ Element cellChildElement = (Element) cellElement.getChildren().get(0);
+ evalue = consumeMsg(cellChildElement);
+ row.add(evalue);
+ }
+ }
+ // Save row
+ results.addRecord(row);
+ }
+ }
+ return results;
+ }
+
+ /**
+ * Consume an XML message and update the specified Select instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param selectElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Select consumeMsg(Select object, Element selectElement) throws JDOMException {
+
+ Select select = (object != null) ? (Select) object : new Select();
+ // --------------------------------
+ // Read the DISTINCT attribute
+ // --------------------------------
+
+ String distinct = selectElement.getAttributeValue(TagNames.Attributes.DISTINCT);
+ if ( distinct != null ) {
+ if ( distinct.equalsIgnoreCase("true") ) { //$NON-NLS-1$
+ select.setDistinct(true);
+ }
+ }
+
+ // --------------------------------
+ // Read the STAR attribute
+ // --------------------------------
+
+ String star = selectElement.getAttributeValue(TagNames.Attributes.STAR);
+ if ( star != null ) {
+ if ( star.equalsIgnoreCase("true") ) { //$NON-NLS-1$
+ if ( selectElement.getChildren() != null ) {
+ throw new JDOMException("No children expected when star is chosen."); //$NON-NLS-1$
+ }
+ return select;
+ }
+ }
+
+ // --------------------------------
+ // Read the IDENTIFIER elements ...
+ // --------------------------------
+ List idents = selectElement.getChildren();
+ Iterator identIter = idents.iterator();
+ while ( identIter.hasNext() ) {
+ Element dataElement = (Element) identIter.next();
+ Attribute dataType = dataElement.getAttribute(TagNames.Attributes.TYPE);
+ // add the dataType of the element to the list containing dataTypes
+ ElementSymbol nodeID = new ElementSymbol(dataElement.getText());
+ Class nodeType = (Class) TagNames.TYPE_MAP.get(dataType.getValue());
+ if (nodeType == null) {
+ throw new JDOMException("Unknown class for type \"" + dataType.getValue() + "\"."); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ nodeID.setType(nodeType);
+ select.addSymbol(nodeID);
+ }
+
+ return select;
+ }
+
+
+ /**
+ * Produce a JDOM Element for the instance of any Object.
+ * <br>
+ * @param cellElement the XML element that is to produce the XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing XML.
+ */
+ private Object consumeMsg(Element cellElement) throws JDOMException {
+
+ Object cellObject = null;
+ String cellName = cellElement.getName();
+
+ if ( cellName.equalsIgnoreCase(TagNames.Elements.BOOLEAN) ) {
+ cellObject = consumeMsg((Boolean) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.STRING) ) {
+ cellObject = consumeMsg((String) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.CHAR) ) {
+ cellObject = consumeMsg((Character) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.BYTE) ) {
+ cellObject = consumeMsg((Byte) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.DOUBLE) ) {
+ cellObject = consumeMsg((Double) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.DATE) ) {
+ cellObject = consumeMsg((java.sql.Date) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.TIME) ) {
+ cellObject = consumeMsg((Time) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.TIMESTAMP) ) {
+ cellObject = consumeMsg((Timestamp) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.FLOAT) ) {
+ cellObject = consumeMsg((Float) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.BIGDECIMAL) ) {
+ cellObject = consumeMsg((BigDecimal) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.BIGINTEGER) ) {
+ cellObject = consumeMsg((BigInteger) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.INTEGER) ) {
+ cellObject = consumeMsg((Integer) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.LONG) ) {
+ cellObject = consumeMsg((Long) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.SHORT) ) {
+ cellObject = consumeMsg((Short) cellObject, cellElement);
+ } else if ( cellName.equalsIgnoreCase(TagNames.Elements.OBJECT) ) {
+ cellObject = consumeMsg((String) cellObject, cellElement);
+ }
+
+ return cellObject;
+ }
+
+ /**
+ * Consume an XML message and update the specified Boolean instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Boolean object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ boolean result = false;
+ String value = cellElement.getTextTrim();
+ if ( value.equalsIgnoreCase(TagNames.Values.TRUE) ) {
+ result = true;
+ } else if ( value.equalsIgnoreCase(TagNames.Values.FALSE) ) {
+ result = false;
+ } else {
+ throw new JDOMException("Invalid value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: \"" + value + "\" must be either \"" + //$NON-NLS-1$ //$NON-NLS-2$
+ TagNames.Values.TRUE + "\" or \"" + //$NON-NLS-1$
+ TagNames.Values.FALSE + "\""); //$NON-NLS-1$
+ }
+
+ return new Boolean(result);
+ }
+
+ /**
+ * Consume an XML message and update the specified java.sql.Date instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(java.sql.Date object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ java.sql.Date result;
+ try {
+ result = java.sql.Date.valueOf(cellElement.getTextTrim());
+ } catch ( Exception e ) {
+ throw new JDOMException("Invalid input format ", e); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Time instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Time object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Time result;
+ try {
+ result = Time.valueOf(cellElement.getTextTrim());
+ } catch ( Exception e ) {
+ throw new JDOMException("Invalid input format ", e); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Timestamp instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Timestamp object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Timestamp result;
+ try {
+ result = Timestamp.valueOf(cellElement.getTextTrim());
+ } catch ( Exception e ) {
+ throw new JDOMException("Invalid input format ", e); //$NON-NLS-1$
+ }
+
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Double instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Double object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ String strElement = cellElement.getTextTrim();
+ Double result;
+
+ if ( strElement.equals("NaN") ) { //$NON-NLS-1$
+ result = new Double(Double.NaN);
+ } else if ( strElement.equals("-Infinity") ) { //$NON-NLS-1$
+ result = new Double(Double.NEGATIVE_INFINITY);
+ } else if ( strElement.equals("Infinity") ) { //$NON-NLS-1$
+ result = new Double(Double.POSITIVE_INFINITY);
+ } else {
+ try {
+ result = Double.valueOf(strElement);
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + strElement, e); //$NON-NLS-1$
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Float instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Float object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ String strElement = cellElement.getTextTrim();
+ Float result;
+
+ if ( strElement.equals("NaN") ) { //$NON-NLS-1$
+ result = new Float(Float.NaN);
+ } else if ( strElement.equals("-Infinity") ) { //$NON-NLS-1$
+ result = new Float(Float.NEGATIVE_INFINITY);
+ } else if ( strElement.equals("Infinity") ) { //$NON-NLS-1$
+ result = new Float(Float.POSITIVE_INFINITY);
+ } else {
+ try {
+ result = Float.valueOf(strElement);
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + strElement, e); //$NON-NLS-1$
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified BigDecimal instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(BigDecimal object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ BigDecimal result;
+ try {
+ result = new BigDecimal(cellElement.getTextTrim());
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified BigInteger instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(BigInteger object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ BigInteger result;
+ try {
+ result = new BigInteger(cellElement.getTextTrim());
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified String instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(String object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+
+ return cellElement.getText();
+ }
+
+ /**
+ * Consume an XML message and update the specified Character instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Character object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Character result;
+ try {
+ if ( cellElement.getTextTrim().length() == 0 ) {
+ return null;
+ }
+ result = new Character(cellElement.getTextTrim().charAt(0));
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Byte instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Byte object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Byte result;
+ try {
+ result = new Byte(cellElement.getTextTrim());
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Integer instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Integer object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Integer result;
+ try {
+ result = Integer.valueOf(cellElement.getTextTrim());
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Long instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Long object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Long result;
+ try {
+ result = Long.valueOf(cellElement.getTextTrim());
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /**
+ * Consume an XML message and update the specified Long instance.
+ * <br>
+ * @param object the instance that is to be updated with the XML message data.
+ * @param cellElement the XML element that contains the data
+ * @return the updated instance.
+ * @exception JDOMException if there is an error consuming the message.
+ */
+ private Object consumeMsg(Short object, Element cellElement) throws JDOMException {
+
+ // -----------------------
+ // Process the element ...
+ // -----------------------
+ Short result;
+ try {
+ result = Short.valueOf(cellElement.getTextTrim());
+ } catch ( NumberFormatException e ) {
+ throw new JDOMException("Unable to parse the value for " + cellElement.getName() + //$NON-NLS-1$
+ " element: " + cellElement.getTextTrim(), e); //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$ //$NON-NLS-1$
+ }
+ return result;
+ }
+
+ /*********************************************************************************************
+ *********************************************************************************************
+ PRODUCE METHODS
+ *********************************************************************************************
+ ********************************************************************************************/
+
+ /**
+ * Produce a JDOM Element for an instance of a JDBC ResultSet object.
+ * <br>
+ * @param object for which the JDOM Element is to be produced.
+ * @return the JDOM element of the ResultSet object that was converted to XML.
+ * @exception JDOMException if there is an error producing XML.
+ * @exception JDOMException if there is an error producing XML.
+ * @exception SQLException if there is an error walking through the ResultSet object.
+ */
+ public Element produceResults(ResultSet object) throws JDOMException, SQLException {
+
+ // When no begin and end
+ return produceResults(object, START_ROW, Integer.MAX_VALUE);
+ }
+
+ /**
+ * Produce a JDOM Element for an instance of Results object.
+ * <br>
+ * @param object for which the JDOM Element is to be produced.
+ * @param beginRow The starting row from which the results are to be converted to XML.
+ * @param endRow The row until which the results are to be converted to XML.
+ * @return the JDOM element of the results object that was converted to XML.
+ * @exception JDOMException if there is an error producing XML.
+ * @exception SQLException if there is an error walking through the ResultSet object.
+ */
+ private Element produceResults(ResultSet object, int beginRow, int endRow)
+ throws JDOMException, SQLException {
+
+ if ( beginRow < START_ROW ) {
+ throw new IllegalArgumentException(
+ "The starting row cannot be less than 1."); //$NON-NLS-1$
+ } else if ( beginRow > endRow ) {
+ throw new IllegalArgumentException(
+ "The starting row cannot be less than the ending row."); //$NON-NLS-1$
+ }
+
+ int currentRow = object.getRow() + 1;
+
+ if ( beginRow > currentRow ) {
+ while ( !object.isLast() && currentRow != beginRow ) {
+ object.next();
+ currentRow++;
+ }
+
+ } else if ( beginRow < currentRow ) {
+ while ( !object.isFirst() && currentRow != beginRow ) {
+ object.previous();
+ currentRow--;
+ }
+ }
+
+ return produceMsg(object, endRow);
+ }
+
+ /**
+ * Produce a JDOM Element for an instance of a JDBC ResultSet object.
+ * <br>
+ * @param object for which the JDOM Element is to be produced.
+ * @param endRow The row until which the results are to be converted to XML.
+ * @return the JDOM element of the results object that was converted to XML.
+ * @exception JDOMException if there is an error producing XML.
+ * @exception SQLException if there is an error walking through the ResultSet object.
+ */
+ private Element produceMsg(ResultSet object, int endRow) throws JDOMException, SQLException {
+
+ // -----------------------------------
+ // Create the QueryResults element ...
+ // -----------------------------------
+ Element resultsElement = new Element(TagNames.Elements.QUERY_RESULTS);
+
+ // -----------------------------------
+ // Add the Select (header) element ...
+ // -----------------------------------
+ try {
+ ResultSetMetaData rmdata = object.getMetaData();
+ List identList = new ArrayList(rmdata.getColumnCount());
+ for ( int i = 1; i <= rmdata.getColumnCount(); i++ ) {
+ identList.add(new ElementSymbol(rmdata.getColumnName(i)));
+ }
+ Select select = new Select(identList);
+ resultsElement = produceMsg(select, rmdata, resultsElement);
+
+ // -------------------------
+ // Add the Table element ...
+ // -------------------------
+ resultsElement.addContent(new Element(TagNames.Elements.TABLE));
+ Element tableElement = resultsElement.getChild(TagNames.Elements.TABLE);
+ int rowCount = 0;
+ int colCount = rmdata.getColumnCount();
+
+ while ( object.next() && (object.getRow() <= endRow) ) {
+
+ // -------------------------
+ // Add the ROW element ...
+ // -------------------------
+ Element rowElement = new Element(TagNames.Elements.TABLE_ROW);
+
+ for ( int i = 1; i <= colCount; i++ ) {
+ // -------------------------
+ // Add the Cell element ...
+ // -------------------------
+ Element cellElement = new Element(TagNames.Elements.TABLE_CELL);
+ Object cellValue = object.getObject(i);
+ if ( cellValue != null ) {
+ cellElement = produceMsg(cellValue, cellElement);
+ } else {
+ cellElement = cellElement.addContent(TagNames.Elements.NULL);
+ }
+ rowElement.addContent(cellElement);
+ }
+ tableElement.addContent(rowElement);
+ rowCount++;
+ }
+ Attribute rowCountAttribute = new Attribute(TagNames.Attributes.TABLE_ROW_COUNT,
+ Integer.toString(rowCount));
+ Attribute columnCountAttribute = new Attribute(TagNames.Attributes.TABLE_COLUMN_COUNT,
+ Integer.toString(colCount));
+ tableElement.setAttribute(rowCountAttribute);
+ tableElement.setAttribute(columnCountAttribute);
+ } catch ( SQLException e ) {
+ // error while reading results
+ throw(e);
+ }
+
+ return resultsElement;
+ }
+
+ /**
+ * Produce a JDOM Element for an instance of a JDBC ResultSet object.
+ * <br>
+ * @param object for which the JDOM Element is to be produced.
+ * @return the JDOM element of the results object that was converted to XML.
+ * @exception JDOMException if there is an error producing XML.
+ * @exception SQLException if there is an error walking through the ResultSet object.
+ */
+ public Element produceMsg(ResultSet object, Element resultsElement) throws JDOMException, SQLException {
+
+ // -----------------------------------
+ // Add the Select (header) element ...
+ // -----------------------------------
+ try {
+ ResultSetMetaData rmdata = object.getMetaData();
+ List identList = new ArrayList(rmdata.getColumnCount());
+ for ( int i = 1; i <= rmdata.getColumnCount(); i++ ) {
+ identList.add(new ElementSymbol(rmdata.getColumnName(i)));
+ }
+ Select select = new Select(identList);
+ resultsElement = produceMsg(select, rmdata, resultsElement);
+
+ // -------------------------
+ // Add the Table element ...
+ // -------------------------
+ resultsElement.addContent(new Element(TagNames.Elements.TABLE));
+ Element tableElement = resultsElement.getChild(TagNames.Elements.TABLE);
+ int rowCount = 0;
+ int colCount = rmdata.getColumnCount();
+
+ while ( object.next() ) {
+
+ // -------------------------
+ // Add the ROW element ...
+ // -------------------------
+ Element rowElement = new Element(TagNames.Elements.TABLE_ROW);
+
+ for ( int i = 1; i <= colCount; i++ ) {
+ // -------------------------
+ // Add the Cell element ...
+ // -------------------------
+ Element cellElement = new Element(TagNames.Elements.TABLE_CELL);
+ Object cellValue = object.getObject(i);
+ if ( cellValue != null ) {
+ cellElement = produceMsg(cellValue, cellElement);
+ } else {
+ cellElement = cellElement.addContent(TagNames.Elements.NULL);
+ }
+ rowElement.addContent(cellElement);
+ }
+ tableElement.addContent(rowElement);
+ rowCount++;
+ }
+ Attribute rowCountAttribute = new Attribute(TagNames.Attributes.TABLE_ROW_COUNT,
+ Integer.toString(rowCount));
+ Attribute columnCountAttribute = new Attribute(TagNames.Attributes.TABLE_COLUMN_COUNT,
+ Integer.toString(colCount));
+ tableElement.setAttribute(rowCountAttribute);
+ tableElement.setAttribute(columnCountAttribute);
+ } catch ( SQLException e ) {
+ // error while reading results
+ throw(e);
+ }
+
+ return resultsElement;
+ }
+
+ /**
+ * Produce a JDOM Element for the instance of any Object.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing XML.
+ */
+ public Element produceMsg(Object object, Element parent) throws JDOMException {
+ if ( object == null ) {
+ throw new IllegalArgumentException("Null object reference."); //$NON-NLS-1$
+ }
+ Element element = null;
+
+ if ( object instanceof Boolean ) {
+ element = produceMsg((Boolean) object, parent);
+ } else if ( object instanceof String ) {
+ element = produceMsg((String) object, parent);
+ } else if ( object instanceof Character ) {
+ element = produceMsg((Character) object, parent);
+ } else if ( object instanceof Byte ) {
+ element = produceMsg((Byte) object, parent);
+ } else if ( object instanceof Double ) {
+ element = produceMsg((Double) object, parent);
+ } else if ( object instanceof java.sql.Date ) {
+ element = produceMsg((java.sql.Date) object, parent);
+ } else if ( object instanceof Time ) {
+ element = produceMsg((Time) object, parent);
+ } else if ( object instanceof Timestamp ) {
+ element = produceMsg((Timestamp) object, parent);
+ } else if ( object instanceof Float ) {
+ element = produceMsg((Float) object, parent);
+ } else if ( object instanceof BigDecimal ) {
+ element = produceMsg((BigDecimal) object, parent);
+ } else if ( object instanceof BigInteger ) {
+ element = produceMsg((BigInteger) object, parent);
+ } else if ( object instanceof Integer ) {
+ element = produceMsg((Integer) object, parent);
+ } else if ( object instanceof Long ) {
+ element = produceMsg((Long) object, parent);
+ } else if ( object instanceof Short ) {
+ element = produceMsg((Short) object, parent);
+ } else if ( object instanceof Throwable ) {
+ element = produceMsg((Throwable) object, parent);
+ } else {
+ element = produceObject(object, parent);
+ }
+
+ return element;
+ }
+
+ /**
+ * new ----
+ * @param select
+ * @param rmdata
+ * @param parent
+ * @return
+ * @throws JDOMException
+ */
+ private Element produceMsg(Select select, ResultSetMetaData rmdata, Element parent)
+ throws JDOMException {
+
+ // -----------------------------------
+ // Create the Select element ...
+ // -----------------------------------
+
+ Element selectElement = new Element(TagNames.Elements.SELECT);
+
+ // ---------------------------------
+ // Create the DISTINCT attribute ...
+ // ---------------------------------
+ boolean distinct = select.isDistinct();
+ if ( distinct ) {
+ Attribute distinctAttribute = new Attribute(TagNames.Attributes.DISTINCT, "true"); //$NON-NLS-1$
+ selectElement.setAttribute(distinctAttribute);
+ } // else default is false so no need
+
+ // ----------------------------------
+ // Create the STAR attribute ...
+ // ----------------------------------
+ if ( select.isStar() ) {
+ Attribute starAttribute = new Attribute(TagNames.Attributes.STAR, "true"); //$NON-NLS-1$
+ selectElement.setAttribute(starAttribute);
+ }
+
+ // --------------------------------
+ // Create the DATANODE elements ...
+ // --------------------------------
+ int col = 0;
+ Iterator iter = select.getSymbols().iterator();
+ while ( iter.hasNext() ) {
+ Element dataElement = new Element(TagNames.Elements.DATA_ELEMENT);
+ ElementSymbol symbol = (ElementSymbol) iter.next();
+ String elementName = symbol.getName();
+ Attribute dataType = null;
+ try {
+ dataType = new Attribute(TagNames.Attributes.TYPE, rmdata.getColumnTypeName(++col));
+ } catch ( SQLException e ) {
+ //
+ }
+ dataElement.setAttribute(dataType);
+ dataElement.setText(elementName);
+ selectElement.addContent(dataElement);
+ }
+ if ( parent != null ) {
+ selectElement = parent.addContent(selectElement);
+ }
+
+ return selectElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Object.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceObject(Object object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Object element ...
+ // ----------------------
+ Element objectElement = new Element(TagNames.Elements.OBJECT);
+
+ // System.out.println("ProductObject (before encoding): " + object.toString() );
+ // try {
+ objectElement.setText(object.toString());
+ // URLEncoder.encode(object.toString(), "UTF-8"));
+ // } catch (UnsupportedEncodingException e) {
+ // UTF-8 is supported natively by all jvms
+ // }
+// System.out.println("ProductObject (after encoding): " + objectElement.getText() );
+
+
+ if ( parent != null ) {
+ objectElement = parent.addContent(objectElement);
+ }
+
+ return objectElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the String.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(String object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the String element ...
+ // ----------------------
+ Element stringElement = new Element(TagNames.Elements.STRING);
+ stringElement.setText(object);
+ if ( parent != null ) {
+ stringElement = parent.addContent(stringElement);
+ }
+
+ return stringElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Character.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Character object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Character element ...
+ // ----------------------
+ Element charElement = new Element(TagNames.Elements.CHAR);
+ charElement.setText(object.toString());
+ if ( parent != null ) {
+ charElement = parent.addContent(charElement);
+ }
+
+ return charElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Byte.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Byte object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Byte element ...
+ // ----------------------
+ Element byteElement = new Element(TagNames.Elements.BYTE);
+ byteElement.setText(object.toString());
+ if ( parent != null ) {
+ byteElement = parent.addContent(byteElement);
+ }
+
+ return byteElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Boolean.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Boolean object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Boolean element ...
+ // ----------------------
+ Element booleanElement = new Element(TagNames.Elements.BOOLEAN);
+
+ if ( object.booleanValue() == true ) {
+ booleanElement.setText(TagNames.Values.TRUE);
+ } else {
+ booleanElement.setText(TagNames.Values.FALSE);
+ }
+
+ if ( parent != null ) {
+ booleanElement = parent.addContent(booleanElement);
+ }
+
+ return booleanElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Float.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Float object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Float element ...
+ // ----------------------
+ Element floatElement = new Element(TagNames.Elements.FLOAT);
+ floatElement.setText(object.toString());
+ if ( parent != null ) {
+ floatElement = parent.addContent(floatElement);
+ }
+
+ return floatElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Double.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Double object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Double element ...
+ // ----------------------
+ Element doubleElement = new Element(TagNames.Elements.DOUBLE);
+ doubleElement.setText(object.toString());
+ if ( parent != null ) {
+ doubleElement = parent.addContent(doubleElement);
+ }
+
+ return doubleElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the BigDecimal.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(BigDecimal object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the BigDecimal element ...
+ // ----------------------
+ Element bigDecimalElement = new Element(TagNames.Elements.BIGDECIMAL);
+ bigDecimalElement.setText(object.toString());
+ if ( parent != null ) {
+ bigDecimalElement = parent.addContent(bigDecimalElement);
+ }
+
+ return bigDecimalElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the BigInteger.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(BigInteger object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the BigInteger element ...
+ // ----------------------
+ Element bigIntegerElement = new Element(TagNames.Elements.BIGINTEGER);
+ bigIntegerElement.setText(object.toString());
+ if ( parent != null ) {
+ bigIntegerElement = parent.addContent(bigIntegerElement);
+ }
+
+ return bigIntegerElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the java.sql.Date.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(java.sql.Date object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the java.sql.Date element ...
+ // ----------------------
+ Element sqldateElement = new Element(TagNames.Elements.DATE);
+ sqldateElement.setText(object.toString());
+ if ( parent != null ) {
+ sqldateElement = parent.addContent(sqldateElement);
+ }
+
+ return sqldateElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Time.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Time object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Time element ...
+ // ----------------------
+ Element timeElement = new Element(TagNames.Elements.TIME);
+ timeElement.setText(object.toString());
+ if ( parent != null ) {
+ timeElement = parent.addContent(timeElement);
+ }
+
+ return timeElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Timestamp.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Timestamp object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Timestamp element ...
+ // ----------------------
+ Element timestampElement = new Element(TagNames.Elements.TIMESTAMP);
+ timestampElement.setText(object.toString());
+ if ( parent != null ) {
+ timestampElement = parent.addContent(timestampElement);
+ }
+
+ return timestampElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Integer.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Integer object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Integer element ...
+ // ----------------------
+ Element integerElement = new Element(TagNames.Elements.INTEGER);
+ integerElement.setText(object.toString());
+ if ( parent != null ) {
+ integerElement = parent.addContent(integerElement);
+ }
+
+ return integerElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Long.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Long object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Long element ...
+ // ----------------------
+ Element longElement = new Element(TagNames.Elements.LONG);
+ longElement.setText(object.toString());
+ if ( parent != null ) {
+ longElement = parent.addContent(longElement);
+ }
+
+ return longElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the Short.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Short object, Element parent) throws JDOMException {
+
+ // ----------------------
+ // Create the Long element ...
+ // ----------------------
+ Element shortElement = new Element(TagNames.Elements.SHORT);
+ shortElement.setText(object.toString());
+ if ( parent != null ) {
+ shortElement = parent.addContent(shortElement);
+ }
+
+ return shortElement;
+ }
+
+ /**
+ * Produce an XML message for an instance of the SQLException.
+ * <br>
+ * @param object the instance for which the message is to be produced.
+ * @param parent the XML element that is to be the parent of the produced XML message.
+ * @return the root element of the XML segment that was produced.
+ * @exception JDOMException if there is an error producing the message.
+ */
+ private Element produceMsg(Throwable object, Element parent) throws JDOMException {
+
+ Throwable exception = object;
+ Element exceptionElement = null;
+
+ // --------------------------------
+ // Create the Exception element ...
+ // --------------------------------
+ exceptionElement = new Element(TagNames.Elements.EXCEPTION);
+
+ // ---------------------------------
+ // Add the ExceptionType element ...
+ // ---------------------------------
+ String className = exception.getClass().getName();
+ int index = className.lastIndexOf('.');
+ if ( index != -1 && (++index) < className.length() ) {
+ className = className.substring(index);
+ }
+ Element typeElement = new Element(TagNames.Elements.EXCEPTION_TYPE);
+ typeElement.setText(className);
+ exceptionElement.addContent(typeElement);
+
+ // ---------------------------
+ // Add the Message element ...
+ // ---------------------------
+ Element messageElement = new Element(TagNames.Elements.MESSAGE);
+ messageElement.setText(StringUtil.removeChars(exception.getMessage(), new char[] {'\r'}));
+
+ exceptionElement.addContent(messageElement);
+
+ // -------------------------
+ // Add the Class element ...
+ // -------------------------
+ Element classElement = new Element(TagNames.Elements.CLASS);
+ classElement.setText(exception.getClass().getName());
+ exceptionElement.addContent(classElement);
+
+ if ( parent != null ) {
+ exceptionElement = parent.addContent(exceptionElement);
+ }
+
+ return exceptionElement;
+ }
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/ctc/XMLQueryVisitationStrategy.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/src/main/java/org/teiid/test/client/results/TestResultStat.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/client/results/TestResultStat.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/client/results/TestResultStat.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,122 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.client.results;
+
+import java.io.Serializable;
+
+import org.teiid.test.client.TestResult;
+
+/**
+ * ATestResultStat
+ *
+ * <p>A per-query set of result stats.</p>
+ */
+public class TestResultStat implements TestResult, Serializable {
+
+ /**
+ * @since
+ */
+ private static final long serialVersionUID = 6670189391506288744L;
+ protected int resultStatus = -1;
+ protected String queryID;
+ protected String querySetID;
+ protected String errorMsg;
+ protected String query;
+
+ private long beginTS;
+ private long endTS;
+
+ private String errorFile;
+
+
+ public TestResultStat(final String querySetID, final String queryID, String query, final int resultStatus, long beginTS, long endTS, final Throwable error) {
+ this.querySetID = querySetID;
+ this.queryID = queryID;
+ this.resultStatus = resultStatus;
+ this.beginTS = beginTS;
+ this.endTS = endTS;
+ this.errorMsg = (error != null ? error.getMessage() : ""); //$NON-NLS-1$
+ }
+
+ public TestResultStat(final String querySetID, final String queryID, String query, final int resultStatus, long beginTS, long endTS, final Throwable error, String errorFile) {
+ this.querySetID = querySetID;
+ this.queryID = queryID;
+ this.resultStatus = resultStatus;
+ this.beginTS = beginTS;
+ this.endTS = endTS;
+ this.errorMsg = (error != null ? error.getMessage() : ""); //$NON-NLS-1$
+
+ this.errorFile = errorFile;
+ }
+
+ public String getResultStatusString() {
+ switch (resultStatus) {
+ case RESULT_STATE.TEST_SUCCESS:
+ return RESULT_STATE_STRING.PASS;
+ case RESULT_STATE.TEST_EXCEPTION:
+ return RESULT_STATE_STRING.FAIL;
+ case RESULT_STATE.TEST_EXPECTED_EXCEPTION:
+ return RESULT_STATE_STRING.FAIL_EXPECTED_EXCEPTION;
+ }
+ return RESULT_STATE_STRING.UNKNOWN;
+ }
+
+
+
+ @Override
+ public String getQuerySetID() {
+ // TODO Auto-generated method stub
+ return this.querySetID;
+ }
+
+ public String getQueryID() {
+ return queryID;
+ }
+
+ public String getQuery() {
+ return query;
+ }
+
+ public int getStatus() {
+ return resultStatus;
+ }
+
+ public String getExceptionMsg() {
+ return errorMsg;
+ }
+
+ public long getBeginTS() {
+ return beginTS;
+
+ }
+
+ public long getEndTS() {
+ return endTS;
+ }
+
+ /**
+ * @return Returns the errorfile.
+ */
+ public String getErrorfile() {
+ return errorFile;
+ }
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/client/results/TestResultStat.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyLoader.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyLoader.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyLoader.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -8,20 +8,17 @@
import org.teiid.test.framework.exception.TransactionRuntimeException;
import org.teiid.test.util.PropUtils;
-import com.metamatrix.common.util.PropertiesUtils;
-
/**
* The ConfigProperteryLoader will load the configuration properties to be used by a test.
- * These properties only live for the duration of one test.
+ * Unless a different configuraton file is specified, subsequent loading of the configuration
+ * fill will not occur. However, <code>overrides</code> that are applied per test
*
- * NOTE: System properties set by the VM will be considered long living. This is so the
- * -Dusedatasources ( {@link ConfigPropertyNames#USE_DATASOURCES_PROP} ) option can be maintained for the duration of a set of tests.
*
- *
* @author vanhalbert
*
*/
+
public class ConfigPropertyLoader {
/**
@@ -57,7 +54,6 @@
if (_instance != null && !diff) {
return _instance;
}
-
if (_instance != null) {
cleanup();
}
@@ -91,20 +87,33 @@
}
- public static synchronized void cleanup() {
- _instance.overrides.clear();
+ private static synchronized void cleanup() {
+
_instance.modelAssignedDatabaseType.clear();
_instance.props.clear();
+
if (_instance.dsfactory != null) {
_instance.dsfactory.cleanup();
}
+
+ reset();
+
_instance = null;
LAST_CONFIG_FILE=null;
}
+
+ /**
+ * Called after each test to reset any per test settings.
+ */
+ public static synchronized void reset() {
+ _instance.overrides.clear();
+ }
+
private void initialize() {
- loadProperties(LAST_CONFIG_FILE);
+
+ props = PropUtils.loadProperties("/" + LAST_CONFIG_FILE, null);
dsfactory = new DataSourceFactory(this);
}
@@ -129,6 +138,10 @@
public void setProperty(String key, String value) {
overrides.setProperty(key, value);
}
+
+ public void setProperties(Properties props) {
+ overrides.putAll(props);
+ }
public Properties getProperties() {
@@ -148,12 +161,7 @@
this.modelAssignedDatabaseType.put(modelname, dbtype);
}
- private void loadProperties(String filename) {
-
- props = PropUtils.loadProperties("/" + filename, null);
- }
-
public static void main(String[] args) {
System.setProperty("test", "value");
@@ -166,6 +174,22 @@
if (!p.getProperty("test").equalsIgnoreCase("value")) {
throw new RuntimeException("Failed to pickup system property");
}
+
+ _instance.setProperty("override", "ovalue");
+
+ if (!_instance.getProperties().getProperty("override").equalsIgnoreCase("ovalue")) {
+ throw new RuntimeException("Override value wasnt found");
+ }
+
+ ConfigPropertyLoader.reset();
+ if (_instance.getProperties().getProperty("override") != null) {
+ throw new RuntimeException("Override value was found, should have been removed on reset");
+ }
+
+ if (!p.getProperty("test").equalsIgnoreCase("value")) {
+ throw new RuntimeException("Failed to pickup system property");
+ }
+
System.out.println("Loaded Config Properties " + p.toString());
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyNames.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyNames.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/ConfigPropertyNames.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -1,5 +1,6 @@
package org.teiid.test.framework;
+import org.teiid.test.framework.connection.ConnectionStrategy;
import org.teiid.test.framework.datasource.DataSource;
import org.teiid.test.framework.datasource.DataSourceMgr;
@@ -64,6 +65,18 @@
public static final String OVERRIDE_DATASOURCES_LOC = "datasourceloc";
/**
+ * If {@link DISABLE_DATASTORES} is specified, then the assumption is that configuration related
+ * to the datastores is being handled out side of the test framework.
+ * This include not performing the following:
+ * <li>{@link DataStore} will not called to configure the data prior to running a test</li>
+ * <li>The connector bindings will not be configured as part of the {@link ConnectionStrategy} vdb configuration.
+ * The vdb must have the binding(s) defined. </li>
+ *
+ * The {@link TestClientTransaction} will be using this option because the data is already assumed configured in its respective database.
+ */
+ public static final String DISABLE_DATASTORES = "disable_datastore";
+
+ /**
* Connection Type indicates the type of connection (strategy) to use when
* connecting to Teiid.
* Options are {@link CONNECTION_TYPES}
Added: trunk/test-integration/db/src/main/java/org/teiid/test/framework/TestLogger.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/TestLogger.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/TestLogger.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA.
+ */
+package org.teiid.test.framework;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+/**
+ * @author vanhalbert
+ *
+ */
+public class TestLogger {
+
+ public static final Level INFO = Level.FINER;
+ public static final Level DEBUG = Level.FINEST;
+ public static final Level IMPORTANT = Level.FINE;
+
+ private static final Logger LOGGER = Logger.getLogger("org.teiid.test");
+
+ static {
+ LOGGER.setLevel(IMPORTANT);
+ }
+
+ public static final void setLogLevel(Level level) {
+ LOGGER.setLevel(level);
+ }
+
+ public static final void logDebug(String msg) {
+ log(Level.FINEST, msg, null);
+ }
+
+ public static final void logDebug(String msg, Throwable t) {
+ log(Level.FINEST, msg, t);
+ }
+
+ // info related messages, which
+ public static final void logInfo(String msg) {
+ log(Level.FINER, msg, null);
+ }
+
+ // configuration related messages
+ public static final void logConfig(String msg) {
+ log(Level.CONFIG, msg, null);
+ }
+
+ // most important messages
+ public static final void log(String msg) {
+ log(Level.FINE, msg, null);
+ }
+
+ private static final void log(Level javaLevel, Object msg, Throwable t) {
+
+ if (LOGGER.isLoggable(javaLevel)) {
+ LOGGER.log(javaLevel, msg.toString(), t);
+ }
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/framework/TestLogger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionContainer.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionContainer.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionContainer.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -4,50 +4,20 @@
*/
package org.teiid.test.framework;
-import java.util.Properties;
-
-import org.teiid.test.framework.connection.ConnectionStrategy;
-import org.teiid.test.framework.connection.ConnectionStrategyFactory;
-import org.teiid.test.framework.exception.QueryTestFailedException;
import org.teiid.test.framework.exception.TransactionRuntimeException;
import com.metamatrix.core.util.StringUtil;
public abstract class TransactionContainer {
- private boolean debug = false;
-
-
private String testClassName = null;
- protected ConnectionStrategy connStrategy;
- protected Properties props;
protected TransactionContainer() {
- ConfigPropertyLoader config = ConfigPropertyLoader.getInstance();
- try {
- this.connStrategy = ConnectionStrategyFactory
- .createConnectionStrategy(config);
- } catch (QueryTestFailedException e) {
- // TODO Auto-generated catch block
- throw new TransactionRuntimeException(e);
- }
- this.props = new Properties();
- this.props.putAll(this.connStrategy.getEnvironment());
-
}
- public ConnectionStrategy getConnectionStrategy() {
- return this.connStrategy;
- }
-
-
- public void setEnvironmentProperty(String key, String value) {
- this.getConnectionStrategy().getEnvironment().setProperty(key, value);
- }
-
protected void before(TransactionQueryTestCase test) {
}
@@ -63,10 +33,14 @@
detail("Start transaction test: " + test.getTestName());
try {
- test.setConnectionStrategy(connStrategy);
test.setup();
+ } catch (TransactionRuntimeException tre) {
+ if (!test.exceptionExpected()) {
+ tre.printStackTrace();
+ }
+ throw tre;
} catch (Throwable e) {
if (!test.exceptionExpected()) {
e.printStackTrace();
@@ -81,15 +55,8 @@
} finally {
debug(" test.cleanup");
- try {
test.cleanup();
- } finally {
- // cleanup all connections created for this test.
- if (connStrategy != null) {
- connStrategy.shutdown();
- }
- }
}
}
@@ -120,6 +87,8 @@
debug("End runTest: " + test.getTestName());
+ } catch (TransactionRuntimeException tre) {
+ throw tre;
} catch (Throwable e) {
if (!test.exceptionExpected()) {
@@ -141,14 +110,11 @@
protected void debug(String message) {
- if (debug) {
- System.out.println("[" + this.testClassName + "] " + message);
- }
-
+ TestLogger.logDebug("[" + this.testClassName + "] " + message);
}
protected void detail(String message) {
- System.out.println("[" + this.testClassName + "] " + message);
+ TestLogger.log("[" + this.testClassName + "] " + message);
}
protected boolean done() {
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionQueryTestCase.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionQueryTestCase.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/TransactionQueryTestCase.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -106,13 +106,13 @@
String getTestName();
/**
- * Called to set the current connection strategy being used.
+ * Called to get the current connection strategy being used.
*
- * @param connStrategy
+ * @return connStrategy
*
* @since
*/
- void setConnectionStrategy(ConnectionStrategy connStrategy) throws QueryTestFailedException;
+ ConnectionStrategy getConnectionStrategy() ;
/**
* Called by the {@link TransactionContainer} prior to testcase processing
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategy.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategy.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategy.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -18,6 +18,8 @@
import org.teiid.adminapi.AdminOptions;
import org.teiid.adminapi.Model;
import org.teiid.adminapi.VDB;
+import org.teiid.test.framework.ConfigPropertyNames;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.ConfigPropertyNames.CONNECTION_STRATEGY_PROPS;
import org.teiid.test.framework.datasource.DataSource;
import org.teiid.test.framework.datasource.DataSourceFactory;
@@ -73,13 +75,29 @@
return null;
}
+ /**
+ * In certain testcases, the data that being provided is already preconfigured and should not
+ * be touched by the {@link DataStore} processing.
+ * @return
+ */
+ public boolean isDataStoreDisabled() {
+ String disable_config = getEnvironment().getProperty(ConfigPropertyNames.DISABLE_DATASTORES, null);
+ if (disable_config != null) {
+ return true;
+ }
+ return false;
+ }
+
public Properties getEnvironment() {
return env;
}
-
+
+ public void setEnvironmentProperty(String key, String value) {
+ this.env.setProperty(key, value);
+ }
class CloseInterceptor implements InvocationHandler {
@@ -103,6 +121,11 @@
void configure() throws QueryTestFailedException {
+ if (this.isDataStoreDisabled()) {
+ return;
+ }
+
+
String ac = this.env.getProperty(CONNECTION_STRATEGY_PROPS.AUTOCOMMIT, "true");
this.autoCommit = Boolean.getBoolean(ac);
@@ -127,9 +150,9 @@
int sleep = 5;
- System.out.println("Bouncing the system..(wait " + sleep + " seconds)"); //$NON-NLS-1$
+ TestLogger.log("Bouncing the system..(wait " + sleep + " seconds)"); //$NON-NLS-1$
Thread.sleep(1000*sleep);
- System.out.println("done."); //$NON-NLS-1$
+ TestLogger.log("done."); //$NON-NLS-1$
} catch (Throwable e) {
e.printStackTrace();
@@ -155,9 +178,9 @@
String urlString = this.env.getProperty(DriverConnection.DS_URL);
MMJDBCURL url = new MMJDBCURL(urlString);
- System.out.println("Trying to match VDB : " + url.getVDBName());
+ TestLogger.logDebug("Trying to match VDB : " + url.getVDBName());
- for (Iterator iterator = vdbs.iterator(); iterator.hasNext();) {
+ for (Iterator<VDB> iterator = vdbs.iterator(); iterator.hasNext();) {
VDB v = (VDB) iterator.next();
if (v.getName().equalsIgnoreCase(url.getVDBName())) {
vdb = v;
@@ -190,8 +213,7 @@
if (ds != null) {
- System.out
- .println("Set up Connector Binding (model:mapping:type): " + m.getName() + ":" + useName + ":" + ds.getConnectorType()); //$NON-NLS-1$
+ TestLogger.logInfo("Set up Connector Binding (model:mapping:type): " + m.getName() + ":" + useName + ":" + ds.getConnectorType()); //$NON-NLS-1$
AdminOptions ao = new AdminOptions(
AdminOptions.OnConflict.OVERWRITE);
@@ -272,9 +294,9 @@
ConnectionStrategy cs = null;
if (identifier == null) {
- cs = new DriverConnection(ds.getProperties(), this.dsFactory);
+ cs = new DataSourceConnection(ds.getProperties(), this.dsFactory);
} else {
- cs = new DriverConnection(ds.getProperties(), this.dsFactory);
+ cs = new DataSourceConnection(ds.getProperties(), this.dsFactory);
}
ds.setXAConnection(cs);
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategyFactory.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategyFactory.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/ConnectionStrategyFactory.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -8,8 +8,8 @@
import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.ConfigPropertyNames;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.datasource.DataSourceFactory;
-import org.teiid.test.framework.exception.QueryTestFailedException;
import org.teiid.test.framework.exception.TransactionRuntimeException;
/**
@@ -21,36 +21,44 @@
public class ConnectionStrategyFactory {
- public static ConnectionStrategy createConnectionStrategy(ConfigPropertyLoader configprops) throws QueryTestFailedException {
- ConnectionStrategy strategy = null;
- Properties props = configprops.getProperties();
+ public static ConnectionStrategy createConnectionStrategy() {
+
+ ConfigPropertyLoader configLoader = ConfigPropertyLoader.getInstance();
+
+ ConnectionStrategy strategy = null;
+ Properties props = configLoader.getProperties();
String type = props.getProperty(ConfigPropertyNames.CONNECTION_TYPE, ConfigPropertyNames.CONNECTION_TYPES.DRIVER_CONNECTION);
if (type == null) {
- throw new RuntimeException("Property " + ConfigPropertyNames.CONNECTION_TYPE + " was specified");
+ throw new TransactionRuntimeException("Property " + ConfigPropertyNames.CONNECTION_TYPE + " was specified");
}
- if (type.equalsIgnoreCase(ConfigPropertyNames.CONNECTION_TYPES.DRIVER_CONNECTION)) {
- // pass in null to create new strategy
- strategy = new DriverConnection(props, configprops.getDataSourceFactory());
- System.out.println("Created Driver Strategy");
- }
- else if (type.equalsIgnoreCase(ConfigPropertyNames.CONNECTION_TYPES.DATASOURCE_CONNECTION)) {
- strategy = new DataSourceConnection(props, configprops.getDataSourceFactory());
- System.out.println("Created DataSource Strategy");
- }
- else if (type.equalsIgnoreCase(ConfigPropertyNames.CONNECTION_TYPES.JNDI_CONNECTION)) {
- strategy = new JEEConnection(props, configprops.getDataSourceFactory());
- System.out.println("Created JEE Strategy");
- }
+ try {
- if (strategy == null) {
- new TransactionRuntimeException("Invalid property value for " + ConfigPropertyNames.CONNECTION_TYPE + " is " + type );
+ if (type.equalsIgnoreCase(ConfigPropertyNames.CONNECTION_TYPES.DRIVER_CONNECTION)) {
+ // pass in null to create new strategy
+ strategy = new DriverConnection(props, configLoader.getDataSourceFactory());
+ TestLogger.log("Created Driver Strategy");
+ }
+ else if (type.equalsIgnoreCase(ConfigPropertyNames.CONNECTION_TYPES.DATASOURCE_CONNECTION)) {
+ strategy = new DataSourceConnection(props, configLoader.getDataSourceFactory());
+ TestLogger.log("Created DataSource Strategy");
+ }
+ else if (type.equalsIgnoreCase(ConfigPropertyNames.CONNECTION_TYPES.JNDI_CONNECTION)) {
+ strategy = new JEEConnection(props, configLoader.getDataSourceFactory());
+ TestLogger.log("Created JEE Strategy");
+ }
+
+ if (strategy == null) {
+ new TransactionRuntimeException("Invalid property value for " + ConfigPropertyNames.CONNECTION_TYPE + " is " + type );
+ }
+ // call configure here because this is creating the connection to Teiid
+ // direct connections to the datasource use the static call directly to create strategy and don't need to configure
+ strategy.configure();
+ return strategy;
+ } catch (Exception e) {
+ throw new TransactionRuntimeException(e);
}
- // call configure here because this is creating the connection to Teiid
- // direct connections to the datasource use the static call directly to create strategy and don't need to configure
- strategy.configure();
- return strategy;
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DataSourceConnection.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DataSourceConnection.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DataSourceConnection.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -8,15 +8,18 @@
import java.sql.SQLException;
import java.util.Properties;
+import javax.sql.DataSource;
import javax.sql.XAConnection;
import javax.sql.XADataSource;
import org.teiid.connector.jdbc.JDBCPropertyNames;
import org.teiid.jdbc.TeiidDataSource;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.datasource.DataSourceFactory;
import org.teiid.test.framework.exception.QueryTestFailedException;
import org.teiid.test.framework.exception.TransactionRuntimeException;
+import com.metamatrix.common.util.PropertiesUtils;
import com.metamatrix.jdbc.BaseDataSource;
import com.metamatrix.jdbc.EmbeddedDataSource;
@@ -33,12 +36,16 @@
// connector type will provide the JDBCPropertyNames.CONNECTION_SOURCE
// driver class
public static final String DS_DRIVER = "driver"; //$NON-NLS-1$
+
+ public static final String DS_DATASOURCE = "datasource"; //$NON-NLS-1$
+
public static final String DS_SERVERNAME = "ServerName"; //$NON-NLS-1$
public static final String DS_SERVERPORT = "PortNumber"; //$NON-NLS-1$
public static final String DS_JNDINAME = "ds-jndiname"; //$NON-NLS-1$
public static final String DS_DATABASENAME = "DatabaseName"; //$NON-NLS-1$
public static final String DS_APPLICATION_NAME = "application-name"; //$NON-NLS-1$
+ public static final String DS_URL = "URL"; //$NON-NLS-1$
private String driver = null;
private String username = null;
@@ -47,6 +54,7 @@
private String databaseName = null;
private String serverName = null;
private String portNumber = null;
+ private String url = null;
private XAConnection xaConnection;
@@ -72,11 +80,22 @@
this.applName = this.getEnvironment().getProperty(DS_APPLICATION_NAME);
- this.driver = this.getEnvironment().getProperty(DS_DRIVER);
- if (this.driver == null || this.driver.length() == 0) {
- throw new TransactionRuntimeException("Property " + DS_DRIVER
- + " was not specified");
+ if (this.getEnvironment().getProperty(DS_DATASOURCE) != null) {
+ this.driver = this.getEnvironment().getProperty(DS_DATASOURCE);
+ if (this.driver == null || this.driver.length() == 0) {
+ throw new TransactionRuntimeException("Property " + DS_DATASOURCE
+ + " was null");
+ }
+
+ } else {
+ this.driver = this.getEnvironment().getProperty(DS_DRIVER);
+ if (this.driver == null || this.driver.length() == 0) {
+ throw new TransactionRuntimeException("Property " + DS_DRIVER
+ + " was not specified");
+ }
}
+
+ this.url = this.getEnvironment().getProperty(DS_URL);
this.username = this.getEnvironment().getProperty(DS_USER);
if (username == null) {
@@ -113,32 +132,55 @@
private XAConnection createConnection() throws SQLException,
InstantiationException, IllegalAccessException,
ClassNotFoundException {
- System.out
- .println("Creating Datasource Connection: \"" + this.serverName + " - " + this.databaseName + "\""); //$NON-NLS-1$ //$NON-NLS-2$
+ TestLogger.log("Creating Datasource Connection: \"" + this.serverName + " - " + this.databaseName + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- BaseDataSource dataSource = (BaseDataSource) Class.forName(this.driver)
- .newInstance();
+ // DataSource dataSource = (DataSource)Class.forName(props.getProperty(prefix+DS_DRIVER)).newInstance();
+
- dataSource.setDatabaseName(this.databaseName);
- if (this.applName != null) {
- dataSource.setApplicationName(this.applName);
- }
-
- if (dataSource instanceof EmbeddedDataSource) {
- ((EmbeddedDataSource) dataSource).setBootstrapFile(this.serverName);
+ DataSource ds = (DataSource)Class.forName(this.driver).newInstance();
+
+ if (ds instanceof BaseDataSource) {
+ BaseDataSource dataSource = (BaseDataSource) ds;
+ //Class.forName(this.driver).newInstance();
+
+ dataSource.setDatabaseName(this.databaseName);
+ if (this.applName != null) {
+ dataSource.setApplicationName(this.applName);
+ }
+
+ if (dataSource instanceof EmbeddedDataSource) {
+ ((EmbeddedDataSource) dataSource).setBootstrapFile(this.serverName);
+ } else {
+ ((TeiidDataSource) dataSource).setServerName(this.serverName);
+ ((TeiidDataSource) dataSource).setPortNumber(Integer
+ .parseInt(this.portNumber));
+ }
+
+ if (this.username != null) {
+ dataSource.setUser(this.username);
+ dataSource.setPassword(this.pwd);
+ }
+
+ return ((XADataSource) dataSource).getXAConnection(this.username,
+ this.pwd);
} else {
- ((TeiidDataSource) dataSource).setServerName(this.serverName);
- ((TeiidDataSource) dataSource).setPortNumber(Integer
- .parseInt(this.portNumber));
+ Properties props = new Properties();
+ props.setProperty(DS_DATABASENAME, this.databaseName);
+ props.setProperty(DS_SERVERPORT, this.portNumber);
+ props.setProperty(DS_URL, this.url);
+ props.setProperty(DS_SERVERNAME, this.serverName);
+ if (this.username != null) {
+ props.setProperty(DS_USERNAME, this.username);
+ props.setProperty(DS_USER, this.username);
+ props.setProperty(DS_PASSWORD, this.pwd);
+ }
+
+ PropertiesUtils.setBeanProperties(ds, props, null);
+ Object z = ds.getConnection();
+ return ((XADataSource)ds).getXAConnection();
}
- if (this.username != null) {
- dataSource.setUser(this.username);
- dataSource.setPassword(this.pwd);
- }
- return ((XADataSource) dataSource).getXAConnection(this.username,
- this.pwd);
}
public void shutdown() {
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DriverConnection.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DriverConnection.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/connection/DriverConnection.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -4,16 +4,19 @@
*/
package org.teiid.test.framework.connection;
+import java.lang.reflect.Proxy;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
import org.teiid.connector.jdbc.JDBCPropertyNames;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.datasource.DataSourceFactory;
import org.teiid.test.framework.exception.QueryTestFailedException;
import org.teiid.test.framework.exception.TransactionRuntimeException;
+
/**
* The DriverConnection strategy that can get connections in standalone mode or
* embedded mode.
@@ -111,9 +114,9 @@
private Connection getJDBCConnection(String driver, String url,
String user, String passwd) throws QueryTestFailedException {
- System.out.println("Creating Driver Connection: \"" + url + "\""); //$NON-NLS-1$ //$NON-NLS-2$
+ TestLogger.log("Creating Driver Connection: \"" + url + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- Connection conn;
+ Connection conn = null;
try {
// Create a connection
if (user != null && user.length() > 0) {
@@ -121,9 +124,12 @@
} else {
conn = DriverManager.getConnection(url);
}
+
+ conn = (Connection)Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[] {java.sql.Connection.class}, new CloseInterceptor(conn));
- } catch (SQLException e) {
- throw new QueryTestFailedException(e);
+
+// } catch (SQLException e) {
+
} catch (Throwable t) {
t.printStackTrace();
throw new QueryTestFailedException(t.getMessage());
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceFactory.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceFactory.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceFactory.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -11,7 +11,9 @@
import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.ConfigPropertyNames;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
import com.metamatrix.common.util.PropertiesUtils;
import com.metamatrix.core.util.StringUtil;
@@ -142,7 +144,7 @@
* @since
*/
private void config() {
- System.out.println("Configure Datasource Factory ");
+ TestLogger.logDebug("Configure Datasource Factory ");
Map<String, DataSource> availDatasources = dsmgr.getDataSources();
@@ -180,7 +182,7 @@
String limitdsprop = configprops
.getProperty(ConfigPropertyNames.USE_DATASOURCES_PROP);
if (limitdsprop != null && limitdsprop.length() > 0 && ! limitdsprop.equalsIgnoreCase(DO_NOT_USE_DEFAULT)) {
- System.out.println("Use ONLY datasources: " + limitdsprop);
+ TestLogger.log("Use ONLY datasources: " + limitdsprop);
List<String> dss = StringUtil.split(limitdsprop, ",");
@@ -196,7 +198,7 @@
useDS.put(String.valueOf(i), dssName);
availDS.put(dssName, ds);
- System.out.println("Using ds: " + dssName);
+ TestLogger.logInfo("Using ds: " + dssName);
}
}
@@ -406,7 +408,7 @@
try {
if (factory.getDatasource("1", "model1") == null) {
- throw new RuntimeException("No datasource was not found");
+ throw new TransactionRuntimeException("No datasource was not found");
}
@@ -416,7 +418,7 @@
factory.cleanup();
- ConfigPropertyLoader.cleanup();
+ ConfigPropertyLoader.reset();
// the following verifies that order of "use" datasources is applied to request for datasources.
@@ -430,26 +432,26 @@
DataSource dsfind = factory.getDatasource("2", "model2");
if (dsfind == null) {
- throw new RuntimeException("No datasource was not found as the 2nd datasource");
+ throw new TransactionRuntimeException("No datasource was not found as the 2nd datasource");
}
if (dsfind.getConnectorType() == null) {
- throw new RuntimeException("Connector types was not defined");
+ throw new TransactionRuntimeException("Connector types was not defined");
}
if (!dsfind.getName().equalsIgnoreCase("sqlserver")) {
- throw new RuntimeException("Sqlserver was not found as the 2nd datasource");
+ throw new TransactionRuntimeException("Sqlserver was not found as the 2nd datasource");
}
dsfind = factory.getDatasource("1", "model1");
if (dsfind == null) {
- throw new RuntimeException("No datasource was not found as the 2nd datasource");
+ throw new TransactionRuntimeException("No datasource was not found as the 2nd datasource");
}
if (!dsfind.getName().equalsIgnoreCase("oracle")) {
- throw new RuntimeException("Oracle was not found as the 2nd datasource");
+ throw new TransactionRuntimeException("Oracle was not found as the 2nd datasource");
}
System.out.println("Datasource :" + dsfind.getName() + " was found");
@@ -459,7 +461,7 @@
// returned (excluded)
factory.cleanup();
- ConfigPropertyLoader.cleanup();
+ ConfigPropertyLoader.reset();
config = ConfigPropertyLoader.getInstance();
@@ -469,17 +471,17 @@
factory = new DataSourceFactory(config);
int n = factory.getNumberAvailableDataSources();
- System.out.println("Num avail datasources: " + n);
+ TestLogger.log("Num avail datasources: " + n);
for (int i=0; i<n; i++) {
String k = String.valueOf(i);
DataSource ds1 = factory.getDatasource(k, "model" + k);
if (ds1 == null) {
- throw new RuntimeException("No datasource was found for: model:" + k);
+ throw new TransactionRuntimeException("No datasource was found for: model:" + k);
} if (ds1.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.SQLSERVER)) {
- throw new RuntimeException("sqlserver dbtype should have been excluded");
+ throw new TransactionRuntimeException("sqlserver dbtype should have been excluded");
}
}
@@ -488,13 +490,13 @@
if (reuse != null) {
} else {
- throw new RuntimeException("The process was not able to reassign an already used datasource");
+ throw new TransactionRuntimeException("The process was not able to reassign an already used datasource");
}
factory.cleanup();
- ConfigPropertyLoader.cleanup();
+ ConfigPropertyLoader.reset();
// test required database types
@@ -508,13 +510,13 @@
DataSource ds1 = factory.getDatasource("1","pm1");
if (!ds1.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.ORACLE)) {
- throw new RuntimeException("Required DB Type of oracle for model pm1 is :" + ds1.getDBType());
+ throw new TransactionRuntimeException("Required DB Type of oracle for model pm1 is :" + ds1.getDBType());
}
- System.out.println("Test1 Required DS1 " + ds1.getDBType());
+ TestLogger.log("Test1 Required DS1 " + ds1.getDBType());
factory.cleanup();
- ConfigPropertyLoader.cleanup();
+ ConfigPropertyLoader.reset();
// test required database types
// test 2 sources, 1 required and other ANY
@@ -528,12 +530,12 @@
DataSource ds2 = factory.getDatasource("2","pm2");
if (!ds2.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.SQLSERVER)) {
- throw new RuntimeException("Required DB Type of sqlserver for model pm2 is :" + ds2.getDBType());
+ throw new TransactionRuntimeException("Required DB Type of sqlserver for model pm2 is :" + ds2.getDBType());
}
- System.out.println("Test2 Required DS2 " + ds2.getDBType());
+ TestLogger.log("Test2 Required DS2 " + ds2.getDBType());
factory.cleanup();
- ConfigPropertyLoader.cleanup();
+ ConfigPropertyLoader.reset();
// test required database types
@@ -548,15 +550,15 @@
DataSource ds3a = factory.getDatasource("2","pm2");
if (!ds3a.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.SQLSERVER)) {
- throw new RuntimeException("Required DB Type of sqlserver for model pm12 is :" + ds3a.getDBType());
+ throw new TransactionRuntimeException("Required DB Type of sqlserver for model pm12 is :" + ds3a.getDBType());
}
DataSource ds3b = factory.getDatasource("2","pm1");
if (!ds3b.getDBType().equalsIgnoreCase(DataSourceFactory.DataBaseTypes.ORACLE)) {
- throw new RuntimeException("Required DB Type of oracle for model pm1 is :" + ds3b.getDBType());
+ throw new TransactionRuntimeException("Required DB Type of oracle for model pm1 is :" + ds3b.getDBType());
}
- System.out.println("Test3 Required DS3a " + ds3a.getDBType());
- System.out.println("Test3 Required DS3b " + ds3b.getDBType());
+ TestLogger.log("Test3 Required DS3a " + ds3a.getDBType());
+ TestLogger.log("Test3 Required DS3b " + ds3b.getDBType());
factory.cleanup();
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -7,13 +7,13 @@
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
-import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.ConfigPropertyNames;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.exception.QueryTestFailedException;
import org.teiid.test.framework.exception.TransactionRuntimeException;
@@ -108,9 +108,9 @@
if (dsloc == null || dsloc.indexOf(UNASSIGNEDDSLOC) > -1) {
dsloc = DEFAULT_DATASOURCES_LOC;
- System.out.println("Using default datasource loc: " +dsloc);
+ TestLogger.log("Using default datasource loc: " +dsloc);
} else {
- System.out.println("Using override for datasources loc: " + dsloc);
+ TestLogger.log("Using override for datasources loc: " + dsloc);
}
File[] dirs = findAllChildDirectories(dsloc);
@@ -135,7 +135,7 @@
}
- System.out.println("Number of total datasource mappings loaded "
+ TestLogger.logDebug("Number of total datasource mappings loaded "
+ allDatasourcesMap.size());
}
@@ -178,25 +178,22 @@
}
- private void addDataSource(File datasourcedir, //String dirname, String dirloc,
+ private void addDataSource(File datasourcedir,
Map<String, DataSource> datasources) {
-// String dirname = datasourcefile.getName();
-
File dsfile = new File(datasourcedir, "connection.properties");
if (!dsfile.exists()) {
return;
}
-// String dsfile = "/datasources/" + dirname + "/connection.properties";
Properties dsprops = loadProperties(dsfile);
if (dsprops != null) {
DataSource ds = new DataSource(datasourcedir.getName(), "dsgroup", dsprops);
datasources.put(ds.getName(), ds);
- System.out.println("Loaded datasource " + ds.getName());
+ TestLogger.log("Loaded datasource " + ds.getName());
}
@@ -210,13 +207,6 @@
props = PropertiesUtils.load(dsfile.getAbsolutePath());
return props;
-// InputStream in = DataSourceMgr.class.getResourceAsStream(dsfile.getAbsolutePath());
-// if (in != null) {
-// props = new Properties();
-// props.load(in);
-// return props;
-// }
-// return null;
} catch (IOException e) {
throw new TransactionRuntimeException(
"Error loading properties from file '" + dsfile.getAbsolutePath() + "'"
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataStore.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataStore.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataStore.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -7,7 +7,6 @@
import java.sql.Connection;
import java.sql.Statement;
-import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.connection.ConnectionStrategy;
import org.teiid.test.framework.exception.QueryTestFailedException;
@@ -15,16 +14,18 @@
* This class loads the data in the databases specified, to a known state
*/
public class DataStore {
-
- /**
+
+ /**
* Called at the start of all the tests to initialize the database to ensure
* it's in the proper state.
*
* @param connStrategy
*/
public static void initialize(ConnectionStrategy connStrategy) {
-// ConfigPropertyLoader.cleanup();
-// ConfigPropertyLoader.getInstance();
+
+ if (connStrategy.isDataStoreDisabled()) {
+ return;
+ }
try {
load(getConnection("pm1", connStrategy));
@@ -87,6 +88,9 @@
* @param connStrategy
*/
public static void setup(ConnectionStrategy connStrategy) {
+ if (connStrategy.isDataStoreDisabled()) {
+ return;
+ }
try {
setUpTest(getConnection("pm1", connStrategy));
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -11,10 +11,13 @@
import javax.sql.XAConnection;
+import org.teiid.test.framework.ConfigPropertyLoader;
+import org.teiid.test.framework.TestLogger;
import org.teiid.test.framework.TransactionContainer;
import org.teiid.test.framework.TransactionQueryTestCase;
import org.teiid.test.framework.ConfigPropertyNames.CONNECTION_STRATEGY_PROPS;
import org.teiid.test.framework.connection.ConnectionStrategy;
+import org.teiid.test.framework.connection.ConnectionStrategyFactory;
import org.teiid.test.framework.datasource.DataStore;
import org.teiid.test.framework.exception.QueryTestFailedException;
@@ -55,10 +58,13 @@
public AbstractQueryTransactionTest() {
super();
+
+ this.connStrategy = ConnectionStrategyFactory
+ .createConnectionStrategy();
}
public AbstractQueryTransactionTest(String testname) {
- super();
+ this();
this.testname = testname;
}
@@ -67,15 +73,7 @@
}
-
- @Override
- public void setConnectionStrategy(ConnectionStrategy connStrategy) throws QueryTestFailedException {
- this.connStrategy = connStrategy;
-
- this.setConnection(connStrategy.getConnection());
-
- }
-
+
// @Override
// protected void compareResults(BufferedReader resultReader,
// BufferedReader expectedReader) throws IOException {
@@ -84,6 +82,12 @@
// }
@Override
+ public ConnectionStrategy getConnectionStrategy() {
+ // TODO Auto-generated method stub
+ return this.connStrategy;
+ }
+
+ @Override
protected void assignExecutionProperties(Statement stmt) {
if (stmt instanceof com.metamatrix.jdbc.api.Statement) {
com.metamatrix.jdbc.api.Statement statement = (com.metamatrix.jdbc.api.Statement) stmt;
@@ -107,7 +111,7 @@
try {
fetchSize = Integer.parseInt(fetchSizeStr);
- this.print("FetchSize = " + fetchSize);
+ TestLogger.log("FetchSize = " + fetchSize);
} catch (NumberFormatException e) {
fetchSize = -1;
// this.print("Invalid fetch size value: " + fetchSizeStr
@@ -123,7 +127,7 @@
try {
statement.setFetchSize(this.fetchSize);
} catch (SQLException e) {
-// this.print(e);
+ TestLogger.log(e.getMessage());
}
}
@@ -131,7 +135,7 @@
try {
statement.setQueryTimeout(this.queryTimeout);
} catch (SQLException e) {
-// this.print(e);
+ TestLogger.log(e.getMessage());
}
}
}
@@ -151,17 +155,30 @@
*/
@Override
public void setup() throws QueryTestFailedException {
-
- if (initialized == null || !initialized.equalsIgnoreCase(this.getClass().getSimpleName()) ) {
- initialized = this.getClass().getSimpleName();
- DataStore.initialize(connStrategy);
-
- }
- DataStore.setup(connStrategy);
+ this.setConnection(connStrategy.getConnection());
+ setupDataStore();
}
+
+ protected void setupDataStore() {
+
+
+ if (! this.getConnectionStrategy().isDataStoreDisabled()) {
+ TestLogger.logDebug("Perform DataStore setup for test: " + this.testname );
+ if (initialized == null || !initialized.equalsIgnoreCase(this.getClass().getSimpleName()) ) {
+ initialized = this.getClass().getSimpleName();
+ DataStore.initialize(connStrategy);
+
+ }
+
+ DataStore.setup(connStrategy);
+ } else {
+ TestLogger.logDebug("DataStore setup is disabled for test: " + this.testname );
+ }
+ }
+
/**
* The source connection must be asked from the connection strategy because only here
* is it known which model was mapped to which datasource.
@@ -242,6 +259,13 @@
* end of the test.
*/
public void cleanup() {
+
+ ConfigPropertyLoader.reset();
+
+ // cleanup all connections created for this test.
+ if (connStrategy != null) {
+ connStrategy.shutdown();
+ }
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/JNDITransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/JNDITransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/JNDITransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -7,9 +7,9 @@
import javax.naming.InitialContext;
import javax.transaction.UserTransaction;
+import org.teiid.test.framework.ConfigPropertyNames;
import org.teiid.test.framework.TransactionContainer;
import org.teiid.test.framework.TransactionQueryTestCase;
-import org.teiid.test.framework.ConfigPropertyNames.CONNECTION_STRATEGY_PROPS;
import org.teiid.test.framework.exception.TransactionRuntimeException;
@@ -24,7 +24,8 @@
}
protected void before(TransactionQueryTestCase test) {
- if (this.props.getProperty(CONNECTION_STRATEGY_PROPS.JNDINAME_USERTXN) == null) {
+ String jndi = test.getConnectionStrategy().getEnvironment().getProperty(ConfigPropertyNames.CONNECTION_STRATEGY_PROPS.JNDINAME_USERTXN);
+ if (jndi == null) {
throw new TransactionRuntimeException("No JNDI name found for the User Transaction to look up in application server");
}
@@ -32,8 +33,8 @@
// begin the transaction
InitialContext ctx = new InitialContext();
- this.userTxn = (UserTransaction)ctx.lookup(this.props.getProperty(CONNECTION_STRATEGY_PROPS.JNDINAME_USERTXN));
- this.userTxn.begin();
+ this.userTxn = (UserTransaction)ctx.lookup(jndi);
+ this.userTxn.begin();
} catch (Exception e) {
throw new TransactionRuntimeException(e);
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/LocalTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/LocalTransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/LocalTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -7,7 +7,6 @@
import java.sql.SQLException;
-import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.TransactionContainer;
import org.teiid.test.framework.TransactionQueryTestCase;
import org.teiid.test.framework.ConfigPropertyNames.CONNECTION_STRATEGY_PROPS;
@@ -24,13 +23,13 @@
super();
}
protected void before(TransactionQueryTestCase test) {
- this.setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_OFF);
+ test.getConnectionStrategy().setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_OFF);
try {
- debug("Autocommit: " + this.connStrategy.getAutocommit());
- test.getConnection().setAutoCommit(this.connStrategy.getAutocommit());
+ debug("Autocommit: " + test.getConnectionStrategy().getAutocommit());
+ test.getConnection().setAutoCommit(test.getConnectionStrategy().getAutocommit());
} catch (SQLException e) {
- throw new RuntimeException(e);
+ throw new TransactionRuntimeException(e);
}
}
@@ -42,9 +41,10 @@
}
else {
- test.getConnection().commit();
+ test.getConnection().commit();
}
} catch (SQLException se) {
+ se.printStackTrace();
exception = true;
// if exception, try to trigger the rollback
try {
@@ -62,7 +62,7 @@
try {
test.getConnection().setAutoCommit(true);
} catch (SQLException e) {
- throw new RuntimeException(e);
+ throw new TransactionRuntimeException(e);
}
}
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OffWrapTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OffWrapTransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OffWrapTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -23,7 +23,7 @@
}
public void before(TransactionQueryTestCase test) {
- this.setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_OFF);
+ test.getConnectionStrategy().setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_OFF);
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OnWrapTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OnWrapTransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OnWrapTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -21,7 +21,7 @@
}
public void before(TransactionQueryTestCase test) {
- this.setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_ON);
+ test.getConnectionStrategy().setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_ON);
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OptimisticWrapTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OptimisticWrapTransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/OptimisticWrapTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -21,7 +21,7 @@
}
public void before(TransactionQueryTestCase test) {
- this.setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_OPTIMISTIC);
+ test.getConnectionStrategy().setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_OPTIMISTIC);
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/PessimisticWrapTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/PessimisticWrapTransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/PessimisticWrapTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -21,7 +21,7 @@
}
public void before(TransactionQueryTestCase test) {
- this.setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_PESSIMISTIC);
+ test.getConnectionStrategy().setEnvironmentProperty(CONNECTION_STRATEGY_PROPS.TXN_AUTO_WRAP, TXN_AUTO_WRAP_OPTIONS.AUTO_WRAP_PESSIMISTIC);
}
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/StandaloneGlobalTransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/StandaloneGlobalTransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/StandaloneGlobalTransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -25,9 +25,8 @@
protected void before(TransactionQueryTestCase test) {
try {
xid = createXid();
- XAResource xaResource = this.getConnectionStrategy().getXAConnection().getXAResource();
- // getXAConnection().getXAResource();
- xaResource.setTransactionTimeout(120);
+ XAResource xaResource = test.getConnectionStrategy().getXAConnection().getXAResource();
+ xaResource.setTransactionTimeout(120);
xaResource.start(xid, XAResource.TMNOFLAGS);
} catch (Exception e) {
throw new TransactionRuntimeException(e);
@@ -46,7 +45,7 @@
boolean delistSuccessful = false;
boolean commit = false;
try {
- XAResource xaResource = this.getConnectionStrategy().getXAConnection().getXAResource();
+ XAResource xaResource = test.getConnectionStrategy().getXAConnection().getXAResource();
xaResource.end(xid, XAResource.TMSUCCESS);
@@ -59,11 +58,10 @@
} finally {
try {
if (!delistSuccessful || test.rollbackAllways()|| test.exceptionOccurred()) {
- this.getConnectionStrategy().getXAConnection().getXAResource().rollback(xid);
- //getXAConnection().getXAResource().rollback(xid);
- }
+ test.getConnectionStrategy().getXAConnection().getXAResource().rollback(xid);
+ }
else if (commit) {
- this.getConnectionStrategy().getXAConnection().getXAResource().commit(xid, true);
+ test.getConnectionStrategy().getXAConnection().getXAResource().commit(xid, true);
}
} catch (Exception e) {
throw new TransactionRuntimeException(e);
Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/XATransaction.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/XATransaction.java 2009-12-09 20:14:18 UTC (rev 1627)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/transaction/XATransaction.java 2009-12-09 20:17:56 UTC (rev 1628)
@@ -6,13 +6,10 @@
import java.util.Random;
-import javax.sql.XAConnection;
import javax.transaction.xa.XAResource;
-import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.TransactionContainer;
import org.teiid.test.framework.TransactionQueryTestCase;
-import org.teiid.test.framework.exception.QueryTestFailedException;
import org.teiid.test.framework.exception.TransactionRuntimeException;
import com.metamatrix.common.xa.MMXid;
@@ -28,7 +25,7 @@
protected void before(TransactionQueryTestCase test) {
try {
xid = createXid();
- XAResource xaResource = getXAConnection().getXAResource();
+ XAResource xaResource = test.getConnectionStrategy().getXAConnection().getXAResource();
xaResource.setTransactionTimeout(120);
xaResource.start(xid, XAResource.TMNOFLAGS);
debug("Start transaction using XID: " + xid.toString());
@@ -53,9 +50,9 @@
XAResource xaResource = null;
boolean exception = false;
try {
- xaResource = getXAConnection().getXAResource();
+ xaResource = test.getConnectionStrategy().getXAConnection().getXAResource();
- xaResource.end(xid, XAResource.TMSUCCESS);
+ xaResource.end(xid, XAResource.TMSUCCESS);
if (!test.exceptionExpected() && xaResource.prepare(xid) == XAResource.XA_OK) {
commit = true;
@@ -80,8 +77,4 @@
}
}
-
- protected XAConnection getXAConnection() throws QueryTestFailedException {
- return this.connStrategy.getXAConnection();
- }
}
15 years
teiid SVN: r1626 - trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner.
by teiid-commits@lists.jboss.org
Author: jdoyle
Date: 2009-12-09 15:04:16 -0500 (Wed, 09 Dec 2009)
New Revision: 1626
Added:
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalSObjectResult.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/PackageVersion.java
Modified:
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/ChildRelationship.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalResult.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeSObjectResult.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/EmailFileAttachment.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Field.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/GetUserInfoResult.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SforceServiceLocator.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SingleEmailMessage.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Soap.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SoapBindingStub.java
trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/StatusCode.java
Log:
TEIID-895
Update the SalesForce API to version 17 (winter 10)
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/ChildRelationship.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/ChildRelationship.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/ChildRelationship.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,224 +1,256 @@
-/**
- * ChildRelationship.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class ChildRelationship implements java.io.Serializable {
- private boolean cascadeDelete;
-
- private java.lang.String childSObject;
-
- private java.lang.String field;
-
- private java.lang.String relationshipName;
-
- public ChildRelationship() {
- }
-
- public ChildRelationship(
- boolean cascadeDelete,
- java.lang.String childSObject,
- java.lang.String field,
- java.lang.String relationshipName) {
- this.cascadeDelete = cascadeDelete;
- this.childSObject = childSObject;
- this.field = field;
- this.relationshipName = relationshipName;
- }
-
-
- /**
- * Gets the cascadeDelete value for this ChildRelationship.
- *
- * @return cascadeDelete
- */
- public boolean isCascadeDelete() {
- return cascadeDelete;
- }
-
-
- /**
- * Sets the cascadeDelete value for this ChildRelationship.
- *
- * @param cascadeDelete
- */
- public void setCascadeDelete(boolean cascadeDelete) {
- this.cascadeDelete = cascadeDelete;
- }
-
-
- /**
- * Gets the childSObject value for this ChildRelationship.
- *
- * @return childSObject
- */
- public java.lang.String getChildSObject() {
- return childSObject;
- }
-
-
- /**
- * Sets the childSObject value for this ChildRelationship.
- *
- * @param childSObject
- */
- public void setChildSObject(java.lang.String childSObject) {
- this.childSObject = childSObject;
- }
-
-
- /**
- * Gets the field value for this ChildRelationship.
- *
- * @return field
- */
- public java.lang.String getField() {
- return field;
- }
-
-
- /**
- * Sets the field value for this ChildRelationship.
- *
- * @param field
- */
- public void setField(java.lang.String field) {
- this.field = field;
- }
-
-
- /**
- * Gets the relationshipName value for this ChildRelationship.
- *
- * @return relationshipName
- */
- public java.lang.String getRelationshipName() {
- return relationshipName;
- }
-
-
- /**
- * Sets the relationshipName value for this ChildRelationship.
- *
- * @param relationshipName
- */
- public void setRelationshipName(java.lang.String relationshipName) {
- this.relationshipName = relationshipName;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof ChildRelationship)) return false;
- ChildRelationship other = (ChildRelationship) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- this.cascadeDelete == other.isCascadeDelete() &&
- ((this.childSObject==null && other.getChildSObject()==null) ||
- (this.childSObject!=null &&
- this.childSObject.equals(other.getChildSObject()))) &&
- ((this.field==null && other.getField()==null) ||
- (this.field!=null &&
- this.field.equals(other.getField()))) &&
- ((this.relationshipName==null && other.getRelationshipName()==null) ||
- (this.relationshipName!=null &&
- this.relationshipName.equals(other.getRelationshipName())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- _hashCode += (isCascadeDelete() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getChildSObject() != null) {
- _hashCode += getChildSObject().hashCode();
- }
- if (getField() != null) {
- _hashCode += getField().hashCode();
- }
- if (getRelationshipName() != null) {
- _hashCode += getRelationshipName().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(ChildRelationship.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ChildRelationship"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("cascadeDelete");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "cascadeDelete"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("childSObject");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "childSObject"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("field");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "field"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("relationshipName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "relationshipName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * ChildRelationship.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class ChildRelationship implements java.io.Serializable {
+ private boolean cascadeDelete;
+
+ private java.lang.String childSObject;
+
+ private boolean deprecatedAndHidden;
+
+ private java.lang.String field;
+
+ private java.lang.String relationshipName;
+
+ public ChildRelationship() {
+ }
+
+ public ChildRelationship(
+ boolean cascadeDelete,
+ java.lang.String childSObject,
+ boolean deprecatedAndHidden,
+ java.lang.String field,
+ java.lang.String relationshipName) {
+ this.cascadeDelete = cascadeDelete;
+ this.childSObject = childSObject;
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ this.field = field;
+ this.relationshipName = relationshipName;
+ }
+
+
+ /**
+ * Gets the cascadeDelete value for this ChildRelationship.
+ *
+ * @return cascadeDelete
+ */
+ public boolean isCascadeDelete() {
+ return cascadeDelete;
+ }
+
+
+ /**
+ * Sets the cascadeDelete value for this ChildRelationship.
+ *
+ * @param cascadeDelete
+ */
+ public void setCascadeDelete(boolean cascadeDelete) {
+ this.cascadeDelete = cascadeDelete;
+ }
+
+
+ /**
+ * Gets the childSObject value for this ChildRelationship.
+ *
+ * @return childSObject
+ */
+ public java.lang.String getChildSObject() {
+ return childSObject;
+ }
+
+
+ /**
+ * Sets the childSObject value for this ChildRelationship.
+ *
+ * @param childSObject
+ */
+ public void setChildSObject(java.lang.String childSObject) {
+ this.childSObject = childSObject;
+ }
+
+
+ /**
+ * Gets the deprecatedAndHidden value for this ChildRelationship.
+ *
+ * @return deprecatedAndHidden
+ */
+ public boolean isDeprecatedAndHidden() {
+ return deprecatedAndHidden;
+ }
+
+
+ /**
+ * Sets the deprecatedAndHidden value for this ChildRelationship.
+ *
+ * @param deprecatedAndHidden
+ */
+ public void setDeprecatedAndHidden(boolean deprecatedAndHidden) {
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ }
+
+
+ /**
+ * Gets the field value for this ChildRelationship.
+ *
+ * @return field
+ */
+ public java.lang.String getField() {
+ return field;
+ }
+
+
+ /**
+ * Sets the field value for this ChildRelationship.
+ *
+ * @param field
+ */
+ public void setField(java.lang.String field) {
+ this.field = field;
+ }
+
+
+ /**
+ * Gets the relationshipName value for this ChildRelationship.
+ *
+ * @return relationshipName
+ */
+ public java.lang.String getRelationshipName() {
+ return relationshipName;
+ }
+
+
+ /**
+ * Sets the relationshipName value for this ChildRelationship.
+ *
+ * @param relationshipName
+ */
+ public void setRelationshipName(java.lang.String relationshipName) {
+ this.relationshipName = relationshipName;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof ChildRelationship)) return false;
+ ChildRelationship other = (ChildRelationship) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ this.cascadeDelete == other.isCascadeDelete() &&
+ ((this.childSObject==null && other.getChildSObject()==null) ||
+ (this.childSObject!=null &&
+ this.childSObject.equals(other.getChildSObject()))) &&
+ this.deprecatedAndHidden == other.isDeprecatedAndHidden() &&
+ ((this.field==null && other.getField()==null) ||
+ (this.field!=null &&
+ this.field.equals(other.getField()))) &&
+ ((this.relationshipName==null && other.getRelationshipName()==null) ||
+ (this.relationshipName!=null &&
+ this.relationshipName.equals(other.getRelationshipName())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ _hashCode += (isCascadeDelete() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getChildSObject() != null) {
+ _hashCode += getChildSObject().hashCode();
+ }
+ _hashCode += (isDeprecatedAndHidden() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getField() != null) {
+ _hashCode += getField().hashCode();
+ }
+ if (getRelationshipName() != null) {
+ _hashCode += getRelationshipName().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(ChildRelationship.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ChildRelationship"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("cascadeDelete");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "cascadeDelete"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("childSObject");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "childSObject"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("deprecatedAndHidden");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deprecatedAndHidden"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("field");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "field"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("relationshipName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "relationshipName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalResult.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalResult.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalResult.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,205 +1,205 @@
-/**
- * DescribeGlobalResult.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class DescribeGlobalResult implements java.io.Serializable {
- private java.lang.String encoding;
-
- private int maxBatchSize;
-
- private java.lang.String[] types;
-
- public DescribeGlobalResult() {
- }
-
- public DescribeGlobalResult(
- java.lang.String encoding,
- int maxBatchSize,
- java.lang.String[] types) {
- this.encoding = encoding;
- this.maxBatchSize = maxBatchSize;
- this.types = types;
- }
-
-
- /**
- * Gets the encoding value for this DescribeGlobalResult.
- *
- * @return encoding
- */
- public java.lang.String getEncoding() {
- return encoding;
- }
-
-
- /**
- * Sets the encoding value for this DescribeGlobalResult.
- *
- * @param encoding
- */
- public void setEncoding(java.lang.String encoding) {
- this.encoding = encoding;
- }
-
-
- /**
- * Gets the maxBatchSize value for this DescribeGlobalResult.
- *
- * @return maxBatchSize
- */
- public int getMaxBatchSize() {
- return maxBatchSize;
- }
-
-
- /**
- * Sets the maxBatchSize value for this DescribeGlobalResult.
- *
- * @param maxBatchSize
- */
- public void setMaxBatchSize(int maxBatchSize) {
- this.maxBatchSize = maxBatchSize;
- }
-
-
- /**
- * Gets the types value for this DescribeGlobalResult.
- *
- * @return types
- */
- public java.lang.String[] getTypes() {
- return types;
- }
-
-
- /**
- * Sets the types value for this DescribeGlobalResult.
- *
- * @param types
- */
- public void setTypes(java.lang.String[] types) {
- this.types = types;
- }
-
- public java.lang.String getTypes(int i) {
- return this.types[i];
- }
-
- public void setTypes(int i, java.lang.String _value) {
- this.types[i] = _value;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof DescribeGlobalResult)) return false;
- DescribeGlobalResult other = (DescribeGlobalResult) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- ((this.encoding==null && other.getEncoding()==null) ||
- (this.encoding!=null &&
- this.encoding.equals(other.getEncoding()))) &&
- this.maxBatchSize == other.getMaxBatchSize() &&
- ((this.types==null && other.getTypes()==null) ||
- (this.types!=null &&
- java.util.Arrays.equals(this.types, other.getTypes())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- if (getEncoding() != null) {
- _hashCode += getEncoding().hashCode();
- }
- _hashCode += getMaxBatchSize();
- if (getTypes() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getTypes());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getTypes(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(DescribeGlobalResult.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalResult"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("encoding");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "encoding"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("maxBatchSize");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "maxBatchSize"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("types");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "types"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * DescribeGlobalResult.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class DescribeGlobalResult implements java.io.Serializable {
+ private java.lang.String encoding;
+
+ private int maxBatchSize;
+
+ private com.sforce.soap.partner.DescribeGlobalSObjectResult[] sobjects;
+
+ public DescribeGlobalResult() {
+ }
+
+ public DescribeGlobalResult(
+ java.lang.String encoding,
+ int maxBatchSize,
+ com.sforce.soap.partner.DescribeGlobalSObjectResult[] sobjects) {
+ this.encoding = encoding;
+ this.maxBatchSize = maxBatchSize;
+ this.sobjects = sobjects;
+ }
+
+
+ /**
+ * Gets the encoding value for this DescribeGlobalResult.
+ *
+ * @return encoding
+ */
+ public java.lang.String getEncoding() {
+ return encoding;
+ }
+
+
+ /**
+ * Sets the encoding value for this DescribeGlobalResult.
+ *
+ * @param encoding
+ */
+ public void setEncoding(java.lang.String encoding) {
+ this.encoding = encoding;
+ }
+
+
+ /**
+ * Gets the maxBatchSize value for this DescribeGlobalResult.
+ *
+ * @return maxBatchSize
+ */
+ public int getMaxBatchSize() {
+ return maxBatchSize;
+ }
+
+
+ /**
+ * Sets the maxBatchSize value for this DescribeGlobalResult.
+ *
+ * @param maxBatchSize
+ */
+ public void setMaxBatchSize(int maxBatchSize) {
+ this.maxBatchSize = maxBatchSize;
+ }
+
+
+ /**
+ * Gets the sobjects value for this DescribeGlobalResult.
+ *
+ * @return sobjects
+ */
+ public com.sforce.soap.partner.DescribeGlobalSObjectResult[] getSobjects() {
+ return sobjects;
+ }
+
+
+ /**
+ * Sets the sobjects value for this DescribeGlobalResult.
+ *
+ * @param sobjects
+ */
+ public void setSobjects(com.sforce.soap.partner.DescribeGlobalSObjectResult[] sobjects) {
+ this.sobjects = sobjects;
+ }
+
+ public com.sforce.soap.partner.DescribeGlobalSObjectResult getSobjects(int i) {
+ return this.sobjects[i];
+ }
+
+ public void setSobjects(int i, com.sforce.soap.partner.DescribeGlobalSObjectResult _value) {
+ this.sobjects[i] = _value;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof DescribeGlobalResult)) return false;
+ DescribeGlobalResult other = (DescribeGlobalResult) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.encoding==null && other.getEncoding()==null) ||
+ (this.encoding!=null &&
+ this.encoding.equals(other.getEncoding()))) &&
+ this.maxBatchSize == other.getMaxBatchSize() &&
+ ((this.sobjects==null && other.getSobjects()==null) ||
+ (this.sobjects!=null &&
+ java.util.Arrays.equals(this.sobjects, other.getSobjects())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getEncoding() != null) {
+ _hashCode += getEncoding().hashCode();
+ }
+ _hashCode += getMaxBatchSize();
+ if (getSobjects() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getSobjects());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getSobjects(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(DescribeGlobalResult.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalResult"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("encoding");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "encoding"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("maxBatchSize");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "maxBatchSize"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("sobjects");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sobjects"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalSObjectResult"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Added: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalSObjectResult.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalSObjectResult.java (rev 0)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalSObjectResult.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -0,0 +1,707 @@
+/**
+ * DescribeGlobalSObjectResult.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class DescribeGlobalSObjectResult implements java.io.Serializable {
+ private boolean activateable;
+
+ private boolean createable;
+
+ private boolean custom;
+
+ private boolean customSetting;
+
+ private boolean deletable;
+
+ private boolean deprecatedAndHidden;
+
+ private java.lang.String keyPrefix;
+
+ private java.lang.String label;
+
+ private java.lang.String labelPlural;
+
+ private boolean layoutable;
+
+ private boolean mergeable;
+
+ private java.lang.String name;
+
+ private boolean queryable;
+
+ private boolean replicateable;
+
+ private boolean retrieveable;
+
+ private boolean searchable;
+
+ private boolean triggerable;
+
+ private boolean undeletable;
+
+ private boolean updateable;
+
+ public DescribeGlobalSObjectResult() {
+ }
+
+ public DescribeGlobalSObjectResult(
+ boolean activateable,
+ boolean createable,
+ boolean custom,
+ boolean customSetting,
+ boolean deletable,
+ boolean deprecatedAndHidden,
+ java.lang.String keyPrefix,
+ java.lang.String label,
+ java.lang.String labelPlural,
+ boolean layoutable,
+ boolean mergeable,
+ java.lang.String name,
+ boolean queryable,
+ boolean replicateable,
+ boolean retrieveable,
+ boolean searchable,
+ boolean triggerable,
+ boolean undeletable,
+ boolean updateable) {
+ this.activateable = activateable;
+ this.createable = createable;
+ this.custom = custom;
+ this.customSetting = customSetting;
+ this.deletable = deletable;
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ this.keyPrefix = keyPrefix;
+ this.label = label;
+ this.labelPlural = labelPlural;
+ this.layoutable = layoutable;
+ this.mergeable = mergeable;
+ this.name = name;
+ this.queryable = queryable;
+ this.replicateable = replicateable;
+ this.retrieveable = retrieveable;
+ this.searchable = searchable;
+ this.triggerable = triggerable;
+ this.undeletable = undeletable;
+ this.updateable = updateable;
+ }
+
+
+ /**
+ * Gets the activateable value for this DescribeGlobalSObjectResult.
+ *
+ * @return activateable
+ */
+ public boolean isActivateable() {
+ return activateable;
+ }
+
+
+ /**
+ * Sets the activateable value for this DescribeGlobalSObjectResult.
+ *
+ * @param activateable
+ */
+ public void setActivateable(boolean activateable) {
+ this.activateable = activateable;
+ }
+
+
+ /**
+ * Gets the createable value for this DescribeGlobalSObjectResult.
+ *
+ * @return createable
+ */
+ public boolean isCreateable() {
+ return createable;
+ }
+
+
+ /**
+ * Sets the createable value for this DescribeGlobalSObjectResult.
+ *
+ * @param createable
+ */
+ public void setCreateable(boolean createable) {
+ this.createable = createable;
+ }
+
+
+ /**
+ * Gets the custom value for this DescribeGlobalSObjectResult.
+ *
+ * @return custom
+ */
+ public boolean isCustom() {
+ return custom;
+ }
+
+
+ /**
+ * Sets the custom value for this DescribeGlobalSObjectResult.
+ *
+ * @param custom
+ */
+ public void setCustom(boolean custom) {
+ this.custom = custom;
+ }
+
+
+ /**
+ * Gets the customSetting value for this DescribeGlobalSObjectResult.
+ *
+ * @return customSetting
+ */
+ public boolean isCustomSetting() {
+ return customSetting;
+ }
+
+
+ /**
+ * Sets the customSetting value for this DescribeGlobalSObjectResult.
+ *
+ * @param customSetting
+ */
+ public void setCustomSetting(boolean customSetting) {
+ this.customSetting = customSetting;
+ }
+
+
+ /**
+ * Gets the deletable value for this DescribeGlobalSObjectResult.
+ *
+ * @return deletable
+ */
+ public boolean isDeletable() {
+ return deletable;
+ }
+
+
+ /**
+ * Sets the deletable value for this DescribeGlobalSObjectResult.
+ *
+ * @param deletable
+ */
+ public void setDeletable(boolean deletable) {
+ this.deletable = deletable;
+ }
+
+
+ /**
+ * Gets the deprecatedAndHidden value for this DescribeGlobalSObjectResult.
+ *
+ * @return deprecatedAndHidden
+ */
+ public boolean isDeprecatedAndHidden() {
+ return deprecatedAndHidden;
+ }
+
+
+ /**
+ * Sets the deprecatedAndHidden value for this DescribeGlobalSObjectResult.
+ *
+ * @param deprecatedAndHidden
+ */
+ public void setDeprecatedAndHidden(boolean deprecatedAndHidden) {
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ }
+
+
+ /**
+ * Gets the keyPrefix value for this DescribeGlobalSObjectResult.
+ *
+ * @return keyPrefix
+ */
+ public java.lang.String getKeyPrefix() {
+ return keyPrefix;
+ }
+
+
+ /**
+ * Sets the keyPrefix value for this DescribeGlobalSObjectResult.
+ *
+ * @param keyPrefix
+ */
+ public void setKeyPrefix(java.lang.String keyPrefix) {
+ this.keyPrefix = keyPrefix;
+ }
+
+
+ /**
+ * Gets the label value for this DescribeGlobalSObjectResult.
+ *
+ * @return label
+ */
+ public java.lang.String getLabel() {
+ return label;
+ }
+
+
+ /**
+ * Sets the label value for this DescribeGlobalSObjectResult.
+ *
+ * @param label
+ */
+ public void setLabel(java.lang.String label) {
+ this.label = label;
+ }
+
+
+ /**
+ * Gets the labelPlural value for this DescribeGlobalSObjectResult.
+ *
+ * @return labelPlural
+ */
+ public java.lang.String getLabelPlural() {
+ return labelPlural;
+ }
+
+
+ /**
+ * Sets the labelPlural value for this DescribeGlobalSObjectResult.
+ *
+ * @param labelPlural
+ */
+ public void setLabelPlural(java.lang.String labelPlural) {
+ this.labelPlural = labelPlural;
+ }
+
+
+ /**
+ * Gets the layoutable value for this DescribeGlobalSObjectResult.
+ *
+ * @return layoutable
+ */
+ public boolean isLayoutable() {
+ return layoutable;
+ }
+
+
+ /**
+ * Sets the layoutable value for this DescribeGlobalSObjectResult.
+ *
+ * @param layoutable
+ */
+ public void setLayoutable(boolean layoutable) {
+ this.layoutable = layoutable;
+ }
+
+
+ /**
+ * Gets the mergeable value for this DescribeGlobalSObjectResult.
+ *
+ * @return mergeable
+ */
+ public boolean isMergeable() {
+ return mergeable;
+ }
+
+
+ /**
+ * Sets the mergeable value for this DescribeGlobalSObjectResult.
+ *
+ * @param mergeable
+ */
+ public void setMergeable(boolean mergeable) {
+ this.mergeable = mergeable;
+ }
+
+
+ /**
+ * Gets the name value for this DescribeGlobalSObjectResult.
+ *
+ * @return name
+ */
+ public java.lang.String getName() {
+ return name;
+ }
+
+
+ /**
+ * Sets the name value for this DescribeGlobalSObjectResult.
+ *
+ * @param name
+ */
+ public void setName(java.lang.String name) {
+ this.name = name;
+ }
+
+
+ /**
+ * Gets the queryable value for this DescribeGlobalSObjectResult.
+ *
+ * @return queryable
+ */
+ public boolean isQueryable() {
+ return queryable;
+ }
+
+
+ /**
+ * Sets the queryable value for this DescribeGlobalSObjectResult.
+ *
+ * @param queryable
+ */
+ public void setQueryable(boolean queryable) {
+ this.queryable = queryable;
+ }
+
+
+ /**
+ * Gets the replicateable value for this DescribeGlobalSObjectResult.
+ *
+ * @return replicateable
+ */
+ public boolean isReplicateable() {
+ return replicateable;
+ }
+
+
+ /**
+ * Sets the replicateable value for this DescribeGlobalSObjectResult.
+ *
+ * @param replicateable
+ */
+ public void setReplicateable(boolean replicateable) {
+ this.replicateable = replicateable;
+ }
+
+
+ /**
+ * Gets the retrieveable value for this DescribeGlobalSObjectResult.
+ *
+ * @return retrieveable
+ */
+ public boolean isRetrieveable() {
+ return retrieveable;
+ }
+
+
+ /**
+ * Sets the retrieveable value for this DescribeGlobalSObjectResult.
+ *
+ * @param retrieveable
+ */
+ public void setRetrieveable(boolean retrieveable) {
+ this.retrieveable = retrieveable;
+ }
+
+
+ /**
+ * Gets the searchable value for this DescribeGlobalSObjectResult.
+ *
+ * @return searchable
+ */
+ public boolean isSearchable() {
+ return searchable;
+ }
+
+
+ /**
+ * Sets the searchable value for this DescribeGlobalSObjectResult.
+ *
+ * @param searchable
+ */
+ public void setSearchable(boolean searchable) {
+ this.searchable = searchable;
+ }
+
+
+ /**
+ * Gets the triggerable value for this DescribeGlobalSObjectResult.
+ *
+ * @return triggerable
+ */
+ public boolean isTriggerable() {
+ return triggerable;
+ }
+
+
+ /**
+ * Sets the triggerable value for this DescribeGlobalSObjectResult.
+ *
+ * @param triggerable
+ */
+ public void setTriggerable(boolean triggerable) {
+ this.triggerable = triggerable;
+ }
+
+
+ /**
+ * Gets the undeletable value for this DescribeGlobalSObjectResult.
+ *
+ * @return undeletable
+ */
+ public boolean isUndeletable() {
+ return undeletable;
+ }
+
+
+ /**
+ * Sets the undeletable value for this DescribeGlobalSObjectResult.
+ *
+ * @param undeletable
+ */
+ public void setUndeletable(boolean undeletable) {
+ this.undeletable = undeletable;
+ }
+
+
+ /**
+ * Gets the updateable value for this DescribeGlobalSObjectResult.
+ *
+ * @return updateable
+ */
+ public boolean isUpdateable() {
+ return updateable;
+ }
+
+
+ /**
+ * Sets the updateable value for this DescribeGlobalSObjectResult.
+ *
+ * @param updateable
+ */
+ public void setUpdateable(boolean updateable) {
+ this.updateable = updateable;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof DescribeGlobalSObjectResult)) return false;
+ DescribeGlobalSObjectResult other = (DescribeGlobalSObjectResult) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ this.activateable == other.isActivateable() &&
+ this.createable == other.isCreateable() &&
+ this.custom == other.isCustom() &&
+ this.customSetting == other.isCustomSetting() &&
+ this.deletable == other.isDeletable() &&
+ this.deprecatedAndHidden == other.isDeprecatedAndHidden() &&
+ ((this.keyPrefix==null && other.getKeyPrefix()==null) ||
+ (this.keyPrefix!=null &&
+ this.keyPrefix.equals(other.getKeyPrefix()))) &&
+ ((this.label==null && other.getLabel()==null) ||
+ (this.label!=null &&
+ this.label.equals(other.getLabel()))) &&
+ ((this.labelPlural==null && other.getLabelPlural()==null) ||
+ (this.labelPlural!=null &&
+ this.labelPlural.equals(other.getLabelPlural()))) &&
+ this.layoutable == other.isLayoutable() &&
+ this.mergeable == other.isMergeable() &&
+ ((this.name==null && other.getName()==null) ||
+ (this.name!=null &&
+ this.name.equals(other.getName()))) &&
+ this.queryable == other.isQueryable() &&
+ this.replicateable == other.isReplicateable() &&
+ this.retrieveable == other.isRetrieveable() &&
+ this.searchable == other.isSearchable() &&
+ this.triggerable == other.isTriggerable() &&
+ this.undeletable == other.isUndeletable() &&
+ this.updateable == other.isUpdateable();
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ _hashCode += (isActivateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isCreateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isCustom() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isCustomSetting() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isDeletable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isDeprecatedAndHidden() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getKeyPrefix() != null) {
+ _hashCode += getKeyPrefix().hashCode();
+ }
+ if (getLabel() != null) {
+ _hashCode += getLabel().hashCode();
+ }
+ if (getLabelPlural() != null) {
+ _hashCode += getLabelPlural().hashCode();
+ }
+ _hashCode += (isLayoutable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isMergeable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getName() != null) {
+ _hashCode += getName().hashCode();
+ }
+ _hashCode += (isQueryable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isReplicateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isRetrieveable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isSearchable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isTriggerable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isUndeletable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isUpdateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(DescribeGlobalSObjectResult.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalSObjectResult"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("activateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "activateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("createable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "createable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("custom");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "custom"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("customSetting");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "customSetting"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("deletable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deletable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("deprecatedAndHidden");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deprecatedAndHidden"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("keyPrefix");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "keyPrefix"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("label");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "label"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("labelPlural");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "labelPlural"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("layoutable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "layoutable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("mergeable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "mergeable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("name");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "name"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("queryable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("replicateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "replicateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("retrieveable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "retrieveable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("searchable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "searchable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("triggerable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "triggerable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("undeletable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "undeletable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("updateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "updateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Property changes on: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeGlobalSObjectResult.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeSObjectResult.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeSObjectResult.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/DescribeSObjectResult.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,918 +1,982 @@
-/**
- * DescribeSObjectResult.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class DescribeSObjectResult implements java.io.Serializable {
- private boolean activateable;
-
- private com.sforce.soap.partner.ChildRelationship[] childRelationships;
-
- private boolean createable;
-
- private boolean custom;
-
- private boolean deletable;
-
- private com.sforce.soap.partner.Field[] fields;
-
- private java.lang.String keyPrefix;
-
- private java.lang.String label;
-
- private java.lang.String labelPlural;
-
- private boolean layoutable;
-
- private boolean mergeable;
-
- private java.lang.String name;
-
- private boolean queryable;
-
- private com.sforce.soap.partner.RecordTypeInfo[] recordTypeInfos;
-
- private boolean replicateable;
-
- private boolean retrieveable;
-
- private boolean searchable;
-
- private java.lang.Boolean triggerable;
-
- private boolean undeletable;
-
- private boolean updateable;
-
- private java.lang.String urlDetail;
-
- private java.lang.String urlEdit;
-
- private java.lang.String urlNew;
-
- public DescribeSObjectResult() {
- }
-
- public DescribeSObjectResult(
- boolean activateable,
- com.sforce.soap.partner.ChildRelationship[] childRelationships,
- boolean createable,
- boolean custom,
- boolean deletable,
- com.sforce.soap.partner.Field[] fields,
- java.lang.String keyPrefix,
- java.lang.String label,
- java.lang.String labelPlural,
- boolean layoutable,
- boolean mergeable,
- java.lang.String name,
- boolean queryable,
- com.sforce.soap.partner.RecordTypeInfo[] recordTypeInfos,
- boolean replicateable,
- boolean retrieveable,
- boolean searchable,
- java.lang.Boolean triggerable,
- boolean undeletable,
- boolean updateable,
- java.lang.String urlDetail,
- java.lang.String urlEdit,
- java.lang.String urlNew) {
- this.activateable = activateable;
- this.childRelationships = childRelationships;
- this.createable = createable;
- this.custom = custom;
- this.deletable = deletable;
- this.fields = fields;
- this.keyPrefix = keyPrefix;
- this.label = label;
- this.labelPlural = labelPlural;
- this.layoutable = layoutable;
- this.mergeable = mergeable;
- this.name = name;
- this.queryable = queryable;
- this.recordTypeInfos = recordTypeInfos;
- this.replicateable = replicateable;
- this.retrieveable = retrieveable;
- this.searchable = searchable;
- this.triggerable = triggerable;
- this.undeletable = undeletable;
- this.updateable = updateable;
- this.urlDetail = urlDetail;
- this.urlEdit = urlEdit;
- this.urlNew = urlNew;
- }
-
-
- /**
- * Gets the activateable value for this DescribeSObjectResult.
- *
- * @return activateable
- */
- public boolean isActivateable() {
- return activateable;
- }
-
-
- /**
- * Sets the activateable value for this DescribeSObjectResult.
- *
- * @param activateable
- */
- public void setActivateable(boolean activateable) {
- this.activateable = activateable;
- }
-
-
- /**
- * Gets the childRelationships value for this DescribeSObjectResult.
- *
- * @return childRelationships
- */
- public com.sforce.soap.partner.ChildRelationship[] getChildRelationships() {
- return childRelationships;
- }
-
-
- /**
- * Sets the childRelationships value for this DescribeSObjectResult.
- *
- * @param childRelationships
- */
- public void setChildRelationships(com.sforce.soap.partner.ChildRelationship[] childRelationships) {
- this.childRelationships = childRelationships;
- }
-
- public com.sforce.soap.partner.ChildRelationship getChildRelationships(int i) {
- return this.childRelationships[i];
- }
-
- public void setChildRelationships(int i, com.sforce.soap.partner.ChildRelationship _value) {
- this.childRelationships[i] = _value;
- }
-
-
- /**
- * Gets the createable value for this DescribeSObjectResult.
- *
- * @return createable
- */
- public boolean isCreateable() {
- return createable;
- }
-
-
- /**
- * Sets the createable value for this DescribeSObjectResult.
- *
- * @param createable
- */
- public void setCreateable(boolean createable) {
- this.createable = createable;
- }
-
-
- /**
- * Gets the custom value for this DescribeSObjectResult.
- *
- * @return custom
- */
- public boolean isCustom() {
- return custom;
- }
-
-
- /**
- * Sets the custom value for this DescribeSObjectResult.
- *
- * @param custom
- */
- public void setCustom(boolean custom) {
- this.custom = custom;
- }
-
-
- /**
- * Gets the deletable value for this DescribeSObjectResult.
- *
- * @return deletable
- */
- public boolean isDeletable() {
- return deletable;
- }
-
-
- /**
- * Sets the deletable value for this DescribeSObjectResult.
- *
- * @param deletable
- */
- public void setDeletable(boolean deletable) {
- this.deletable = deletable;
- }
-
-
- /**
- * Gets the fields value for this DescribeSObjectResult.
- *
- * @return fields
- */
- public com.sforce.soap.partner.Field[] getFields() {
- return fields;
- }
-
-
- /**
- * Sets the fields value for this DescribeSObjectResult.
- *
- * @param fields
- */
- public void setFields(com.sforce.soap.partner.Field[] fields) {
- this.fields = fields;
- }
-
- public com.sforce.soap.partner.Field getFields(int i) {
- return this.fields[i];
- }
-
- public void setFields(int i, com.sforce.soap.partner.Field _value) {
- this.fields[i] = _value;
- }
-
-
- /**
- * Gets the keyPrefix value for this DescribeSObjectResult.
- *
- * @return keyPrefix
- */
- public java.lang.String getKeyPrefix() {
- return keyPrefix;
- }
-
-
- /**
- * Sets the keyPrefix value for this DescribeSObjectResult.
- *
- * @param keyPrefix
- */
- public void setKeyPrefix(java.lang.String keyPrefix) {
- this.keyPrefix = keyPrefix;
- }
-
-
- /**
- * Gets the label value for this DescribeSObjectResult.
- *
- * @return label
- */
- public java.lang.String getLabel() {
- return label;
- }
-
-
- /**
- * Sets the label value for this DescribeSObjectResult.
- *
- * @param label
- */
- public void setLabel(java.lang.String label) {
- this.label = label;
- }
-
-
- /**
- * Gets the labelPlural value for this DescribeSObjectResult.
- *
- * @return labelPlural
- */
- public java.lang.String getLabelPlural() {
- return labelPlural;
- }
-
-
- /**
- * Sets the labelPlural value for this DescribeSObjectResult.
- *
- * @param labelPlural
- */
- public void setLabelPlural(java.lang.String labelPlural) {
- this.labelPlural = labelPlural;
- }
-
-
- /**
- * Gets the layoutable value for this DescribeSObjectResult.
- *
- * @return layoutable
- */
- public boolean isLayoutable() {
- return layoutable;
- }
-
-
- /**
- * Sets the layoutable value for this DescribeSObjectResult.
- *
- * @param layoutable
- */
- public void setLayoutable(boolean layoutable) {
- this.layoutable = layoutable;
- }
-
-
- /**
- * Gets the mergeable value for this DescribeSObjectResult.
- *
- * @return mergeable
- */
- public boolean isMergeable() {
- return mergeable;
- }
-
-
- /**
- * Sets the mergeable value for this DescribeSObjectResult.
- *
- * @param mergeable
- */
- public void setMergeable(boolean mergeable) {
- this.mergeable = mergeable;
- }
-
-
- /**
- * Gets the name value for this DescribeSObjectResult.
- *
- * @return name
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the name value for this DescribeSObjectResult.
- *
- * @param name
- */
- public void setName(java.lang.String name) {
- this.name = name;
- }
-
-
- /**
- * Gets the queryable value for this DescribeSObjectResult.
- *
- * @return queryable
- */
- public boolean isQueryable() {
- return queryable;
- }
-
-
- /**
- * Sets the queryable value for this DescribeSObjectResult.
- *
- * @param queryable
- */
- public void setQueryable(boolean queryable) {
- this.queryable = queryable;
- }
-
-
- /**
- * Gets the recordTypeInfos value for this DescribeSObjectResult.
- *
- * @return recordTypeInfos
- */
- public com.sforce.soap.partner.RecordTypeInfo[] getRecordTypeInfos() {
- return recordTypeInfos;
- }
-
-
- /**
- * Sets the recordTypeInfos value for this DescribeSObjectResult.
- *
- * @param recordTypeInfos
- */
- public void setRecordTypeInfos(com.sforce.soap.partner.RecordTypeInfo[] recordTypeInfos) {
- this.recordTypeInfos = recordTypeInfos;
- }
-
- public com.sforce.soap.partner.RecordTypeInfo getRecordTypeInfos(int i) {
- return this.recordTypeInfos[i];
- }
-
- public void setRecordTypeInfos(int i, com.sforce.soap.partner.RecordTypeInfo _value) {
- this.recordTypeInfos[i] = _value;
- }
-
-
- /**
- * Gets the replicateable value for this DescribeSObjectResult.
- *
- * @return replicateable
- */
- public boolean isReplicateable() {
- return replicateable;
- }
-
-
- /**
- * Sets the replicateable value for this DescribeSObjectResult.
- *
- * @param replicateable
- */
- public void setReplicateable(boolean replicateable) {
- this.replicateable = replicateable;
- }
-
-
- /**
- * Gets the retrieveable value for this DescribeSObjectResult.
- *
- * @return retrieveable
- */
- public boolean isRetrieveable() {
- return retrieveable;
- }
-
-
- /**
- * Sets the retrieveable value for this DescribeSObjectResult.
- *
- * @param retrieveable
- */
- public void setRetrieveable(boolean retrieveable) {
- this.retrieveable = retrieveable;
- }
-
-
- /**
- * Gets the searchable value for this DescribeSObjectResult.
- *
- * @return searchable
- */
- public boolean isSearchable() {
- return searchable;
- }
-
-
- /**
- * Sets the searchable value for this DescribeSObjectResult.
- *
- * @param searchable
- */
- public void setSearchable(boolean searchable) {
- this.searchable = searchable;
- }
-
-
- /**
- * Gets the triggerable value for this DescribeSObjectResult.
- *
- * @return triggerable
- */
- public java.lang.Boolean getTriggerable() {
- return triggerable;
- }
-
-
- /**
- * Sets the triggerable value for this DescribeSObjectResult.
- *
- * @param triggerable
- */
- public void setTriggerable(java.lang.Boolean triggerable) {
- this.triggerable = triggerable;
- }
-
-
- /**
- * Gets the undeletable value for this DescribeSObjectResult.
- *
- * @return undeletable
- */
- public boolean isUndeletable() {
- return undeletable;
- }
-
-
- /**
- * Sets the undeletable value for this DescribeSObjectResult.
- *
- * @param undeletable
- */
- public void setUndeletable(boolean undeletable) {
- this.undeletable = undeletable;
- }
-
-
- /**
- * Gets the updateable value for this DescribeSObjectResult.
- *
- * @return updateable
- */
- public boolean isUpdateable() {
- return updateable;
- }
-
-
- /**
- * Sets the updateable value for this DescribeSObjectResult.
- *
- * @param updateable
- */
- public void setUpdateable(boolean updateable) {
- this.updateable = updateable;
- }
-
-
- /**
- * Gets the urlDetail value for this DescribeSObjectResult.
- *
- * @return urlDetail
- */
- public java.lang.String getUrlDetail() {
- return urlDetail;
- }
-
-
- /**
- * Sets the urlDetail value for this DescribeSObjectResult.
- *
- * @param urlDetail
- */
- public void setUrlDetail(java.lang.String urlDetail) {
- this.urlDetail = urlDetail;
- }
-
-
- /**
- * Gets the urlEdit value for this DescribeSObjectResult.
- *
- * @return urlEdit
- */
- public java.lang.String getUrlEdit() {
- return urlEdit;
- }
-
-
- /**
- * Sets the urlEdit value for this DescribeSObjectResult.
- *
- * @param urlEdit
- */
- public void setUrlEdit(java.lang.String urlEdit) {
- this.urlEdit = urlEdit;
- }
-
-
- /**
- * Gets the urlNew value for this DescribeSObjectResult.
- *
- * @return urlNew
- */
- public java.lang.String getUrlNew() {
- return urlNew;
- }
-
-
- /**
- * Sets the urlNew value for this DescribeSObjectResult.
- *
- * @param urlNew
- */
- public void setUrlNew(java.lang.String urlNew) {
- this.urlNew = urlNew;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof DescribeSObjectResult)) return false;
- DescribeSObjectResult other = (DescribeSObjectResult) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- this.activateable == other.isActivateable() &&
- ((this.childRelationships==null && other.getChildRelationships()==null) ||
- (this.childRelationships!=null &&
- java.util.Arrays.equals(this.childRelationships, other.getChildRelationships()))) &&
- this.createable == other.isCreateable() &&
- this.custom == other.isCustom() &&
- this.deletable == other.isDeletable() &&
- ((this.fields==null && other.getFields()==null) ||
- (this.fields!=null &&
- java.util.Arrays.equals(this.fields, other.getFields()))) &&
- ((this.keyPrefix==null && other.getKeyPrefix()==null) ||
- (this.keyPrefix!=null &&
- this.keyPrefix.equals(other.getKeyPrefix()))) &&
- ((this.label==null && other.getLabel()==null) ||
- (this.label!=null &&
- this.label.equals(other.getLabel()))) &&
- ((this.labelPlural==null && other.getLabelPlural()==null) ||
- (this.labelPlural!=null &&
- this.labelPlural.equals(other.getLabelPlural()))) &&
- this.layoutable == other.isLayoutable() &&
- this.mergeable == other.isMergeable() &&
- ((this.name==null && other.getName()==null) ||
- (this.name!=null &&
- this.name.equals(other.getName()))) &&
- this.queryable == other.isQueryable() &&
- ((this.recordTypeInfos==null && other.getRecordTypeInfos()==null) ||
- (this.recordTypeInfos!=null &&
- java.util.Arrays.equals(this.recordTypeInfos, other.getRecordTypeInfos()))) &&
- this.replicateable == other.isReplicateable() &&
- this.retrieveable == other.isRetrieveable() &&
- this.searchable == other.isSearchable() &&
- ((this.triggerable==null && other.getTriggerable()==null) ||
- (this.triggerable!=null &&
- this.triggerable.equals(other.getTriggerable()))) &&
- this.undeletable == other.isUndeletable() &&
- this.updateable == other.isUpdateable() &&
- ((this.urlDetail==null && other.getUrlDetail()==null) ||
- (this.urlDetail!=null &&
- this.urlDetail.equals(other.getUrlDetail()))) &&
- ((this.urlEdit==null && other.getUrlEdit()==null) ||
- (this.urlEdit!=null &&
- this.urlEdit.equals(other.getUrlEdit()))) &&
- ((this.urlNew==null && other.getUrlNew()==null) ||
- (this.urlNew!=null &&
- this.urlNew.equals(other.getUrlNew())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- _hashCode += (isActivateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getChildRelationships() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getChildRelationships());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getChildRelationships(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- _hashCode += (isCreateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isCustom() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isDeletable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getFields() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getFields());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getFields(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getKeyPrefix() != null) {
- _hashCode += getKeyPrefix().hashCode();
- }
- if (getLabel() != null) {
- _hashCode += getLabel().hashCode();
- }
- if (getLabelPlural() != null) {
- _hashCode += getLabelPlural().hashCode();
- }
- _hashCode += (isLayoutable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isMergeable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getName() != null) {
- _hashCode += getName().hashCode();
- }
- _hashCode += (isQueryable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getRecordTypeInfos() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getRecordTypeInfos());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getRecordTypeInfos(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- _hashCode += (isReplicateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isRetrieveable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isSearchable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getTriggerable() != null) {
- _hashCode += getTriggerable().hashCode();
- }
- _hashCode += (isUndeletable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isUpdateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getUrlDetail() != null) {
- _hashCode += getUrlDetail().hashCode();
- }
- if (getUrlEdit() != null) {
- _hashCode += getUrlEdit().hashCode();
- }
- if (getUrlNew() != null) {
- _hashCode += getUrlNew().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(DescribeSObjectResult.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("activateable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "activateable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("childRelationships");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "childRelationships"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ChildRelationship"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("createable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "createable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("custom");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "custom"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("deletable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deletable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("fields");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fields"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Field"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("keyPrefix");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "keyPrefix"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("label");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "label"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("labelPlural");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "labelPlural"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("layoutable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "layoutable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("mergeable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "mergeable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("name");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "name"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("queryable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("recordTypeInfos");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "recordTypeInfos"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RecordTypeInfo"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("replicateable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "replicateable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("retrieveable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "retrieveable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("searchable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "searchable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("triggerable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "triggerable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("undeletable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "undeletable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("updateable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "updateable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("urlDetail");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "urlDetail"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("urlEdit");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "urlEdit"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("urlNew");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "urlNew"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * DescribeSObjectResult.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class DescribeSObjectResult implements java.io.Serializable {
+ private boolean activateable;
+
+ private com.sforce.soap.partner.ChildRelationship[] childRelationships;
+
+ private boolean createable;
+
+ private boolean custom;
+
+ private boolean customSetting;
+
+ private boolean deletable;
+
+ private boolean deprecatedAndHidden;
+
+ private com.sforce.soap.partner.Field[] fields;
+
+ private java.lang.String keyPrefix;
+
+ private java.lang.String label;
+
+ private java.lang.String labelPlural;
+
+ private boolean layoutable;
+
+ private boolean mergeable;
+
+ private java.lang.String name;
+
+ private boolean queryable;
+
+ private com.sforce.soap.partner.RecordTypeInfo[] recordTypeInfos;
+
+ private boolean replicateable;
+
+ private boolean retrieveable;
+
+ private boolean searchable;
+
+ private java.lang.Boolean triggerable;
+
+ private boolean undeletable;
+
+ private boolean updateable;
+
+ private java.lang.String urlDetail;
+
+ private java.lang.String urlEdit;
+
+ private java.lang.String urlNew;
+
+ public DescribeSObjectResult() {
+ }
+
+ public DescribeSObjectResult(
+ boolean activateable,
+ com.sforce.soap.partner.ChildRelationship[] childRelationships,
+ boolean createable,
+ boolean custom,
+ boolean customSetting,
+ boolean deletable,
+ boolean deprecatedAndHidden,
+ com.sforce.soap.partner.Field[] fields,
+ java.lang.String keyPrefix,
+ java.lang.String label,
+ java.lang.String labelPlural,
+ boolean layoutable,
+ boolean mergeable,
+ java.lang.String name,
+ boolean queryable,
+ com.sforce.soap.partner.RecordTypeInfo[] recordTypeInfos,
+ boolean replicateable,
+ boolean retrieveable,
+ boolean searchable,
+ java.lang.Boolean triggerable,
+ boolean undeletable,
+ boolean updateable,
+ java.lang.String urlDetail,
+ java.lang.String urlEdit,
+ java.lang.String urlNew) {
+ this.activateable = activateable;
+ this.childRelationships = childRelationships;
+ this.createable = createable;
+ this.custom = custom;
+ this.customSetting = customSetting;
+ this.deletable = deletable;
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ this.fields = fields;
+ this.keyPrefix = keyPrefix;
+ this.label = label;
+ this.labelPlural = labelPlural;
+ this.layoutable = layoutable;
+ this.mergeable = mergeable;
+ this.name = name;
+ this.queryable = queryable;
+ this.recordTypeInfos = recordTypeInfos;
+ this.replicateable = replicateable;
+ this.retrieveable = retrieveable;
+ this.searchable = searchable;
+ this.triggerable = triggerable;
+ this.undeletable = undeletable;
+ this.updateable = updateable;
+ this.urlDetail = urlDetail;
+ this.urlEdit = urlEdit;
+ this.urlNew = urlNew;
+ }
+
+
+ /**
+ * Gets the activateable value for this DescribeSObjectResult.
+ *
+ * @return activateable
+ */
+ public boolean isActivateable() {
+ return activateable;
+ }
+
+
+ /**
+ * Sets the activateable value for this DescribeSObjectResult.
+ *
+ * @param activateable
+ */
+ public void setActivateable(boolean activateable) {
+ this.activateable = activateable;
+ }
+
+
+ /**
+ * Gets the childRelationships value for this DescribeSObjectResult.
+ *
+ * @return childRelationships
+ */
+ public com.sforce.soap.partner.ChildRelationship[] getChildRelationships() {
+ return childRelationships;
+ }
+
+
+ /**
+ * Sets the childRelationships value for this DescribeSObjectResult.
+ *
+ * @param childRelationships
+ */
+ public void setChildRelationships(com.sforce.soap.partner.ChildRelationship[] childRelationships) {
+ this.childRelationships = childRelationships;
+ }
+
+ public com.sforce.soap.partner.ChildRelationship getChildRelationships(int i) {
+ return this.childRelationships[i];
+ }
+
+ public void setChildRelationships(int i, com.sforce.soap.partner.ChildRelationship _value) {
+ this.childRelationships[i] = _value;
+ }
+
+
+ /**
+ * Gets the createable value for this DescribeSObjectResult.
+ *
+ * @return createable
+ */
+ public boolean isCreateable() {
+ return createable;
+ }
+
+
+ /**
+ * Sets the createable value for this DescribeSObjectResult.
+ *
+ * @param createable
+ */
+ public void setCreateable(boolean createable) {
+ this.createable = createable;
+ }
+
+
+ /**
+ * Gets the custom value for this DescribeSObjectResult.
+ *
+ * @return custom
+ */
+ public boolean isCustom() {
+ return custom;
+ }
+
+
+ /**
+ * Sets the custom value for this DescribeSObjectResult.
+ *
+ * @param custom
+ */
+ public void setCustom(boolean custom) {
+ this.custom = custom;
+ }
+
+
+ /**
+ * Gets the customSetting value for this DescribeSObjectResult.
+ *
+ * @return customSetting
+ */
+ public boolean isCustomSetting() {
+ return customSetting;
+ }
+
+
+ /**
+ * Sets the customSetting value for this DescribeSObjectResult.
+ *
+ * @param customSetting
+ */
+ public void setCustomSetting(boolean customSetting) {
+ this.customSetting = customSetting;
+ }
+
+
+ /**
+ * Gets the deletable value for this DescribeSObjectResult.
+ *
+ * @return deletable
+ */
+ public boolean isDeletable() {
+ return deletable;
+ }
+
+
+ /**
+ * Sets the deletable value for this DescribeSObjectResult.
+ *
+ * @param deletable
+ */
+ public void setDeletable(boolean deletable) {
+ this.deletable = deletable;
+ }
+
+
+ /**
+ * Gets the deprecatedAndHidden value for this DescribeSObjectResult.
+ *
+ * @return deprecatedAndHidden
+ */
+ public boolean isDeprecatedAndHidden() {
+ return deprecatedAndHidden;
+ }
+
+
+ /**
+ * Sets the deprecatedAndHidden value for this DescribeSObjectResult.
+ *
+ * @param deprecatedAndHidden
+ */
+ public void setDeprecatedAndHidden(boolean deprecatedAndHidden) {
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ }
+
+
+ /**
+ * Gets the fields value for this DescribeSObjectResult.
+ *
+ * @return fields
+ */
+ public com.sforce.soap.partner.Field[] getFields() {
+ return fields;
+ }
+
+
+ /**
+ * Sets the fields value for this DescribeSObjectResult.
+ *
+ * @param fields
+ */
+ public void setFields(com.sforce.soap.partner.Field[] fields) {
+ this.fields = fields;
+ }
+
+ public com.sforce.soap.partner.Field getFields(int i) {
+ return this.fields[i];
+ }
+
+ public void setFields(int i, com.sforce.soap.partner.Field _value) {
+ this.fields[i] = _value;
+ }
+
+
+ /**
+ * Gets the keyPrefix value for this DescribeSObjectResult.
+ *
+ * @return keyPrefix
+ */
+ public java.lang.String getKeyPrefix() {
+ return keyPrefix;
+ }
+
+
+ /**
+ * Sets the keyPrefix value for this DescribeSObjectResult.
+ *
+ * @param keyPrefix
+ */
+ public void setKeyPrefix(java.lang.String keyPrefix) {
+ this.keyPrefix = keyPrefix;
+ }
+
+
+ /**
+ * Gets the label value for this DescribeSObjectResult.
+ *
+ * @return label
+ */
+ public java.lang.String getLabel() {
+ return label;
+ }
+
+
+ /**
+ * Sets the label value for this DescribeSObjectResult.
+ *
+ * @param label
+ */
+ public void setLabel(java.lang.String label) {
+ this.label = label;
+ }
+
+
+ /**
+ * Gets the labelPlural value for this DescribeSObjectResult.
+ *
+ * @return labelPlural
+ */
+ public java.lang.String getLabelPlural() {
+ return labelPlural;
+ }
+
+
+ /**
+ * Sets the labelPlural value for this DescribeSObjectResult.
+ *
+ * @param labelPlural
+ */
+ public void setLabelPlural(java.lang.String labelPlural) {
+ this.labelPlural = labelPlural;
+ }
+
+
+ /**
+ * Gets the layoutable value for this DescribeSObjectResult.
+ *
+ * @return layoutable
+ */
+ public boolean isLayoutable() {
+ return layoutable;
+ }
+
+
+ /**
+ * Sets the layoutable value for this DescribeSObjectResult.
+ *
+ * @param layoutable
+ */
+ public void setLayoutable(boolean layoutable) {
+ this.layoutable = layoutable;
+ }
+
+
+ /**
+ * Gets the mergeable value for this DescribeSObjectResult.
+ *
+ * @return mergeable
+ */
+ public boolean isMergeable() {
+ return mergeable;
+ }
+
+
+ /**
+ * Sets the mergeable value for this DescribeSObjectResult.
+ *
+ * @param mergeable
+ */
+ public void setMergeable(boolean mergeable) {
+ this.mergeable = mergeable;
+ }
+
+
+ /**
+ * Gets the name value for this DescribeSObjectResult.
+ *
+ * @return name
+ */
+ public java.lang.String getName() {
+ return name;
+ }
+
+
+ /**
+ * Sets the name value for this DescribeSObjectResult.
+ *
+ * @param name
+ */
+ public void setName(java.lang.String name) {
+ this.name = name;
+ }
+
+
+ /**
+ * Gets the queryable value for this DescribeSObjectResult.
+ *
+ * @return queryable
+ */
+ public boolean isQueryable() {
+ return queryable;
+ }
+
+
+ /**
+ * Sets the queryable value for this DescribeSObjectResult.
+ *
+ * @param queryable
+ */
+ public void setQueryable(boolean queryable) {
+ this.queryable = queryable;
+ }
+
+
+ /**
+ * Gets the recordTypeInfos value for this DescribeSObjectResult.
+ *
+ * @return recordTypeInfos
+ */
+ public com.sforce.soap.partner.RecordTypeInfo[] getRecordTypeInfos() {
+ return recordTypeInfos;
+ }
+
+
+ /**
+ * Sets the recordTypeInfos value for this DescribeSObjectResult.
+ *
+ * @param recordTypeInfos
+ */
+ public void setRecordTypeInfos(com.sforce.soap.partner.RecordTypeInfo[] recordTypeInfos) {
+ this.recordTypeInfos = recordTypeInfos;
+ }
+
+ public com.sforce.soap.partner.RecordTypeInfo getRecordTypeInfos(int i) {
+ return this.recordTypeInfos[i];
+ }
+
+ public void setRecordTypeInfos(int i, com.sforce.soap.partner.RecordTypeInfo _value) {
+ this.recordTypeInfos[i] = _value;
+ }
+
+
+ /**
+ * Gets the replicateable value for this DescribeSObjectResult.
+ *
+ * @return replicateable
+ */
+ public boolean isReplicateable() {
+ return replicateable;
+ }
+
+
+ /**
+ * Sets the replicateable value for this DescribeSObjectResult.
+ *
+ * @param replicateable
+ */
+ public void setReplicateable(boolean replicateable) {
+ this.replicateable = replicateable;
+ }
+
+
+ /**
+ * Gets the retrieveable value for this DescribeSObjectResult.
+ *
+ * @return retrieveable
+ */
+ public boolean isRetrieveable() {
+ return retrieveable;
+ }
+
+
+ /**
+ * Sets the retrieveable value for this DescribeSObjectResult.
+ *
+ * @param retrieveable
+ */
+ public void setRetrieveable(boolean retrieveable) {
+ this.retrieveable = retrieveable;
+ }
+
+
+ /**
+ * Gets the searchable value for this DescribeSObjectResult.
+ *
+ * @return searchable
+ */
+ public boolean isSearchable() {
+ return searchable;
+ }
+
+
+ /**
+ * Sets the searchable value for this DescribeSObjectResult.
+ *
+ * @param searchable
+ */
+ public void setSearchable(boolean searchable) {
+ this.searchable = searchable;
+ }
+
+
+ /**
+ * Gets the triggerable value for this DescribeSObjectResult.
+ *
+ * @return triggerable
+ */
+ public java.lang.Boolean getTriggerable() {
+ return triggerable;
+ }
+
+
+ /**
+ * Sets the triggerable value for this DescribeSObjectResult.
+ *
+ * @param triggerable
+ */
+ public void setTriggerable(java.lang.Boolean triggerable) {
+ this.triggerable = triggerable;
+ }
+
+
+ /**
+ * Gets the undeletable value for this DescribeSObjectResult.
+ *
+ * @return undeletable
+ */
+ public boolean isUndeletable() {
+ return undeletable;
+ }
+
+
+ /**
+ * Sets the undeletable value for this DescribeSObjectResult.
+ *
+ * @param undeletable
+ */
+ public void setUndeletable(boolean undeletable) {
+ this.undeletable = undeletable;
+ }
+
+
+ /**
+ * Gets the updateable value for this DescribeSObjectResult.
+ *
+ * @return updateable
+ */
+ public boolean isUpdateable() {
+ return updateable;
+ }
+
+
+ /**
+ * Sets the updateable value for this DescribeSObjectResult.
+ *
+ * @param updateable
+ */
+ public void setUpdateable(boolean updateable) {
+ this.updateable = updateable;
+ }
+
+
+ /**
+ * Gets the urlDetail value for this DescribeSObjectResult.
+ *
+ * @return urlDetail
+ */
+ public java.lang.String getUrlDetail() {
+ return urlDetail;
+ }
+
+
+ /**
+ * Sets the urlDetail value for this DescribeSObjectResult.
+ *
+ * @param urlDetail
+ */
+ public void setUrlDetail(java.lang.String urlDetail) {
+ this.urlDetail = urlDetail;
+ }
+
+
+ /**
+ * Gets the urlEdit value for this DescribeSObjectResult.
+ *
+ * @return urlEdit
+ */
+ public java.lang.String getUrlEdit() {
+ return urlEdit;
+ }
+
+
+ /**
+ * Sets the urlEdit value for this DescribeSObjectResult.
+ *
+ * @param urlEdit
+ */
+ public void setUrlEdit(java.lang.String urlEdit) {
+ this.urlEdit = urlEdit;
+ }
+
+
+ /**
+ * Gets the urlNew value for this DescribeSObjectResult.
+ *
+ * @return urlNew
+ */
+ public java.lang.String getUrlNew() {
+ return urlNew;
+ }
+
+
+ /**
+ * Sets the urlNew value for this DescribeSObjectResult.
+ *
+ * @param urlNew
+ */
+ public void setUrlNew(java.lang.String urlNew) {
+ this.urlNew = urlNew;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof DescribeSObjectResult)) return false;
+ DescribeSObjectResult other = (DescribeSObjectResult) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ this.activateable == other.isActivateable() &&
+ ((this.childRelationships==null && other.getChildRelationships()==null) ||
+ (this.childRelationships!=null &&
+ java.util.Arrays.equals(this.childRelationships, other.getChildRelationships()))) &&
+ this.createable == other.isCreateable() &&
+ this.custom == other.isCustom() &&
+ this.customSetting == other.isCustomSetting() &&
+ this.deletable == other.isDeletable() &&
+ this.deprecatedAndHidden == other.isDeprecatedAndHidden() &&
+ ((this.fields==null && other.getFields()==null) ||
+ (this.fields!=null &&
+ java.util.Arrays.equals(this.fields, other.getFields()))) &&
+ ((this.keyPrefix==null && other.getKeyPrefix()==null) ||
+ (this.keyPrefix!=null &&
+ this.keyPrefix.equals(other.getKeyPrefix()))) &&
+ ((this.label==null && other.getLabel()==null) ||
+ (this.label!=null &&
+ this.label.equals(other.getLabel()))) &&
+ ((this.labelPlural==null && other.getLabelPlural()==null) ||
+ (this.labelPlural!=null &&
+ this.labelPlural.equals(other.getLabelPlural()))) &&
+ this.layoutable == other.isLayoutable() &&
+ this.mergeable == other.isMergeable() &&
+ ((this.name==null && other.getName()==null) ||
+ (this.name!=null &&
+ this.name.equals(other.getName()))) &&
+ this.queryable == other.isQueryable() &&
+ ((this.recordTypeInfos==null && other.getRecordTypeInfos()==null) ||
+ (this.recordTypeInfos!=null &&
+ java.util.Arrays.equals(this.recordTypeInfos, other.getRecordTypeInfos()))) &&
+ this.replicateable == other.isReplicateable() &&
+ this.retrieveable == other.isRetrieveable() &&
+ this.searchable == other.isSearchable() &&
+ ((this.triggerable==null && other.getTriggerable()==null) ||
+ (this.triggerable!=null &&
+ this.triggerable.equals(other.getTriggerable()))) &&
+ this.undeletable == other.isUndeletable() &&
+ this.updateable == other.isUpdateable() &&
+ ((this.urlDetail==null && other.getUrlDetail()==null) ||
+ (this.urlDetail!=null &&
+ this.urlDetail.equals(other.getUrlDetail()))) &&
+ ((this.urlEdit==null && other.getUrlEdit()==null) ||
+ (this.urlEdit!=null &&
+ this.urlEdit.equals(other.getUrlEdit()))) &&
+ ((this.urlNew==null && other.getUrlNew()==null) ||
+ (this.urlNew!=null &&
+ this.urlNew.equals(other.getUrlNew())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ _hashCode += (isActivateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getChildRelationships() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getChildRelationships());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getChildRelationships(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ _hashCode += (isCreateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isCustom() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isCustomSetting() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isDeletable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isDeprecatedAndHidden() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getFields() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getFields());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getFields(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getKeyPrefix() != null) {
+ _hashCode += getKeyPrefix().hashCode();
+ }
+ if (getLabel() != null) {
+ _hashCode += getLabel().hashCode();
+ }
+ if (getLabelPlural() != null) {
+ _hashCode += getLabelPlural().hashCode();
+ }
+ _hashCode += (isLayoutable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isMergeable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getName() != null) {
+ _hashCode += getName().hashCode();
+ }
+ _hashCode += (isQueryable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getRecordTypeInfos() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getRecordTypeInfos());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getRecordTypeInfos(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ _hashCode += (isReplicateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isRetrieveable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isSearchable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getTriggerable() != null) {
+ _hashCode += getTriggerable().hashCode();
+ }
+ _hashCode += (isUndeletable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isUpdateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getUrlDetail() != null) {
+ _hashCode += getUrlDetail().hashCode();
+ }
+ if (getUrlEdit() != null) {
+ _hashCode += getUrlEdit().hashCode();
+ }
+ if (getUrlNew() != null) {
+ _hashCode += getUrlNew().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(DescribeSObjectResult.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("activateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "activateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("childRelationships");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "childRelationships"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ChildRelationship"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("createable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "createable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("custom");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "custom"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("customSetting");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "customSetting"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("deletable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deletable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("deprecatedAndHidden");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deprecatedAndHidden"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("fields");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fields"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Field"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("keyPrefix");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "keyPrefix"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("label");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "label"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("labelPlural");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "labelPlural"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("layoutable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "layoutable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("mergeable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "mergeable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("name");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "name"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("queryable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("recordTypeInfos");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "recordTypeInfos"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RecordTypeInfo"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("replicateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "replicateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("retrieveable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "retrieveable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("searchable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "searchable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("triggerable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "triggerable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("undeletable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "undeletable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("updateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "updateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("urlDetail");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "urlDetail"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("urlEdit");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "urlEdit"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("urlNew");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "urlNew"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/EmailFileAttachment.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/EmailFileAttachment.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/EmailFileAttachment.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,164 +1,238 @@
-/**
- * EmailFileAttachment.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class EmailFileAttachment implements java.io.Serializable {
- private byte[] body;
-
- private java.lang.String fileName;
-
- public EmailFileAttachment() {
- }
-
- public EmailFileAttachment(
- byte[] body,
- java.lang.String fileName) {
- this.body = body;
- this.fileName = fileName;
- }
-
-
- /**
- * Gets the body value for this EmailFileAttachment.
- *
- * @return body
- */
- public byte[] getBody() {
- return body;
- }
-
-
- /**
- * Sets the body value for this EmailFileAttachment.
- *
- * @param body
- */
- public void setBody(byte[] body) {
- this.body = body;
- }
-
-
- /**
- * Gets the fileName value for this EmailFileAttachment.
- *
- * @return fileName
- */
- public java.lang.String getFileName() {
- return fileName;
- }
-
-
- /**
- * Sets the fileName value for this EmailFileAttachment.
- *
- * @param fileName
- */
- public void setFileName(java.lang.String fileName) {
- this.fileName = fileName;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof EmailFileAttachment)) return false;
- EmailFileAttachment other = (EmailFileAttachment) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- ((this.body==null && other.getBody()==null) ||
- (this.body!=null &&
- java.util.Arrays.equals(this.body, other.getBody()))) &&
- ((this.fileName==null && other.getFileName()==null) ||
- (this.fileName!=null &&
- this.fileName.equals(other.getFileName())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- if (getBody() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getBody());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getBody(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getFileName() != null) {
- _hashCode += getFileName().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(EmailFileAttachment.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailFileAttachment"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("body");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "body"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("fileName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fileName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * EmailFileAttachment.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class EmailFileAttachment implements java.io.Serializable {
+ private byte[] body;
+
+ private java.lang.String contentType;
+
+ private java.lang.String fileName;
+
+ private java.lang.Boolean inline;
+
+ public EmailFileAttachment() {
+ }
+
+ public EmailFileAttachment(
+ byte[] body,
+ java.lang.String contentType,
+ java.lang.String fileName,
+ java.lang.Boolean inline) {
+ this.body = body;
+ this.contentType = contentType;
+ this.fileName = fileName;
+ this.inline = inline;
+ }
+
+
+ /**
+ * Gets the body value for this EmailFileAttachment.
+ *
+ * @return body
+ */
+ public byte[] getBody() {
+ return body;
+ }
+
+
+ /**
+ * Sets the body value for this EmailFileAttachment.
+ *
+ * @param body
+ */
+ public void setBody(byte[] body) {
+ this.body = body;
+ }
+
+
+ /**
+ * Gets the contentType value for this EmailFileAttachment.
+ *
+ * @return contentType
+ */
+ public java.lang.String getContentType() {
+ return contentType;
+ }
+
+
+ /**
+ * Sets the contentType value for this EmailFileAttachment.
+ *
+ * @param contentType
+ */
+ public void setContentType(java.lang.String contentType) {
+ this.contentType = contentType;
+ }
+
+
+ /**
+ * Gets the fileName value for this EmailFileAttachment.
+ *
+ * @return fileName
+ */
+ public java.lang.String getFileName() {
+ return fileName;
+ }
+
+
+ /**
+ * Sets the fileName value for this EmailFileAttachment.
+ *
+ * @param fileName
+ */
+ public void setFileName(java.lang.String fileName) {
+ this.fileName = fileName;
+ }
+
+
+ /**
+ * Gets the inline value for this EmailFileAttachment.
+ *
+ * @return inline
+ */
+ public java.lang.Boolean getInline() {
+ return inline;
+ }
+
+
+ /**
+ * Sets the inline value for this EmailFileAttachment.
+ *
+ * @param inline
+ */
+ public void setInline(java.lang.Boolean inline) {
+ this.inline = inline;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof EmailFileAttachment)) return false;
+ EmailFileAttachment other = (EmailFileAttachment) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.body==null && other.getBody()==null) ||
+ (this.body!=null &&
+ java.util.Arrays.equals(this.body, other.getBody()))) &&
+ ((this.contentType==null && other.getContentType()==null) ||
+ (this.contentType!=null &&
+ this.contentType.equals(other.getContentType()))) &&
+ ((this.fileName==null && other.getFileName()==null) ||
+ (this.fileName!=null &&
+ this.fileName.equals(other.getFileName()))) &&
+ ((this.inline==null && other.getInline()==null) ||
+ (this.inline!=null &&
+ this.inline.equals(other.getInline())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getBody() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getBody());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getBody(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getContentType() != null) {
+ _hashCode += getContentType().hashCode();
+ }
+ if (getFileName() != null) {
+ _hashCode += getFileName().hashCode();
+ }
+ if (getInline() != null) {
+ _hashCode += getInline().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(EmailFileAttachment.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailFileAttachment"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("body");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "body"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("contentType");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "contentType"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("fileName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fileName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("inline");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "inline"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Field.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Field.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Field.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,1355 +1,1387 @@
-/**
- * Field.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class Field implements java.io.Serializable {
- private boolean autoNumber;
-
- private int byteLength;
-
- private boolean calculated;
-
- private java.lang.String calculatedFormula;
-
- private boolean caseSensitive;
-
- private java.lang.String controllerName;
-
- private boolean createable;
-
- private boolean custom;
-
- private java.lang.String defaultValueFormula;
-
- private boolean defaultedOnCreate;
-
- private java.lang.Boolean dependentPicklist;
-
- private int digits;
-
- private java.lang.Boolean externalId;
-
- private boolean filterable;
-
- private java.lang.Boolean htmlFormatted;
-
- private boolean idLookup;
-
- private java.lang.String inlineHelpText;
-
- private java.lang.String label;
-
- private int length;
-
- private java.lang.String name;
-
- private boolean nameField;
-
- private java.lang.Boolean namePointing;
-
- private boolean nillable;
-
- private com.sforce.soap.partner.PicklistEntry[] picklistValues;
-
- private int precision;
-
- private java.lang.String[] referenceTo;
-
- private java.lang.String relationshipName;
-
- private java.lang.Integer relationshipOrder;
-
- private boolean restrictedPicklist;
-
- private int scale;
-
- private com.sforce.soap.partner.SoapType soapType;
-
- private java.lang.Boolean sortable;
-
- private com.sforce.soap.partner.FieldType type;
-
- private boolean unique;
-
- private boolean updateable;
-
- private java.lang.Boolean writeRequiresMasterRead;
-
- public Field() {
- }
-
- public Field(
- boolean autoNumber,
- int byteLength,
- boolean calculated,
- java.lang.String calculatedFormula,
- boolean caseSensitive,
- java.lang.String controllerName,
- boolean createable,
- boolean custom,
- java.lang.String defaultValueFormula,
- boolean defaultedOnCreate,
- java.lang.Boolean dependentPicklist,
- int digits,
- java.lang.Boolean externalId,
- boolean filterable,
- java.lang.Boolean htmlFormatted,
- boolean idLookup,
- java.lang.String inlineHelpText,
- java.lang.String label,
- int length,
- java.lang.String name,
- boolean nameField,
- java.lang.Boolean namePointing,
- boolean nillable,
- com.sforce.soap.partner.PicklistEntry[] picklistValues,
- int precision,
- java.lang.String[] referenceTo,
- java.lang.String relationshipName,
- java.lang.Integer relationshipOrder,
- boolean restrictedPicklist,
- int scale,
- com.sforce.soap.partner.SoapType soapType,
- java.lang.Boolean sortable,
- com.sforce.soap.partner.FieldType type,
- boolean unique,
- boolean updateable,
- java.lang.Boolean writeRequiresMasterRead) {
- this.autoNumber = autoNumber;
- this.byteLength = byteLength;
- this.calculated = calculated;
- this.calculatedFormula = calculatedFormula;
- this.caseSensitive = caseSensitive;
- this.controllerName = controllerName;
- this.createable = createable;
- this.custom = custom;
- this.defaultValueFormula = defaultValueFormula;
- this.defaultedOnCreate = defaultedOnCreate;
- this.dependentPicklist = dependentPicklist;
- this.digits = digits;
- this.externalId = externalId;
- this.filterable = filterable;
- this.htmlFormatted = htmlFormatted;
- this.idLookup = idLookup;
- this.inlineHelpText = inlineHelpText;
- this.label = label;
- this.length = length;
- this.name = name;
- this.nameField = nameField;
- this.namePointing = namePointing;
- this.nillable = nillable;
- this.picklistValues = picklistValues;
- this.precision = precision;
- this.referenceTo = referenceTo;
- this.relationshipName = relationshipName;
- this.relationshipOrder = relationshipOrder;
- this.restrictedPicklist = restrictedPicklist;
- this.scale = scale;
- this.soapType = soapType;
- this.sortable = sortable;
- this.type = type;
- this.unique = unique;
- this.updateable = updateable;
- this.writeRequiresMasterRead = writeRequiresMasterRead;
- }
-
-
- /**
- * Gets the autoNumber value for this Field.
- *
- * @return autoNumber
- */
- public boolean isAutoNumber() {
- return autoNumber;
- }
-
-
- /**
- * Sets the autoNumber value for this Field.
- *
- * @param autoNumber
- */
- public void setAutoNumber(boolean autoNumber) {
- this.autoNumber = autoNumber;
- }
-
-
- /**
- * Gets the byteLength value for this Field.
- *
- * @return byteLength
- */
- public int getByteLength() {
- return byteLength;
- }
-
-
- /**
- * Sets the byteLength value for this Field.
- *
- * @param byteLength
- */
- public void setByteLength(int byteLength) {
- this.byteLength = byteLength;
- }
-
-
- /**
- * Gets the calculated value for this Field.
- *
- * @return calculated
- */
- public boolean isCalculated() {
- return calculated;
- }
-
-
- /**
- * Sets the calculated value for this Field.
- *
- * @param calculated
- */
- public void setCalculated(boolean calculated) {
- this.calculated = calculated;
- }
-
-
- /**
- * Gets the calculatedFormula value for this Field.
- *
- * @return calculatedFormula
- */
- public java.lang.String getCalculatedFormula() {
- return calculatedFormula;
- }
-
-
- /**
- * Sets the calculatedFormula value for this Field.
- *
- * @param calculatedFormula
- */
- public void setCalculatedFormula(java.lang.String calculatedFormula) {
- this.calculatedFormula = calculatedFormula;
- }
-
-
- /**
- * Gets the caseSensitive value for this Field.
- *
- * @return caseSensitive
- */
- public boolean isCaseSensitive() {
- return caseSensitive;
- }
-
-
- /**
- * Sets the caseSensitive value for this Field.
- *
- * @param caseSensitive
- */
- public void setCaseSensitive(boolean caseSensitive) {
- this.caseSensitive = caseSensitive;
- }
-
-
- /**
- * Gets the controllerName value for this Field.
- *
- * @return controllerName
- */
- public java.lang.String getControllerName() {
- return controllerName;
- }
-
-
- /**
- * Sets the controllerName value for this Field.
- *
- * @param controllerName
- */
- public void setControllerName(java.lang.String controllerName) {
- this.controllerName = controllerName;
- }
-
-
- /**
- * Gets the createable value for this Field.
- *
- * @return createable
- */
- public boolean isCreateable() {
- return createable;
- }
-
-
- /**
- * Sets the createable value for this Field.
- *
- * @param createable
- */
- public void setCreateable(boolean createable) {
- this.createable = createable;
- }
-
-
- /**
- * Gets the custom value for this Field.
- *
- * @return custom
- */
- public boolean isCustom() {
- return custom;
- }
-
-
- /**
- * Sets the custom value for this Field.
- *
- * @param custom
- */
- public void setCustom(boolean custom) {
- this.custom = custom;
- }
-
-
- /**
- * Gets the defaultValueFormula value for this Field.
- *
- * @return defaultValueFormula
- */
- public java.lang.String getDefaultValueFormula() {
- return defaultValueFormula;
- }
-
-
- /**
- * Sets the defaultValueFormula value for this Field.
- *
- * @param defaultValueFormula
- */
- public void setDefaultValueFormula(java.lang.String defaultValueFormula) {
- this.defaultValueFormula = defaultValueFormula;
- }
-
-
- /**
- * Gets the defaultedOnCreate value for this Field.
- *
- * @return defaultedOnCreate
- */
- public boolean isDefaultedOnCreate() {
- return defaultedOnCreate;
- }
-
-
- /**
- * Sets the defaultedOnCreate value for this Field.
- *
- * @param defaultedOnCreate
- */
- public void setDefaultedOnCreate(boolean defaultedOnCreate) {
- this.defaultedOnCreate = defaultedOnCreate;
- }
-
-
- /**
- * Gets the dependentPicklist value for this Field.
- *
- * @return dependentPicklist
- */
- public java.lang.Boolean getDependentPicklist() {
- return dependentPicklist;
- }
-
-
- /**
- * Sets the dependentPicklist value for this Field.
- *
- * @param dependentPicklist
- */
- public void setDependentPicklist(java.lang.Boolean dependentPicklist) {
- this.dependentPicklist = dependentPicklist;
- }
-
-
- /**
- * Gets the digits value for this Field.
- *
- * @return digits
- */
- public int getDigits() {
- return digits;
- }
-
-
- /**
- * Sets the digits value for this Field.
- *
- * @param digits
- */
- public void setDigits(int digits) {
- this.digits = digits;
- }
-
-
- /**
- * Gets the externalId value for this Field.
- *
- * @return externalId
- */
- public java.lang.Boolean getExternalId() {
- return externalId;
- }
-
-
- /**
- * Sets the externalId value for this Field.
- *
- * @param externalId
- */
- public void setExternalId(java.lang.Boolean externalId) {
- this.externalId = externalId;
- }
-
-
- /**
- * Gets the filterable value for this Field.
- *
- * @return filterable
- */
- public boolean isFilterable() {
- return filterable;
- }
-
-
- /**
- * Sets the filterable value for this Field.
- *
- * @param filterable
- */
- public void setFilterable(boolean filterable) {
- this.filterable = filterable;
- }
-
-
- /**
- * Gets the htmlFormatted value for this Field.
- *
- * @return htmlFormatted
- */
- public java.lang.Boolean getHtmlFormatted() {
- return htmlFormatted;
- }
-
-
- /**
- * Sets the htmlFormatted value for this Field.
- *
- * @param htmlFormatted
- */
- public void setHtmlFormatted(java.lang.Boolean htmlFormatted) {
- this.htmlFormatted = htmlFormatted;
- }
-
-
- /**
- * Gets the idLookup value for this Field.
- *
- * @return idLookup
- */
- public boolean isIdLookup() {
- return idLookup;
- }
-
-
- /**
- * Sets the idLookup value for this Field.
- *
- * @param idLookup
- */
- public void setIdLookup(boolean idLookup) {
- this.idLookup = idLookup;
- }
-
-
- /**
- * Gets the inlineHelpText value for this Field.
- *
- * @return inlineHelpText
- */
- public java.lang.String getInlineHelpText() {
- return inlineHelpText;
- }
-
-
- /**
- * Sets the inlineHelpText value for this Field.
- *
- * @param inlineHelpText
- */
- public void setInlineHelpText(java.lang.String inlineHelpText) {
- this.inlineHelpText = inlineHelpText;
- }
-
-
- /**
- * Gets the label value for this Field.
- *
- * @return label
- */
- public java.lang.String getLabel() {
- return label;
- }
-
-
- /**
- * Sets the label value for this Field.
- *
- * @param label
- */
- public void setLabel(java.lang.String label) {
- this.label = label;
- }
-
-
- /**
- * Gets the length value for this Field.
- *
- * @return length
- */
- public int getLength() {
- return length;
- }
-
-
- /**
- * Sets the length value for this Field.
- *
- * @param length
- */
- public void setLength(int length) {
- this.length = length;
- }
-
-
- /**
- * Gets the name value for this Field.
- *
- * @return name
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the name value for this Field.
- *
- * @param name
- */
- public void setName(java.lang.String name) {
- this.name = name;
- }
-
-
- /**
- * Gets the nameField value for this Field.
- *
- * @return nameField
- */
- public boolean isNameField() {
- return nameField;
- }
-
-
- /**
- * Sets the nameField value for this Field.
- *
- * @param nameField
- */
- public void setNameField(boolean nameField) {
- this.nameField = nameField;
- }
-
-
- /**
- * Gets the namePointing value for this Field.
- *
- * @return namePointing
- */
- public java.lang.Boolean getNamePointing() {
- return namePointing;
- }
-
-
- /**
- * Sets the namePointing value for this Field.
- *
- * @param namePointing
- */
- public void setNamePointing(java.lang.Boolean namePointing) {
- this.namePointing = namePointing;
- }
-
-
- /**
- * Gets the nillable value for this Field.
- *
- * @return nillable
- */
- public boolean isNillable() {
- return nillable;
- }
-
-
- /**
- * Sets the nillable value for this Field.
- *
- * @param nillable
- */
- public void setNillable(boolean nillable) {
- this.nillable = nillable;
- }
-
-
- /**
- * Gets the picklistValues value for this Field.
- *
- * @return picklistValues
- */
- public com.sforce.soap.partner.PicklistEntry[] getPicklistValues() {
- return picklistValues;
- }
-
-
- /**
- * Sets the picklistValues value for this Field.
- *
- * @param picklistValues
- */
- public void setPicklistValues(com.sforce.soap.partner.PicklistEntry[] picklistValues) {
- this.picklistValues = picklistValues;
- }
-
- public com.sforce.soap.partner.PicklistEntry getPicklistValues(int i) {
- return this.picklistValues[i];
- }
-
- public void setPicklistValues(int i, com.sforce.soap.partner.PicklistEntry _value) {
- this.picklistValues[i] = _value;
- }
-
-
- /**
- * Gets the precision value for this Field.
- *
- * @return precision
- */
- public int getPrecision() {
- return precision;
- }
-
-
- /**
- * Sets the precision value for this Field.
- *
- * @param precision
- */
- public void setPrecision(int precision) {
- this.precision = precision;
- }
-
-
- /**
- * Gets the referenceTo value for this Field.
- *
- * @return referenceTo
- */
- public java.lang.String[] getReferenceTo() {
- return referenceTo;
- }
-
-
- /**
- * Sets the referenceTo value for this Field.
- *
- * @param referenceTo
- */
- public void setReferenceTo(java.lang.String[] referenceTo) {
- this.referenceTo = referenceTo;
- }
-
- public java.lang.String getReferenceTo(int i) {
- return this.referenceTo[i];
- }
-
- public void setReferenceTo(int i, java.lang.String _value) {
- this.referenceTo[i] = _value;
- }
-
-
- /**
- * Gets the relationshipName value for this Field.
- *
- * @return relationshipName
- */
- public java.lang.String getRelationshipName() {
- return relationshipName;
- }
-
-
- /**
- * Sets the relationshipName value for this Field.
- *
- * @param relationshipName
- */
- public void setRelationshipName(java.lang.String relationshipName) {
- this.relationshipName = relationshipName;
- }
-
-
- /**
- * Gets the relationshipOrder value for this Field.
- *
- * @return relationshipOrder
- */
- public java.lang.Integer getRelationshipOrder() {
- return relationshipOrder;
- }
-
-
- /**
- * Sets the relationshipOrder value for this Field.
- *
- * @param relationshipOrder
- */
- public void setRelationshipOrder(java.lang.Integer relationshipOrder) {
- this.relationshipOrder = relationshipOrder;
- }
-
-
- /**
- * Gets the restrictedPicklist value for this Field.
- *
- * @return restrictedPicklist
- */
- public boolean isRestrictedPicklist() {
- return restrictedPicklist;
- }
-
-
- /**
- * Sets the restrictedPicklist value for this Field.
- *
- * @param restrictedPicklist
- */
- public void setRestrictedPicklist(boolean restrictedPicklist) {
- this.restrictedPicklist = restrictedPicklist;
- }
-
-
- /**
- * Gets the scale value for this Field.
- *
- * @return scale
- */
- public int getScale() {
- return scale;
- }
-
-
- /**
- * Sets the scale value for this Field.
- *
- * @param scale
- */
- public void setScale(int scale) {
- this.scale = scale;
- }
-
-
- /**
- * Gets the soapType value for this Field.
- *
- * @return soapType
- */
- public com.sforce.soap.partner.SoapType getSoapType() {
- return soapType;
- }
-
-
- /**
- * Sets the soapType value for this Field.
- *
- * @param soapType
- */
- public void setSoapType(com.sforce.soap.partner.SoapType soapType) {
- this.soapType = soapType;
- }
-
-
- /**
- * Gets the sortable value for this Field.
- *
- * @return sortable
- */
- public java.lang.Boolean getSortable() {
- return sortable;
- }
-
-
- /**
- * Sets the sortable value for this Field.
- *
- * @param sortable
- */
- public void setSortable(java.lang.Boolean sortable) {
- this.sortable = sortable;
- }
-
-
- /**
- * Gets the type value for this Field.
- *
- * @return type
- */
- public com.sforce.soap.partner.FieldType getType() {
- return type;
- }
-
-
- /**
- * Sets the type value for this Field.
- *
- * @param type
- */
- public void setType(com.sforce.soap.partner.FieldType type) {
- this.type = type;
- }
-
-
- /**
- * Gets the unique value for this Field.
- *
- * @return unique
- */
- public boolean isUnique() {
- return unique;
- }
-
-
- /**
- * Sets the unique value for this Field.
- *
- * @param unique
- */
- public void setUnique(boolean unique) {
- this.unique = unique;
- }
-
-
- /**
- * Gets the updateable value for this Field.
- *
- * @return updateable
- */
- public boolean isUpdateable() {
- return updateable;
- }
-
-
- /**
- * Sets the updateable value for this Field.
- *
- * @param updateable
- */
- public void setUpdateable(boolean updateable) {
- this.updateable = updateable;
- }
-
-
- /**
- * Gets the writeRequiresMasterRead value for this Field.
- *
- * @return writeRequiresMasterRead
- */
- public java.lang.Boolean getWriteRequiresMasterRead() {
- return writeRequiresMasterRead;
- }
-
-
- /**
- * Sets the writeRequiresMasterRead value for this Field.
- *
- * @param writeRequiresMasterRead
- */
- public void setWriteRequiresMasterRead(java.lang.Boolean writeRequiresMasterRead) {
- this.writeRequiresMasterRead = writeRequiresMasterRead;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof Field)) return false;
- Field other = (Field) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- this.autoNumber == other.isAutoNumber() &&
- this.byteLength == other.getByteLength() &&
- this.calculated == other.isCalculated() &&
- ((this.calculatedFormula==null && other.getCalculatedFormula()==null) ||
- (this.calculatedFormula!=null &&
- this.calculatedFormula.equals(other.getCalculatedFormula()))) &&
- this.caseSensitive == other.isCaseSensitive() &&
- ((this.controllerName==null && other.getControllerName()==null) ||
- (this.controllerName!=null &&
- this.controllerName.equals(other.getControllerName()))) &&
- this.createable == other.isCreateable() &&
- this.custom == other.isCustom() &&
- ((this.defaultValueFormula==null && other.getDefaultValueFormula()==null) ||
- (this.defaultValueFormula!=null &&
- this.defaultValueFormula.equals(other.getDefaultValueFormula()))) &&
- this.defaultedOnCreate == other.isDefaultedOnCreate() &&
- ((this.dependentPicklist==null && other.getDependentPicklist()==null) ||
- (this.dependentPicklist!=null &&
- this.dependentPicklist.equals(other.getDependentPicklist()))) &&
- this.digits == other.getDigits() &&
- ((this.externalId==null && other.getExternalId()==null) ||
- (this.externalId!=null &&
- this.externalId.equals(other.getExternalId()))) &&
- this.filterable == other.isFilterable() &&
- ((this.htmlFormatted==null && other.getHtmlFormatted()==null) ||
- (this.htmlFormatted!=null &&
- this.htmlFormatted.equals(other.getHtmlFormatted()))) &&
- this.idLookup == other.isIdLookup() &&
- ((this.inlineHelpText==null && other.getInlineHelpText()==null) ||
- (this.inlineHelpText!=null &&
- this.inlineHelpText.equals(other.getInlineHelpText()))) &&
- ((this.label==null && other.getLabel()==null) ||
- (this.label!=null &&
- this.label.equals(other.getLabel()))) &&
- this.length == other.getLength() &&
- ((this.name==null && other.getName()==null) ||
- (this.name!=null &&
- this.name.equals(other.getName()))) &&
- this.nameField == other.isNameField() &&
- ((this.namePointing==null && other.getNamePointing()==null) ||
- (this.namePointing!=null &&
- this.namePointing.equals(other.getNamePointing()))) &&
- this.nillable == other.isNillable() &&
- ((this.picklistValues==null && other.getPicklistValues()==null) ||
- (this.picklistValues!=null &&
- java.util.Arrays.equals(this.picklistValues, other.getPicklistValues()))) &&
- this.precision == other.getPrecision() &&
- ((this.referenceTo==null && other.getReferenceTo()==null) ||
- (this.referenceTo!=null &&
- java.util.Arrays.equals(this.referenceTo, other.getReferenceTo()))) &&
- ((this.relationshipName==null && other.getRelationshipName()==null) ||
- (this.relationshipName!=null &&
- this.relationshipName.equals(other.getRelationshipName()))) &&
- ((this.relationshipOrder==null && other.getRelationshipOrder()==null) ||
- (this.relationshipOrder!=null &&
- this.relationshipOrder.equals(other.getRelationshipOrder()))) &&
- this.restrictedPicklist == other.isRestrictedPicklist() &&
- this.scale == other.getScale() &&
- ((this.soapType==null && other.getSoapType()==null) ||
- (this.soapType!=null &&
- this.soapType.equals(other.getSoapType()))) &&
- ((this.sortable==null && other.getSortable()==null) ||
- (this.sortable!=null &&
- this.sortable.equals(other.getSortable()))) &&
- ((this.type==null && other.getType()==null) ||
- (this.type!=null &&
- this.type.equals(other.getType()))) &&
- this.unique == other.isUnique() &&
- this.updateable == other.isUpdateable() &&
- ((this.writeRequiresMasterRead==null && other.getWriteRequiresMasterRead()==null) ||
- (this.writeRequiresMasterRead!=null &&
- this.writeRequiresMasterRead.equals(other.getWriteRequiresMasterRead())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- _hashCode += (isAutoNumber() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += getByteLength();
- _hashCode += (isCalculated() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getCalculatedFormula() != null) {
- _hashCode += getCalculatedFormula().hashCode();
- }
- _hashCode += (isCaseSensitive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getControllerName() != null) {
- _hashCode += getControllerName().hashCode();
- }
- _hashCode += (isCreateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isCustom() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getDefaultValueFormula() != null) {
- _hashCode += getDefaultValueFormula().hashCode();
- }
- _hashCode += (isDefaultedOnCreate() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getDependentPicklist() != null) {
- _hashCode += getDependentPicklist().hashCode();
- }
- _hashCode += getDigits();
- if (getExternalId() != null) {
- _hashCode += getExternalId().hashCode();
- }
- _hashCode += (isFilterable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getHtmlFormatted() != null) {
- _hashCode += getHtmlFormatted().hashCode();
- }
- _hashCode += (isIdLookup() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getInlineHelpText() != null) {
- _hashCode += getInlineHelpText().hashCode();
- }
- if (getLabel() != null) {
- _hashCode += getLabel().hashCode();
- }
- _hashCode += getLength();
- if (getName() != null) {
- _hashCode += getName().hashCode();
- }
- _hashCode += (isNameField() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getNamePointing() != null) {
- _hashCode += getNamePointing().hashCode();
- }
- _hashCode += (isNillable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getPicklistValues() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getPicklistValues());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getPicklistValues(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- _hashCode += getPrecision();
- if (getReferenceTo() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getReferenceTo());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getReferenceTo(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getRelationshipName() != null) {
- _hashCode += getRelationshipName().hashCode();
- }
- if (getRelationshipOrder() != null) {
- _hashCode += getRelationshipOrder().hashCode();
- }
- _hashCode += (isRestrictedPicklist() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += getScale();
- if (getSoapType() != null) {
- _hashCode += getSoapType().hashCode();
- }
- if (getSortable() != null) {
- _hashCode += getSortable().hashCode();
- }
- if (getType() != null) {
- _hashCode += getType().hashCode();
- }
- _hashCode += (isUnique() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- _hashCode += (isUpdateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getWriteRequiresMasterRead() != null) {
- _hashCode += getWriteRequiresMasterRead().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(Field.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Field"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("autoNumber");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "autoNumber"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("byteLength");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "byteLength"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("calculated");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "calculated"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("calculatedFormula");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "calculatedFormula"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("caseSensitive");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "caseSensitive"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("controllerName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "controllerName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("createable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "createable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("custom");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "custom"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("defaultValueFormula");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "defaultValueFormula"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("defaultedOnCreate");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "defaultedOnCreate"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("dependentPicklist");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "dependentPicklist"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("digits");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "digits"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("externalId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "externalId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("filterable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "filterable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("htmlFormatted");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "htmlFormatted"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("idLookup");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "idLookup"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("inlineHelpText");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "inlineHelpText"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("label");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "label"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("length");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "length"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("name");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "name"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("nameField");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "nameField"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("namePointing");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "namePointing"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("nillable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "nillable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("picklistValues");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "picklistValues"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PicklistEntry"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("precision");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "precision"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("referenceTo");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "referenceTo"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("relationshipName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "relationshipName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("relationshipOrder");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "relationshipOrder"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("restrictedPicklist");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "restrictedPicklist"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("scale");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "scale"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("soapType");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "soapType"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "soapType"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("sortable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sortable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("type");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "type"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldType"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("unique");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "unique"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("updateable");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "updateable"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("writeRequiresMasterRead");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "writeRequiresMasterRead"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * Field.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class Field implements java.io.Serializable {
+ private boolean autoNumber;
+
+ private int byteLength;
+
+ private boolean calculated;
+
+ private java.lang.String calculatedFormula;
+
+ private boolean caseSensitive;
+
+ private java.lang.String controllerName;
+
+ private boolean createable;
+
+ private boolean custom;
+
+ private java.lang.String defaultValueFormula;
+
+ private boolean defaultedOnCreate;
+
+ private java.lang.Boolean dependentPicklist;
+
+ private boolean deprecatedAndHidden;
+
+ private int digits;
+
+ private java.lang.Boolean externalId;
+
+ private boolean filterable;
+
+ private java.lang.Boolean htmlFormatted;
+
+ private boolean idLookup;
+
+ private java.lang.String inlineHelpText;
+
+ private java.lang.String label;
+
+ private int length;
+
+ private java.lang.String name;
+
+ private boolean nameField;
+
+ private java.lang.Boolean namePointing;
+
+ private boolean nillable;
+
+ private com.sforce.soap.partner.PicklistEntry[] picklistValues;
+
+ private int precision;
+
+ private java.lang.String[] referenceTo;
+
+ private java.lang.String relationshipName;
+
+ private java.lang.Integer relationshipOrder;
+
+ private boolean restrictedPicklist;
+
+ private int scale;
+
+ private com.sforce.soap.partner.SoapType soapType;
+
+ private java.lang.Boolean sortable;
+
+ private com.sforce.soap.partner.FieldType type;
+
+ private boolean unique;
+
+ private boolean updateable;
+
+ private java.lang.Boolean writeRequiresMasterRead;
+
+ public Field() {
+ }
+
+ public Field(
+ boolean autoNumber,
+ int byteLength,
+ boolean calculated,
+ java.lang.String calculatedFormula,
+ boolean caseSensitive,
+ java.lang.String controllerName,
+ boolean createable,
+ boolean custom,
+ java.lang.String defaultValueFormula,
+ boolean defaultedOnCreate,
+ java.lang.Boolean dependentPicklist,
+ boolean deprecatedAndHidden,
+ int digits,
+ java.lang.Boolean externalId,
+ boolean filterable,
+ java.lang.Boolean htmlFormatted,
+ boolean idLookup,
+ java.lang.String inlineHelpText,
+ java.lang.String label,
+ int length,
+ java.lang.String name,
+ boolean nameField,
+ java.lang.Boolean namePointing,
+ boolean nillable,
+ com.sforce.soap.partner.PicklistEntry[] picklistValues,
+ int precision,
+ java.lang.String[] referenceTo,
+ java.lang.String relationshipName,
+ java.lang.Integer relationshipOrder,
+ boolean restrictedPicklist,
+ int scale,
+ com.sforce.soap.partner.SoapType soapType,
+ java.lang.Boolean sortable,
+ com.sforce.soap.partner.FieldType type,
+ boolean unique,
+ boolean updateable,
+ java.lang.Boolean writeRequiresMasterRead) {
+ this.autoNumber = autoNumber;
+ this.byteLength = byteLength;
+ this.calculated = calculated;
+ this.calculatedFormula = calculatedFormula;
+ this.caseSensitive = caseSensitive;
+ this.controllerName = controllerName;
+ this.createable = createable;
+ this.custom = custom;
+ this.defaultValueFormula = defaultValueFormula;
+ this.defaultedOnCreate = defaultedOnCreate;
+ this.dependentPicklist = dependentPicklist;
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ this.digits = digits;
+ this.externalId = externalId;
+ this.filterable = filterable;
+ this.htmlFormatted = htmlFormatted;
+ this.idLookup = idLookup;
+ this.inlineHelpText = inlineHelpText;
+ this.label = label;
+ this.length = length;
+ this.name = name;
+ this.nameField = nameField;
+ this.namePointing = namePointing;
+ this.nillable = nillable;
+ this.picklistValues = picklistValues;
+ this.precision = precision;
+ this.referenceTo = referenceTo;
+ this.relationshipName = relationshipName;
+ this.relationshipOrder = relationshipOrder;
+ this.restrictedPicklist = restrictedPicklist;
+ this.scale = scale;
+ this.soapType = soapType;
+ this.sortable = sortable;
+ this.type = type;
+ this.unique = unique;
+ this.updateable = updateable;
+ this.writeRequiresMasterRead = writeRequiresMasterRead;
+ }
+
+
+ /**
+ * Gets the autoNumber value for this Field.
+ *
+ * @return autoNumber
+ */
+ public boolean isAutoNumber() {
+ return autoNumber;
+ }
+
+
+ /**
+ * Sets the autoNumber value for this Field.
+ *
+ * @param autoNumber
+ */
+ public void setAutoNumber(boolean autoNumber) {
+ this.autoNumber = autoNumber;
+ }
+
+
+ /**
+ * Gets the byteLength value for this Field.
+ *
+ * @return byteLength
+ */
+ public int getByteLength() {
+ return byteLength;
+ }
+
+
+ /**
+ * Sets the byteLength value for this Field.
+ *
+ * @param byteLength
+ */
+ public void setByteLength(int byteLength) {
+ this.byteLength = byteLength;
+ }
+
+
+ /**
+ * Gets the calculated value for this Field.
+ *
+ * @return calculated
+ */
+ public boolean isCalculated() {
+ return calculated;
+ }
+
+
+ /**
+ * Sets the calculated value for this Field.
+ *
+ * @param calculated
+ */
+ public void setCalculated(boolean calculated) {
+ this.calculated = calculated;
+ }
+
+
+ /**
+ * Gets the calculatedFormula value for this Field.
+ *
+ * @return calculatedFormula
+ */
+ public java.lang.String getCalculatedFormula() {
+ return calculatedFormula;
+ }
+
+
+ /**
+ * Sets the calculatedFormula value for this Field.
+ *
+ * @param calculatedFormula
+ */
+ public void setCalculatedFormula(java.lang.String calculatedFormula) {
+ this.calculatedFormula = calculatedFormula;
+ }
+
+
+ /**
+ * Gets the caseSensitive value for this Field.
+ *
+ * @return caseSensitive
+ */
+ public boolean isCaseSensitive() {
+ return caseSensitive;
+ }
+
+
+ /**
+ * Sets the caseSensitive value for this Field.
+ *
+ * @param caseSensitive
+ */
+ public void setCaseSensitive(boolean caseSensitive) {
+ this.caseSensitive = caseSensitive;
+ }
+
+
+ /**
+ * Gets the controllerName value for this Field.
+ *
+ * @return controllerName
+ */
+ public java.lang.String getControllerName() {
+ return controllerName;
+ }
+
+
+ /**
+ * Sets the controllerName value for this Field.
+ *
+ * @param controllerName
+ */
+ public void setControllerName(java.lang.String controllerName) {
+ this.controllerName = controllerName;
+ }
+
+
+ /**
+ * Gets the createable value for this Field.
+ *
+ * @return createable
+ */
+ public boolean isCreateable() {
+ return createable;
+ }
+
+
+ /**
+ * Sets the createable value for this Field.
+ *
+ * @param createable
+ */
+ public void setCreateable(boolean createable) {
+ this.createable = createable;
+ }
+
+
+ /**
+ * Gets the custom value for this Field.
+ *
+ * @return custom
+ */
+ public boolean isCustom() {
+ return custom;
+ }
+
+
+ /**
+ * Sets the custom value for this Field.
+ *
+ * @param custom
+ */
+ public void setCustom(boolean custom) {
+ this.custom = custom;
+ }
+
+
+ /**
+ * Gets the defaultValueFormula value for this Field.
+ *
+ * @return defaultValueFormula
+ */
+ public java.lang.String getDefaultValueFormula() {
+ return defaultValueFormula;
+ }
+
+
+ /**
+ * Sets the defaultValueFormula value for this Field.
+ *
+ * @param defaultValueFormula
+ */
+ public void setDefaultValueFormula(java.lang.String defaultValueFormula) {
+ this.defaultValueFormula = defaultValueFormula;
+ }
+
+
+ /**
+ * Gets the defaultedOnCreate value for this Field.
+ *
+ * @return defaultedOnCreate
+ */
+ public boolean isDefaultedOnCreate() {
+ return defaultedOnCreate;
+ }
+
+
+ /**
+ * Sets the defaultedOnCreate value for this Field.
+ *
+ * @param defaultedOnCreate
+ */
+ public void setDefaultedOnCreate(boolean defaultedOnCreate) {
+ this.defaultedOnCreate = defaultedOnCreate;
+ }
+
+
+ /**
+ * Gets the dependentPicklist value for this Field.
+ *
+ * @return dependentPicklist
+ */
+ public java.lang.Boolean getDependentPicklist() {
+ return dependentPicklist;
+ }
+
+
+ /**
+ * Sets the dependentPicklist value for this Field.
+ *
+ * @param dependentPicklist
+ */
+ public void setDependentPicklist(java.lang.Boolean dependentPicklist) {
+ this.dependentPicklist = dependentPicklist;
+ }
+
+
+ /**
+ * Gets the deprecatedAndHidden value for this Field.
+ *
+ * @return deprecatedAndHidden
+ */
+ public boolean isDeprecatedAndHidden() {
+ return deprecatedAndHidden;
+ }
+
+
+ /**
+ * Sets the deprecatedAndHidden value for this Field.
+ *
+ * @param deprecatedAndHidden
+ */
+ public void setDeprecatedAndHidden(boolean deprecatedAndHidden) {
+ this.deprecatedAndHidden = deprecatedAndHidden;
+ }
+
+
+ /**
+ * Gets the digits value for this Field.
+ *
+ * @return digits
+ */
+ public int getDigits() {
+ return digits;
+ }
+
+
+ /**
+ * Sets the digits value for this Field.
+ *
+ * @param digits
+ */
+ public void setDigits(int digits) {
+ this.digits = digits;
+ }
+
+
+ /**
+ * Gets the externalId value for this Field.
+ *
+ * @return externalId
+ */
+ public java.lang.Boolean getExternalId() {
+ return externalId;
+ }
+
+
+ /**
+ * Sets the externalId value for this Field.
+ *
+ * @param externalId
+ */
+ public void setExternalId(java.lang.Boolean externalId) {
+ this.externalId = externalId;
+ }
+
+
+ /**
+ * Gets the filterable value for this Field.
+ *
+ * @return filterable
+ */
+ public boolean isFilterable() {
+ return filterable;
+ }
+
+
+ /**
+ * Sets the filterable value for this Field.
+ *
+ * @param filterable
+ */
+ public void setFilterable(boolean filterable) {
+ this.filterable = filterable;
+ }
+
+
+ /**
+ * Gets the htmlFormatted value for this Field.
+ *
+ * @return htmlFormatted
+ */
+ public java.lang.Boolean getHtmlFormatted() {
+ return htmlFormatted;
+ }
+
+
+ /**
+ * Sets the htmlFormatted value for this Field.
+ *
+ * @param htmlFormatted
+ */
+ public void setHtmlFormatted(java.lang.Boolean htmlFormatted) {
+ this.htmlFormatted = htmlFormatted;
+ }
+
+
+ /**
+ * Gets the idLookup value for this Field.
+ *
+ * @return idLookup
+ */
+ public boolean isIdLookup() {
+ return idLookup;
+ }
+
+
+ /**
+ * Sets the idLookup value for this Field.
+ *
+ * @param idLookup
+ */
+ public void setIdLookup(boolean idLookup) {
+ this.idLookup = idLookup;
+ }
+
+
+ /**
+ * Gets the inlineHelpText value for this Field.
+ *
+ * @return inlineHelpText
+ */
+ public java.lang.String getInlineHelpText() {
+ return inlineHelpText;
+ }
+
+
+ /**
+ * Sets the inlineHelpText value for this Field.
+ *
+ * @param inlineHelpText
+ */
+ public void setInlineHelpText(java.lang.String inlineHelpText) {
+ this.inlineHelpText = inlineHelpText;
+ }
+
+
+ /**
+ * Gets the label value for this Field.
+ *
+ * @return label
+ */
+ public java.lang.String getLabel() {
+ return label;
+ }
+
+
+ /**
+ * Sets the label value for this Field.
+ *
+ * @param label
+ */
+ public void setLabel(java.lang.String label) {
+ this.label = label;
+ }
+
+
+ /**
+ * Gets the length value for this Field.
+ *
+ * @return length
+ */
+ public int getLength() {
+ return length;
+ }
+
+
+ /**
+ * Sets the length value for this Field.
+ *
+ * @param length
+ */
+ public void setLength(int length) {
+ this.length = length;
+ }
+
+
+ /**
+ * Gets the name value for this Field.
+ *
+ * @return name
+ */
+ public java.lang.String getName() {
+ return name;
+ }
+
+
+ /**
+ * Sets the name value for this Field.
+ *
+ * @param name
+ */
+ public void setName(java.lang.String name) {
+ this.name = name;
+ }
+
+
+ /**
+ * Gets the nameField value for this Field.
+ *
+ * @return nameField
+ */
+ public boolean isNameField() {
+ return nameField;
+ }
+
+
+ /**
+ * Sets the nameField value for this Field.
+ *
+ * @param nameField
+ */
+ public void setNameField(boolean nameField) {
+ this.nameField = nameField;
+ }
+
+
+ /**
+ * Gets the namePointing value for this Field.
+ *
+ * @return namePointing
+ */
+ public java.lang.Boolean getNamePointing() {
+ return namePointing;
+ }
+
+
+ /**
+ * Sets the namePointing value for this Field.
+ *
+ * @param namePointing
+ */
+ public void setNamePointing(java.lang.Boolean namePointing) {
+ this.namePointing = namePointing;
+ }
+
+
+ /**
+ * Gets the nillable value for this Field.
+ *
+ * @return nillable
+ */
+ public boolean isNillable() {
+ return nillable;
+ }
+
+
+ /**
+ * Sets the nillable value for this Field.
+ *
+ * @param nillable
+ */
+ public void setNillable(boolean nillable) {
+ this.nillable = nillable;
+ }
+
+
+ /**
+ * Gets the picklistValues value for this Field.
+ *
+ * @return picklistValues
+ */
+ public com.sforce.soap.partner.PicklistEntry[] getPicklistValues() {
+ return picklistValues;
+ }
+
+
+ /**
+ * Sets the picklistValues value for this Field.
+ *
+ * @param picklistValues
+ */
+ public void setPicklistValues(com.sforce.soap.partner.PicklistEntry[] picklistValues) {
+ this.picklistValues = picklistValues;
+ }
+
+ public com.sforce.soap.partner.PicklistEntry getPicklistValues(int i) {
+ return this.picklistValues[i];
+ }
+
+ public void setPicklistValues(int i, com.sforce.soap.partner.PicklistEntry _value) {
+ this.picklistValues[i] = _value;
+ }
+
+
+ /**
+ * Gets the precision value for this Field.
+ *
+ * @return precision
+ */
+ public int getPrecision() {
+ return precision;
+ }
+
+
+ /**
+ * Sets the precision value for this Field.
+ *
+ * @param precision
+ */
+ public void setPrecision(int precision) {
+ this.precision = precision;
+ }
+
+
+ /**
+ * Gets the referenceTo value for this Field.
+ *
+ * @return referenceTo
+ */
+ public java.lang.String[] getReferenceTo() {
+ return referenceTo;
+ }
+
+
+ /**
+ * Sets the referenceTo value for this Field.
+ *
+ * @param referenceTo
+ */
+ public void setReferenceTo(java.lang.String[] referenceTo) {
+ this.referenceTo = referenceTo;
+ }
+
+ public java.lang.String getReferenceTo(int i) {
+ return this.referenceTo[i];
+ }
+
+ public void setReferenceTo(int i, java.lang.String _value) {
+ this.referenceTo[i] = _value;
+ }
+
+
+ /**
+ * Gets the relationshipName value for this Field.
+ *
+ * @return relationshipName
+ */
+ public java.lang.String getRelationshipName() {
+ return relationshipName;
+ }
+
+
+ /**
+ * Sets the relationshipName value for this Field.
+ *
+ * @param relationshipName
+ */
+ public void setRelationshipName(java.lang.String relationshipName) {
+ this.relationshipName = relationshipName;
+ }
+
+
+ /**
+ * Gets the relationshipOrder value for this Field.
+ *
+ * @return relationshipOrder
+ */
+ public java.lang.Integer getRelationshipOrder() {
+ return relationshipOrder;
+ }
+
+
+ /**
+ * Sets the relationshipOrder value for this Field.
+ *
+ * @param relationshipOrder
+ */
+ public void setRelationshipOrder(java.lang.Integer relationshipOrder) {
+ this.relationshipOrder = relationshipOrder;
+ }
+
+
+ /**
+ * Gets the restrictedPicklist value for this Field.
+ *
+ * @return restrictedPicklist
+ */
+ public boolean isRestrictedPicklist() {
+ return restrictedPicklist;
+ }
+
+
+ /**
+ * Sets the restrictedPicklist value for this Field.
+ *
+ * @param restrictedPicklist
+ */
+ public void setRestrictedPicklist(boolean restrictedPicklist) {
+ this.restrictedPicklist = restrictedPicklist;
+ }
+
+
+ /**
+ * Gets the scale value for this Field.
+ *
+ * @return scale
+ */
+ public int getScale() {
+ return scale;
+ }
+
+
+ /**
+ * Sets the scale value for this Field.
+ *
+ * @param scale
+ */
+ public void setScale(int scale) {
+ this.scale = scale;
+ }
+
+
+ /**
+ * Gets the soapType value for this Field.
+ *
+ * @return soapType
+ */
+ public com.sforce.soap.partner.SoapType getSoapType() {
+ return soapType;
+ }
+
+
+ /**
+ * Sets the soapType value for this Field.
+ *
+ * @param soapType
+ */
+ public void setSoapType(com.sforce.soap.partner.SoapType soapType) {
+ this.soapType = soapType;
+ }
+
+
+ /**
+ * Gets the sortable value for this Field.
+ *
+ * @return sortable
+ */
+ public java.lang.Boolean getSortable() {
+ return sortable;
+ }
+
+
+ /**
+ * Sets the sortable value for this Field.
+ *
+ * @param sortable
+ */
+ public void setSortable(java.lang.Boolean sortable) {
+ this.sortable = sortable;
+ }
+
+
+ /**
+ * Gets the type value for this Field.
+ *
+ * @return type
+ */
+ public com.sforce.soap.partner.FieldType getType() {
+ return type;
+ }
+
+
+ /**
+ * Sets the type value for this Field.
+ *
+ * @param type
+ */
+ public void setType(com.sforce.soap.partner.FieldType type) {
+ this.type = type;
+ }
+
+
+ /**
+ * Gets the unique value for this Field.
+ *
+ * @return unique
+ */
+ public boolean isUnique() {
+ return unique;
+ }
+
+
+ /**
+ * Sets the unique value for this Field.
+ *
+ * @param unique
+ */
+ public void setUnique(boolean unique) {
+ this.unique = unique;
+ }
+
+
+ /**
+ * Gets the updateable value for this Field.
+ *
+ * @return updateable
+ */
+ public boolean isUpdateable() {
+ return updateable;
+ }
+
+
+ /**
+ * Sets the updateable value for this Field.
+ *
+ * @param updateable
+ */
+ public void setUpdateable(boolean updateable) {
+ this.updateable = updateable;
+ }
+
+
+ /**
+ * Gets the writeRequiresMasterRead value for this Field.
+ *
+ * @return writeRequiresMasterRead
+ */
+ public java.lang.Boolean getWriteRequiresMasterRead() {
+ return writeRequiresMasterRead;
+ }
+
+
+ /**
+ * Sets the writeRequiresMasterRead value for this Field.
+ *
+ * @param writeRequiresMasterRead
+ */
+ public void setWriteRequiresMasterRead(java.lang.Boolean writeRequiresMasterRead) {
+ this.writeRequiresMasterRead = writeRequiresMasterRead;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof Field)) return false;
+ Field other = (Field) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ this.autoNumber == other.isAutoNumber() &&
+ this.byteLength == other.getByteLength() &&
+ this.calculated == other.isCalculated() &&
+ ((this.calculatedFormula==null && other.getCalculatedFormula()==null) ||
+ (this.calculatedFormula!=null &&
+ this.calculatedFormula.equals(other.getCalculatedFormula()))) &&
+ this.caseSensitive == other.isCaseSensitive() &&
+ ((this.controllerName==null && other.getControllerName()==null) ||
+ (this.controllerName!=null &&
+ this.controllerName.equals(other.getControllerName()))) &&
+ this.createable == other.isCreateable() &&
+ this.custom == other.isCustom() &&
+ ((this.defaultValueFormula==null && other.getDefaultValueFormula()==null) ||
+ (this.defaultValueFormula!=null &&
+ this.defaultValueFormula.equals(other.getDefaultValueFormula()))) &&
+ this.defaultedOnCreate == other.isDefaultedOnCreate() &&
+ ((this.dependentPicklist==null && other.getDependentPicklist()==null) ||
+ (this.dependentPicklist!=null &&
+ this.dependentPicklist.equals(other.getDependentPicklist()))) &&
+ this.deprecatedAndHidden == other.isDeprecatedAndHidden() &&
+ this.digits == other.getDigits() &&
+ ((this.externalId==null && other.getExternalId()==null) ||
+ (this.externalId!=null &&
+ this.externalId.equals(other.getExternalId()))) &&
+ this.filterable == other.isFilterable() &&
+ ((this.htmlFormatted==null && other.getHtmlFormatted()==null) ||
+ (this.htmlFormatted!=null &&
+ this.htmlFormatted.equals(other.getHtmlFormatted()))) &&
+ this.idLookup == other.isIdLookup() &&
+ ((this.inlineHelpText==null && other.getInlineHelpText()==null) ||
+ (this.inlineHelpText!=null &&
+ this.inlineHelpText.equals(other.getInlineHelpText()))) &&
+ ((this.label==null && other.getLabel()==null) ||
+ (this.label!=null &&
+ this.label.equals(other.getLabel()))) &&
+ this.length == other.getLength() &&
+ ((this.name==null && other.getName()==null) ||
+ (this.name!=null &&
+ this.name.equals(other.getName()))) &&
+ this.nameField == other.isNameField() &&
+ ((this.namePointing==null && other.getNamePointing()==null) ||
+ (this.namePointing!=null &&
+ this.namePointing.equals(other.getNamePointing()))) &&
+ this.nillable == other.isNillable() &&
+ ((this.picklistValues==null && other.getPicklistValues()==null) ||
+ (this.picklistValues!=null &&
+ java.util.Arrays.equals(this.picklistValues, other.getPicklistValues()))) &&
+ this.precision == other.getPrecision() &&
+ ((this.referenceTo==null && other.getReferenceTo()==null) ||
+ (this.referenceTo!=null &&
+ java.util.Arrays.equals(this.referenceTo, other.getReferenceTo()))) &&
+ ((this.relationshipName==null && other.getRelationshipName()==null) ||
+ (this.relationshipName!=null &&
+ this.relationshipName.equals(other.getRelationshipName()))) &&
+ ((this.relationshipOrder==null && other.getRelationshipOrder()==null) ||
+ (this.relationshipOrder!=null &&
+ this.relationshipOrder.equals(other.getRelationshipOrder()))) &&
+ this.restrictedPicklist == other.isRestrictedPicklist() &&
+ this.scale == other.getScale() &&
+ ((this.soapType==null && other.getSoapType()==null) ||
+ (this.soapType!=null &&
+ this.soapType.equals(other.getSoapType()))) &&
+ ((this.sortable==null && other.getSortable()==null) ||
+ (this.sortable!=null &&
+ this.sortable.equals(other.getSortable()))) &&
+ ((this.type==null && other.getType()==null) ||
+ (this.type!=null &&
+ this.type.equals(other.getType()))) &&
+ this.unique == other.isUnique() &&
+ this.updateable == other.isUpdateable() &&
+ ((this.writeRequiresMasterRead==null && other.getWriteRequiresMasterRead()==null) ||
+ (this.writeRequiresMasterRead!=null &&
+ this.writeRequiresMasterRead.equals(other.getWriteRequiresMasterRead())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ _hashCode += (isAutoNumber() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += getByteLength();
+ _hashCode += (isCalculated() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getCalculatedFormula() != null) {
+ _hashCode += getCalculatedFormula().hashCode();
+ }
+ _hashCode += (isCaseSensitive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getControllerName() != null) {
+ _hashCode += getControllerName().hashCode();
+ }
+ _hashCode += (isCreateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isCustom() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getDefaultValueFormula() != null) {
+ _hashCode += getDefaultValueFormula().hashCode();
+ }
+ _hashCode += (isDefaultedOnCreate() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getDependentPicklist() != null) {
+ _hashCode += getDependentPicklist().hashCode();
+ }
+ _hashCode += (isDeprecatedAndHidden() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += getDigits();
+ if (getExternalId() != null) {
+ _hashCode += getExternalId().hashCode();
+ }
+ _hashCode += (isFilterable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getHtmlFormatted() != null) {
+ _hashCode += getHtmlFormatted().hashCode();
+ }
+ _hashCode += (isIdLookup() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getInlineHelpText() != null) {
+ _hashCode += getInlineHelpText().hashCode();
+ }
+ if (getLabel() != null) {
+ _hashCode += getLabel().hashCode();
+ }
+ _hashCode += getLength();
+ if (getName() != null) {
+ _hashCode += getName().hashCode();
+ }
+ _hashCode += (isNameField() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getNamePointing() != null) {
+ _hashCode += getNamePointing().hashCode();
+ }
+ _hashCode += (isNillable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getPicklistValues() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getPicklistValues());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getPicklistValues(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ _hashCode += getPrecision();
+ if (getReferenceTo() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getReferenceTo());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getReferenceTo(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getRelationshipName() != null) {
+ _hashCode += getRelationshipName().hashCode();
+ }
+ if (getRelationshipOrder() != null) {
+ _hashCode += getRelationshipOrder().hashCode();
+ }
+ _hashCode += (isRestrictedPicklist() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += getScale();
+ if (getSoapType() != null) {
+ _hashCode += getSoapType().hashCode();
+ }
+ if (getSortable() != null) {
+ _hashCode += getSortable().hashCode();
+ }
+ if (getType() != null) {
+ _hashCode += getType().hashCode();
+ }
+ _hashCode += (isUnique() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isUpdateable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getWriteRequiresMasterRead() != null) {
+ _hashCode += getWriteRequiresMasterRead().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(Field.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Field"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("autoNumber");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "autoNumber"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("byteLength");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "byteLength"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("calculated");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "calculated"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("calculatedFormula");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "calculatedFormula"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("caseSensitive");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "caseSensitive"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("controllerName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "controllerName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("createable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "createable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("custom");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "custom"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("defaultValueFormula");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "defaultValueFormula"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("defaultedOnCreate");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "defaultedOnCreate"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("dependentPicklist");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "dependentPicklist"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("deprecatedAndHidden");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "deprecatedAndHidden"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("digits");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "digits"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("externalId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "externalId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("filterable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "filterable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("htmlFormatted");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "htmlFormatted"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("idLookup");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "idLookup"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("inlineHelpText");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "inlineHelpText"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("label");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "label"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("length");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "length"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("name");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "name"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("nameField");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "nameField"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("namePointing");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "namePointing"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("nillable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "nillable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("picklistValues");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "picklistValues"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PicklistEntry"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("precision");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "precision"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("referenceTo");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "referenceTo"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("relationshipName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "relationshipName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("relationshipOrder");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "relationshipOrder"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("restrictedPicklist");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "restrictedPicklist"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("scale");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "scale"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("soapType");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "soapType"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "soapType"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("sortable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sortable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("type");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "type"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldType"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("unique");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "unique"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("updateable");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "updateable"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("writeRequiresMasterRead");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "writeRequiresMasterRead"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/GetUserInfoResult.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/GetUserInfoResult.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/GetUserInfoResult.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,755 +1,787 @@
-/**
- * GetUserInfoResult.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class GetUserInfoResult implements java.io.Serializable {
- private boolean accessibilityMode;
-
- private java.lang.String currencySymbol;
-
- private java.lang.String orgDefaultCurrencyIsoCode;
-
- private boolean orgHasPersonAccounts;
-
- private java.lang.String organizationId;
-
- private boolean organizationMultiCurrency;
-
- private java.lang.String organizationName;
-
- private java.lang.String profileId;
-
- private java.lang.String roleId;
-
- private java.lang.String userDefaultCurrencyIsoCode;
-
- private java.lang.String userEmail;
-
- private java.lang.String userFullName;
-
- private java.lang.String userId;
-
- private java.lang.String userLanguage;
-
- private java.lang.String userLocale;
-
- private java.lang.String userName;
-
- private java.lang.String userTimeZone;
-
- private java.lang.String userType;
-
- private java.lang.String userUiSkin;
-
- public GetUserInfoResult() {
- }
-
- public GetUserInfoResult(
- boolean accessibilityMode,
- java.lang.String currencySymbol,
- java.lang.String orgDefaultCurrencyIsoCode,
- boolean orgHasPersonAccounts,
- java.lang.String organizationId,
- boolean organizationMultiCurrency,
- java.lang.String organizationName,
- java.lang.String profileId,
- java.lang.String roleId,
- java.lang.String userDefaultCurrencyIsoCode,
- java.lang.String userEmail,
- java.lang.String userFullName,
- java.lang.String userId,
- java.lang.String userLanguage,
- java.lang.String userLocale,
- java.lang.String userName,
- java.lang.String userTimeZone,
- java.lang.String userType,
- java.lang.String userUiSkin) {
- this.accessibilityMode = accessibilityMode;
- this.currencySymbol = currencySymbol;
- this.orgDefaultCurrencyIsoCode = orgDefaultCurrencyIsoCode;
- this.orgHasPersonAccounts = orgHasPersonAccounts;
- this.organizationId = organizationId;
- this.organizationMultiCurrency = organizationMultiCurrency;
- this.organizationName = organizationName;
- this.profileId = profileId;
- this.roleId = roleId;
- this.userDefaultCurrencyIsoCode = userDefaultCurrencyIsoCode;
- this.userEmail = userEmail;
- this.userFullName = userFullName;
- this.userId = userId;
- this.userLanguage = userLanguage;
- this.userLocale = userLocale;
- this.userName = userName;
- this.userTimeZone = userTimeZone;
- this.userType = userType;
- this.userUiSkin = userUiSkin;
- }
-
-
- /**
- * Gets the accessibilityMode value for this GetUserInfoResult.
- *
- * @return accessibilityMode
- */
- public boolean isAccessibilityMode() {
- return accessibilityMode;
- }
-
-
- /**
- * Sets the accessibilityMode value for this GetUserInfoResult.
- *
- * @param accessibilityMode
- */
- public void setAccessibilityMode(boolean accessibilityMode) {
- this.accessibilityMode = accessibilityMode;
- }
-
-
- /**
- * Gets the currencySymbol value for this GetUserInfoResult.
- *
- * @return currencySymbol
- */
- public java.lang.String getCurrencySymbol() {
- return currencySymbol;
- }
-
-
- /**
- * Sets the currencySymbol value for this GetUserInfoResult.
- *
- * @param currencySymbol
- */
- public void setCurrencySymbol(java.lang.String currencySymbol) {
- this.currencySymbol = currencySymbol;
- }
-
-
- /**
- * Gets the orgDefaultCurrencyIsoCode value for this GetUserInfoResult.
- *
- * @return orgDefaultCurrencyIsoCode
- */
- public java.lang.String getOrgDefaultCurrencyIsoCode() {
- return orgDefaultCurrencyIsoCode;
- }
-
-
- /**
- * Sets the orgDefaultCurrencyIsoCode value for this GetUserInfoResult.
- *
- * @param orgDefaultCurrencyIsoCode
- */
- public void setOrgDefaultCurrencyIsoCode(java.lang.String orgDefaultCurrencyIsoCode) {
- this.orgDefaultCurrencyIsoCode = orgDefaultCurrencyIsoCode;
- }
-
-
- /**
- * Gets the orgHasPersonAccounts value for this GetUserInfoResult.
- *
- * @return orgHasPersonAccounts
- */
- public boolean isOrgHasPersonAccounts() {
- return orgHasPersonAccounts;
- }
-
-
- /**
- * Sets the orgHasPersonAccounts value for this GetUserInfoResult.
- *
- * @param orgHasPersonAccounts
- */
- public void setOrgHasPersonAccounts(boolean orgHasPersonAccounts) {
- this.orgHasPersonAccounts = orgHasPersonAccounts;
- }
-
-
- /**
- * Gets the organizationId value for this GetUserInfoResult.
- *
- * @return organizationId
- */
- public java.lang.String getOrganizationId() {
- return organizationId;
- }
-
-
- /**
- * Sets the organizationId value for this GetUserInfoResult.
- *
- * @param organizationId
- */
- public void setOrganizationId(java.lang.String organizationId) {
- this.organizationId = organizationId;
- }
-
-
- /**
- * Gets the organizationMultiCurrency value for this GetUserInfoResult.
- *
- * @return organizationMultiCurrency
- */
- public boolean isOrganizationMultiCurrency() {
- return organizationMultiCurrency;
- }
-
-
- /**
- * Sets the organizationMultiCurrency value for this GetUserInfoResult.
- *
- * @param organizationMultiCurrency
- */
- public void setOrganizationMultiCurrency(boolean organizationMultiCurrency) {
- this.organizationMultiCurrency = organizationMultiCurrency;
- }
-
-
- /**
- * Gets the organizationName value for this GetUserInfoResult.
- *
- * @return organizationName
- */
- public java.lang.String getOrganizationName() {
- return organizationName;
- }
-
-
- /**
- * Sets the organizationName value for this GetUserInfoResult.
- *
- * @param organizationName
- */
- public void setOrganizationName(java.lang.String organizationName) {
- this.organizationName = organizationName;
- }
-
-
- /**
- * Gets the profileId value for this GetUserInfoResult.
- *
- * @return profileId
- */
- public java.lang.String getProfileId() {
- return profileId;
- }
-
-
- /**
- * Sets the profileId value for this GetUserInfoResult.
- *
- * @param profileId
- */
- public void setProfileId(java.lang.String profileId) {
- this.profileId = profileId;
- }
-
-
- /**
- * Gets the roleId value for this GetUserInfoResult.
- *
- * @return roleId
- */
- public java.lang.String getRoleId() {
- return roleId;
- }
-
-
- /**
- * Sets the roleId value for this GetUserInfoResult.
- *
- * @param roleId
- */
- public void setRoleId(java.lang.String roleId) {
- this.roleId = roleId;
- }
-
-
- /**
- * Gets the userDefaultCurrencyIsoCode value for this GetUserInfoResult.
- *
- * @return userDefaultCurrencyIsoCode
- */
- public java.lang.String getUserDefaultCurrencyIsoCode() {
- return userDefaultCurrencyIsoCode;
- }
-
-
- /**
- * Sets the userDefaultCurrencyIsoCode value for this GetUserInfoResult.
- *
- * @param userDefaultCurrencyIsoCode
- */
- public void setUserDefaultCurrencyIsoCode(java.lang.String userDefaultCurrencyIsoCode) {
- this.userDefaultCurrencyIsoCode = userDefaultCurrencyIsoCode;
- }
-
-
- /**
- * Gets the userEmail value for this GetUserInfoResult.
- *
- * @return userEmail
- */
- public java.lang.String getUserEmail() {
- return userEmail;
- }
-
-
- /**
- * Sets the userEmail value for this GetUserInfoResult.
- *
- * @param userEmail
- */
- public void setUserEmail(java.lang.String userEmail) {
- this.userEmail = userEmail;
- }
-
-
- /**
- * Gets the userFullName value for this GetUserInfoResult.
- *
- * @return userFullName
- */
- public java.lang.String getUserFullName() {
- return userFullName;
- }
-
-
- /**
- * Sets the userFullName value for this GetUserInfoResult.
- *
- * @param userFullName
- */
- public void setUserFullName(java.lang.String userFullName) {
- this.userFullName = userFullName;
- }
-
-
- /**
- * Gets the userId value for this GetUserInfoResult.
- *
- * @return userId
- */
- public java.lang.String getUserId() {
- return userId;
- }
-
-
- /**
- * Sets the userId value for this GetUserInfoResult.
- *
- * @param userId
- */
- public void setUserId(java.lang.String userId) {
- this.userId = userId;
- }
-
-
- /**
- * Gets the userLanguage value for this GetUserInfoResult.
- *
- * @return userLanguage
- */
- public java.lang.String getUserLanguage() {
- return userLanguage;
- }
-
-
- /**
- * Sets the userLanguage value for this GetUserInfoResult.
- *
- * @param userLanguage
- */
- public void setUserLanguage(java.lang.String userLanguage) {
- this.userLanguage = userLanguage;
- }
-
-
- /**
- * Gets the userLocale value for this GetUserInfoResult.
- *
- * @return userLocale
- */
- public java.lang.String getUserLocale() {
- return userLocale;
- }
-
-
- /**
- * Sets the userLocale value for this GetUserInfoResult.
- *
- * @param userLocale
- */
- public void setUserLocale(java.lang.String userLocale) {
- this.userLocale = userLocale;
- }
-
-
- /**
- * Gets the userName value for this GetUserInfoResult.
- *
- * @return userName
- */
- public java.lang.String getUserName() {
- return userName;
- }
-
-
- /**
- * Sets the userName value for this GetUserInfoResult.
- *
- * @param userName
- */
- public void setUserName(java.lang.String userName) {
- this.userName = userName;
- }
-
-
- /**
- * Gets the userTimeZone value for this GetUserInfoResult.
- *
- * @return userTimeZone
- */
- public java.lang.String getUserTimeZone() {
- return userTimeZone;
- }
-
-
- /**
- * Sets the userTimeZone value for this GetUserInfoResult.
- *
- * @param userTimeZone
- */
- public void setUserTimeZone(java.lang.String userTimeZone) {
- this.userTimeZone = userTimeZone;
- }
-
-
- /**
- * Gets the userType value for this GetUserInfoResult.
- *
- * @return userType
- */
- public java.lang.String getUserType() {
- return userType;
- }
-
-
- /**
- * Sets the userType value for this GetUserInfoResult.
- *
- * @param userType
- */
- public void setUserType(java.lang.String userType) {
- this.userType = userType;
- }
-
-
- /**
- * Gets the userUiSkin value for this GetUserInfoResult.
- *
- * @return userUiSkin
- */
- public java.lang.String getUserUiSkin() {
- return userUiSkin;
- }
-
-
- /**
- * Sets the userUiSkin value for this GetUserInfoResult.
- *
- * @param userUiSkin
- */
- public void setUserUiSkin(java.lang.String userUiSkin) {
- this.userUiSkin = userUiSkin;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof GetUserInfoResult)) return false;
- GetUserInfoResult other = (GetUserInfoResult) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- this.accessibilityMode == other.isAccessibilityMode() &&
- ((this.currencySymbol==null && other.getCurrencySymbol()==null) ||
- (this.currencySymbol!=null &&
- this.currencySymbol.equals(other.getCurrencySymbol()))) &&
- ((this.orgDefaultCurrencyIsoCode==null && other.getOrgDefaultCurrencyIsoCode()==null) ||
- (this.orgDefaultCurrencyIsoCode!=null &&
- this.orgDefaultCurrencyIsoCode.equals(other.getOrgDefaultCurrencyIsoCode()))) &&
- this.orgHasPersonAccounts == other.isOrgHasPersonAccounts() &&
- ((this.organizationId==null && other.getOrganizationId()==null) ||
- (this.organizationId!=null &&
- this.organizationId.equals(other.getOrganizationId()))) &&
- this.organizationMultiCurrency == other.isOrganizationMultiCurrency() &&
- ((this.organizationName==null && other.getOrganizationName()==null) ||
- (this.organizationName!=null &&
- this.organizationName.equals(other.getOrganizationName()))) &&
- ((this.profileId==null && other.getProfileId()==null) ||
- (this.profileId!=null &&
- this.profileId.equals(other.getProfileId()))) &&
- ((this.roleId==null && other.getRoleId()==null) ||
- (this.roleId!=null &&
- this.roleId.equals(other.getRoleId()))) &&
- ((this.userDefaultCurrencyIsoCode==null && other.getUserDefaultCurrencyIsoCode()==null) ||
- (this.userDefaultCurrencyIsoCode!=null &&
- this.userDefaultCurrencyIsoCode.equals(other.getUserDefaultCurrencyIsoCode()))) &&
- ((this.userEmail==null && other.getUserEmail()==null) ||
- (this.userEmail!=null &&
- this.userEmail.equals(other.getUserEmail()))) &&
- ((this.userFullName==null && other.getUserFullName()==null) ||
- (this.userFullName!=null &&
- this.userFullName.equals(other.getUserFullName()))) &&
- ((this.userId==null && other.getUserId()==null) ||
- (this.userId!=null &&
- this.userId.equals(other.getUserId()))) &&
- ((this.userLanguage==null && other.getUserLanguage()==null) ||
- (this.userLanguage!=null &&
- this.userLanguage.equals(other.getUserLanguage()))) &&
- ((this.userLocale==null && other.getUserLocale()==null) ||
- (this.userLocale!=null &&
- this.userLocale.equals(other.getUserLocale()))) &&
- ((this.userName==null && other.getUserName()==null) ||
- (this.userName!=null &&
- this.userName.equals(other.getUserName()))) &&
- ((this.userTimeZone==null && other.getUserTimeZone()==null) ||
- (this.userTimeZone!=null &&
- this.userTimeZone.equals(other.getUserTimeZone()))) &&
- ((this.userType==null && other.getUserType()==null) ||
- (this.userType!=null &&
- this.userType.equals(other.getUserType()))) &&
- ((this.userUiSkin==null && other.getUserUiSkin()==null) ||
- (this.userUiSkin!=null &&
- this.userUiSkin.equals(other.getUserUiSkin())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- _hashCode += (isAccessibilityMode() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getCurrencySymbol() != null) {
- _hashCode += getCurrencySymbol().hashCode();
- }
- if (getOrgDefaultCurrencyIsoCode() != null) {
- _hashCode += getOrgDefaultCurrencyIsoCode().hashCode();
- }
- _hashCode += (isOrgHasPersonAccounts() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getOrganizationId() != null) {
- _hashCode += getOrganizationId().hashCode();
- }
- _hashCode += (isOrganizationMultiCurrency() ? Boolean.TRUE : Boolean.FALSE).hashCode();
- if (getOrganizationName() != null) {
- _hashCode += getOrganizationName().hashCode();
- }
- if (getProfileId() != null) {
- _hashCode += getProfileId().hashCode();
- }
- if (getRoleId() != null) {
- _hashCode += getRoleId().hashCode();
- }
- if (getUserDefaultCurrencyIsoCode() != null) {
- _hashCode += getUserDefaultCurrencyIsoCode().hashCode();
- }
- if (getUserEmail() != null) {
- _hashCode += getUserEmail().hashCode();
- }
- if (getUserFullName() != null) {
- _hashCode += getUserFullName().hashCode();
- }
- if (getUserId() != null) {
- _hashCode += getUserId().hashCode();
- }
- if (getUserLanguage() != null) {
- _hashCode += getUserLanguage().hashCode();
- }
- if (getUserLocale() != null) {
- _hashCode += getUserLocale().hashCode();
- }
- if (getUserName() != null) {
- _hashCode += getUserName().hashCode();
- }
- if (getUserTimeZone() != null) {
- _hashCode += getUserTimeZone().hashCode();
- }
- if (getUserType() != null) {
- _hashCode += getUserType().hashCode();
- }
- if (getUserUiSkin() != null) {
- _hashCode += getUserUiSkin().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(GetUserInfoResult.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUserInfoResult"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("accessibilityMode");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "accessibilityMode"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("currencySymbol");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "currencySymbol"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("orgDefaultCurrencyIsoCode");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "orgDefaultCurrencyIsoCode"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("orgHasPersonAccounts");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "orgHasPersonAccounts"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("organizationId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "organizationId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("organizationMultiCurrency");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "organizationMultiCurrency"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("organizationName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "organizationName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("profileId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "profileId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("roleId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "roleId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userDefaultCurrencyIsoCode");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userDefaultCurrencyIsoCode"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userEmail");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userEmail"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userFullName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userFullName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userLanguage");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userLanguage"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userLocale");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userLocale"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userName");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userName"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userTimeZone");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userTimeZone"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userType");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userType"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("userUiSkin");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userUiSkin"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * GetUserInfoResult.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class GetUserInfoResult implements java.io.Serializable {
+ private boolean accessibilityMode;
+
+ private java.lang.String currencySymbol;
+
+ private java.lang.String orgDefaultCurrencyIsoCode;
+
+ private boolean orgDisallowHtmlAttachments;
+
+ private boolean orgHasPersonAccounts;
+
+ private java.lang.String organizationId;
+
+ private boolean organizationMultiCurrency;
+
+ private java.lang.String organizationName;
+
+ private java.lang.String profileId;
+
+ private java.lang.String roleId;
+
+ private java.lang.String userDefaultCurrencyIsoCode;
+
+ private java.lang.String userEmail;
+
+ private java.lang.String userFullName;
+
+ private java.lang.String userId;
+
+ private java.lang.String userLanguage;
+
+ private java.lang.String userLocale;
+
+ private java.lang.String userName;
+
+ private java.lang.String userTimeZone;
+
+ private java.lang.String userType;
+
+ private java.lang.String userUiSkin;
+
+ public GetUserInfoResult() {
+ }
+
+ public GetUserInfoResult(
+ boolean accessibilityMode,
+ java.lang.String currencySymbol,
+ java.lang.String orgDefaultCurrencyIsoCode,
+ boolean orgDisallowHtmlAttachments,
+ boolean orgHasPersonAccounts,
+ java.lang.String organizationId,
+ boolean organizationMultiCurrency,
+ java.lang.String organizationName,
+ java.lang.String profileId,
+ java.lang.String roleId,
+ java.lang.String userDefaultCurrencyIsoCode,
+ java.lang.String userEmail,
+ java.lang.String userFullName,
+ java.lang.String userId,
+ java.lang.String userLanguage,
+ java.lang.String userLocale,
+ java.lang.String userName,
+ java.lang.String userTimeZone,
+ java.lang.String userType,
+ java.lang.String userUiSkin) {
+ this.accessibilityMode = accessibilityMode;
+ this.currencySymbol = currencySymbol;
+ this.orgDefaultCurrencyIsoCode = orgDefaultCurrencyIsoCode;
+ this.orgDisallowHtmlAttachments = orgDisallowHtmlAttachments;
+ this.orgHasPersonAccounts = orgHasPersonAccounts;
+ this.organizationId = organizationId;
+ this.organizationMultiCurrency = organizationMultiCurrency;
+ this.organizationName = organizationName;
+ this.profileId = profileId;
+ this.roleId = roleId;
+ this.userDefaultCurrencyIsoCode = userDefaultCurrencyIsoCode;
+ this.userEmail = userEmail;
+ this.userFullName = userFullName;
+ this.userId = userId;
+ this.userLanguage = userLanguage;
+ this.userLocale = userLocale;
+ this.userName = userName;
+ this.userTimeZone = userTimeZone;
+ this.userType = userType;
+ this.userUiSkin = userUiSkin;
+ }
+
+
+ /**
+ * Gets the accessibilityMode value for this GetUserInfoResult.
+ *
+ * @return accessibilityMode
+ */
+ public boolean isAccessibilityMode() {
+ return accessibilityMode;
+ }
+
+
+ /**
+ * Sets the accessibilityMode value for this GetUserInfoResult.
+ *
+ * @param accessibilityMode
+ */
+ public void setAccessibilityMode(boolean accessibilityMode) {
+ this.accessibilityMode = accessibilityMode;
+ }
+
+
+ /**
+ * Gets the currencySymbol value for this GetUserInfoResult.
+ *
+ * @return currencySymbol
+ */
+ public java.lang.String getCurrencySymbol() {
+ return currencySymbol;
+ }
+
+
+ /**
+ * Sets the currencySymbol value for this GetUserInfoResult.
+ *
+ * @param currencySymbol
+ */
+ public void setCurrencySymbol(java.lang.String currencySymbol) {
+ this.currencySymbol = currencySymbol;
+ }
+
+
+ /**
+ * Gets the orgDefaultCurrencyIsoCode value for this GetUserInfoResult.
+ *
+ * @return orgDefaultCurrencyIsoCode
+ */
+ public java.lang.String getOrgDefaultCurrencyIsoCode() {
+ return orgDefaultCurrencyIsoCode;
+ }
+
+
+ /**
+ * Sets the orgDefaultCurrencyIsoCode value for this GetUserInfoResult.
+ *
+ * @param orgDefaultCurrencyIsoCode
+ */
+ public void setOrgDefaultCurrencyIsoCode(java.lang.String orgDefaultCurrencyIsoCode) {
+ this.orgDefaultCurrencyIsoCode = orgDefaultCurrencyIsoCode;
+ }
+
+
+ /**
+ * Gets the orgDisallowHtmlAttachments value for this GetUserInfoResult.
+ *
+ * @return orgDisallowHtmlAttachments
+ */
+ public boolean isOrgDisallowHtmlAttachments() {
+ return orgDisallowHtmlAttachments;
+ }
+
+
+ /**
+ * Sets the orgDisallowHtmlAttachments value for this GetUserInfoResult.
+ *
+ * @param orgDisallowHtmlAttachments
+ */
+ public void setOrgDisallowHtmlAttachments(boolean orgDisallowHtmlAttachments) {
+ this.orgDisallowHtmlAttachments = orgDisallowHtmlAttachments;
+ }
+
+
+ /**
+ * Gets the orgHasPersonAccounts value for this GetUserInfoResult.
+ *
+ * @return orgHasPersonAccounts
+ */
+ public boolean isOrgHasPersonAccounts() {
+ return orgHasPersonAccounts;
+ }
+
+
+ /**
+ * Sets the orgHasPersonAccounts value for this GetUserInfoResult.
+ *
+ * @param orgHasPersonAccounts
+ */
+ public void setOrgHasPersonAccounts(boolean orgHasPersonAccounts) {
+ this.orgHasPersonAccounts = orgHasPersonAccounts;
+ }
+
+
+ /**
+ * Gets the organizationId value for this GetUserInfoResult.
+ *
+ * @return organizationId
+ */
+ public java.lang.String getOrganizationId() {
+ return organizationId;
+ }
+
+
+ /**
+ * Sets the organizationId value for this GetUserInfoResult.
+ *
+ * @param organizationId
+ */
+ public void setOrganizationId(java.lang.String organizationId) {
+ this.organizationId = organizationId;
+ }
+
+
+ /**
+ * Gets the organizationMultiCurrency value for this GetUserInfoResult.
+ *
+ * @return organizationMultiCurrency
+ */
+ public boolean isOrganizationMultiCurrency() {
+ return organizationMultiCurrency;
+ }
+
+
+ /**
+ * Sets the organizationMultiCurrency value for this GetUserInfoResult.
+ *
+ * @param organizationMultiCurrency
+ */
+ public void setOrganizationMultiCurrency(boolean organizationMultiCurrency) {
+ this.organizationMultiCurrency = organizationMultiCurrency;
+ }
+
+
+ /**
+ * Gets the organizationName value for this GetUserInfoResult.
+ *
+ * @return organizationName
+ */
+ public java.lang.String getOrganizationName() {
+ return organizationName;
+ }
+
+
+ /**
+ * Sets the organizationName value for this GetUserInfoResult.
+ *
+ * @param organizationName
+ */
+ public void setOrganizationName(java.lang.String organizationName) {
+ this.organizationName = organizationName;
+ }
+
+
+ /**
+ * Gets the profileId value for this GetUserInfoResult.
+ *
+ * @return profileId
+ */
+ public java.lang.String getProfileId() {
+ return profileId;
+ }
+
+
+ /**
+ * Sets the profileId value for this GetUserInfoResult.
+ *
+ * @param profileId
+ */
+ public void setProfileId(java.lang.String profileId) {
+ this.profileId = profileId;
+ }
+
+
+ /**
+ * Gets the roleId value for this GetUserInfoResult.
+ *
+ * @return roleId
+ */
+ public java.lang.String getRoleId() {
+ return roleId;
+ }
+
+
+ /**
+ * Sets the roleId value for this GetUserInfoResult.
+ *
+ * @param roleId
+ */
+ public void setRoleId(java.lang.String roleId) {
+ this.roleId = roleId;
+ }
+
+
+ /**
+ * Gets the userDefaultCurrencyIsoCode value for this GetUserInfoResult.
+ *
+ * @return userDefaultCurrencyIsoCode
+ */
+ public java.lang.String getUserDefaultCurrencyIsoCode() {
+ return userDefaultCurrencyIsoCode;
+ }
+
+
+ /**
+ * Sets the userDefaultCurrencyIsoCode value for this GetUserInfoResult.
+ *
+ * @param userDefaultCurrencyIsoCode
+ */
+ public void setUserDefaultCurrencyIsoCode(java.lang.String userDefaultCurrencyIsoCode) {
+ this.userDefaultCurrencyIsoCode = userDefaultCurrencyIsoCode;
+ }
+
+
+ /**
+ * Gets the userEmail value for this GetUserInfoResult.
+ *
+ * @return userEmail
+ */
+ public java.lang.String getUserEmail() {
+ return userEmail;
+ }
+
+
+ /**
+ * Sets the userEmail value for this GetUserInfoResult.
+ *
+ * @param userEmail
+ */
+ public void setUserEmail(java.lang.String userEmail) {
+ this.userEmail = userEmail;
+ }
+
+
+ /**
+ * Gets the userFullName value for this GetUserInfoResult.
+ *
+ * @return userFullName
+ */
+ public java.lang.String getUserFullName() {
+ return userFullName;
+ }
+
+
+ /**
+ * Sets the userFullName value for this GetUserInfoResult.
+ *
+ * @param userFullName
+ */
+ public void setUserFullName(java.lang.String userFullName) {
+ this.userFullName = userFullName;
+ }
+
+
+ /**
+ * Gets the userId value for this GetUserInfoResult.
+ *
+ * @return userId
+ */
+ public java.lang.String getUserId() {
+ return userId;
+ }
+
+
+ /**
+ * Sets the userId value for this GetUserInfoResult.
+ *
+ * @param userId
+ */
+ public void setUserId(java.lang.String userId) {
+ this.userId = userId;
+ }
+
+
+ /**
+ * Gets the userLanguage value for this GetUserInfoResult.
+ *
+ * @return userLanguage
+ */
+ public java.lang.String getUserLanguage() {
+ return userLanguage;
+ }
+
+
+ /**
+ * Sets the userLanguage value for this GetUserInfoResult.
+ *
+ * @param userLanguage
+ */
+ public void setUserLanguage(java.lang.String userLanguage) {
+ this.userLanguage = userLanguage;
+ }
+
+
+ /**
+ * Gets the userLocale value for this GetUserInfoResult.
+ *
+ * @return userLocale
+ */
+ public java.lang.String getUserLocale() {
+ return userLocale;
+ }
+
+
+ /**
+ * Sets the userLocale value for this GetUserInfoResult.
+ *
+ * @param userLocale
+ */
+ public void setUserLocale(java.lang.String userLocale) {
+ this.userLocale = userLocale;
+ }
+
+
+ /**
+ * Gets the userName value for this GetUserInfoResult.
+ *
+ * @return userName
+ */
+ public java.lang.String getUserName() {
+ return userName;
+ }
+
+
+ /**
+ * Sets the userName value for this GetUserInfoResult.
+ *
+ * @param userName
+ */
+ public void setUserName(java.lang.String userName) {
+ this.userName = userName;
+ }
+
+
+ /**
+ * Gets the userTimeZone value for this GetUserInfoResult.
+ *
+ * @return userTimeZone
+ */
+ public java.lang.String getUserTimeZone() {
+ return userTimeZone;
+ }
+
+
+ /**
+ * Sets the userTimeZone value for this GetUserInfoResult.
+ *
+ * @param userTimeZone
+ */
+ public void setUserTimeZone(java.lang.String userTimeZone) {
+ this.userTimeZone = userTimeZone;
+ }
+
+
+ /**
+ * Gets the userType value for this GetUserInfoResult.
+ *
+ * @return userType
+ */
+ public java.lang.String getUserType() {
+ return userType;
+ }
+
+
+ /**
+ * Sets the userType value for this GetUserInfoResult.
+ *
+ * @param userType
+ */
+ public void setUserType(java.lang.String userType) {
+ this.userType = userType;
+ }
+
+
+ /**
+ * Gets the userUiSkin value for this GetUserInfoResult.
+ *
+ * @return userUiSkin
+ */
+ public java.lang.String getUserUiSkin() {
+ return userUiSkin;
+ }
+
+
+ /**
+ * Sets the userUiSkin value for this GetUserInfoResult.
+ *
+ * @param userUiSkin
+ */
+ public void setUserUiSkin(java.lang.String userUiSkin) {
+ this.userUiSkin = userUiSkin;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof GetUserInfoResult)) return false;
+ GetUserInfoResult other = (GetUserInfoResult) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ this.accessibilityMode == other.isAccessibilityMode() &&
+ ((this.currencySymbol==null && other.getCurrencySymbol()==null) ||
+ (this.currencySymbol!=null &&
+ this.currencySymbol.equals(other.getCurrencySymbol()))) &&
+ ((this.orgDefaultCurrencyIsoCode==null && other.getOrgDefaultCurrencyIsoCode()==null) ||
+ (this.orgDefaultCurrencyIsoCode!=null &&
+ this.orgDefaultCurrencyIsoCode.equals(other.getOrgDefaultCurrencyIsoCode()))) &&
+ this.orgDisallowHtmlAttachments == other.isOrgDisallowHtmlAttachments() &&
+ this.orgHasPersonAccounts == other.isOrgHasPersonAccounts() &&
+ ((this.organizationId==null && other.getOrganizationId()==null) ||
+ (this.organizationId!=null &&
+ this.organizationId.equals(other.getOrganizationId()))) &&
+ this.organizationMultiCurrency == other.isOrganizationMultiCurrency() &&
+ ((this.organizationName==null && other.getOrganizationName()==null) ||
+ (this.organizationName!=null &&
+ this.organizationName.equals(other.getOrganizationName()))) &&
+ ((this.profileId==null && other.getProfileId()==null) ||
+ (this.profileId!=null &&
+ this.profileId.equals(other.getProfileId()))) &&
+ ((this.roleId==null && other.getRoleId()==null) ||
+ (this.roleId!=null &&
+ this.roleId.equals(other.getRoleId()))) &&
+ ((this.userDefaultCurrencyIsoCode==null && other.getUserDefaultCurrencyIsoCode()==null) ||
+ (this.userDefaultCurrencyIsoCode!=null &&
+ this.userDefaultCurrencyIsoCode.equals(other.getUserDefaultCurrencyIsoCode()))) &&
+ ((this.userEmail==null && other.getUserEmail()==null) ||
+ (this.userEmail!=null &&
+ this.userEmail.equals(other.getUserEmail()))) &&
+ ((this.userFullName==null && other.getUserFullName()==null) ||
+ (this.userFullName!=null &&
+ this.userFullName.equals(other.getUserFullName()))) &&
+ ((this.userId==null && other.getUserId()==null) ||
+ (this.userId!=null &&
+ this.userId.equals(other.getUserId()))) &&
+ ((this.userLanguage==null && other.getUserLanguage()==null) ||
+ (this.userLanguage!=null &&
+ this.userLanguage.equals(other.getUserLanguage()))) &&
+ ((this.userLocale==null && other.getUserLocale()==null) ||
+ (this.userLocale!=null &&
+ this.userLocale.equals(other.getUserLocale()))) &&
+ ((this.userName==null && other.getUserName()==null) ||
+ (this.userName!=null &&
+ this.userName.equals(other.getUserName()))) &&
+ ((this.userTimeZone==null && other.getUserTimeZone()==null) ||
+ (this.userTimeZone!=null &&
+ this.userTimeZone.equals(other.getUserTimeZone()))) &&
+ ((this.userType==null && other.getUserType()==null) ||
+ (this.userType!=null &&
+ this.userType.equals(other.getUserType()))) &&
+ ((this.userUiSkin==null && other.getUserUiSkin()==null) ||
+ (this.userUiSkin!=null &&
+ this.userUiSkin.equals(other.getUserUiSkin())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ _hashCode += (isAccessibilityMode() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getCurrencySymbol() != null) {
+ _hashCode += getCurrencySymbol().hashCode();
+ }
+ if (getOrgDefaultCurrencyIsoCode() != null) {
+ _hashCode += getOrgDefaultCurrencyIsoCode().hashCode();
+ }
+ _hashCode += (isOrgDisallowHtmlAttachments() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ _hashCode += (isOrgHasPersonAccounts() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getOrganizationId() != null) {
+ _hashCode += getOrganizationId().hashCode();
+ }
+ _hashCode += (isOrganizationMultiCurrency() ? Boolean.TRUE : Boolean.FALSE).hashCode();
+ if (getOrganizationName() != null) {
+ _hashCode += getOrganizationName().hashCode();
+ }
+ if (getProfileId() != null) {
+ _hashCode += getProfileId().hashCode();
+ }
+ if (getRoleId() != null) {
+ _hashCode += getRoleId().hashCode();
+ }
+ if (getUserDefaultCurrencyIsoCode() != null) {
+ _hashCode += getUserDefaultCurrencyIsoCode().hashCode();
+ }
+ if (getUserEmail() != null) {
+ _hashCode += getUserEmail().hashCode();
+ }
+ if (getUserFullName() != null) {
+ _hashCode += getUserFullName().hashCode();
+ }
+ if (getUserId() != null) {
+ _hashCode += getUserId().hashCode();
+ }
+ if (getUserLanguage() != null) {
+ _hashCode += getUserLanguage().hashCode();
+ }
+ if (getUserLocale() != null) {
+ _hashCode += getUserLocale().hashCode();
+ }
+ if (getUserName() != null) {
+ _hashCode += getUserName().hashCode();
+ }
+ if (getUserTimeZone() != null) {
+ _hashCode += getUserTimeZone().hashCode();
+ }
+ if (getUserType() != null) {
+ _hashCode += getUserType().hashCode();
+ }
+ if (getUserUiSkin() != null) {
+ _hashCode += getUserUiSkin().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(GetUserInfoResult.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUserInfoResult"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("accessibilityMode");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "accessibilityMode"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("currencySymbol");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "currencySymbol"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("orgDefaultCurrencyIsoCode");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "orgDefaultCurrencyIsoCode"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("orgDisallowHtmlAttachments");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "orgDisallowHtmlAttachments"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("orgHasPersonAccounts");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "orgHasPersonAccounts"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("organizationId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "organizationId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("organizationMultiCurrency");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "organizationMultiCurrency"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("organizationName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "organizationName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("profileId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "profileId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("roleId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "roleId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userDefaultCurrencyIsoCode");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userDefaultCurrencyIsoCode"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userEmail");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userEmail"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userFullName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userFullName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userLanguage");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userLanguage"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userLocale");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userLocale"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userName");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userName"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userTimeZone");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userTimeZone"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userType");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userType"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("userUiSkin");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userUiSkin"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Added: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/PackageVersion.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/PackageVersion.java (rev 0)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/PackageVersion.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -0,0 +1,183 @@
+/**
+ * PackageVersion.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class PackageVersion implements java.io.Serializable {
+ private int majorNumber;
+
+ private int minorNumber;
+
+ private java.lang.String namespace;
+
+ public PackageVersion() {
+ }
+
+ public PackageVersion(
+ int majorNumber,
+ int minorNumber,
+ java.lang.String namespace) {
+ this.majorNumber = majorNumber;
+ this.minorNumber = minorNumber;
+ this.namespace = namespace;
+ }
+
+
+ /**
+ * Gets the majorNumber value for this PackageVersion.
+ *
+ * @return majorNumber
+ */
+ public int getMajorNumber() {
+ return majorNumber;
+ }
+
+
+ /**
+ * Sets the majorNumber value for this PackageVersion.
+ *
+ * @param majorNumber
+ */
+ public void setMajorNumber(int majorNumber) {
+ this.majorNumber = majorNumber;
+ }
+
+
+ /**
+ * Gets the minorNumber value for this PackageVersion.
+ *
+ * @return minorNumber
+ */
+ public int getMinorNumber() {
+ return minorNumber;
+ }
+
+
+ /**
+ * Sets the minorNumber value for this PackageVersion.
+ *
+ * @param minorNumber
+ */
+ public void setMinorNumber(int minorNumber) {
+ this.minorNumber = minorNumber;
+ }
+
+
+ /**
+ * Gets the namespace value for this PackageVersion.
+ *
+ * @return namespace
+ */
+ public java.lang.String getNamespace() {
+ return namespace;
+ }
+
+
+ /**
+ * Sets the namespace value for this PackageVersion.
+ *
+ * @param namespace
+ */
+ public void setNamespace(java.lang.String namespace) {
+ this.namespace = namespace;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof PackageVersion)) return false;
+ PackageVersion other = (PackageVersion) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ this.majorNumber == other.getMajorNumber() &&
+ this.minorNumber == other.getMinorNumber() &&
+ ((this.namespace==null && other.getNamespace()==null) ||
+ (this.namespace!=null &&
+ this.namespace.equals(other.getNamespace())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ _hashCode += getMajorNumber();
+ _hashCode += getMinorNumber();
+ if (getNamespace() != null) {
+ _hashCode += getNamespace().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(PackageVersion.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PackageVersion"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("majorNumber");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "majorNumber"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("minorNumber");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "minorNumber"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("namespace");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "namespace"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Property changes on: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/PackageVersion.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SforceServiceLocator.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SforceServiceLocator.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SforceServiceLocator.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -26,7 +26,7 @@
}
// Use to get a proxy class for Soap
- private java.lang.String Soap_address = "https://www.salesforce.com/services/Soap/u/15.0";
+ private java.lang.String Soap_address = "https://www.salesforce.com/services/Soap/u/17.0";
public java.lang.String getSoapAddress() {
return Soap_address;
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SingleEmailMessage.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SingleEmailMessage.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SingleEmailMessage.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,581 +1,692 @@
-/**
- * SingleEmailMessage.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class SingleEmailMessage extends com.sforce.soap.partner.Email implements java.io.Serializable {
- private java.lang.String[] bccAddresses;
-
- private java.lang.String[] ccAddresses;
-
- private java.lang.String charset;
-
- private java.lang.String[] documentAttachments;
-
- private java.lang.String htmlBody;
-
- private com.sforce.soap.partner.EmailFileAttachment[] fileAttachments;
-
- private java.lang.String plainTextBody;
-
- private java.lang.String targetObjectId;
-
- private java.lang.String templateId;
-
- private java.lang.String[] toAddresses;
-
- private java.lang.String whatId;
-
- public SingleEmailMessage() {
- }
-
- public SingleEmailMessage(
- java.lang.Boolean bccSender,
- com.sforce.soap.partner.EmailPriority emailPriority,
- java.lang.String replyTo,
- java.lang.Boolean saveAsActivity,
- java.lang.String senderDisplayName,
- java.lang.String subject,
- java.lang.Boolean useSignature,
- java.lang.String[] bccAddresses,
- java.lang.String[] ccAddresses,
- java.lang.String charset,
- java.lang.String[] documentAttachments,
- java.lang.String htmlBody,
- com.sforce.soap.partner.EmailFileAttachment[] fileAttachments,
- java.lang.String plainTextBody,
- java.lang.String targetObjectId,
- java.lang.String templateId,
- java.lang.String[] toAddresses,
- java.lang.String whatId) {
- super(
- bccSender,
- emailPriority,
- replyTo,
- saveAsActivity,
- senderDisplayName,
- subject,
- useSignature);
- this.bccAddresses = bccAddresses;
- this.ccAddresses = ccAddresses;
- this.charset = charset;
- this.documentAttachments = documentAttachments;
- this.htmlBody = htmlBody;
- this.fileAttachments = fileAttachments;
- this.plainTextBody = plainTextBody;
- this.targetObjectId = targetObjectId;
- this.templateId = templateId;
- this.toAddresses = toAddresses;
- this.whatId = whatId;
- }
-
-
- /**
- * Gets the bccAddresses value for this SingleEmailMessage.
- *
- * @return bccAddresses
- */
- public java.lang.String[] getBccAddresses() {
- return bccAddresses;
- }
-
-
- /**
- * Sets the bccAddresses value for this SingleEmailMessage.
- *
- * @param bccAddresses
- */
- public void setBccAddresses(java.lang.String[] bccAddresses) {
- this.bccAddresses = bccAddresses;
- }
-
- public java.lang.String getBccAddresses(int i) {
- return this.bccAddresses[i];
- }
-
- public void setBccAddresses(int i, java.lang.String _value) {
- this.bccAddresses[i] = _value;
- }
-
-
- /**
- * Gets the ccAddresses value for this SingleEmailMessage.
- *
- * @return ccAddresses
- */
- public java.lang.String[] getCcAddresses() {
- return ccAddresses;
- }
-
-
- /**
- * Sets the ccAddresses value for this SingleEmailMessage.
- *
- * @param ccAddresses
- */
- public void setCcAddresses(java.lang.String[] ccAddresses) {
- this.ccAddresses = ccAddresses;
- }
-
- public java.lang.String getCcAddresses(int i) {
- return this.ccAddresses[i];
- }
-
- public void setCcAddresses(int i, java.lang.String _value) {
- this.ccAddresses[i] = _value;
- }
-
-
- /**
- * Gets the charset value for this SingleEmailMessage.
- *
- * @return charset
- */
- public java.lang.String getCharset() {
- return charset;
- }
-
-
- /**
- * Sets the charset value for this SingleEmailMessage.
- *
- * @param charset
- */
- public void setCharset(java.lang.String charset) {
- this.charset = charset;
- }
-
-
- /**
- * Gets the documentAttachments value for this SingleEmailMessage.
- *
- * @return documentAttachments
- */
- public java.lang.String[] getDocumentAttachments() {
- return documentAttachments;
- }
-
-
- /**
- * Sets the documentAttachments value for this SingleEmailMessage.
- *
- * @param documentAttachments
- */
- public void setDocumentAttachments(java.lang.String[] documentAttachments) {
- this.documentAttachments = documentAttachments;
- }
-
- public java.lang.String getDocumentAttachments(int i) {
- return this.documentAttachments[i];
- }
-
- public void setDocumentAttachments(int i, java.lang.String _value) {
- this.documentAttachments[i] = _value;
- }
-
-
- /**
- * Gets the htmlBody value for this SingleEmailMessage.
- *
- * @return htmlBody
- */
- public java.lang.String getHtmlBody() {
- return htmlBody;
- }
-
-
- /**
- * Sets the htmlBody value for this SingleEmailMessage.
- *
- * @param htmlBody
- */
- public void setHtmlBody(java.lang.String htmlBody) {
- this.htmlBody = htmlBody;
- }
-
-
- /**
- * Gets the fileAttachments value for this SingleEmailMessage.
- *
- * @return fileAttachments
- */
- public com.sforce.soap.partner.EmailFileAttachment[] getFileAttachments() {
- return fileAttachments;
- }
-
-
- /**
- * Sets the fileAttachments value for this SingleEmailMessage.
- *
- * @param fileAttachments
- */
- public void setFileAttachments(com.sforce.soap.partner.EmailFileAttachment[] fileAttachments) {
- this.fileAttachments = fileAttachments;
- }
-
- public com.sforce.soap.partner.EmailFileAttachment getFileAttachments(int i) {
- return this.fileAttachments[i];
- }
-
- public void setFileAttachments(int i, com.sforce.soap.partner.EmailFileAttachment _value) {
- this.fileAttachments[i] = _value;
- }
-
-
- /**
- * Gets the plainTextBody value for this SingleEmailMessage.
- *
- * @return plainTextBody
- */
- public java.lang.String getPlainTextBody() {
- return plainTextBody;
- }
-
-
- /**
- * Sets the plainTextBody value for this SingleEmailMessage.
- *
- * @param plainTextBody
- */
- public void setPlainTextBody(java.lang.String plainTextBody) {
- this.plainTextBody = plainTextBody;
- }
-
-
- /**
- * Gets the targetObjectId value for this SingleEmailMessage.
- *
- * @return targetObjectId
- */
- public java.lang.String getTargetObjectId() {
- return targetObjectId;
- }
-
-
- /**
- * Sets the targetObjectId value for this SingleEmailMessage.
- *
- * @param targetObjectId
- */
- public void setTargetObjectId(java.lang.String targetObjectId) {
- this.targetObjectId = targetObjectId;
- }
-
-
- /**
- * Gets the templateId value for this SingleEmailMessage.
- *
- * @return templateId
- */
- public java.lang.String getTemplateId() {
- return templateId;
- }
-
-
- /**
- * Sets the templateId value for this SingleEmailMessage.
- *
- * @param templateId
- */
- public void setTemplateId(java.lang.String templateId) {
- this.templateId = templateId;
- }
-
-
- /**
- * Gets the toAddresses value for this SingleEmailMessage.
- *
- * @return toAddresses
- */
- public java.lang.String[] getToAddresses() {
- return toAddresses;
- }
-
-
- /**
- * Sets the toAddresses value for this SingleEmailMessage.
- *
- * @param toAddresses
- */
- public void setToAddresses(java.lang.String[] toAddresses) {
- this.toAddresses = toAddresses;
- }
-
- public java.lang.String getToAddresses(int i) {
- return this.toAddresses[i];
- }
-
- public void setToAddresses(int i, java.lang.String _value) {
- this.toAddresses[i] = _value;
- }
-
-
- /**
- * Gets the whatId value for this SingleEmailMessage.
- *
- * @return whatId
- */
- public java.lang.String getWhatId() {
- return whatId;
- }
-
-
- /**
- * Sets the whatId value for this SingleEmailMessage.
- *
- * @param whatId
- */
- public void setWhatId(java.lang.String whatId) {
- this.whatId = whatId;
- }
-
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof SingleEmailMessage)) return false;
- SingleEmailMessage other = (SingleEmailMessage) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = super.equals(obj) &&
- ((this.bccAddresses==null && other.getBccAddresses()==null) ||
- (this.bccAddresses!=null &&
- java.util.Arrays.equals(this.bccAddresses, other.getBccAddresses()))) &&
- ((this.ccAddresses==null && other.getCcAddresses()==null) ||
- (this.ccAddresses!=null &&
- java.util.Arrays.equals(this.ccAddresses, other.getCcAddresses()))) &&
- ((this.charset==null && other.getCharset()==null) ||
- (this.charset!=null &&
- this.charset.equals(other.getCharset()))) &&
- ((this.documentAttachments==null && other.getDocumentAttachments()==null) ||
- (this.documentAttachments!=null &&
- java.util.Arrays.equals(this.documentAttachments, other.getDocumentAttachments()))) &&
- ((this.htmlBody==null && other.getHtmlBody()==null) ||
- (this.htmlBody!=null &&
- this.htmlBody.equals(other.getHtmlBody()))) &&
- ((this.fileAttachments==null && other.getFileAttachments()==null) ||
- (this.fileAttachments!=null &&
- java.util.Arrays.equals(this.fileAttachments, other.getFileAttachments()))) &&
- ((this.plainTextBody==null && other.getPlainTextBody()==null) ||
- (this.plainTextBody!=null &&
- this.plainTextBody.equals(other.getPlainTextBody()))) &&
- ((this.targetObjectId==null && other.getTargetObjectId()==null) ||
- (this.targetObjectId!=null &&
- this.targetObjectId.equals(other.getTargetObjectId()))) &&
- ((this.templateId==null && other.getTemplateId()==null) ||
- (this.templateId!=null &&
- this.templateId.equals(other.getTemplateId()))) &&
- ((this.toAddresses==null && other.getToAddresses()==null) ||
- (this.toAddresses!=null &&
- java.util.Arrays.equals(this.toAddresses, other.getToAddresses()))) &&
- ((this.whatId==null && other.getWhatId()==null) ||
- (this.whatId!=null &&
- this.whatId.equals(other.getWhatId())));
- __equalsCalc = null;
- return _equals;
- }
-
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = super.hashCode();
- if (getBccAddresses() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getBccAddresses());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getBccAddresses(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getCcAddresses() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getCcAddresses());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getCcAddresses(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getCharset() != null) {
- _hashCode += getCharset().hashCode();
- }
- if (getDocumentAttachments() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getDocumentAttachments());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getDocumentAttachments(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getHtmlBody() != null) {
- _hashCode += getHtmlBody().hashCode();
- }
- if (getFileAttachments() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getFileAttachments());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getFileAttachments(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getPlainTextBody() != null) {
- _hashCode += getPlainTextBody().hashCode();
- }
- if (getTargetObjectId() != null) {
- _hashCode += getTargetObjectId().hashCode();
- }
- if (getTemplateId() != null) {
- _hashCode += getTemplateId().hashCode();
- }
- if (getToAddresses() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getToAddresses());
- i++) {
- java.lang.Object obj = java.lang.reflect.Array.get(getToAddresses(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- if (getWhatId() != null) {
- _hashCode += getWhatId().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
-
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(SingleEmailMessage.class, true);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SingleEmailMessage"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("bccAddresses");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "bccAddresses"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("ccAddresses");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ccAddresses"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("charset");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "charset"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("documentAttachments");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "documentAttachments"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("htmlBody");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "htmlBody"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("fileAttachments");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fileAttachments"));
- elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailFileAttachment"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("plainTextBody");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "plainTextBody"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("targetObjectId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "targetObjectId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("templateId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "templateId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("toAddresses");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "toAddresses"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("whatId");
- elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "whatId"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setNillable(true);
- typeDesc.addFieldDesc(elemField);
- }
-
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
-
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
-
-}
+/**
+ * SingleEmailMessage.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class SingleEmailMessage extends com.sforce.soap.partner.Email implements java.io.Serializable {
+ private java.lang.String[] bccAddresses;
+
+ private java.lang.String[] ccAddresses;
+
+ private java.lang.String charset;
+
+ private java.lang.String[] documentAttachments;
+
+ private java.lang.String htmlBody;
+
+ private java.lang.String inReplyTo;
+
+ private com.sforce.soap.partner.EmailFileAttachment[] fileAttachments;
+
+ private java.lang.String orgWideEmailAddressId;
+
+ private java.lang.String plainTextBody;
+
+ private java.lang.String references;
+
+ private java.lang.String targetObjectId;
+
+ private java.lang.String templateId;
+
+ private java.lang.String[] toAddresses;
+
+ private java.lang.String whatId;
+
+ public SingleEmailMessage() {
+ }
+
+ public SingleEmailMessage(
+ java.lang.Boolean bccSender,
+ com.sforce.soap.partner.EmailPriority emailPriority,
+ java.lang.String replyTo,
+ java.lang.Boolean saveAsActivity,
+ java.lang.String senderDisplayName,
+ java.lang.String subject,
+ java.lang.Boolean useSignature,
+ java.lang.String[] bccAddresses,
+ java.lang.String[] ccAddresses,
+ java.lang.String charset,
+ java.lang.String[] documentAttachments,
+ java.lang.String htmlBody,
+ java.lang.String inReplyTo,
+ com.sforce.soap.partner.EmailFileAttachment[] fileAttachments,
+ java.lang.String orgWideEmailAddressId,
+ java.lang.String plainTextBody,
+ java.lang.String references,
+ java.lang.String targetObjectId,
+ java.lang.String templateId,
+ java.lang.String[] toAddresses,
+ java.lang.String whatId) {
+ super(
+ bccSender,
+ emailPriority,
+ replyTo,
+ saveAsActivity,
+ senderDisplayName,
+ subject,
+ useSignature);
+ this.bccAddresses = bccAddresses;
+ this.ccAddresses = ccAddresses;
+ this.charset = charset;
+ this.documentAttachments = documentAttachments;
+ this.htmlBody = htmlBody;
+ this.inReplyTo = inReplyTo;
+ this.fileAttachments = fileAttachments;
+ this.orgWideEmailAddressId = orgWideEmailAddressId;
+ this.plainTextBody = plainTextBody;
+ this.references = references;
+ this.targetObjectId = targetObjectId;
+ this.templateId = templateId;
+ this.toAddresses = toAddresses;
+ this.whatId = whatId;
+ }
+
+
+ /**
+ * Gets the bccAddresses value for this SingleEmailMessage.
+ *
+ * @return bccAddresses
+ */
+ public java.lang.String[] getBccAddresses() {
+ return bccAddresses;
+ }
+
+
+ /**
+ * Sets the bccAddresses value for this SingleEmailMessage.
+ *
+ * @param bccAddresses
+ */
+ public void setBccAddresses(java.lang.String[] bccAddresses) {
+ this.bccAddresses = bccAddresses;
+ }
+
+ public java.lang.String getBccAddresses(int i) {
+ return this.bccAddresses[i];
+ }
+
+ public void setBccAddresses(int i, java.lang.String _value) {
+ this.bccAddresses[i] = _value;
+ }
+
+
+ /**
+ * Gets the ccAddresses value for this SingleEmailMessage.
+ *
+ * @return ccAddresses
+ */
+ public java.lang.String[] getCcAddresses() {
+ return ccAddresses;
+ }
+
+
+ /**
+ * Sets the ccAddresses value for this SingleEmailMessage.
+ *
+ * @param ccAddresses
+ */
+ public void setCcAddresses(java.lang.String[] ccAddresses) {
+ this.ccAddresses = ccAddresses;
+ }
+
+ public java.lang.String getCcAddresses(int i) {
+ return this.ccAddresses[i];
+ }
+
+ public void setCcAddresses(int i, java.lang.String _value) {
+ this.ccAddresses[i] = _value;
+ }
+
+
+ /**
+ * Gets the charset value for this SingleEmailMessage.
+ *
+ * @return charset
+ */
+ public java.lang.String getCharset() {
+ return charset;
+ }
+
+
+ /**
+ * Sets the charset value for this SingleEmailMessage.
+ *
+ * @param charset
+ */
+ public void setCharset(java.lang.String charset) {
+ this.charset = charset;
+ }
+
+
+ /**
+ * Gets the documentAttachments value for this SingleEmailMessage.
+ *
+ * @return documentAttachments
+ */
+ public java.lang.String[] getDocumentAttachments() {
+ return documentAttachments;
+ }
+
+
+ /**
+ * Sets the documentAttachments value for this SingleEmailMessage.
+ *
+ * @param documentAttachments
+ */
+ public void setDocumentAttachments(java.lang.String[] documentAttachments) {
+ this.documentAttachments = documentAttachments;
+ }
+
+ public java.lang.String getDocumentAttachments(int i) {
+ return this.documentAttachments[i];
+ }
+
+ public void setDocumentAttachments(int i, java.lang.String _value) {
+ this.documentAttachments[i] = _value;
+ }
+
+
+ /**
+ * Gets the htmlBody value for this SingleEmailMessage.
+ *
+ * @return htmlBody
+ */
+ public java.lang.String getHtmlBody() {
+ return htmlBody;
+ }
+
+
+ /**
+ * Sets the htmlBody value for this SingleEmailMessage.
+ *
+ * @param htmlBody
+ */
+ public void setHtmlBody(java.lang.String htmlBody) {
+ this.htmlBody = htmlBody;
+ }
+
+
+ /**
+ * Gets the inReplyTo value for this SingleEmailMessage.
+ *
+ * @return inReplyTo
+ */
+ public java.lang.String getInReplyTo() {
+ return inReplyTo;
+ }
+
+
+ /**
+ * Sets the inReplyTo value for this SingleEmailMessage.
+ *
+ * @param inReplyTo
+ */
+ public void setInReplyTo(java.lang.String inReplyTo) {
+ this.inReplyTo = inReplyTo;
+ }
+
+
+ /**
+ * Gets the fileAttachments value for this SingleEmailMessage.
+ *
+ * @return fileAttachments
+ */
+ public com.sforce.soap.partner.EmailFileAttachment[] getFileAttachments() {
+ return fileAttachments;
+ }
+
+
+ /**
+ * Sets the fileAttachments value for this SingleEmailMessage.
+ *
+ * @param fileAttachments
+ */
+ public void setFileAttachments(com.sforce.soap.partner.EmailFileAttachment[] fileAttachments) {
+ this.fileAttachments = fileAttachments;
+ }
+
+ public com.sforce.soap.partner.EmailFileAttachment getFileAttachments(int i) {
+ return this.fileAttachments[i];
+ }
+
+ public void setFileAttachments(int i, com.sforce.soap.partner.EmailFileAttachment _value) {
+ this.fileAttachments[i] = _value;
+ }
+
+
+ /**
+ * Gets the orgWideEmailAddressId value for this SingleEmailMessage.
+ *
+ * @return orgWideEmailAddressId
+ */
+ public java.lang.String getOrgWideEmailAddressId() {
+ return orgWideEmailAddressId;
+ }
+
+
+ /**
+ * Sets the orgWideEmailAddressId value for this SingleEmailMessage.
+ *
+ * @param orgWideEmailAddressId
+ */
+ public void setOrgWideEmailAddressId(java.lang.String orgWideEmailAddressId) {
+ this.orgWideEmailAddressId = orgWideEmailAddressId;
+ }
+
+
+ /**
+ * Gets the plainTextBody value for this SingleEmailMessage.
+ *
+ * @return plainTextBody
+ */
+ public java.lang.String getPlainTextBody() {
+ return plainTextBody;
+ }
+
+
+ /**
+ * Sets the plainTextBody value for this SingleEmailMessage.
+ *
+ * @param plainTextBody
+ */
+ public void setPlainTextBody(java.lang.String plainTextBody) {
+ this.plainTextBody = plainTextBody;
+ }
+
+
+ /**
+ * Gets the references value for this SingleEmailMessage.
+ *
+ * @return references
+ */
+ public java.lang.String getReferences() {
+ return references;
+ }
+
+
+ /**
+ * Sets the references value for this SingleEmailMessage.
+ *
+ * @param references
+ */
+ public void setReferences(java.lang.String references) {
+ this.references = references;
+ }
+
+
+ /**
+ * Gets the targetObjectId value for this SingleEmailMessage.
+ *
+ * @return targetObjectId
+ */
+ public java.lang.String getTargetObjectId() {
+ return targetObjectId;
+ }
+
+
+ /**
+ * Sets the targetObjectId value for this SingleEmailMessage.
+ *
+ * @param targetObjectId
+ */
+ public void setTargetObjectId(java.lang.String targetObjectId) {
+ this.targetObjectId = targetObjectId;
+ }
+
+
+ /**
+ * Gets the templateId value for this SingleEmailMessage.
+ *
+ * @return templateId
+ */
+ public java.lang.String getTemplateId() {
+ return templateId;
+ }
+
+
+ /**
+ * Sets the templateId value for this SingleEmailMessage.
+ *
+ * @param templateId
+ */
+ public void setTemplateId(java.lang.String templateId) {
+ this.templateId = templateId;
+ }
+
+
+ /**
+ * Gets the toAddresses value for this SingleEmailMessage.
+ *
+ * @return toAddresses
+ */
+ public java.lang.String[] getToAddresses() {
+ return toAddresses;
+ }
+
+
+ /**
+ * Sets the toAddresses value for this SingleEmailMessage.
+ *
+ * @param toAddresses
+ */
+ public void setToAddresses(java.lang.String[] toAddresses) {
+ this.toAddresses = toAddresses;
+ }
+
+ public java.lang.String getToAddresses(int i) {
+ return this.toAddresses[i];
+ }
+
+ public void setToAddresses(int i, java.lang.String _value) {
+ this.toAddresses[i] = _value;
+ }
+
+
+ /**
+ * Gets the whatId value for this SingleEmailMessage.
+ *
+ * @return whatId
+ */
+ public java.lang.String getWhatId() {
+ return whatId;
+ }
+
+
+ /**
+ * Sets the whatId value for this SingleEmailMessage.
+ *
+ * @param whatId
+ */
+ public void setWhatId(java.lang.String whatId) {
+ this.whatId = whatId;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof SingleEmailMessage)) return false;
+ SingleEmailMessage other = (SingleEmailMessage) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = super.equals(obj) &&
+ ((this.bccAddresses==null && other.getBccAddresses()==null) ||
+ (this.bccAddresses!=null &&
+ java.util.Arrays.equals(this.bccAddresses, other.getBccAddresses()))) &&
+ ((this.ccAddresses==null && other.getCcAddresses()==null) ||
+ (this.ccAddresses!=null &&
+ java.util.Arrays.equals(this.ccAddresses, other.getCcAddresses()))) &&
+ ((this.charset==null && other.getCharset()==null) ||
+ (this.charset!=null &&
+ this.charset.equals(other.getCharset()))) &&
+ ((this.documentAttachments==null && other.getDocumentAttachments()==null) ||
+ (this.documentAttachments!=null &&
+ java.util.Arrays.equals(this.documentAttachments, other.getDocumentAttachments()))) &&
+ ((this.htmlBody==null && other.getHtmlBody()==null) ||
+ (this.htmlBody!=null &&
+ this.htmlBody.equals(other.getHtmlBody()))) &&
+ ((this.inReplyTo==null && other.getInReplyTo()==null) ||
+ (this.inReplyTo!=null &&
+ this.inReplyTo.equals(other.getInReplyTo()))) &&
+ ((this.fileAttachments==null && other.getFileAttachments()==null) ||
+ (this.fileAttachments!=null &&
+ java.util.Arrays.equals(this.fileAttachments, other.getFileAttachments()))) &&
+ ((this.orgWideEmailAddressId==null && other.getOrgWideEmailAddressId()==null) ||
+ (this.orgWideEmailAddressId!=null &&
+ this.orgWideEmailAddressId.equals(other.getOrgWideEmailAddressId()))) &&
+ ((this.plainTextBody==null && other.getPlainTextBody()==null) ||
+ (this.plainTextBody!=null &&
+ this.plainTextBody.equals(other.getPlainTextBody()))) &&
+ ((this.references==null && other.getReferences()==null) ||
+ (this.references!=null &&
+ this.references.equals(other.getReferences()))) &&
+ ((this.targetObjectId==null && other.getTargetObjectId()==null) ||
+ (this.targetObjectId!=null &&
+ this.targetObjectId.equals(other.getTargetObjectId()))) &&
+ ((this.templateId==null && other.getTemplateId()==null) ||
+ (this.templateId!=null &&
+ this.templateId.equals(other.getTemplateId()))) &&
+ ((this.toAddresses==null && other.getToAddresses()==null) ||
+ (this.toAddresses!=null &&
+ java.util.Arrays.equals(this.toAddresses, other.getToAddresses()))) &&
+ ((this.whatId==null && other.getWhatId()==null) ||
+ (this.whatId!=null &&
+ this.whatId.equals(other.getWhatId())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = super.hashCode();
+ if (getBccAddresses() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getBccAddresses());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getBccAddresses(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getCcAddresses() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getCcAddresses());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getCcAddresses(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getCharset() != null) {
+ _hashCode += getCharset().hashCode();
+ }
+ if (getDocumentAttachments() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getDocumentAttachments());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getDocumentAttachments(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getHtmlBody() != null) {
+ _hashCode += getHtmlBody().hashCode();
+ }
+ if (getInReplyTo() != null) {
+ _hashCode += getInReplyTo().hashCode();
+ }
+ if (getFileAttachments() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getFileAttachments());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getFileAttachments(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getOrgWideEmailAddressId() != null) {
+ _hashCode += getOrgWideEmailAddressId().hashCode();
+ }
+ if (getPlainTextBody() != null) {
+ _hashCode += getPlainTextBody().hashCode();
+ }
+ if (getReferences() != null) {
+ _hashCode += getReferences().hashCode();
+ }
+ if (getTargetObjectId() != null) {
+ _hashCode += getTargetObjectId().hashCode();
+ }
+ if (getTemplateId() != null) {
+ _hashCode += getTemplateId().hashCode();
+ }
+ if (getToAddresses() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getToAddresses());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getToAddresses(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ if (getWhatId() != null) {
+ _hashCode += getWhatId().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(SingleEmailMessage.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SingleEmailMessage"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("bccAddresses");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "bccAddresses"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("ccAddresses");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ccAddresses"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("charset");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "charset"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("documentAttachments");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "documentAttachments"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("htmlBody");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "htmlBody"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("inReplyTo");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "inReplyTo"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("fileAttachments");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fileAttachments"));
+ elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailFileAttachment"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(false);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("orgWideEmailAddressId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "orgWideEmailAddressId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("plainTextBody");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "plainTextBody"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("references");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "references"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("targetObjectId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "targetObjectId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("templateId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "templateId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("toAddresses");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "toAddresses"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setMinOccurs(0);
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("whatId");
+ elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "whatId"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(true);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Soap.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Soap.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/Soap.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,161 +1,161 @@
-/**
- * Soap.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public interface Soap extends java.rmi.Remote {
-
- /**
- * Login to the Salesforce.com SOAP Api
- */
- public com.sforce.soap.partner.LoginResult login(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.LoginFault;
-
- /**
- * Describe an sObject
- */
- public com.sforce.soap.partner.DescribeSObjectResult describeSObject(java.lang.String sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault;
-
- /**
- * Describe a number sObjects
- */
- public com.sforce.soap.partner.DescribeSObjectResult[] describeSObjects(java.lang.String[] sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault;
-
- /**
- * Describe the Global state
- */
- public com.sforce.soap.partner.DescribeGlobalResult describeGlobal() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Describe the layout of an sObject
- */
- public com.sforce.soap.partner.DescribeLayoutResult describeLayout(java.lang.String sObjectType, java.lang.String[] recordTypeIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault;
-
- /**
- * Describe the layout of the SoftPhone
- */
- public com.sforce.soap.partner.DescribeSoftphoneLayoutResult describeSoftphoneLayout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Describe the tabs that appear on a users page
- */
- public com.sforce.soap.partner.DescribeTabSetResult[] describeTabs() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Create a set of new sObjects
- */
- public com.sforce.soap.partner.SaveResult[] create(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Update a set of sObjects
- */
- public com.sforce.soap.partner.SaveResult[] update(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Update or insert a set of sObjects based on object id
- */
- public com.sforce.soap.partner.UpsertResult[] upsert(java.lang.String externalIDFieldName, com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Merge and update a set of sObjects based on object id
- */
- public com.sforce.soap.partner.MergeResult[] merge(com.sforce.soap.partner.MergeRequest[] request) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Delete a set of sObjects
- */
- public com.sforce.soap.partner.DeleteResult[] delete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Undelete a set of sObjects
- */
- public com.sforce.soap.partner.UndeleteResult[] undelete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Empty a set of sObjects from the recycle bin
- */
- public com.sforce.soap.partner.EmptyRecycleBinResult[] emptyRecycleBin(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Get a set of sObjects
- */
- public com.sforce.soap.partner.sobject.SObject[] retrieve(java.lang.String fieldList, java.lang.String sObjectType, java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Submit an entity to a workflow process or process a workitem
- */
- public com.sforce.soap.partner.ProcessResult[] process(com.sforce.soap.partner.ProcessRequest[] actions) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault;
-
- /**
- * convert a set of leads
- */
- public com.sforce.soap.partner.LeadConvertResult[] convertLead(com.sforce.soap.partner.LeadConvert[] leadConverts) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Logout the current user, invalidating the current session.
- */
- public void logout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Logs out and invalidates session ids
- */
- public com.sforce.soap.partner.InvalidateSessionsResult[] invalidateSessions(java.lang.String[] sessionIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Get the IDs for deleted sObjects
- */
- public com.sforce.soap.partner.GetDeletedResult getDeleted(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault;
-
- /**
- * Get the IDs for updated sObjects
- */
- public com.sforce.soap.partner.GetUpdatedResult getUpdated(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault;
-
- /**
- * Create a Query Cursor
- */
- public com.sforce.soap.partner.QueryResult query(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Create a Query Cursor, including deleted sObjects
- */
- public com.sforce.soap.partner.QueryResult queryAll(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Gets the next batch of sObjects from a query
- */
- public com.sforce.soap.partner.QueryResult queryMore(java.lang.String queryLocator) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Search for sObjects
- */
- public com.sforce.soap.partner.SearchResult search(java.lang.String searchString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.MalformedSearchFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidFieldFault;
-
- /**
- * Gets server timestamp
- */
- public com.sforce.soap.partner.GetServerTimestampResult getServerTimestamp() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Set a user's password
- */
- public com.sforce.soap.partner.SetPasswordResult setPassword(java.lang.String userId, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidNewPasswordFault;
-
- /**
- * Reset a user's password
- */
- public com.sforce.soap.partner.ResetPasswordResult resetPassword(java.lang.String userId) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault;
-
- /**
- * Returns standard information relevant to the current user
- */
- public com.sforce.soap.partner.GetUserInfoResult getUserInfo() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-
- /**
- * Send outbound email
- */
- public com.sforce.soap.partner.SendEmailResult[] sendEmail(com.sforce.soap.partner.Email[] messages) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
-}
+/**
+ * Soap.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public interface Soap extends java.rmi.Remote {
+
+ /**
+ * Login to the Salesforce.com SOAP Api
+ */
+ public com.sforce.soap.partner.LoginResult login(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.LoginFault;
+
+ /**
+ * Describe an sObject
+ */
+ public com.sforce.soap.partner.DescribeSObjectResult describeSObject(java.lang.String sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Describe a number sObjects
+ */
+ public com.sforce.soap.partner.DescribeSObjectResult[] describeSObjects(java.lang.String[] sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Describe the Global state
+ */
+ public com.sforce.soap.partner.DescribeGlobalResult describeGlobal() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Describe the layout of an sObject
+ */
+ public com.sforce.soap.partner.DescribeLayoutResult describeLayout(java.lang.String sObjectType, java.lang.String[] recordTypeIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Describe the layout of the SoftPhone
+ */
+ public com.sforce.soap.partner.DescribeSoftphoneLayoutResult describeSoftphoneLayout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Describe the tabs that appear on a users page
+ */
+ public com.sforce.soap.partner.DescribeTabSetResult[] describeTabs() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Create a set of new sObjects
+ */
+ public com.sforce.soap.partner.SaveResult[] create(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Update a set of sObjects
+ */
+ public com.sforce.soap.partner.SaveResult[] update(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Update or insert a set of sObjects based on object id
+ */
+ public com.sforce.soap.partner.UpsertResult[] upsert(java.lang.String externalIDFieldName, com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Merge and update a set of sObjects based on object id
+ */
+ public com.sforce.soap.partner.MergeResult[] merge(com.sforce.soap.partner.MergeRequest[] request) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Delete a set of sObjects
+ */
+ public com.sforce.soap.partner.DeleteResult[] delete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Undelete a set of sObjects
+ */
+ public com.sforce.soap.partner.UndeleteResult[] undelete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Empty a set of sObjects from the recycle bin
+ */
+ public com.sforce.soap.partner.EmptyRecycleBinResult[] emptyRecycleBin(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Get a set of sObjects
+ */
+ public com.sforce.soap.partner.sobject.SObject[] retrieve(java.lang.String fieldList, java.lang.String sObjectType, java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Submit an entity to a workflow process or process a workitem
+ */
+ public com.sforce.soap.partner.ProcessResult[] process(com.sforce.soap.partner.ProcessRequest[] actions) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * convert a set of leads
+ */
+ public com.sforce.soap.partner.LeadConvertResult[] convertLead(com.sforce.soap.partner.LeadConvert[] leadConverts) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Logout the current user, invalidating the current session.
+ */
+ public void logout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Logs out and invalidates session ids
+ */
+ public com.sforce.soap.partner.InvalidateSessionsResult[] invalidateSessions(java.lang.String[] sessionIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Get the IDs for deleted sObjects
+ */
+ public com.sforce.soap.partner.GetDeletedResult getDeleted(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Get the IDs for updated sObjects
+ */
+ public com.sforce.soap.partner.GetUpdatedResult getUpdated(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Create a Query Cursor
+ */
+ public com.sforce.soap.partner.QueryResult query(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault;
+
+ /**
+ * Create a Query Cursor, including deleted sObjects
+ */
+ public com.sforce.soap.partner.QueryResult queryAll(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault;
+
+ /**
+ * Gets the next batch of sObjects from a query
+ */
+ public com.sforce.soap.partner.QueryResult queryMore(java.lang.String queryLocator) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault;
+
+ /**
+ * Search for sObjects
+ */
+ public com.sforce.soap.partner.SearchResult search(java.lang.String searchString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedSearchFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Gets server timestamp
+ */
+ public com.sforce.soap.partner.GetServerTimestampResult getServerTimestamp() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Set a user's password
+ */
+ public com.sforce.soap.partner.SetPasswordResult setPassword(java.lang.String userId, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidNewPasswordFault;
+
+ /**
+ * Reset a user's password
+ */
+ public com.sforce.soap.partner.ResetPasswordResult resetPassword(java.lang.String userId) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Returns standard information relevant to the current user
+ */
+ public com.sforce.soap.partner.GetUserInfoResult getUserInfo() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+
+ /**
+ * Send outbound email
+ */
+ public com.sforce.soap.partner.SendEmailResult[] sendEmail(com.sforce.soap.partner.Email[] messages) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SoapBindingStub.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SoapBindingStub.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/SoapBindingStub.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,966 +1,966 @@
-/**
- * SoapBindingStub.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class SoapBindingStub extends org.apache.axis.client.Stub implements com.sforce.soap.partner.Soap {
- private java.util.Vector cachedSerClasses = new java.util.Vector();
- private java.util.Vector cachedSerQNames = new java.util.Vector();
- private java.util.Vector cachedSerFactories = new java.util.Vector();
- private java.util.Vector cachedDeserFactories = new java.util.Vector();
-
- static org.apache.axis.description.OperationDesc [] _operations;
-
- static {
- _operations = new org.apache.axis.description.OperationDesc[30];
- _initOperationDesc1();
- _initOperationDesc2();
- _initOperationDesc3();
+/**
+ * SoapBindingStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class SoapBindingStub extends org.apache.axis.client.Stub implements com.sforce.soap.partner.Soap {
+ private java.util.Vector cachedSerClasses = new java.util.Vector();
+ private java.util.Vector cachedSerQNames = new java.util.Vector();
+ private java.util.Vector cachedSerFactories = new java.util.Vector();
+ private java.util.Vector cachedDeserFactories = new java.util.Vector();
+
+ static org.apache.axis.description.OperationDesc [] _operations;
+
+ static {
+ _operations = new org.apache.axis.description.OperationDesc[30];
+ _initOperationDesc1();
+ _initOperationDesc2();
+ _initOperationDesc3();
}
-
- private static void _initOperationDesc1(){
- org.apache.axis.description.OperationDesc oper;
- org.apache.axis.description.ParameterDesc param;
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("login");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "username"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LoginResult"));
- oper.setReturnClass(com.sforce.soap.partner.LoginResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "LoginFault"),
- "com.sforce.soap.partner.fault.LoginFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "LoginFault"),
- true
- ));
- _operations[0] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("describeSObject");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult"));
- oper.setReturnClass(com.sforce.soap.partner.DescribeSObjectResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- _operations[1] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("describeSObjects");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult"));
- oper.setReturnClass(com.sforce.soap.partner.DescribeSObjectResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- _operations[2] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("describeGlobal");
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalResult"));
- oper.setReturnClass(com.sforce.soap.partner.DescribeGlobalResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[3] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("describeLayout");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "recordTypeIds"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutResult"));
- oper.setReturnClass(com.sforce.soap.partner.DescribeLayoutResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- _operations[4] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("describeSoftphoneLayout");
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutResult"));
- oper.setReturnClass(com.sforce.soap.partner.DescribeSoftphoneLayoutResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[5] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("describeTabs");
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTabSetResult"));
- oper.setReturnClass(com.sforce.soap.partner.DescribeTabSetResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[6] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("create");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"), com.sforce.soap.partner.sobject.SObject[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult"));
- oper.setReturnClass(com.sforce.soap.partner.SaveResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[7] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("update");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"), com.sforce.soap.partner.sobject.SObject[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult"));
- oper.setReturnClass(com.sforce.soap.partner.SaveResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[8] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("upsert");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "externalIDFieldName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"), com.sforce.soap.partner.sobject.SObject[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult"));
- oper.setReturnClass(com.sforce.soap.partner.UpsertResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[9] = oper;
-
+
+ private static void _initOperationDesc1(){
+ org.apache.axis.description.OperationDesc oper;
+ org.apache.axis.description.ParameterDesc param;
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("login");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "username"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LoginResult"));
+ oper.setReturnClass(com.sforce.soap.partner.LoginResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "LoginFault"),
+ "com.sforce.soap.partner.fault.LoginFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "LoginFault"),
+ true
+ ));
+ _operations[0] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("describeSObject");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DescribeSObjectResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[1] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("describeSObjects");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DescribeSObjectResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[2] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("describeGlobal");
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DescribeGlobalResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[3] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("describeLayout");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "recordTypeIds"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DescribeLayoutResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[4] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("describeSoftphoneLayout");
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DescribeSoftphoneLayoutResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[5] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("describeTabs");
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTabSetResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DescribeTabSetResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[6] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("create");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"), com.sforce.soap.partner.sobject.SObject[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult"));
+ oper.setReturnClass(com.sforce.soap.partner.SaveResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[7] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("update");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"), com.sforce.soap.partner.sobject.SObject[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult"));
+ oper.setReturnClass(com.sforce.soap.partner.SaveResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[8] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("upsert");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "externalIDFieldName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"), com.sforce.soap.partner.sobject.SObject[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult"));
+ oper.setReturnClass(com.sforce.soap.partner.UpsertResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[9] = oper;
+
}
-
- private static void _initOperationDesc2(){
- org.apache.axis.description.OperationDesc oper;
- org.apache.axis.description.ParameterDesc param;
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("merge");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeRequest"), com.sforce.soap.partner.MergeRequest[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeResult"));
- oper.setReturnClass(com.sforce.soap.partner.MergeResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[10] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("delete");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeleteResult"));
- oper.setReturnClass(com.sforce.soap.partner.DeleteResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[11] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("undelete");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UndeleteResult"));
- oper.setReturnClass(com.sforce.soap.partner.UndeleteResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[12] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("emptyRecycleBin");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmptyRecycleBinResult"));
- oper.setReturnClass(com.sforce.soap.partner.EmptyRecycleBinResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[13] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("retrieve");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldList"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"));
- oper.setReturnClass(com.sforce.soap.partner.sobject.SObject[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
- "com.sforce.soap.partner.fault.MalformedQueryFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[14] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("process");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "actions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessRequest"), com.sforce.soap.partner.ProcessRequest[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult"));
- oper.setReturnClass(com.sforce.soap.partner.ProcessResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- _operations[15] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("convertLead");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "leadConverts"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvert"), com.sforce.soap.partner.LeadConvert[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvertResult"));
- oper.setReturnClass(com.sforce.soap.partner.LeadConvertResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[16] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("logout");
- oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[17] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("invalidateSessions");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sessionIds"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "InvalidateSessionsResult"));
- oper.setReturnClass(com.sforce.soap.partner.InvalidateSessionsResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[18] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("getDeleted");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "startDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "endDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetDeletedResult"));
- oper.setReturnClass(com.sforce.soap.partner.GetDeletedResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- _operations[19] = oper;
-
+
+ private static void _initOperationDesc2(){
+ org.apache.axis.description.OperationDesc oper;
+ org.apache.axis.description.ParameterDesc param;
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("merge");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeRequest"), com.sforce.soap.partner.MergeRequest[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeResult"));
+ oper.setReturnClass(com.sforce.soap.partner.MergeResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[10] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("delete");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeleteResult"));
+ oper.setReturnClass(com.sforce.soap.partner.DeleteResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[11] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("undelete");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UndeleteResult"));
+ oper.setReturnClass(com.sforce.soap.partner.UndeleteResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[12] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("emptyRecycleBin");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmptyRecycleBinResult"));
+ oper.setReturnClass(com.sforce.soap.partner.EmptyRecycleBinResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[13] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("retrieve");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldList"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject"));
+ oper.setReturnClass(com.sforce.soap.partner.sobject.SObject[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
+ "com.sforce.soap.partner.fault.MalformedQueryFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[14] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("process");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "actions"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessRequest"), com.sforce.soap.partner.ProcessRequest[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult"));
+ oper.setReturnClass(com.sforce.soap.partner.ProcessResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[15] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("convertLead");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "leadConverts"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvert"), com.sforce.soap.partner.LeadConvert[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvertResult"));
+ oper.setReturnClass(com.sforce.soap.partner.LeadConvertResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[16] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("logout");
+ oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[17] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("invalidateSessions");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sessionIds"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "InvalidateSessionsResult"));
+ oper.setReturnClass(com.sforce.soap.partner.InvalidateSessionsResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[18] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("getDeleted");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "startDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "endDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetDeletedResult"));
+ oper.setReturnClass(com.sforce.soap.partner.GetDeletedResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[19] = oper;
+
}
-
- private static void _initOperationDesc3(){
- org.apache.axis.description.OperationDesc oper;
- org.apache.axis.description.ParameterDesc param;
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("getUpdated");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "startDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "endDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUpdatedResult"));
- oper.setReturnClass(com.sforce.soap.partner.GetUpdatedResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- _operations[20] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("query");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryString"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult"));
- oper.setReturnClass(com.sforce.soap.partner.QueryResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
- "com.sforce.soap.partner.fault.InvalidQueryLocatorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
- "com.sforce.soap.partner.fault.MalformedQueryFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[21] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("queryAll");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryString"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult"));
- oper.setReturnClass(com.sforce.soap.partner.QueryResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
- "com.sforce.soap.partner.fault.InvalidQueryLocatorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
- "com.sforce.soap.partner.fault.MalformedQueryFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[22] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("queryMore");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryLocator"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryLocator"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult"));
- oper.setReturnClass(com.sforce.soap.partner.QueryResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
- "com.sforce.soap.partner.fault.InvalidQueryLocatorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[23] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("search");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "searchString"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SearchResult"));
- oper.setReturnClass(com.sforce.soap.partner.SearchResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedSearchFault"),
- "com.sforce.soap.partner.fault.MalformedSearchFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedSearchFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- "com.sforce.soap.partner.fault.InvalidSObjectFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- "com.sforce.soap.partner.fault.InvalidFieldFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
- true
- ));
- _operations[24] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("getServerTimestamp");
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetServerTimestampResult"));
- oper.setReturnClass(com.sforce.soap.partner.GetServerTimestampResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[25] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("setPassword");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String.class, false, false);
- oper.addParameter(param);
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SetPasswordResult"));
- oper.setReturnClass(com.sforce.soap.partner.SetPasswordResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidNewPasswordFault"),
- "com.sforce.soap.partner.fault.InvalidNewPasswordFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidNewPasswordFault"),
- true
- ));
- _operations[26] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("resetPassword");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String.class, false, false);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ResetPasswordResult"));
- oper.setReturnClass(com.sforce.soap.partner.ResetPasswordResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- "com.sforce.soap.partner.fault.InvalidIdFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
- true
- ));
- _operations[27] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("getUserInfo");
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUserInfoResult"));
- oper.setReturnClass(com.sforce.soap.partner.GetUserInfoResult.class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[28] = oper;
-
- oper = new org.apache.axis.description.OperationDesc();
- oper.setName("sendEmail");
- param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "messages"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Email"), com.sforce.soap.partner.Email[].class, false, false);
- param.setOmittable(true);
- oper.addParameter(param);
- oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailResult"));
- oper.setReturnClass(com.sforce.soap.partner.SendEmailResult[].class);
- oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
- oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
- oper.setUse(org.apache.axis.constants.Use.LITERAL);
- oper.addFault(new org.apache.axis.description.FaultDesc(
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- "com.sforce.soap.partner.fault.UnexpectedErrorFault",
- new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
- true
- ));
- _operations[29] = oper;
-
- }
-
- public SoapBindingStub() throws org.apache.axis.AxisFault {
- this(null);
- }
-
- public SoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
- this(service);
- super.cachedEndpoint = endpointURL;
- }
-
- public SoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
- if (service == null) {
- super.service = new org.apache.axis.client.Service();
- } else {
- super.service = service;
- }
- ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
- java.lang.Class cls;
- javax.xml.namespace.QName qName;
- javax.xml.namespace.QName qName2;
- java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
- java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
- java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
- java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
- java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
- java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
- java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
- java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
- java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
- java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
- addBindings0();
- addBindings1();
- }
-
- private void addBindings0() {
- java.lang.Class cls;
- javax.xml.namespace.QName qName;
- javax.xml.namespace.QName qName2;
- java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
- java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
- java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
- java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
- java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
- java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
- java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
- java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
- java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
- java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "ApiFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.ApiFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "ApiQueryFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.ApiQueryFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "ExceptionCode");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.ExceptionCode.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "FaultCode");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.FaultCode.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.InvalidFieldFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.InvalidIdFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidNewPasswordFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.InvalidNewPasswordFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.InvalidQueryLocatorFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.InvalidSObjectFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "LoginFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.LoginFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.MalformedQueryFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedSearchFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.MalformedSearchFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.fault.UnexpectedErrorFault.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
+
+ private static void _initOperationDesc3(){
+ org.apache.axis.description.OperationDesc oper;
+ org.apache.axis.description.ParameterDesc param;
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("getUpdated");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "startDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "endDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUpdatedResult"));
+ oper.setReturnClass(com.sforce.soap.partner.GetUpdatedResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[20] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("query");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryString"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult"));
+ oper.setReturnClass(com.sforce.soap.partner.QueryResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
+ "com.sforce.soap.partner.fault.MalformedQueryFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
+ "com.sforce.soap.partner.fault.InvalidQueryLocatorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
+ true
+ ));
+ _operations[21] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("queryAll");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryString"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult"));
+ oper.setReturnClass(com.sforce.soap.partner.QueryResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
+ "com.sforce.soap.partner.fault.MalformedQueryFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
+ "com.sforce.soap.partner.fault.InvalidQueryLocatorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
+ true
+ ));
+ _operations[22] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("queryMore");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryLocator"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryLocator"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult"));
+ oper.setReturnClass(com.sforce.soap.partner.QueryResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
+ "com.sforce.soap.partner.fault.InvalidQueryLocatorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault"),
+ true
+ ));
+ _operations[23] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("search");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "searchString"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SearchResult"));
+ oper.setReturnClass(com.sforce.soap.partner.SearchResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ "com.sforce.soap.partner.fault.InvalidSObjectFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedSearchFault"),
+ "com.sforce.soap.partner.fault.MalformedSearchFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedSearchFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ "com.sforce.soap.partner.fault.InvalidFieldFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[24] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("getServerTimestamp");
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetServerTimestampResult"));
+ oper.setReturnClass(com.sforce.soap.partner.GetServerTimestampResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[25] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("setPassword");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SetPasswordResult"));
+ oper.setReturnClass(com.sforce.soap.partner.SetPasswordResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidNewPasswordFault"),
+ "com.sforce.soap.partner.fault.InvalidNewPasswordFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidNewPasswordFault"),
+ true
+ ));
+ _operations[26] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("resetPassword");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "userId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"), java.lang.String.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ResetPasswordResult"));
+ oper.setReturnClass(com.sforce.soap.partner.ResetPasswordResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ "com.sforce.soap.partner.fault.InvalidIdFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault"),
+ true
+ ));
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[27] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("getUserInfo");
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUserInfoResult"));
+ oper.setReturnClass(com.sforce.soap.partner.GetUserInfoResult.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[28] = oper;
+
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("sendEmail");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "messages"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Email"), com.sforce.soap.partner.Email[].class, false, false);
+ param.setOmittable(true);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailResult"));
+ oper.setReturnClass(com.sforce.soap.partner.SendEmailResult[].class);
+ oper.setReturnQName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result"));
+ oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ oper.addFault(new org.apache.axis.description.FaultDesc(
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ "com.sforce.soap.partner.fault.UnexpectedErrorFault",
+ new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault"),
+ true
+ ));
+ _operations[29] = oper;
+
+ }
+
+ public SoapBindingStub() throws org.apache.axis.AxisFault {
+ this(null);
+ }
+
+ public SoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+ this(service);
+ super.cachedEndpoint = endpointURL;
+ }
+
+ public SoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+ if (service == null) {
+ super.service = new org.apache.axis.client.Service();
+ } else {
+ super.service = service;
+ }
+ ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
+ java.lang.Class cls;
+ javax.xml.namespace.QName qName;
+ javax.xml.namespace.QName qName2;
+ java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
+ java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
+ java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
+ java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
+ java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
+ java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
+ java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
+ java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
+ java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
+ java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+ addBindings0();
+ addBindings1();
+ }
+
+ private void addBindings0() {
+ java.lang.Class cls;
+ javax.xml.namespace.QName qName;
+ javax.xml.namespace.QName qName2;
+ java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
+ java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
+ java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
+ java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
+ java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
+ java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
+ java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
+ java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
+ java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
+ java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "ApiFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.ApiFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "ApiQueryFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.ApiQueryFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "ExceptionCode");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.ExceptionCode.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "FaultCode");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.FaultCode.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidFieldFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.InvalidFieldFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidIdFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.InvalidIdFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidNewPasswordFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.InvalidNewPasswordFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidQueryLocatorFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.InvalidQueryLocatorFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "InvalidSObjectFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.InvalidSObjectFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "LoginFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.LoginFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedQueryFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.MalformedQueryFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "MalformedSearchFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.MalformedSearchFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:fault.partner.soap.sforce.com", "UnexpectedErrorFault");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.fault.UnexpectedErrorFault.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">AllowFieldTruncationHeader");
cachedSerQNames.add(qName);
cls = com.sforce.soap.partner.AllowFieldTruncationHeader.class;
@@ -968,675 +968,691 @@
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">AssignmentRuleHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.AssignmentRuleHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">CallOptions");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.CallOptions.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">convertLead");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LeadConvert[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvert");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "leadConverts");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">convertLeadResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LeadConvertResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvertResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">create");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.sobject.SObject[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">createResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SaveResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">DebuggingHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DebuggingHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">DebuggingInfo");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DebuggingInfo.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">delete");
- cachedSerQNames.add(qName);
- cls = java.lang.String[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">deleteResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DeleteResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeleteResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeGlobal");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeGlobal.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeGlobalResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeGlobalResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeLayout");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutType0.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeLayoutResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObject");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSObject.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObjectResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSObjectResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObjects");
- cachedSerQNames.add(qName);
- cls = java.lang.String[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObjectsResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSObjectResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSoftphoneLayout");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSoftphoneLayout.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSoftphoneLayoutResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSoftphoneLayoutResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeTabs");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeTabs.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeTabsResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeTabSetResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTabSetResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">EmailHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.EmailHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">emptyRecycleBin");
- cachedSerQNames.add(qName);
- cls = java.lang.String[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">emptyRecycleBinResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.EmptyRecycleBinResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmptyRecycleBinResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getDeleted");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetDeleted.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getDeletedResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetDeletedResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getServerTimestamp");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetServerTimestamp.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getServerTimestampResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetServerTimestampResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUpdated");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetUpdated.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUpdatedResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetUpdatedResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUserInfo");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetUserInfo.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUserInfoResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetUserInfoResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">invalidateSessions");
- cachedSerQNames.add(qName);
- cls = java.lang.String[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sessionIds");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">invalidateSessionsResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.InvalidateSessionsResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "InvalidateSessionsResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">LocaleOptions");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LocaleOptions.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">login");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Login.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">loginResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LoginResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">LoginScopeHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LoginScopeHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">logout");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Logout.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">logoutResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LogoutResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">merge");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.MergeRequest[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeRequest");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "request");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">mergeResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.MergeResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">MruHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.MruHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">process");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ProcessRequest[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessRequest");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "actions");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">processResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ProcessResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">query");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Query.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryAll");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryAll.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryAllResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryAllResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryMore");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryMore.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryMoreResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryMoreResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">QueryOptions");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryOptions.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">resetPassword");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ResetPassword.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">resetPasswordResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ResetPasswordResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">retrieve");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Retrieve.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">retrieveResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.sobject.SObject[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">search");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Search.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">searchResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SearchResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">sendEmail");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Email[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Email");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "messages");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">sendEmailResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SendEmailResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">SessionHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SessionHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">setPassword");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SetPassword.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">setPasswordResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SetPasswordResponse.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">undelete");
- cachedSerQNames.add(qName);
- cls = java.lang.String[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">undeleteResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.UndeleteResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UndeleteResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">update");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.sobject.SObject[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">updateResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SaveResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">upsert");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Upsert.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">upsertResponse");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.UpsertResult[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">UserTerritoryDeleteHeader");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.UserTerritoryDeleteHeader.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ChildRelationship");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ChildRelationship.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DebugLevel");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DebugLevel.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeletedRecord");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DeletedRecord.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeleteResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DeleteResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeGlobalResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayout");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayout.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutButton");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutButton.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutButtonSection");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutButton[].class;
- cachedSerClasses.add(cls);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutButton");
- qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "detailButtons");
- cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
- cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutComponent");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutComponent.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutItem");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutItem.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutRow");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutRow.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutSection");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeLayoutSection.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSObjectResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutCallType");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSoftphoneLayoutCallType.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- }
- private void addBindings1() {
- java.lang.Class cls;
- javax.xml.namespace.QName qName;
- javax.xml.namespace.QName qName2;
- java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
- java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
- java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
- java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
- java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
- java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
- java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
- java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
- java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
- java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">AssignmentRuleHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.AssignmentRuleHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">CallOptions");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.CallOptions.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">convertLead");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LeadConvert[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvert");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "leadConverts");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">convertLeadResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LeadConvertResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvertResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">create");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.sobject.SObject[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">createResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SaveResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">DebuggingHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DebuggingHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">DebuggingInfo");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DebuggingInfo.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">delete");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">deleteResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DeleteResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeleteResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeGlobal");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeGlobal.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeGlobalResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeGlobalResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeLayout");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutType0.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeLayoutResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObject");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSObject.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObjectResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSObjectResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObjects");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjectType");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSObjectsResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSObjectResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSoftphoneLayout");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSoftphoneLayout.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeSoftphoneLayoutResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSoftphoneLayoutResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeTabs");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeTabs.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">describeTabsResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeTabSetResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTabSetResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">EmailHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.EmailHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">emptyRecycleBin");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">emptyRecycleBinResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.EmptyRecycleBinResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmptyRecycleBinResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getDeleted");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetDeleted.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getDeletedResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetDeletedResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getServerTimestamp");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetServerTimestamp.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getServerTimestampResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetServerTimestampResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUpdated");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetUpdated.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUpdatedResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetUpdatedResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUserInfo");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetUserInfo.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">getUserInfoResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetUserInfoResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">invalidateSessions");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sessionIds");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">invalidateSessionsResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.InvalidateSessionsResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "InvalidateSessionsResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">LocaleOptions");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LocaleOptions.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">login");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Login.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">loginResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LoginResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">LoginScopeHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LoginScopeHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">logout");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Logout.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">logoutResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LogoutResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">merge");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.MergeRequest[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeRequest");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "request");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">mergeResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.MergeResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">MruHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.MruHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">PackageVersionHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.PackageVersion[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PackageVersion");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "packageVersions");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">process");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ProcessRequest[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessRequest");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "actions");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">processResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ProcessResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">query");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Query.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryAll");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryAll.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryAllResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryAllResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryMore");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryMore.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryMoreResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryMoreResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">QueryOptions");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryOptions.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">queryResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">resetPassword");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ResetPassword.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">resetPasswordResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ResetPasswordResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">retrieve");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Retrieve.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">retrieveResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.sobject.SObject[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">search");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Search.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">searchResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SearchResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">sendEmail");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Email[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Email");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "messages");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">sendEmailResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SendEmailResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">SessionHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SessionHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">setPassword");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SetPassword.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">setPasswordResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SetPasswordResponse.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">undelete");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ids");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">undeleteResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.UndeleteResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UndeleteResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">update");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.sobject.SObject[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sObjects");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">updateResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SaveResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">upsert");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Upsert.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">upsertResponse");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.UpsertResult[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "result");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", ">UserTerritoryDeleteHeader");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.UserTerritoryDeleteHeader.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ChildRelationship");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ChildRelationship.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DebugLevel");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DebugLevel.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeletedRecord");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DeletedRecord.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DeleteResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DeleteResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeGlobalResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeGlobalSObjectResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeGlobalSObjectResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayout");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayout.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutButton");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutButton.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutButtonSection");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutButton[].class;
+ cachedSerClasses.add(cls);
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutButton");
+ qName2 = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "detailButtons");
+ cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
+ cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutComponent");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutComponent.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutItem");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutItem.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutRow");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutRow.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeLayoutSection");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeLayoutSection.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ }
+ private void addBindings1() {
+ java.lang.Class cls;
+ javax.xml.namespace.QName qName;
+ javax.xml.namespace.QName qName2;
+ java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
+ java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
+ java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
+ java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
+ java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
+ java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
+ java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
+ java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
+ java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
+ java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSObjectResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSObjectResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutCallType");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSoftphoneLayoutCallType.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutInfoField");
cachedSerQNames.add(qName);
cls = com.sforce.soap.partner.DescribeSoftphoneLayoutInfoField.class;
@@ -1644,1809 +1660,1816 @@
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutItem");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSoftphoneLayoutItem.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSoftphoneLayoutResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutSection");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeSoftphoneLayoutSection.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTab");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeTab.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTabSetResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.DescribeTabSetResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Email");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Email.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailFileAttachment");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.EmailFileAttachment.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailPriority");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.EmailPriority.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmptyRecycleBinResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.EmptyRecycleBinResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Error");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Error.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Field");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.Field.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldType");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.FieldType.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetDeletedResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetDeletedResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetServerTimestampResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetServerTimestampResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUpdatedResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetUpdatedResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUserInfoResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.GetUserInfoResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
- cachedSerQNames.add(qName);
- cls = java.lang.String.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
- cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "InvalidateSessionsResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.InvalidateSessionsResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "layoutComponentType");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LayoutComponentType.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvert");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LeadConvert.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvertResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LeadConvertResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LoginResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.LoginResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MassEmailMessage");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.MassEmailMessage.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeRequest");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.MergeRequest.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.MergeResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PicklistEntry");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.PicklistEntry.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PicklistForRecordType");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.PicklistForRecordType.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessRequest");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ProcessRequest.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ProcessResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessSubmitRequest");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ProcessSubmitRequest.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessWorkitemRequest");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ProcessWorkitemRequest.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryLocator");
- cachedSerQNames.add(qName);
- cls = java.lang.String.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
- cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.QueryResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RecordTypeInfo");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.RecordTypeInfo.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RecordTypeMapping");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.RecordTypeMapping.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RelatedList");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.RelatedList.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RelatedListColumn");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.RelatedListColumn.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RelatedListSort");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.RelatedListSort.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ResetPasswordResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.ResetPasswordResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SaveResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SearchRecord");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SearchRecord.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SearchResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SearchResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailError");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SendEmailError.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SendEmailResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SetPasswordResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SetPasswordResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SingleEmailMessage");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SingleEmailMessage.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "soapType");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.SoapType.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "StatusCode");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.StatusCode.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(enumsf);
- cachedDeserFactories.add(enumdf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UndeleteResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.UndeleteResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.UpsertResult.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
- cachedSerQNames.add(qName);
- cls = com.sforce.soap.partner.sobject.SObject.class;
- cachedSerClasses.add(cls);
- cachedSerFactories.add(beansf);
- cachedDeserFactories.add(beandf);
-
- }
-
- protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
- try {
- org.apache.axis.client.Call _call = super._createCall();
- if (super.maintainSessionSet) {
- _call.setMaintainSession(super.maintainSession);
- }
- if (super.cachedUsername != null) {
- _call.setUsername(super.cachedUsername);
- }
- if (super.cachedPassword != null) {
- _call.setPassword(super.cachedPassword);
- }
- if (super.cachedEndpoint != null) {
- _call.setTargetEndpointAddress(super.cachedEndpoint);
- }
- if (super.cachedTimeout != null) {
- _call.setTimeout(super.cachedTimeout);
- }
- if (super.cachedPortName != null) {
- _call.setPortName(super.cachedPortName);
- }
- java.util.Enumeration keys = super.cachedProperties.keys();
- while (keys.hasMoreElements()) {
- java.lang.String key = (java.lang.String) keys.nextElement();
- _call.setProperty(key, super.cachedProperties.get(key));
- }
- // All the type mapping information is registered
- // when the first call is made.
- // The type mapping information is actually registered in
- // the TypeMappingRegistry of the service, which
- // is the reason why registration is only needed for the first call.
- synchronized (this) {
- if (firstCall()) {
- // must set encoding style before registering serializers
- _call.setEncodingStyle(null);
- for (int i = 0; i < cachedSerFactories.size(); ++i) {
- java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
- javax.xml.namespace.QName qName =
- (javax.xml.namespace.QName) cachedSerQNames.get(i);
- java.lang.Object x = cachedSerFactories.get(i);
- if (x instanceof Class) {
- java.lang.Class sf = (java.lang.Class)
- cachedSerFactories.get(i);
- java.lang.Class df = (java.lang.Class)
- cachedDeserFactories.get(i);
- _call.registerTypeMapping(cls, qName, sf, df, false);
- }
- else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
- org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
- cachedSerFactories.get(i);
- org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
- cachedDeserFactories.get(i);
- _call.registerTypeMapping(cls, qName, sf, df, false);
- }
- }
- }
- }
- return _call;
- }
- catch (java.lang.Throwable _t) {
- throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
- }
- }
-
- public com.sforce.soap.partner.LoginResult login(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.LoginFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[0]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "login"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {username, password});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.LoginResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.LoginResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.LoginResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.LoginFault) {
- throw (com.sforce.soap.partner.fault.LoginFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DescribeSObjectResult describeSObject(java.lang.String sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[1]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSObject"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DescribeSObjectResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DescribeSObjectResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeSObjectResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DescribeSObjectResult[] describeSObjects(java.lang.String[] sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[2]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSObjects"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DescribeSObjectResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DescribeSObjectResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeSObjectResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DescribeGlobalResult describeGlobal() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[3]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeGlobal"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DescribeGlobalResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DescribeGlobalResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeGlobalResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DescribeLayoutResult describeLayout(java.lang.String sObjectType, java.lang.String[] recordTypeIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[4]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeLayout"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType, recordTypeIds});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DescribeLayoutResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DescribeLayoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeLayoutResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DescribeSoftphoneLayoutResult describeSoftphoneLayout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[5]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSoftphoneLayout"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DescribeSoftphoneLayoutResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DescribeSoftphoneLayoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeSoftphoneLayoutResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DescribeTabSetResult[] describeTabs() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[6]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeTabs"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DescribeTabSetResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DescribeTabSetResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeTabSetResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.SaveResult[] create(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[7]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "create"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjects});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.SaveResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.SaveResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SaveResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.SaveResult[] update(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[8]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "update"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjects});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.SaveResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.SaveResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SaveResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.UpsertResult[] upsert(java.lang.String externalIDFieldName, com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[9]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "upsert"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {externalIDFieldName, sObjects});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.UpsertResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.UpsertResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.UpsertResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.MergeResult[] merge(com.sforce.soap.partner.MergeRequest[] request) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[10]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "merge"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {request});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.MergeResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.MergeResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.MergeResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.DeleteResult[] delete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[11]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "delete"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ids});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.DeleteResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.DeleteResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DeleteResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.UndeleteResult[] undelete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[12]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "undelete"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ids});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.UndeleteResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.UndeleteResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.UndeleteResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.EmptyRecycleBinResult[] emptyRecycleBin(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[13]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "emptyRecycleBin"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ids});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.EmptyRecycleBinResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.EmptyRecycleBinResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.EmptyRecycleBinResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.sobject.SObject[] retrieve(java.lang.String fieldList, java.lang.String sObjectType, java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[14]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "retrieve"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fieldList, sObjectType, ids});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.sobject.SObject[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.sobject.SObject[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.sobject.SObject[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedQueryFault) {
- throw (com.sforce.soap.partner.fault.MalformedQueryFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.ProcessResult[] process(com.sforce.soap.partner.ProcessRequest[] actions) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[15]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "process"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {actions});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.ProcessResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.ProcessResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.ProcessResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.LeadConvertResult[] convertLead(com.sforce.soap.partner.LeadConvert[] leadConverts) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[16]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "convertLead"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {leadConverts});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.LeadConvertResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.LeadConvertResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.LeadConvertResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public void logout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[17]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "logout"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- extractAttachments(_call);
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.InvalidateSessionsResult[] invalidateSessions(java.lang.String[] sessionIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[18]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "invalidateSessions"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sessionIds});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.InvalidateSessionsResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.InvalidateSessionsResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.InvalidateSessionsResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.GetDeletedResult getDeleted(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[19]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getDeleted"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType, startDate, endDate});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.GetDeletedResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.GetDeletedResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetDeletedResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.GetUpdatedResult getUpdated(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[20]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getUpdated"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType, startDate, endDate});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.GetUpdatedResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.GetUpdatedResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetUpdatedResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.QueryResult query(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[21]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "query"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {queryString});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.QueryResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.QueryResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidQueryLocatorFault) {
- throw (com.sforce.soap.partner.fault.InvalidQueryLocatorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedQueryFault) {
- throw (com.sforce.soap.partner.fault.MalformedQueryFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.QueryResult queryAll(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[22]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryAll"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {queryString});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.QueryResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.QueryResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidQueryLocatorFault) {
- throw (com.sforce.soap.partner.fault.InvalidQueryLocatorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedQueryFault) {
- throw (com.sforce.soap.partner.fault.MalformedQueryFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.QueryResult queryMore(java.lang.String queryLocator) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[23]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryMore"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {queryLocator});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.QueryResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.QueryResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidQueryLocatorFault) {
- throw (com.sforce.soap.partner.fault.InvalidQueryLocatorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.SearchResult search(java.lang.String searchString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.MalformedSearchFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidFieldFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[24]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "search"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {searchString});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.SearchResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.SearchResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SearchResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedSearchFault) {
- throw (com.sforce.soap.partner.fault.MalformedSearchFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
- throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
- throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.GetServerTimestampResult getServerTimestamp() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[25]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getServerTimestamp"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.GetServerTimestampResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.GetServerTimestampResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetServerTimestampResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.SetPasswordResult setPassword(java.lang.String userId, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidNewPasswordFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[26]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "setPassword"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {userId, password});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.SetPasswordResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.SetPasswordResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SetPasswordResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidNewPasswordFault) {
- throw (com.sforce.soap.partner.fault.InvalidNewPasswordFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.ResetPasswordResult resetPassword(java.lang.String userId) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidIdFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[27]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "resetPassword"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {userId});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.ResetPasswordResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.ResetPasswordResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.ResetPasswordResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
- throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.GetUserInfoResult getUserInfo() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[28]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getUserInfo"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.GetUserInfoResult) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.GetUserInfoResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetUserInfoResult.class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
- public com.sforce.soap.partner.SendEmailResult[] sendEmail(com.sforce.soap.partner.Email[] messages) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
- if (super.cachedEndpoint == null) {
- throw new org.apache.axis.NoEndPointException();
- }
- org.apache.axis.client.Call _call = createCall();
- _call.setOperation(_operations[29]);
- _call.setUseSOAPAction(true);
- _call.setSOAPActionURI("");
- _call.setEncodingStyle(null);
- _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
- _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
- _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
- _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sendEmail"));
-
- setRequestHeaders(_call);
- setAttachments(_call);
- try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {messages});
-
- if (_resp instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)_resp;
- }
- else {
- extractAttachments(_call);
- try {
- return (com.sforce.soap.partner.SendEmailResult[]) _resp;
- } catch (java.lang.Exception _exception) {
- return (com.sforce.soap.partner.SendEmailResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SendEmailResult[].class);
- }
- }
- } catch (org.apache.axis.AxisFault axisFaultException) {
- if (axisFaultException.detail != null) {
- if (axisFaultException.detail instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException) axisFaultException.detail;
- }
- if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
- throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
- }
- }
- throw axisFaultException;
-}
- }
-
-}
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutItem");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSoftphoneLayoutItem.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSoftphoneLayoutResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeSoftphoneLayoutSection");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeSoftphoneLayoutSection.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTab");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeTab.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "DescribeTabSetResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.DescribeTabSetResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Email");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Email.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailFileAttachment");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.EmailFileAttachment.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmailPriority");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.EmailPriority.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "EmptyRecycleBinResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.EmptyRecycleBinResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Error");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Error.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Field");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.Field.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "fieldType");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.FieldType.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetDeletedResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetDeletedResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetServerTimestampResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetServerTimestampResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUpdatedResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetUpdatedResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "GetUserInfoResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.GetUserInfoResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "InvalidateSessionsResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.InvalidateSessionsResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "layoutComponentType");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LayoutComponentType.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvert");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LeadConvert.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LeadConvertResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LeadConvertResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "LoginResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.LoginResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MassEmailMessage");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.MassEmailMessage.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeRequest");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.MergeRequest.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "MergeResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.MergeResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PackageVersion");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.PackageVersion.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PicklistEntry");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.PicklistEntry.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "PicklistForRecordType");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.PicklistForRecordType.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessRequest");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ProcessRequest.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ProcessResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessSubmitRequest");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ProcessSubmitRequest.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessWorkitemRequest");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ProcessWorkitemRequest.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryLocator");
+ cachedSerQNames.add(qName);
+ cls = java.lang.String.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleSerializerFactory.class, cls, qName));
+ cachedDeserFactories.add(org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(org.apache.axis.encoding.ser.SimpleDeserializerFactory.class, cls, qName));
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "QueryResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.QueryResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RecordTypeInfo");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.RecordTypeInfo.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RecordTypeMapping");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.RecordTypeMapping.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RelatedList");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.RelatedList.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RelatedListColumn");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.RelatedListColumn.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "RelatedListSort");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.RelatedListSort.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ResetPasswordResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.ResetPasswordResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SaveResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SaveResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SearchRecord");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SearchRecord.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SearchResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SearchResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailError");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SendEmailError.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SendEmailResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SendEmailResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SetPasswordResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SetPasswordResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "SingleEmailMessage");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SingleEmailMessage.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "soapType");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.SoapType.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "StatusCode");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.StatusCode.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(enumsf);
+ cachedDeserFactories.add(enumdf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UndeleteResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.UndeleteResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "UpsertResult");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.UpsertResult.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("urn:sobject.partner.soap.sforce.com", "sObject");
+ cachedSerQNames.add(qName);
+ cls = com.sforce.soap.partner.sobject.SObject.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ }
+
+ protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
+ try {
+ org.apache.axis.client.Call _call = super._createCall();
+ if (super.maintainSessionSet) {
+ _call.setMaintainSession(super.maintainSession);
+ }
+ if (super.cachedUsername != null) {
+ _call.setUsername(super.cachedUsername);
+ }
+ if (super.cachedPassword != null) {
+ _call.setPassword(super.cachedPassword);
+ }
+ if (super.cachedEndpoint != null) {
+ _call.setTargetEndpointAddress(super.cachedEndpoint);
+ }
+ if (super.cachedTimeout != null) {
+ _call.setTimeout(super.cachedTimeout);
+ }
+ if (super.cachedPortName != null) {
+ _call.setPortName(super.cachedPortName);
+ }
+ java.util.Enumeration keys = super.cachedProperties.keys();
+ while (keys.hasMoreElements()) {
+ java.lang.String key = (java.lang.String) keys.nextElement();
+ _call.setProperty(key, super.cachedProperties.get(key));
+ }
+ // All the type mapping information is registered
+ // when the first call is made.
+ // The type mapping information is actually registered in
+ // the TypeMappingRegistry of the service, which
+ // is the reason why registration is only needed for the first call.
+ synchronized (this) {
+ if (firstCall()) {
+ // must set encoding style before registering serializers
+ _call.setEncodingStyle(null);
+ for (int i = 0; i < cachedSerFactories.size(); ++i) {
+ java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
+ javax.xml.namespace.QName qName =
+ (javax.xml.namespace.QName) cachedSerQNames.get(i);
+ java.lang.Object x = cachedSerFactories.get(i);
+ if (x instanceof Class) {
+ java.lang.Class sf = (java.lang.Class)
+ cachedSerFactories.get(i);
+ java.lang.Class df = (java.lang.Class)
+ cachedDeserFactories.get(i);
+ _call.registerTypeMapping(cls, qName, sf, df, false);
+ }
+ else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
+ org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
+ cachedSerFactories.get(i);
+ org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
+ cachedDeserFactories.get(i);
+ _call.registerTypeMapping(cls, qName, sf, df, false);
+ }
+ }
+ }
+ }
+ return _call;
+ }
+ catch (java.lang.Throwable _t) {
+ throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
+ }
+ }
+
+ public com.sforce.soap.partner.LoginResult login(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.LoginFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[0]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "login"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {username, password});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.LoginResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.LoginResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.LoginResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.LoginFault) {
+ throw (com.sforce.soap.partner.fault.LoginFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DescribeSObjectResult describeSObject(java.lang.String sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[1]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSObject"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DescribeSObjectResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DescribeSObjectResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeSObjectResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DescribeSObjectResult[] describeSObjects(java.lang.String[] sObjectType) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[2]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSObjects"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DescribeSObjectResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DescribeSObjectResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeSObjectResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DescribeGlobalResult describeGlobal() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[3]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeGlobal"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DescribeGlobalResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DescribeGlobalResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeGlobalResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DescribeLayoutResult describeLayout(java.lang.String sObjectType, java.lang.String[] recordTypeIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[4]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeLayout"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType, recordTypeIds});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DescribeLayoutResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DescribeLayoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeLayoutResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DescribeSoftphoneLayoutResult describeSoftphoneLayout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[5]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeSoftphoneLayout"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DescribeSoftphoneLayoutResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DescribeSoftphoneLayoutResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeSoftphoneLayoutResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DescribeTabSetResult[] describeTabs() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[6]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "describeTabs"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DescribeTabSetResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DescribeTabSetResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DescribeTabSetResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.SaveResult[] create(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[7]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "create"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjects});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.SaveResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.SaveResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SaveResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.SaveResult[] update(com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[8]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "update"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjects});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.SaveResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.SaveResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SaveResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.UpsertResult[] upsert(java.lang.String externalIDFieldName, com.sforce.soap.partner.sobject.SObject[] sObjects) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[9]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "upsert"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {externalIDFieldName, sObjects});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.UpsertResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.UpsertResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.UpsertResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.MergeResult[] merge(com.sforce.soap.partner.MergeRequest[] request) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[10]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "merge"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {request});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.MergeResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.MergeResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.MergeResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.DeleteResult[] delete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[11]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "delete"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ids});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.DeleteResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.DeleteResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.DeleteResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.UndeleteResult[] undelete(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[12]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "undelete"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ids});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.UndeleteResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.UndeleteResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.UndeleteResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.EmptyRecycleBinResult[] emptyRecycleBin(java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[13]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "emptyRecycleBin"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {ids});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.EmptyRecycleBinResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.EmptyRecycleBinResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.EmptyRecycleBinResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.sobject.SObject[] retrieve(java.lang.String fieldList, java.lang.String sObjectType, java.lang.String[] ids) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[14]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "retrieve"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {fieldList, sObjectType, ids});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.sobject.SObject[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.sobject.SObject[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.sobject.SObject[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedQueryFault) {
+ throw (com.sforce.soap.partner.fault.MalformedQueryFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.ProcessResult[] process(com.sforce.soap.partner.ProcessRequest[] actions) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[15]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "process"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {actions});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.ProcessResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.ProcessResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.ProcessResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.LeadConvertResult[] convertLead(com.sforce.soap.partner.LeadConvert[] leadConverts) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[16]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "convertLead"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {leadConverts});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.LeadConvertResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.LeadConvertResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.LeadConvertResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public void logout() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[17]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "logout"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ extractAttachments(_call);
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.InvalidateSessionsResult[] invalidateSessions(java.lang.String[] sessionIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[18]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "invalidateSessions"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sessionIds});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.InvalidateSessionsResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.InvalidateSessionsResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.InvalidateSessionsResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.GetDeletedResult getDeleted(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[19]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getDeleted"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType, startDate, endDate});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.GetDeletedResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.GetDeletedResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetDeletedResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.GetUpdatedResult getUpdated(java.lang.String sObjectType, java.util.Calendar startDate, java.util.Calendar endDate) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[20]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getUpdated"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sObjectType, startDate, endDate});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.GetUpdatedResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.GetUpdatedResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetUpdatedResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.QueryResult query(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[21]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "query"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {queryString});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.QueryResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.QueryResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedQueryFault) {
+ throw (com.sforce.soap.partner.fault.MalformedQueryFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidQueryLocatorFault) {
+ throw (com.sforce.soap.partner.fault.InvalidQueryLocatorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.QueryResult queryAll(java.lang.String queryString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedQueryFault, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[22]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryAll"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {queryString});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.QueryResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.QueryResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedQueryFault) {
+ throw (com.sforce.soap.partner.fault.MalformedQueryFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidQueryLocatorFault) {
+ throw (com.sforce.soap.partner.fault.InvalidQueryLocatorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.QueryResult queryMore(java.lang.String queryLocator) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidQueryLocatorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[23]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "queryMore"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {queryLocator});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.QueryResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.QueryResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidQueryLocatorFault) {
+ throw (com.sforce.soap.partner.fault.InvalidQueryLocatorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.SearchResult search(java.lang.String searchString) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidSObjectFault, com.sforce.soap.partner.fault.MalformedSearchFault, com.sforce.soap.partner.fault.InvalidFieldFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[24]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "search"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {searchString});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.SearchResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.SearchResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SearchResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidSObjectFault) {
+ throw (com.sforce.soap.partner.fault.InvalidSObjectFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.MalformedSearchFault) {
+ throw (com.sforce.soap.partner.fault.MalformedSearchFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidFieldFault) {
+ throw (com.sforce.soap.partner.fault.InvalidFieldFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.GetServerTimestampResult getServerTimestamp() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[25]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getServerTimestamp"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.GetServerTimestampResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.GetServerTimestampResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetServerTimestampResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.SetPasswordResult setPassword(java.lang.String userId, java.lang.String password) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault, com.sforce.soap.partner.fault.InvalidNewPasswordFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[26]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "setPassword"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {userId, password});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.SetPasswordResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.SetPasswordResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SetPasswordResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidNewPasswordFault) {
+ throw (com.sforce.soap.partner.fault.InvalidNewPasswordFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.ResetPasswordResult resetPassword(java.lang.String userId) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.InvalidIdFault, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[27]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "resetPassword"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {userId});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.ResetPasswordResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.ResetPasswordResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.ResetPasswordResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.InvalidIdFault) {
+ throw (com.sforce.soap.partner.fault.InvalidIdFault) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.GetUserInfoResult getUserInfo() throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[28]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "getUserInfo"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.GetUserInfoResult) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.GetUserInfoResult) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.GetUserInfoResult.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+ public com.sforce.soap.partner.SendEmailResult[] sendEmail(com.sforce.soap.partner.Email[] messages) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[29]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "sendEmail"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {messages});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (com.sforce.soap.partner.SendEmailResult[]) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (com.sforce.soap.partner.SendEmailResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.sforce.soap.partner.SendEmailResult[].class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ if (axisFaultException.detail != null) {
+ if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException) axisFaultException.detail;
+ }
+ if (axisFaultException.detail instanceof com.sforce.soap.partner.fault.UnexpectedErrorFault) {
+ throw (com.sforce.soap.partner.fault.UnexpectedErrorFault) axisFaultException.detail;
+ }
+ }
+ throw axisFaultException;
+}
+ }
+
+}
Modified: trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/StatusCode.java
===================================================================
--- trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/StatusCode.java 2009-12-08 21:05:47 UTC (rev 1625)
+++ trunk/connectors/salesforce-api/src/main/java/com/sforce/soap/partner/StatusCode.java 2009-12-09 20:04:16 UTC (rev 1626)
@@ -1,358 +1,374 @@
-/**
- * StatusCode.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
-
-package com.sforce.soap.partner;
-
-public class StatusCode implements java.io.Serializable {
- private java.lang.String _value_;
- private static java.util.HashMap _table_ = new java.util.HashMap();
-
- // Constructor
- protected StatusCode(java.lang.String value) {
- _value_ = value;
- _table_.put(_value_,this);
- }
-
- public static final java.lang.String _ALREADY_IN_PROCESS = "ALREADY_IN_PROCESS";
- public static final java.lang.String _ASSIGNEE_TYPE_REQUIRED = "ASSIGNEE_TYPE_REQUIRED";
- public static final java.lang.String _BAD_CUSTOM_ENTITY_PARENT_DOMAIN = "BAD_CUSTOM_ENTITY_PARENT_DOMAIN";
- public static final java.lang.String _BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED = "BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED";
- public static final java.lang.String _CANNOT_CASCADE_PRODUCT_ACTIVE = "CANNOT_CASCADE_PRODUCT_ACTIVE";
- public static final java.lang.String _CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD = "CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD";
- public static final java.lang.String _CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE = "CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE";
- public static final java.lang.String _CANNOT_DEACTIVATE_DIVISION = "CANNOT_DEACTIVATE_DIVISION";
- public static final java.lang.String _CANNOT_DELETE_LAST_DATED_CONVERSION_RATE = "CANNOT_DELETE_LAST_DATED_CONVERSION_RATE";
- public static final java.lang.String _CANNOT_DELETE_MANAGED_OBJECT = "CANNOT_DELETE_MANAGED_OBJECT";
- public static final java.lang.String _CANNOT_DISABLE_LAST_ADMIN = "CANNOT_DISABLE_LAST_ADMIN";
- public static final java.lang.String _CANNOT_ENABLE_IP_RESTRICT_REQUESTS = "CANNOT_ENABLE_IP_RESTRICT_REQUESTS";
- public static final java.lang.String _CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY = "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY";
- public static final java.lang.String _CANNOT_MODIFY_MANAGED_OBJECT = "CANNOT_MODIFY_MANAGED_OBJECT";
- public static final java.lang.String _CANNOT_RENAME_APEX_REFERENCED_FIELD = "CANNOT_RENAME_APEX_REFERENCED_FIELD";
- public static final java.lang.String _CANNOT_RENAME_APEX_REFERENCED_OBJECT = "CANNOT_RENAME_APEX_REFERENCED_OBJECT";
- public static final java.lang.String _CANNOT_REPARENT_RECORD = "CANNOT_REPARENT_RECORD";
- public static final java.lang.String _CANNOT_UPDATE_CONVERTED_LEAD = "CANNOT_UPDATE_CONVERTED_LEAD";
- public static final java.lang.String _CANT_DISABLE_CORP_CURRENCY = "CANT_DISABLE_CORP_CURRENCY";
- public static final java.lang.String _CANT_UNSET_CORP_CURRENCY = "CANT_UNSET_CORP_CURRENCY";
- public static final java.lang.String _CHILD_SHARE_FAILS_PARENT = "CHILD_SHARE_FAILS_PARENT";
- public static final java.lang.String _CIRCULAR_DEPENDENCY = "CIRCULAR_DEPENDENCY";
- public static final java.lang.String _CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED = "CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED";
- public static final java.lang.String _CUSTOM_ENTITY_OR_FIELD_LIMIT = "CUSTOM_ENTITY_OR_FIELD_LIMIT";
- public static final java.lang.String _CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED = "CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED";
- public static final java.lang.String _CUSTOM_INDEX_EXISTS = "CUSTOM_INDEX_EXISTS";
- public static final java.lang.String _CUSTOM_LINK_LIMIT_EXCEEDED = "CUSTOM_LINK_LIMIT_EXCEEDED";
- public static final java.lang.String _CUSTOM_TAB_LIMIT_EXCEEDED = "CUSTOM_TAB_LIMIT_EXCEEDED";
- public static final java.lang.String _DELETE_FAILED = "DELETE_FAILED";
- public static final java.lang.String _DELETE_REQUIRED_ON_CASCADE = "DELETE_REQUIRED_ON_CASCADE";
- public static final java.lang.String _DEPENDENCY_EXISTS = "DEPENDENCY_EXISTS";
- public static final java.lang.String _DUPLICATE_CASE_SOLUTION = "DUPLICATE_CASE_SOLUTION";
- public static final java.lang.String _DUPLICATE_COMM_NICKNAME = "DUPLICATE_COMM_NICKNAME";
- public static final java.lang.String _DUPLICATE_CUSTOM_ENTITY_DEFINITION = "DUPLICATE_CUSTOM_ENTITY_DEFINITION";
- public static final java.lang.String _DUPLICATE_CUSTOM_TAB_MOTIF = "DUPLICATE_CUSTOM_TAB_MOTIF";
- public static final java.lang.String _DUPLICATE_DEVELOPER_NAME = "DUPLICATE_DEVELOPER_NAME";
- public static final java.lang.String _DUPLICATE_EXTERNAL_ID = "DUPLICATE_EXTERNAL_ID";
- public static final java.lang.String _DUPLICATE_MASTER_LABEL = "DUPLICATE_MASTER_LABEL";
- public static final java.lang.String _DUPLICATE_USERNAME = "DUPLICATE_USERNAME";
- public static final java.lang.String _DUPLICATE_VALUE = "DUPLICATE_VALUE";
- public static final java.lang.String _EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR = "EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR";
- public static final java.lang.String _EMPTY_SCONTROL_FILE_NAME = "EMPTY_SCONTROL_FILE_NAME";
- public static final java.lang.String _ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE = "ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE";
- public static final java.lang.String _ENTITY_IS_ARCHIVED = "ENTITY_IS_ARCHIVED";
- public static final java.lang.String _ENTITY_IS_DELETED = "ENTITY_IS_DELETED";
- public static final java.lang.String _ENTITY_IS_LOCKED = "ENTITY_IS_LOCKED";
- public static final java.lang.String _ERROR_IN_MAILER = "ERROR_IN_MAILER";
- public static final java.lang.String _FAILED_ACTIVATION = "FAILED_ACTIVATION";
- public static final java.lang.String _FIELD_CUSTOM_VALIDATION_EXCEPTION = "FIELD_CUSTOM_VALIDATION_EXCEPTION";
- public static final java.lang.String _FIELD_INTEGRITY_EXCEPTION = "FIELD_INTEGRITY_EXCEPTION";
- public static final java.lang.String _HTML_FILE_UPLOAD_NOT_ALLOWED = "HTML_FILE_UPLOAD_NOT_ALLOWED";
- public static final java.lang.String _IMAGE_TOO_LARGE = "IMAGE_TOO_LARGE";
- public static final java.lang.String _INACTIVE_OWNER_OR_USER = "INACTIVE_OWNER_OR_USER";
- public static final java.lang.String _INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY = "INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY";
- public static final java.lang.String _INSUFFICIENT_ACCESS_OR_READONLY = "INSUFFICIENT_ACCESS_OR_READONLY";
- public static final java.lang.String _INVALID_ACCESS_LEVEL = "INVALID_ACCESS_LEVEL";
- public static final java.lang.String _INVALID_ARGUMENT_TYPE = "INVALID_ARGUMENT_TYPE";
- public static final java.lang.String _INVALID_ASSIGNEE_TYPE = "INVALID_ASSIGNEE_TYPE";
- public static final java.lang.String _INVALID_ASSIGNMENT_RULE = "INVALID_ASSIGNMENT_RULE";
- public static final java.lang.String _INVALID_BATCH_OPERATION = "INVALID_BATCH_OPERATION";
- public static final java.lang.String _INVALID_CREDIT_CARD_INFO = "INVALID_CREDIT_CARD_INFO";
- public static final java.lang.String _INVALID_CROSS_REFERENCE_KEY = "INVALID_CROSS_REFERENCE_KEY";
- public static final java.lang.String _INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD = "INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD";
- public static final java.lang.String _INVALID_CURRENCY_CONV_RATE = "INVALID_CURRENCY_CONV_RATE";
- public static final java.lang.String _INVALID_CURRENCY_CORP_RATE = "INVALID_CURRENCY_CORP_RATE";
- public static final java.lang.String _INVALID_CURRENCY_ISO = "INVALID_CURRENCY_ISO";
- public static final java.lang.String _INVALID_EMAIL_ADDRESS = "INVALID_EMAIL_ADDRESS";
- public static final java.lang.String _INVALID_EMPTY_KEY_OWNER = "INVALID_EMPTY_KEY_OWNER";
- public static final java.lang.String _INVALID_FIELD = "INVALID_FIELD";
- public static final java.lang.String _INVALID_FIELD_FOR_INSERT_UPDATE = "INVALID_FIELD_FOR_INSERT_UPDATE";
- public static final java.lang.String _INVALID_FIELD_WHEN_USING_TEMPLATE = "INVALID_FIELD_WHEN_USING_TEMPLATE";
- public static final java.lang.String _INVALID_FILTER_ACTION = "INVALID_FILTER_ACTION";
- public static final java.lang.String _INVALID_GOOGLE_DOCS_URL = "INVALID_GOOGLE_DOCS_URL";
- public static final java.lang.String _INVALID_ID_FIELD = "INVALID_ID_FIELD";
- public static final java.lang.String _INVALID_INET_ADDRESS = "INVALID_INET_ADDRESS";
- public static final java.lang.String _INVALID_LINEITEM_CLONE_STATE = "INVALID_LINEITEM_CLONE_STATE";
- public static final java.lang.String _INVALID_MASTER_OR_TRANSLATED_SOLUTION = "INVALID_MASTER_OR_TRANSLATED_SOLUTION";
- public static final java.lang.String _INVALID_OPERATION = "INVALID_OPERATION";
- public static final java.lang.String _INVALID_OPERATOR = "INVALID_OPERATOR";
- public static final java.lang.String _INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST = "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST";
- public static final java.lang.String _INVALID_PARTNER_NETWORK_STATUS = "INVALID_PARTNER_NETWORK_STATUS";
- public static final java.lang.String _INVALID_PERSON_ACCOUNT_OPERATION = "INVALID_PERSON_ACCOUNT_OPERATION";
- public static final java.lang.String _INVALID_SAVE_AS_ACTIVITY_FLAG = "INVALID_SAVE_AS_ACTIVITY_FLAG";
- public static final java.lang.String _INVALID_SESSION_ID = "INVALID_SESSION_ID";
- public static final java.lang.String _INVALID_SETUP_OWNER = "INVALID_SETUP_OWNER";
- public static final java.lang.String _INVALID_STATUS = "INVALID_STATUS";
- public static final java.lang.String _INVALID_TYPE = "INVALID_TYPE";
- public static final java.lang.String _INVALID_TYPE_FOR_OPERATION = "INVALID_TYPE_FOR_OPERATION";
- public static final java.lang.String _INVALID_TYPE_ON_FIELD_IN_RECORD = "INVALID_TYPE_ON_FIELD_IN_RECORD";
- public static final java.lang.String _IP_RANGE_LIMIT_EXCEEDED = "IP_RANGE_LIMIT_EXCEEDED";
- public static final java.lang.String _LICENSE_LIMIT_EXCEEDED = "LICENSE_LIMIT_EXCEEDED";
- public static final java.lang.String _LIMIT_EXCEEDED = "LIMIT_EXCEEDED";
- public static final java.lang.String _MALFORMED_ID = "MALFORMED_ID";
- public static final java.lang.String _MANAGER_NOT_DEFINED = "MANAGER_NOT_DEFINED";
- public static final java.lang.String _MASSMAIL_RETRY_LIMIT_EXCEEDED = "MASSMAIL_RETRY_LIMIT_EXCEEDED";
- public static final java.lang.String _MASS_MAIL_LIMIT_EXCEEDED = "MASS_MAIL_LIMIT_EXCEEDED";
- public static final java.lang.String _MAXIMUM_CCEMAILS_EXCEEDED = "MAXIMUM_CCEMAILS_EXCEEDED";
- public static final java.lang.String _MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED = "MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED";
- public static final java.lang.String _MAXIMUM_HIERARCHY_LEVELS_REACHED = "MAXIMUM_HIERARCHY_LEVELS_REACHED";
- public static final java.lang.String _MAXIMUM_SIZE_OF_ATTACHMENT = "MAXIMUM_SIZE_OF_ATTACHMENT";
- public static final java.lang.String _MAXIMUM_SIZE_OF_DOCUMENT = "MAXIMUM_SIZE_OF_DOCUMENT";
- public static final java.lang.String _MAX_ACTIONS_PER_RULE_EXCEEDED = "MAX_ACTIONS_PER_RULE_EXCEEDED";
- public static final java.lang.String _MAX_ACTIVE_RULES_EXCEEDED = "MAX_ACTIVE_RULES_EXCEEDED";
- public static final java.lang.String _MAX_APPROVAL_STEPS_EXCEEDED = "MAX_APPROVAL_STEPS_EXCEEDED";
- public static final java.lang.String _MAX_FORMULAS_PER_RULE_EXCEEDED = "MAX_FORMULAS_PER_RULE_EXCEEDED";
- public static final java.lang.String _MAX_RULES_EXCEEDED = "MAX_RULES_EXCEEDED";
- public static final java.lang.String _MAX_RULE_ENTRIES_EXCEEDED = "MAX_RULE_ENTRIES_EXCEEDED";
- public static final java.lang.String _MAX_TASK_DESCRIPTION_EXCEEEDED = "MAX_TASK_DESCRIPTION_EXCEEEDED";
- public static final java.lang.String _MAX_TM_RULES_EXCEEDED = "MAX_TM_RULES_EXCEEDED";
- public static final java.lang.String _MAX_TM_RULE_ITEMS_EXCEEDED = "MAX_TM_RULE_ITEMS_EXCEEDED";
- public static final java.lang.String _MERGE_FAILED = "MERGE_FAILED";
- public static final java.lang.String _MISSING_ARGUMENT = "MISSING_ARGUMENT";
- public static final java.lang.String _MIXED_DML_OPERATION = "MIXED_DML_OPERATION";
- public static final java.lang.String _NONUNIQUE_SHIPPING_ADDRESS = "NONUNIQUE_SHIPPING_ADDRESS";
- public static final java.lang.String _NO_APPLICABLE_PROCESS = "NO_APPLICABLE_PROCESS";
- public static final java.lang.String _NO_ATTACHMENT_PERMISSION = "NO_ATTACHMENT_PERMISSION";
- public static final java.lang.String _NO_MASS_MAIL_PERMISSION = "NO_MASS_MAIL_PERMISSION";
- public static final java.lang.String _NUMBER_OUTSIDE_VALID_RANGE = "NUMBER_OUTSIDE_VALID_RANGE";
- public static final java.lang.String _NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED = "NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED";
- public static final java.lang.String _OPTED_OUT_OF_MASS_MAIL = "OPTED_OUT_OF_MASS_MAIL";
- public static final java.lang.String _PACKAGE_LICENSE_REQUIRED = "PACKAGE_LICENSE_REQUIRED";
- public static final java.lang.String _PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT = "PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT";
- public static final java.lang.String _PRIVATE_CONTACT_ON_ASSET = "PRIVATE_CONTACT_ON_ASSET";
- public static final java.lang.String _RECORD_IN_USE_BY_WORKFLOW = "RECORD_IN_USE_BY_WORKFLOW";
- public static final java.lang.String _REQUEST_RUNNING_TOO_LONG = "REQUEST_RUNNING_TOO_LONG";
- public static final java.lang.String _REQUIRED_FIELD_MISSING = "REQUIRED_FIELD_MISSING";
- public static final java.lang.String _SELF_REFERENCE_FROM_TRIGGER = "SELF_REFERENCE_FROM_TRIGGER";
- public static final java.lang.String _SHARE_NEEDED_FOR_CHILD_OWNER = "SHARE_NEEDED_FOR_CHILD_OWNER";
- public static final java.lang.String _STANDARD_PRICE_NOT_DEFINED = "STANDARD_PRICE_NOT_DEFINED";
- public static final java.lang.String _STORAGE_LIMIT_EXCEEDED = "STORAGE_LIMIT_EXCEEDED";
- public static final java.lang.String _STRING_TOO_LONG = "STRING_TOO_LONG";
- public static final java.lang.String _TABSET_LIMIT_EXCEEDED = "TABSET_LIMIT_EXCEEDED";
- public static final java.lang.String _TEMPLATE_NOT_ACTIVE = "TEMPLATE_NOT_ACTIVE";
- public static final java.lang.String _TERRITORY_REALIGN_IN_PROGRESS = "TERRITORY_REALIGN_IN_PROGRESS";
- public static final java.lang.String _TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET = "TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET";
- public static final java.lang.String _TOO_MANY_APEX_REQUESTS = "TOO_MANY_APEX_REQUESTS";
- public static final java.lang.String _TOO_MANY_ENUM_VALUE = "TOO_MANY_ENUM_VALUE";
- public static final java.lang.String _TRANSFER_REQUIRES_READ = "TRANSFER_REQUIRES_READ";
- public static final java.lang.String _UNABLE_TO_LOCK_ROW = "UNABLE_TO_LOCK_ROW";
- public static final java.lang.String _UNAVAILABLE_RECORDTYPE_EXCEPTION = "UNAVAILABLE_RECORDTYPE_EXCEPTION";
- public static final java.lang.String _UNDELETE_FAILED = "UNDELETE_FAILED";
- public static final java.lang.String _UNKNOWN_EXCEPTION = "UNKNOWN_EXCEPTION";
- public static final java.lang.String _UNSPECIFIED_EMAIL_ADDRESS = "UNSPECIFIED_EMAIL_ADDRESS";
- public static final java.lang.String _UNSUPPORTED_APEX_TRIGGER_OPERATON = "UNSUPPORTED_APEX_TRIGGER_OPERATON";
- public static final java.lang.String _WEBLINK_SIZE_LIMIT_EXCEEDED = "WEBLINK_SIZE_LIMIT_EXCEEDED";
- public static final java.lang.String _WRONG_CONTROLLER_TYPE = "WRONG_CONTROLLER_TYPE";
- public static final StatusCode ALREADY_IN_PROCESS = new StatusCode(_ALREADY_IN_PROCESS);
- public static final StatusCode ASSIGNEE_TYPE_REQUIRED = new StatusCode(_ASSIGNEE_TYPE_REQUIRED);
- public static final StatusCode BAD_CUSTOM_ENTITY_PARENT_DOMAIN = new StatusCode(_BAD_CUSTOM_ENTITY_PARENT_DOMAIN);
- public static final StatusCode BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED = new StatusCode(_BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED);
- public static final StatusCode CANNOT_CASCADE_PRODUCT_ACTIVE = new StatusCode(_CANNOT_CASCADE_PRODUCT_ACTIVE);
- public static final StatusCode CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD = new StatusCode(_CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD);
- public static final StatusCode CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE = new StatusCode(_CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE);
- public static final StatusCode CANNOT_DEACTIVATE_DIVISION = new StatusCode(_CANNOT_DEACTIVATE_DIVISION);
- public static final StatusCode CANNOT_DELETE_LAST_DATED_CONVERSION_RATE = new StatusCode(_CANNOT_DELETE_LAST_DATED_CONVERSION_RATE);
- public static final StatusCode CANNOT_DELETE_MANAGED_OBJECT = new StatusCode(_CANNOT_DELETE_MANAGED_OBJECT);
- public static final StatusCode CANNOT_DISABLE_LAST_ADMIN = new StatusCode(_CANNOT_DISABLE_LAST_ADMIN);
- public static final StatusCode CANNOT_ENABLE_IP_RESTRICT_REQUESTS = new StatusCode(_CANNOT_ENABLE_IP_RESTRICT_REQUESTS);
- public static final StatusCode CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY = new StatusCode(_CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY);
- public static final StatusCode CANNOT_MODIFY_MANAGED_OBJECT = new StatusCode(_CANNOT_MODIFY_MANAGED_OBJECT);
- public static final StatusCode CANNOT_RENAME_APEX_REFERENCED_FIELD = new StatusCode(_CANNOT_RENAME_APEX_REFERENCED_FIELD);
- public static final StatusCode CANNOT_RENAME_APEX_REFERENCED_OBJECT = new StatusCode(_CANNOT_RENAME_APEX_REFERENCED_OBJECT);
- public static final StatusCode CANNOT_REPARENT_RECORD = new StatusCode(_CANNOT_REPARENT_RECORD);
- public static final StatusCode CANNOT_UPDATE_CONVERTED_LEAD = new StatusCode(_CANNOT_UPDATE_CONVERTED_LEAD);
- public static final StatusCode CANT_DISABLE_CORP_CURRENCY = new StatusCode(_CANT_DISABLE_CORP_CURRENCY);
- public static final StatusCode CANT_UNSET_CORP_CURRENCY = new StatusCode(_CANT_UNSET_CORP_CURRENCY);
- public static final StatusCode CHILD_SHARE_FAILS_PARENT = new StatusCode(_CHILD_SHARE_FAILS_PARENT);
- public static final StatusCode CIRCULAR_DEPENDENCY = new StatusCode(_CIRCULAR_DEPENDENCY);
- public static final StatusCode CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED);
- public static final StatusCode CUSTOM_ENTITY_OR_FIELD_LIMIT = new StatusCode(_CUSTOM_ENTITY_OR_FIELD_LIMIT);
- public static final StatusCode CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED);
- public static final StatusCode CUSTOM_INDEX_EXISTS = new StatusCode(_CUSTOM_INDEX_EXISTS);
- public static final StatusCode CUSTOM_LINK_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_LINK_LIMIT_EXCEEDED);
- public static final StatusCode CUSTOM_TAB_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_TAB_LIMIT_EXCEEDED);
- public static final StatusCode DELETE_FAILED = new StatusCode(_DELETE_FAILED);
- public static final StatusCode DELETE_REQUIRED_ON_CASCADE = new StatusCode(_DELETE_REQUIRED_ON_CASCADE);
- public static final StatusCode DEPENDENCY_EXISTS = new StatusCode(_DEPENDENCY_EXISTS);
- public static final StatusCode DUPLICATE_CASE_SOLUTION = new StatusCode(_DUPLICATE_CASE_SOLUTION);
- public static final StatusCode DUPLICATE_COMM_NICKNAME = new StatusCode(_DUPLICATE_COMM_NICKNAME);
- public static final StatusCode DUPLICATE_CUSTOM_ENTITY_DEFINITION = new StatusCode(_DUPLICATE_CUSTOM_ENTITY_DEFINITION);
- public static final StatusCode DUPLICATE_CUSTOM_TAB_MOTIF = new StatusCode(_DUPLICATE_CUSTOM_TAB_MOTIF);
- public static final StatusCode DUPLICATE_DEVELOPER_NAME = new StatusCode(_DUPLICATE_DEVELOPER_NAME);
- public static final StatusCode DUPLICATE_EXTERNAL_ID = new StatusCode(_DUPLICATE_EXTERNAL_ID);
- public static final StatusCode DUPLICATE_MASTER_LABEL = new StatusCode(_DUPLICATE_MASTER_LABEL);
- public static final StatusCode DUPLICATE_USERNAME = new StatusCode(_DUPLICATE_USERNAME);
- public static final StatusCode DUPLICATE_VALUE = new StatusCode(_DUPLICATE_VALUE);
- public static final StatusCode EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR = new StatusCode(_EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR);
- public static final StatusCode EMPTY_SCONTROL_FILE_NAME = new StatusCode(_EMPTY_SCONTROL_FILE_NAME);
- public static final StatusCode ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE = new StatusCode(_ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE);
- public static final StatusCode ENTITY_IS_ARCHIVED = new StatusCode(_ENTITY_IS_ARCHIVED);
- public static final StatusCode ENTITY_IS_DELETED = new StatusCode(_ENTITY_IS_DELETED);
- public static final StatusCode ENTITY_IS_LOCKED = new StatusCode(_ENTITY_IS_LOCKED);
- public static final StatusCode ERROR_IN_MAILER = new StatusCode(_ERROR_IN_MAILER);
- public static final StatusCode FAILED_ACTIVATION = new StatusCode(_FAILED_ACTIVATION);
- public static final StatusCode FIELD_CUSTOM_VALIDATION_EXCEPTION = new StatusCode(_FIELD_CUSTOM_VALIDATION_EXCEPTION);
- public static final StatusCode FIELD_INTEGRITY_EXCEPTION = new StatusCode(_FIELD_INTEGRITY_EXCEPTION);
- public static final StatusCode HTML_FILE_UPLOAD_NOT_ALLOWED = new StatusCode(_HTML_FILE_UPLOAD_NOT_ALLOWED);
- public static final StatusCode IMAGE_TOO_LARGE = new StatusCode(_IMAGE_TOO_LARGE);
- public static final StatusCode INACTIVE_OWNER_OR_USER = new StatusCode(_INACTIVE_OWNER_OR_USER);
- public static final StatusCode INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY = new StatusCode(_INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY);
- public static final StatusCode INSUFFICIENT_ACCESS_OR_READONLY = new StatusCode(_INSUFFICIENT_ACCESS_OR_READONLY);
- public static final StatusCode INVALID_ACCESS_LEVEL = new StatusCode(_INVALID_ACCESS_LEVEL);
- public static final StatusCode INVALID_ARGUMENT_TYPE = new StatusCode(_INVALID_ARGUMENT_TYPE);
- public static final StatusCode INVALID_ASSIGNEE_TYPE = new StatusCode(_INVALID_ASSIGNEE_TYPE);
- public static final StatusCode INVALID_ASSIGNMENT_RULE = new StatusCode(_INVALID_ASSIGNMENT_RULE);
- public static final StatusCode INVALID_BATCH_OPERATION = new StatusCode(_INVALID_BATCH_OPERATION);
- public static final StatusCode INVALID_CREDIT_CARD_INFO = new StatusCode(_INVALID_CREDIT_CARD_INFO);
- public static final StatusCode INVALID_CROSS_REFERENCE_KEY = new StatusCode(_INVALID_CROSS_REFERENCE_KEY);
- public static final StatusCode INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD = new StatusCode(_INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD);
- public static final StatusCode INVALID_CURRENCY_CONV_RATE = new StatusCode(_INVALID_CURRENCY_CONV_RATE);
- public static final StatusCode INVALID_CURRENCY_CORP_RATE = new StatusCode(_INVALID_CURRENCY_CORP_RATE);
- public static final StatusCode INVALID_CURRENCY_ISO = new StatusCode(_INVALID_CURRENCY_ISO);
- public static final StatusCode INVALID_EMAIL_ADDRESS = new StatusCode(_INVALID_EMAIL_ADDRESS);
- public static final StatusCode INVALID_EMPTY_KEY_OWNER = new StatusCode(_INVALID_EMPTY_KEY_OWNER);
- public static final StatusCode INVALID_FIELD = new StatusCode(_INVALID_FIELD);
- public static final StatusCode INVALID_FIELD_FOR_INSERT_UPDATE = new StatusCode(_INVALID_FIELD_FOR_INSERT_UPDATE);
- public static final StatusCode INVALID_FIELD_WHEN_USING_TEMPLATE = new StatusCode(_INVALID_FIELD_WHEN_USING_TEMPLATE);
- public static final StatusCode INVALID_FILTER_ACTION = new StatusCode(_INVALID_FILTER_ACTION);
- public static final StatusCode INVALID_GOOGLE_DOCS_URL = new StatusCode(_INVALID_GOOGLE_DOCS_URL);
- public static final StatusCode INVALID_ID_FIELD = new StatusCode(_INVALID_ID_FIELD);
- public static final StatusCode INVALID_INET_ADDRESS = new StatusCode(_INVALID_INET_ADDRESS);
- public static final StatusCode INVALID_LINEITEM_CLONE_STATE = new StatusCode(_INVALID_LINEITEM_CLONE_STATE);
- public static final StatusCode INVALID_MASTER_OR_TRANSLATED_SOLUTION = new StatusCode(_INVALID_MASTER_OR_TRANSLATED_SOLUTION);
- public static final StatusCode INVALID_OPERATION = new StatusCode(_INVALID_OPERATION);
- public static final StatusCode INVALID_OPERATOR = new StatusCode(_INVALID_OPERATOR);
- public static final StatusCode INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST = new StatusCode(_INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST);
- public static final StatusCode INVALID_PARTNER_NETWORK_STATUS = new StatusCode(_INVALID_PARTNER_NETWORK_STATUS);
- public static final StatusCode INVALID_PERSON_ACCOUNT_OPERATION = new StatusCode(_INVALID_PERSON_ACCOUNT_OPERATION);
- public static final StatusCode INVALID_SAVE_AS_ACTIVITY_FLAG = new StatusCode(_INVALID_SAVE_AS_ACTIVITY_FLAG);
- public static final StatusCode INVALID_SESSION_ID = new StatusCode(_INVALID_SESSION_ID);
- public static final StatusCode INVALID_SETUP_OWNER = new StatusCode(_INVALID_SETUP_OWNER);
- public static final StatusCode INVALID_STATUS = new StatusCode(_INVALID_STATUS);
- public static final StatusCode INVALID_TYPE = new StatusCode(_INVALID_TYPE);
- public static final StatusCode INVALID_TYPE_FOR_OPERATION = new StatusCode(_INVALID_TYPE_FOR_OPERATION);
- public static final StatusCode INVALID_TYPE_ON_FIELD_IN_RECORD = new StatusCode(_INVALID_TYPE_ON_FIELD_IN_RECORD);
- public static final StatusCode IP_RANGE_LIMIT_EXCEEDED = new StatusCode(_IP_RANGE_LIMIT_EXCEEDED);
- public static final StatusCode LICENSE_LIMIT_EXCEEDED = new StatusCode(_LICENSE_LIMIT_EXCEEDED);
- public static final StatusCode LIMIT_EXCEEDED = new StatusCode(_LIMIT_EXCEEDED);
- public static final StatusCode MALFORMED_ID = new StatusCode(_MALFORMED_ID);
- public static final StatusCode MANAGER_NOT_DEFINED = new StatusCode(_MANAGER_NOT_DEFINED);
- public static final StatusCode MASSMAIL_RETRY_LIMIT_EXCEEDED = new StatusCode(_MASSMAIL_RETRY_LIMIT_EXCEEDED);
- public static final StatusCode MASS_MAIL_LIMIT_EXCEEDED = new StatusCode(_MASS_MAIL_LIMIT_EXCEEDED);
- public static final StatusCode MAXIMUM_CCEMAILS_EXCEEDED = new StatusCode(_MAXIMUM_CCEMAILS_EXCEEDED);
- public static final StatusCode MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED = new StatusCode(_MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED);
- public static final StatusCode MAXIMUM_HIERARCHY_LEVELS_REACHED = new StatusCode(_MAXIMUM_HIERARCHY_LEVELS_REACHED);
- public static final StatusCode MAXIMUM_SIZE_OF_ATTACHMENT = new StatusCode(_MAXIMUM_SIZE_OF_ATTACHMENT);
- public static final StatusCode MAXIMUM_SIZE_OF_DOCUMENT = new StatusCode(_MAXIMUM_SIZE_OF_DOCUMENT);
- public static final StatusCode MAX_ACTIONS_PER_RULE_EXCEEDED = new StatusCode(_MAX_ACTIONS_PER_RULE_EXCEEDED);
- public static final StatusCode MAX_ACTIVE_RULES_EXCEEDED = new StatusCode(_MAX_ACTIVE_RULES_EXCEEDED);
- public static final StatusCode MAX_APPROVAL_STEPS_EXCEEDED = new StatusCode(_MAX_APPROVAL_STEPS_EXCEEDED);
- public static final StatusCode MAX_FORMULAS_PER_RULE_EXCEEDED = new StatusCode(_MAX_FORMULAS_PER_RULE_EXCEEDED);
- public static final StatusCode MAX_RULES_EXCEEDED = new StatusCode(_MAX_RULES_EXCEEDED);
- public static final StatusCode MAX_RULE_ENTRIES_EXCEEDED = new StatusCode(_MAX_RULE_ENTRIES_EXCEEDED);
- public static final StatusCode MAX_TASK_DESCRIPTION_EXCEEEDED = new StatusCode(_MAX_TASK_DESCRIPTION_EXCEEEDED);
- public static final StatusCode MAX_TM_RULES_EXCEEDED = new StatusCode(_MAX_TM_RULES_EXCEEDED);
- public static final StatusCode MAX_TM_RULE_ITEMS_EXCEEDED = new StatusCode(_MAX_TM_RULE_ITEMS_EXCEEDED);
- public static final StatusCode MERGE_FAILED = new StatusCode(_MERGE_FAILED);
- public static final StatusCode MISSING_ARGUMENT = new StatusCode(_MISSING_ARGUMENT);
- public static final StatusCode MIXED_DML_OPERATION = new StatusCode(_MIXED_DML_OPERATION);
- public static final StatusCode NONUNIQUE_SHIPPING_ADDRESS = new StatusCode(_NONUNIQUE_SHIPPING_ADDRESS);
- public static final StatusCode NO_APPLICABLE_PROCESS = new StatusCode(_NO_APPLICABLE_PROCESS);
- public static final StatusCode NO_ATTACHMENT_PERMISSION = new StatusCode(_NO_ATTACHMENT_PERMISSION);
- public static final StatusCode NO_MASS_MAIL_PERMISSION = new StatusCode(_NO_MASS_MAIL_PERMISSION);
- public static final StatusCode NUMBER_OUTSIDE_VALID_RANGE = new StatusCode(_NUMBER_OUTSIDE_VALID_RANGE);
- public static final StatusCode NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED = new StatusCode(_NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED);
- public static final StatusCode OPTED_OUT_OF_MASS_MAIL = new StatusCode(_OPTED_OUT_OF_MASS_MAIL);
- public static final StatusCode PACKAGE_LICENSE_REQUIRED = new StatusCode(_PACKAGE_LICENSE_REQUIRED);
- public static final StatusCode PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT = new StatusCode(_PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT);
- public static final StatusCode PRIVATE_CONTACT_ON_ASSET = new StatusCode(_PRIVATE_CONTACT_ON_ASSET);
- public static final StatusCode RECORD_IN_USE_BY_WORKFLOW = new StatusCode(_RECORD_IN_USE_BY_WORKFLOW);
- public static final StatusCode REQUEST_RUNNING_TOO_LONG = new StatusCode(_REQUEST_RUNNING_TOO_LONG);
- public static final StatusCode REQUIRED_FIELD_MISSING = new StatusCode(_REQUIRED_FIELD_MISSING);
- public static final StatusCode SELF_REFERENCE_FROM_TRIGGER = new StatusCode(_SELF_REFERENCE_FROM_TRIGGER);
- public static final StatusCode SHARE_NEEDED_FOR_CHILD_OWNER = new StatusCode(_SHARE_NEEDED_FOR_CHILD_OWNER);
- public static final StatusCode STANDARD_PRICE_NOT_DEFINED = new StatusCode(_STANDARD_PRICE_NOT_DEFINED);
- public static final StatusCode STORAGE_LIMIT_EXCEEDED = new StatusCode(_STORAGE_LIMIT_EXCEEDED);
- public static final StatusCode STRING_TOO_LONG = new StatusCode(_STRING_TOO_LONG);
- public static final StatusCode TABSET_LIMIT_EXCEEDED = new StatusCode(_TABSET_LIMIT_EXCEEDED);
- public static final StatusCode TEMPLATE_NOT_ACTIVE = new StatusCode(_TEMPLATE_NOT_ACTIVE);
- public static final StatusCode TERRITORY_REALIGN_IN_PROGRESS = new StatusCode(_TERRITORY_REALIGN_IN_PROGRESS);
- public static final StatusCode TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET = new StatusCode(_TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET);
- public static final StatusCode TOO_MANY_APEX_REQUESTS = new StatusCode(_TOO_MANY_APEX_REQUESTS);
- public static final StatusCode TOO_MANY_ENUM_VALUE = new StatusCode(_TOO_MANY_ENUM_VALUE);
- public static final StatusCode TRANSFER_REQUIRES_READ = new StatusCode(_TRANSFER_REQUIRES_READ);
- public static final StatusCode UNABLE_TO_LOCK_ROW = new StatusCode(_UNABLE_TO_LOCK_ROW);
- public static final StatusCode UNAVAILABLE_RECORDTYPE_EXCEPTION = new StatusCode(_UNAVAILABLE_RECORDTYPE_EXCEPTION);
- public static final StatusCode UNDELETE_FAILED = new StatusCode(_UNDELETE_FAILED);
- public static final StatusCode UNKNOWN_EXCEPTION = new StatusCode(_UNKNOWN_EXCEPTION);
- public static final StatusCode UNSPECIFIED_EMAIL_ADDRESS = new StatusCode(_UNSPECIFIED_EMAIL_ADDRESS);
- public static final StatusCode UNSUPPORTED_APEX_TRIGGER_OPERATON = new StatusCode(_UNSUPPORTED_APEX_TRIGGER_OPERATON);
- public static final StatusCode WEBLINK_SIZE_LIMIT_EXCEEDED = new StatusCode(_WEBLINK_SIZE_LIMIT_EXCEEDED);
- public static final StatusCode WRONG_CONTROLLER_TYPE = new StatusCode(_WRONG_CONTROLLER_TYPE);
- public java.lang.String getValue() { return _value_;}
- public static StatusCode fromValue(java.lang.String value)
- throws java.lang.IllegalArgumentException {
- StatusCode enumeration = (StatusCode)
- _table_.get(value);
- if (enumeration==null) throw new java.lang.IllegalArgumentException();
- return enumeration;
- }
- public static StatusCode fromString(java.lang.String value)
- throws java.lang.IllegalArgumentException {
- return fromValue(value);
- }
- public boolean equals(java.lang.Object obj) {return (obj == this);}
- public int hashCode() { return toString().hashCode();}
- public java.lang.String toString() { return _value_;}
- public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
- public static org.apache.axis.encoding.Serializer getSerializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.EnumSerializer(
- _javaType, _xmlType);
- }
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- java.lang.String mechType,
- java.lang.Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.EnumDeserializer(
- _javaType, _xmlType);
- }
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(StatusCode.class);
-
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "StatusCode"));
- }
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
-
-}
+/**
+ * StatusCode.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.sforce.soap.partner;
+
+public class StatusCode implements java.io.Serializable {
+ private java.lang.String _value_;
+ private static java.util.HashMap _table_ = new java.util.HashMap();
+
+ // Constructor
+ protected StatusCode(java.lang.String value) {
+ _value_ = value;
+ _table_.put(_value_,this);
+ }
+
+ public static final java.lang.String _ALREADY_IN_PROCESS = "ALREADY_IN_PROCESS";
+ public static final java.lang.String _ASSIGNEE_TYPE_REQUIRED = "ASSIGNEE_TYPE_REQUIRED";
+ public static final java.lang.String _BAD_CUSTOM_ENTITY_PARENT_DOMAIN = "BAD_CUSTOM_ENTITY_PARENT_DOMAIN";
+ public static final java.lang.String _BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED = "BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED";
+ public static final java.lang.String _CANNOT_CASCADE_PRODUCT_ACTIVE = "CANNOT_CASCADE_PRODUCT_ACTIVE";
+ public static final java.lang.String _CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD = "CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD";
+ public static final java.lang.String _CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE = "CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE";
+ public static final java.lang.String _CANNOT_DEACTIVATE_DIVISION = "CANNOT_DEACTIVATE_DIVISION";
+ public static final java.lang.String _CANNOT_DELETE_LAST_DATED_CONVERSION_RATE = "CANNOT_DELETE_LAST_DATED_CONVERSION_RATE";
+ public static final java.lang.String _CANNOT_DELETE_MANAGED_OBJECT = "CANNOT_DELETE_MANAGED_OBJECT";
+ public static final java.lang.String _CANNOT_DISABLE_LAST_ADMIN = "CANNOT_DISABLE_LAST_ADMIN";
+ public static final java.lang.String _CANNOT_ENABLE_IP_RESTRICT_REQUESTS = "CANNOT_ENABLE_IP_RESTRICT_REQUESTS";
+ public static final java.lang.String _CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY = "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY";
+ public static final java.lang.String _CANNOT_MODIFY_MANAGED_OBJECT = "CANNOT_MODIFY_MANAGED_OBJECT";
+ public static final java.lang.String _CANNOT_RENAME_APEX_REFERENCED_FIELD = "CANNOT_RENAME_APEX_REFERENCED_FIELD";
+ public static final java.lang.String _CANNOT_RENAME_APEX_REFERENCED_OBJECT = "CANNOT_RENAME_APEX_REFERENCED_OBJECT";
+ public static final java.lang.String _CANNOT_REPARENT_RECORD = "CANNOT_REPARENT_RECORD";
+ public static final java.lang.String _CANNOT_UPDATE_CONVERTED_LEAD = "CANNOT_UPDATE_CONVERTED_LEAD";
+ public static final java.lang.String _CANT_DISABLE_CORP_CURRENCY = "CANT_DISABLE_CORP_CURRENCY";
+ public static final java.lang.String _CANT_UNSET_CORP_CURRENCY = "CANT_UNSET_CORP_CURRENCY";
+ public static final java.lang.String _CHILD_SHARE_FAILS_PARENT = "CHILD_SHARE_FAILS_PARENT";
+ public static final java.lang.String _CIRCULAR_DEPENDENCY = "CIRCULAR_DEPENDENCY";
+ public static final java.lang.String _COMMUNITY_NOT_ACCESSIBLE = "COMMUNITY_NOT_ACCESSIBLE";
+ public static final java.lang.String _CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED = "CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED";
+ public static final java.lang.String _CUSTOM_ENTITY_OR_FIELD_LIMIT = "CUSTOM_ENTITY_OR_FIELD_LIMIT";
+ public static final java.lang.String _CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED = "CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED";
+ public static final java.lang.String _CUSTOM_INDEX_EXISTS = "CUSTOM_INDEX_EXISTS";
+ public static final java.lang.String _CUSTOM_LINK_LIMIT_EXCEEDED = "CUSTOM_LINK_LIMIT_EXCEEDED";
+ public static final java.lang.String _CUSTOM_TAB_LIMIT_EXCEEDED = "CUSTOM_TAB_LIMIT_EXCEEDED";
+ public static final java.lang.String _DELETE_FAILED = "DELETE_FAILED";
+ public static final java.lang.String _DELETE_REQUIRED_ON_CASCADE = "DELETE_REQUIRED_ON_CASCADE";
+ public static final java.lang.String _DEPENDENCY_EXISTS = "DEPENDENCY_EXISTS";
+ public static final java.lang.String _DUPLICATE_CASE_SOLUTION = "DUPLICATE_CASE_SOLUTION";
+ public static final java.lang.String _DUPLICATE_COMM_NICKNAME = "DUPLICATE_COMM_NICKNAME";
+ public static final java.lang.String _DUPLICATE_CUSTOM_ENTITY_DEFINITION = "DUPLICATE_CUSTOM_ENTITY_DEFINITION";
+ public static final java.lang.String _DUPLICATE_CUSTOM_TAB_MOTIF = "DUPLICATE_CUSTOM_TAB_MOTIF";
+ public static final java.lang.String _DUPLICATE_DEVELOPER_NAME = "DUPLICATE_DEVELOPER_NAME";
+ public static final java.lang.String _DUPLICATE_EXTERNAL_ID = "DUPLICATE_EXTERNAL_ID";
+ public static final java.lang.String _DUPLICATE_MASTER_LABEL = "DUPLICATE_MASTER_LABEL";
+ public static final java.lang.String _DUPLICATE_SENDER_DISPLAY_NAME = "DUPLICATE_SENDER_DISPLAY_NAME";
+ public static final java.lang.String _DUPLICATE_USERNAME = "DUPLICATE_USERNAME";
+ public static final java.lang.String _DUPLICATE_VALUE = "DUPLICATE_VALUE";
+ public static final java.lang.String _EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR = "EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR";
+ public static final java.lang.String _EMPTY_SCONTROL_FILE_NAME = "EMPTY_SCONTROL_FILE_NAME";
+ public static final java.lang.String _ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE = "ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE";
+ public static final java.lang.String _ENTITY_IS_ARCHIVED = "ENTITY_IS_ARCHIVED";
+ public static final java.lang.String _ENTITY_IS_DELETED = "ENTITY_IS_DELETED";
+ public static final java.lang.String _ENTITY_IS_LOCKED = "ENTITY_IS_LOCKED";
+ public static final java.lang.String _ERROR_IN_MAILER = "ERROR_IN_MAILER";
+ public static final java.lang.String _FAILED_ACTIVATION = "FAILED_ACTIVATION";
+ public static final java.lang.String _FIELD_CUSTOM_VALIDATION_EXCEPTION = "FIELD_CUSTOM_VALIDATION_EXCEPTION";
+ public static final java.lang.String _FIELD_INTEGRITY_EXCEPTION = "FIELD_INTEGRITY_EXCEPTION";
+ public static final java.lang.String _FILTERED_LOOKUP_LIMIT_EXCEEDED = "FILTERED_LOOKUP_LIMIT_EXCEEDED";
+ public static final java.lang.String _HTML_FILE_UPLOAD_NOT_ALLOWED = "HTML_FILE_UPLOAD_NOT_ALLOWED";
+ public static final java.lang.String _IMAGE_TOO_LARGE = "IMAGE_TOO_LARGE";
+ public static final java.lang.String _INACTIVE_OWNER_OR_USER = "INACTIVE_OWNER_OR_USER";
+ public static final java.lang.String _INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY = "INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY";
+ public static final java.lang.String _INSUFFICIENT_ACCESS_OR_READONLY = "INSUFFICIENT_ACCESS_OR_READONLY";
+ public static final java.lang.String _INVALID_ACCESS_LEVEL = "INVALID_ACCESS_LEVEL";
+ public static final java.lang.String _INVALID_ARGUMENT_TYPE = "INVALID_ARGUMENT_TYPE";
+ public static final java.lang.String _INVALID_ASSIGNEE_TYPE = "INVALID_ASSIGNEE_TYPE";
+ public static final java.lang.String _INVALID_ASSIGNMENT_RULE = "INVALID_ASSIGNMENT_RULE";
+ public static final java.lang.String _INVALID_BATCH_OPERATION = "INVALID_BATCH_OPERATION";
+ public static final java.lang.String _INVALID_CONTENT_TYPE = "INVALID_CONTENT_TYPE";
+ public static final java.lang.String _INVALID_CREDIT_CARD_INFO = "INVALID_CREDIT_CARD_INFO";
+ public static final java.lang.String _INVALID_CROSS_REFERENCE_KEY = "INVALID_CROSS_REFERENCE_KEY";
+ public static final java.lang.String _INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD = "INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD";
+ public static final java.lang.String _INVALID_CURRENCY_CONV_RATE = "INVALID_CURRENCY_CONV_RATE";
+ public static final java.lang.String _INVALID_CURRENCY_CORP_RATE = "INVALID_CURRENCY_CORP_RATE";
+ public static final java.lang.String _INVALID_CURRENCY_ISO = "INVALID_CURRENCY_ISO";
+ public static final java.lang.String _INVALID_EMAIL_ADDRESS = "INVALID_EMAIL_ADDRESS";
+ public static final java.lang.String _INVALID_EMPTY_KEY_OWNER = "INVALID_EMPTY_KEY_OWNER";
+ public static final java.lang.String _INVALID_FIELD = "INVALID_FIELD";
+ public static final java.lang.String _INVALID_FIELD_FOR_INSERT_UPDATE = "INVALID_FIELD_FOR_INSERT_UPDATE";
+ public static final java.lang.String _INVALID_FIELD_WHEN_USING_TEMPLATE = "INVALID_FIELD_WHEN_USING_TEMPLATE";
+ public static final java.lang.String _INVALID_FILTER_ACTION = "INVALID_FILTER_ACTION";
+ public static final java.lang.String _INVALID_GOOGLE_DOCS_URL = "INVALID_GOOGLE_DOCS_URL";
+ public static final java.lang.String _INVALID_ID_FIELD = "INVALID_ID_FIELD";
+ public static final java.lang.String _INVALID_INET_ADDRESS = "INVALID_INET_ADDRESS";
+ public static final java.lang.String _INVALID_LINEITEM_CLONE_STATE = "INVALID_LINEITEM_CLONE_STATE";
+ public static final java.lang.String _INVALID_MASTER_OR_TRANSLATED_SOLUTION = "INVALID_MASTER_OR_TRANSLATED_SOLUTION";
+ public static final java.lang.String _INVALID_MESSAGE_ID_REFERENCE = "INVALID_MESSAGE_ID_REFERENCE";
+ public static final java.lang.String _INVALID_OPERATION = "INVALID_OPERATION";
+ public static final java.lang.String _INVALID_OPERATOR = "INVALID_OPERATOR";
+ public static final java.lang.String _INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST = "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST";
+ public static final java.lang.String _INVALID_PARTNER_NETWORK_STATUS = "INVALID_PARTNER_NETWORK_STATUS";
+ public static final java.lang.String _INVALID_PERSON_ACCOUNT_OPERATION = "INVALID_PERSON_ACCOUNT_OPERATION";
+ public static final java.lang.String _INVALID_SAVE_AS_ACTIVITY_FLAG = "INVALID_SAVE_AS_ACTIVITY_FLAG";
+ public static final java.lang.String _INVALID_SESSION_ID = "INVALID_SESSION_ID";
+ public static final java.lang.String _INVALID_SETUP_OWNER = "INVALID_SETUP_OWNER";
+ public static final java.lang.String _INVALID_STATUS = "INVALID_STATUS";
+ public static final java.lang.String _INVALID_TYPE = "INVALID_TYPE";
+ public static final java.lang.String _INVALID_TYPE_FOR_OPERATION = "INVALID_TYPE_FOR_OPERATION";
+ public static final java.lang.String _INVALID_TYPE_ON_FIELD_IN_RECORD = "INVALID_TYPE_ON_FIELD_IN_RECORD";
+ public static final java.lang.String _IP_RANGE_LIMIT_EXCEEDED = "IP_RANGE_LIMIT_EXCEEDED";
+ public static final java.lang.String _LICENSE_LIMIT_EXCEEDED = "LICENSE_LIMIT_EXCEEDED";
+ public static final java.lang.String _LIGHT_PORTAL_USER_EXCEPTION = "LIGHT_PORTAL_USER_EXCEPTION";
+ public static final java.lang.String _LIMIT_EXCEEDED = "LIMIT_EXCEEDED";
+ public static final java.lang.String _MALFORMED_ID = "MALFORMED_ID";
+ public static final java.lang.String _MANAGER_NOT_DEFINED = "MANAGER_NOT_DEFINED";
+ public static final java.lang.String _MASSMAIL_RETRY_LIMIT_EXCEEDED = "MASSMAIL_RETRY_LIMIT_EXCEEDED";
+ public static final java.lang.String _MASS_MAIL_LIMIT_EXCEEDED = "MASS_MAIL_LIMIT_EXCEEDED";
+ public static final java.lang.String _MAXIMUM_CCEMAILS_EXCEEDED = "MAXIMUM_CCEMAILS_EXCEEDED";
+ public static final java.lang.String _MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED = "MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED";
+ public static final java.lang.String _MAXIMUM_HIERARCHY_LEVELS_REACHED = "MAXIMUM_HIERARCHY_LEVELS_REACHED";
+ public static final java.lang.String _MAXIMUM_SIZE_OF_ATTACHMENT = "MAXIMUM_SIZE_OF_ATTACHMENT";
+ public static final java.lang.String _MAXIMUM_SIZE_OF_DOCUMENT = "MAXIMUM_SIZE_OF_DOCUMENT";
+ public static final java.lang.String _MAX_ACTIONS_PER_RULE_EXCEEDED = "MAX_ACTIONS_PER_RULE_EXCEEDED";
+ public static final java.lang.String _MAX_ACTIVE_RULES_EXCEEDED = "MAX_ACTIVE_RULES_EXCEEDED";
+ public static final java.lang.String _MAX_APPROVAL_STEPS_EXCEEDED = "MAX_APPROVAL_STEPS_EXCEEDED";
+ public static final java.lang.String _MAX_FORMULAS_PER_RULE_EXCEEDED = "MAX_FORMULAS_PER_RULE_EXCEEDED";
+ public static final java.lang.String _MAX_RULES_EXCEEDED = "MAX_RULES_EXCEEDED";
+ public static final java.lang.String _MAX_RULE_ENTRIES_EXCEEDED = "MAX_RULE_ENTRIES_EXCEEDED";
+ public static final java.lang.String _MAX_TASK_DESCRIPTION_EXCEEEDED = "MAX_TASK_DESCRIPTION_EXCEEEDED";
+ public static final java.lang.String _MAX_TM_RULES_EXCEEDED = "MAX_TM_RULES_EXCEEDED";
+ public static final java.lang.String _MAX_TM_RULE_ITEMS_EXCEEDED = "MAX_TM_RULE_ITEMS_EXCEEDED";
+ public static final java.lang.String _MERGE_FAILED = "MERGE_FAILED";
+ public static final java.lang.String _MISSING_ARGUMENT = "MISSING_ARGUMENT";
+ public static final java.lang.String _MIXED_DML_OPERATION = "MIXED_DML_OPERATION";
+ public static final java.lang.String _NONUNIQUE_SHIPPING_ADDRESS = "NONUNIQUE_SHIPPING_ADDRESS";
+ public static final java.lang.String _NO_APPLICABLE_PROCESS = "NO_APPLICABLE_PROCESS";
+ public static final java.lang.String _NO_ATTACHMENT_PERMISSION = "NO_ATTACHMENT_PERMISSION";
+ public static final java.lang.String _NO_INACTIVE_DIVISION_MEMBERS = "NO_INACTIVE_DIVISION_MEMBERS";
+ public static final java.lang.String _NO_MASS_MAIL_PERMISSION = "NO_MASS_MAIL_PERMISSION";
+ public static final java.lang.String _NUMBER_OUTSIDE_VALID_RANGE = "NUMBER_OUTSIDE_VALID_RANGE";
+ public static final java.lang.String _NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED = "NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED";
+ public static final java.lang.String _OPTED_OUT_OF_MASS_MAIL = "OPTED_OUT_OF_MASS_MAIL";
+ public static final java.lang.String _PACKAGE_LICENSE_REQUIRED = "PACKAGE_LICENSE_REQUIRED";
+ public static final java.lang.String _PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT = "PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT";
+ public static final java.lang.String _PRIVATE_CONTACT_ON_ASSET = "PRIVATE_CONTACT_ON_ASSET";
+ public static final java.lang.String _RECORD_IN_USE_BY_WORKFLOW = "RECORD_IN_USE_BY_WORKFLOW";
+ public static final java.lang.String _REQUEST_RUNNING_TOO_LONG = "REQUEST_RUNNING_TOO_LONG";
+ public static final java.lang.String _REQUIRED_FIELD_MISSING = "REQUIRED_FIELD_MISSING";
+ public static final java.lang.String _SELF_REFERENCE_FROM_TRIGGER = "SELF_REFERENCE_FROM_TRIGGER";
+ public static final java.lang.String _SHARE_NEEDED_FOR_CHILD_OWNER = "SHARE_NEEDED_FOR_CHILD_OWNER";
+ public static final java.lang.String _STANDARD_PRICE_NOT_DEFINED = "STANDARD_PRICE_NOT_DEFINED";
+ public static final java.lang.String _STORAGE_LIMIT_EXCEEDED = "STORAGE_LIMIT_EXCEEDED";
+ public static final java.lang.String _STRING_TOO_LONG = "STRING_TOO_LONG";
+ public static final java.lang.String _TABSET_LIMIT_EXCEEDED = "TABSET_LIMIT_EXCEEDED";
+ public static final java.lang.String _TEMPLATE_NOT_ACTIVE = "TEMPLATE_NOT_ACTIVE";
+ public static final java.lang.String _TERRITORY_REALIGN_IN_PROGRESS = "TERRITORY_REALIGN_IN_PROGRESS";
+ public static final java.lang.String _TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET = "TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET";
+ public static final java.lang.String _TOO_MANY_APEX_REQUESTS = "TOO_MANY_APEX_REQUESTS";
+ public static final java.lang.String _TOO_MANY_ENUM_VALUE = "TOO_MANY_ENUM_VALUE";
+ public static final java.lang.String _TRANSFER_REQUIRES_READ = "TRANSFER_REQUIRES_READ";
+ public static final java.lang.String _UNABLE_TO_LOCK_ROW = "UNABLE_TO_LOCK_ROW";
+ public static final java.lang.String _UNAVAILABLE_RECORDTYPE_EXCEPTION = "UNAVAILABLE_RECORDTYPE_EXCEPTION";
+ public static final java.lang.String _UNDELETE_FAILED = "UNDELETE_FAILED";
+ public static final java.lang.String _UNKNOWN_EXCEPTION = "UNKNOWN_EXCEPTION";
+ public static final java.lang.String _UNSPECIFIED_EMAIL_ADDRESS = "UNSPECIFIED_EMAIL_ADDRESS";
+ public static final java.lang.String _UNSUPPORTED_APEX_TRIGGER_OPERATON = "UNSUPPORTED_APEX_TRIGGER_OPERATON";
+ public static final java.lang.String _UNVERIFIED_SENDER_ADDRESS = "UNVERIFIED_SENDER_ADDRESS";
+ public static final java.lang.String _WEBLINK_SIZE_LIMIT_EXCEEDED = "WEBLINK_SIZE_LIMIT_EXCEEDED";
+ public static final java.lang.String _WRONG_CONTROLLER_TYPE = "WRONG_CONTROLLER_TYPE";
+ public static final StatusCode ALREADY_IN_PROCESS = new StatusCode(_ALREADY_IN_PROCESS);
+ public static final StatusCode ASSIGNEE_TYPE_REQUIRED = new StatusCode(_ASSIGNEE_TYPE_REQUIRED);
+ public static final StatusCode BAD_CUSTOM_ENTITY_PARENT_DOMAIN = new StatusCode(_BAD_CUSTOM_ENTITY_PARENT_DOMAIN);
+ public static final StatusCode BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED = new StatusCode(_BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED);
+ public static final StatusCode CANNOT_CASCADE_PRODUCT_ACTIVE = new StatusCode(_CANNOT_CASCADE_PRODUCT_ACTIVE);
+ public static final StatusCode CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD = new StatusCode(_CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD);
+ public static final StatusCode CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE = new StatusCode(_CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE);
+ public static final StatusCode CANNOT_DEACTIVATE_DIVISION = new StatusCode(_CANNOT_DEACTIVATE_DIVISION);
+ public static final StatusCode CANNOT_DELETE_LAST_DATED_CONVERSION_RATE = new StatusCode(_CANNOT_DELETE_LAST_DATED_CONVERSION_RATE);
+ public static final StatusCode CANNOT_DELETE_MANAGED_OBJECT = new StatusCode(_CANNOT_DELETE_MANAGED_OBJECT);
+ public static final StatusCode CANNOT_DISABLE_LAST_ADMIN = new StatusCode(_CANNOT_DISABLE_LAST_ADMIN);
+ public static final StatusCode CANNOT_ENABLE_IP_RESTRICT_REQUESTS = new StatusCode(_CANNOT_ENABLE_IP_RESTRICT_REQUESTS);
+ public static final StatusCode CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY = new StatusCode(_CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY);
+ public static final StatusCode CANNOT_MODIFY_MANAGED_OBJECT = new StatusCode(_CANNOT_MODIFY_MANAGED_OBJECT);
+ public static final StatusCode CANNOT_RENAME_APEX_REFERENCED_FIELD = new StatusCode(_CANNOT_RENAME_APEX_REFERENCED_FIELD);
+ public static final StatusCode CANNOT_RENAME_APEX_REFERENCED_OBJECT = new StatusCode(_CANNOT_RENAME_APEX_REFERENCED_OBJECT);
+ public static final StatusCode CANNOT_REPARENT_RECORD = new StatusCode(_CANNOT_REPARENT_RECORD);
+ public static final StatusCode CANNOT_UPDATE_CONVERTED_LEAD = new StatusCode(_CANNOT_UPDATE_CONVERTED_LEAD);
+ public static final StatusCode CANT_DISABLE_CORP_CURRENCY = new StatusCode(_CANT_DISABLE_CORP_CURRENCY);
+ public static final StatusCode CANT_UNSET_CORP_CURRENCY = new StatusCode(_CANT_UNSET_CORP_CURRENCY);
+ public static final StatusCode CHILD_SHARE_FAILS_PARENT = new StatusCode(_CHILD_SHARE_FAILS_PARENT);
+ public static final StatusCode CIRCULAR_DEPENDENCY = new StatusCode(_CIRCULAR_DEPENDENCY);
+ public static final StatusCode COMMUNITY_NOT_ACCESSIBLE = new StatusCode(_COMMUNITY_NOT_ACCESSIBLE);
+ public static final StatusCode CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED);
+ public static final StatusCode CUSTOM_ENTITY_OR_FIELD_LIMIT = new StatusCode(_CUSTOM_ENTITY_OR_FIELD_LIMIT);
+ public static final StatusCode CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED);
+ public static final StatusCode CUSTOM_INDEX_EXISTS = new StatusCode(_CUSTOM_INDEX_EXISTS);
+ public static final StatusCode CUSTOM_LINK_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_LINK_LIMIT_EXCEEDED);
+ public static final StatusCode CUSTOM_TAB_LIMIT_EXCEEDED = new StatusCode(_CUSTOM_TAB_LIMIT_EXCEEDED);
+ public static final StatusCode DELETE_FAILED = new StatusCode(_DELETE_FAILED);
+ public static final StatusCode DELETE_REQUIRED_ON_CASCADE = new StatusCode(_DELETE_REQUIRED_ON_CASCADE);
+ public static final StatusCode DEPENDENCY_EXISTS = new StatusCode(_DEPENDENCY_EXISTS);
+ public static final StatusCode DUPLICATE_CASE_SOLUTION = new StatusCode(_DUPLICATE_CASE_SOLUTION);
+ public static final StatusCode DUPLICATE_COMM_NICKNAME = new StatusCode(_DUPLICATE_COMM_NICKNAME);
+ public static final StatusCode DUPLICATE_CUSTOM_ENTITY_DEFINITION = new StatusCode(_DUPLICATE_CUSTOM_ENTITY_DEFINITION);
+ public static final StatusCode DUPLICATE_CUSTOM_TAB_MOTIF = new StatusCode(_DUPLICATE_CUSTOM_TAB_MOTIF);
+ public static final StatusCode DUPLICATE_DEVELOPER_NAME = new StatusCode(_DUPLICATE_DEVELOPER_NAME);
+ public static final StatusCode DUPLICATE_EXTERNAL_ID = new StatusCode(_DUPLICATE_EXTERNAL_ID);
+ public static final StatusCode DUPLICATE_MASTER_LABEL = new StatusCode(_DUPLICATE_MASTER_LABEL);
+ public static final StatusCode DUPLICATE_SENDER_DISPLAY_NAME = new StatusCode(_DUPLICATE_SENDER_DISPLAY_NAME);
+ public static final StatusCode DUPLICATE_USERNAME = new StatusCode(_DUPLICATE_USERNAME);
+ public static final StatusCode DUPLICATE_VALUE = new StatusCode(_DUPLICATE_VALUE);
+ public static final StatusCode EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR = new StatusCode(_EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR);
+ public static final StatusCode EMPTY_SCONTROL_FILE_NAME = new StatusCode(_EMPTY_SCONTROL_FILE_NAME);
+ public static final StatusCode ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE = new StatusCode(_ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE);
+ public static final StatusCode ENTITY_IS_ARCHIVED = new StatusCode(_ENTITY_IS_ARCHIVED);
+ public static final StatusCode ENTITY_IS_DELETED = new StatusCode(_ENTITY_IS_DELETED);
+ public static final StatusCode ENTITY_IS_LOCKED = new StatusCode(_ENTITY_IS_LOCKED);
+ public static final StatusCode ERROR_IN_MAILER = new StatusCode(_ERROR_IN_MAILER);
+ public static final StatusCode FAILED_ACTIVATION = new StatusCode(_FAILED_ACTIVATION);
+ public static final StatusCode FIELD_CUSTOM_VALIDATION_EXCEPTION = new StatusCode(_FIELD_CUSTOM_VALIDATION_EXCEPTION);
+ public static final StatusCode FIELD_INTEGRITY_EXCEPTION = new StatusCode(_FIELD_INTEGRITY_EXCEPTION);
+ public static final StatusCode FILTERED_LOOKUP_LIMIT_EXCEEDED = new StatusCode(_FILTERED_LOOKUP_LIMIT_EXCEEDED);
+ public static final StatusCode HTML_FILE_UPLOAD_NOT_ALLOWED = new StatusCode(_HTML_FILE_UPLOAD_NOT_ALLOWED);
+ public static final StatusCode IMAGE_TOO_LARGE = new StatusCode(_IMAGE_TOO_LARGE);
+ public static final StatusCode INACTIVE_OWNER_OR_USER = new StatusCode(_INACTIVE_OWNER_OR_USER);
+ public static final StatusCode INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY = new StatusCode(_INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY);
+ public static final StatusCode INSUFFICIENT_ACCESS_OR_READONLY = new StatusCode(_INSUFFICIENT_ACCESS_OR_READONLY);
+ public static final StatusCode INVALID_ACCESS_LEVEL = new StatusCode(_INVALID_ACCESS_LEVEL);
+ public static final StatusCode INVALID_ARGUMENT_TYPE = new StatusCode(_INVALID_ARGUMENT_TYPE);
+ public static final StatusCode INVALID_ASSIGNEE_TYPE = new StatusCode(_INVALID_ASSIGNEE_TYPE);
+ public static final StatusCode INVALID_ASSIGNMENT_RULE = new StatusCode(_INVALID_ASSIGNMENT_RULE);
+ public static final StatusCode INVALID_BATCH_OPERATION = new StatusCode(_INVALID_BATCH_OPERATION);
+ public static final StatusCode INVALID_CONTENT_TYPE = new StatusCode(_INVALID_CONTENT_TYPE);
+ public static final StatusCode INVALID_CREDIT_CARD_INFO = new StatusCode(_INVALID_CREDIT_CARD_INFO);
+ public static final StatusCode INVALID_CROSS_REFERENCE_KEY = new StatusCode(_INVALID_CROSS_REFERENCE_KEY);
+ public static final StatusCode INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD = new StatusCode(_INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD);
+ public static final StatusCode INVALID_CURRENCY_CONV_RATE = new StatusCode(_INVALID_CURRENCY_CONV_RATE);
+ public static final StatusCode INVALID_CURRENCY_CORP_RATE = new StatusCode(_INVALID_CURRENCY_CORP_RATE);
+ public static final StatusCode INVALID_CURRENCY_ISO = new StatusCode(_INVALID_CURRENCY_ISO);
+ public static final StatusCode INVALID_EMAIL_ADDRESS = new StatusCode(_INVALID_EMAIL_ADDRESS);
+ public static final StatusCode INVALID_EMPTY_KEY_OWNER = new StatusCode(_INVALID_EMPTY_KEY_OWNER);
+ public static final StatusCode INVALID_FIELD = new StatusCode(_INVALID_FIELD);
+ public static final StatusCode INVALID_FIELD_FOR_INSERT_UPDATE = new StatusCode(_INVALID_FIELD_FOR_INSERT_UPDATE);
+ public static final StatusCode INVALID_FIELD_WHEN_USING_TEMPLATE = new StatusCode(_INVALID_FIELD_WHEN_USING_TEMPLATE);
+ public static final StatusCode INVALID_FILTER_ACTION = new StatusCode(_INVALID_FILTER_ACTION);
+ public static final StatusCode INVALID_GOOGLE_DOCS_URL = new StatusCode(_INVALID_GOOGLE_DOCS_URL);
+ public static final StatusCode INVALID_ID_FIELD = new StatusCode(_INVALID_ID_FIELD);
+ public static final StatusCode INVALID_INET_ADDRESS = new StatusCode(_INVALID_INET_ADDRESS);
+ public static final StatusCode INVALID_LINEITEM_CLONE_STATE = new StatusCode(_INVALID_LINEITEM_CLONE_STATE);
+ public static final StatusCode INVALID_MASTER_OR_TRANSLATED_SOLUTION = new StatusCode(_INVALID_MASTER_OR_TRANSLATED_SOLUTION);
+ public static final StatusCode INVALID_MESSAGE_ID_REFERENCE = new StatusCode(_INVALID_MESSAGE_ID_REFERENCE);
+ public static final StatusCode INVALID_OPERATION = new StatusCode(_INVALID_OPERATION);
+ public static final StatusCode INVALID_OPERATOR = new StatusCode(_INVALID_OPERATOR);
+ public static final StatusCode INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST = new StatusCode(_INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST);
+ public static final StatusCode INVALID_PARTNER_NETWORK_STATUS = new StatusCode(_INVALID_PARTNER_NETWORK_STATUS);
+ public static final StatusCode INVALID_PERSON_ACCOUNT_OPERATION = new StatusCode(_INVALID_PERSON_ACCOUNT_OPERATION);
+ public static final StatusCode INVALID_SAVE_AS_ACTIVITY_FLAG = new StatusCode(_INVALID_SAVE_AS_ACTIVITY_FLAG);
+ public static final StatusCode INVALID_SESSION_ID = new StatusCode(_INVALID_SESSION_ID);
+ public static final StatusCode INVALID_SETUP_OWNER = new StatusCode(_INVALID_SETUP_OWNER);
+ public static final StatusCode INVALID_STATUS = new StatusCode(_INVALID_STATUS);
+ public static final StatusCode INVALID_TYPE = new StatusCode(_INVALID_TYPE);
+ public static final StatusCode INVALID_TYPE_FOR_OPERATION = new StatusCode(_INVALID_TYPE_FOR_OPERATION);
+ public static final StatusCode INVALID_TYPE_ON_FIELD_IN_RECORD = new StatusCode(_INVALID_TYPE_ON_FIELD_IN_RECORD);
+ public static final StatusCode IP_RANGE_LIMIT_EXCEEDED = new StatusCode(_IP_RANGE_LIMIT_EXCEEDED);
+ public static final StatusCode LICENSE_LIMIT_EXCEEDED = new StatusCode(_LICENSE_LIMIT_EXCEEDED);
+ public static final StatusCode LIGHT_PORTAL_USER_EXCEPTION = new StatusCode(_LIGHT_PORTAL_USER_EXCEPTION);
+ public static final StatusCode LIMIT_EXCEEDED = new StatusCode(_LIMIT_EXCEEDED);
+ public static final StatusCode MALFORMED_ID = new StatusCode(_MALFORMED_ID);
+ public static final StatusCode MANAGER_NOT_DEFINED = new StatusCode(_MANAGER_NOT_DEFINED);
+ public static final StatusCode MASSMAIL_RETRY_LIMIT_EXCEEDED = new StatusCode(_MASSMAIL_RETRY_LIMIT_EXCEEDED);
+ public static final StatusCode MASS_MAIL_LIMIT_EXCEEDED = new StatusCode(_MASS_MAIL_LIMIT_EXCEEDED);
+ public static final StatusCode MAXIMUM_CCEMAILS_EXCEEDED = new StatusCode(_MAXIMUM_CCEMAILS_EXCEEDED);
+ public static final StatusCode MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED = new StatusCode(_MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED);
+ public static final StatusCode MAXIMUM_HIERARCHY_LEVELS_REACHED = new StatusCode(_MAXIMUM_HIERARCHY_LEVELS_REACHED);
+ public static final StatusCode MAXIMUM_SIZE_OF_ATTACHMENT = new StatusCode(_MAXIMUM_SIZE_OF_ATTACHMENT);
+ public static final StatusCode MAXIMUM_SIZE_OF_DOCUMENT = new StatusCode(_MAXIMUM_SIZE_OF_DOCUMENT);
+ public static final StatusCode MAX_ACTIONS_PER_RULE_EXCEEDED = new StatusCode(_MAX_ACTIONS_PER_RULE_EXCEEDED);
+ public static final StatusCode MAX_ACTIVE_RULES_EXCEEDED = new StatusCode(_MAX_ACTIVE_RULES_EXCEEDED);
+ public static final StatusCode MAX_APPROVAL_STEPS_EXCEEDED = new StatusCode(_MAX_APPROVAL_STEPS_EXCEEDED);
+ public static final StatusCode MAX_FORMULAS_PER_RULE_EXCEEDED = new StatusCode(_MAX_FORMULAS_PER_RULE_EXCEEDED);
+ public static final StatusCode MAX_RULES_EXCEEDED = new StatusCode(_MAX_RULES_EXCEEDED);
+ public static final StatusCode MAX_RULE_ENTRIES_EXCEEDED = new StatusCode(_MAX_RULE_ENTRIES_EXCEEDED);
+ public static final StatusCode MAX_TASK_DESCRIPTION_EXCEEEDED = new StatusCode(_MAX_TASK_DESCRIPTION_EXCEEEDED);
+ public static final StatusCode MAX_TM_RULES_EXCEEDED = new StatusCode(_MAX_TM_RULES_EXCEEDED);
+ public static final StatusCode MAX_TM_RULE_ITEMS_EXCEEDED = new StatusCode(_MAX_TM_RULE_ITEMS_EXCEEDED);
+ public static final StatusCode MERGE_FAILED = new StatusCode(_MERGE_FAILED);
+ public static final StatusCode MISSING_ARGUMENT = new StatusCode(_MISSING_ARGUMENT);
+ public static final StatusCode MIXED_DML_OPERATION = new StatusCode(_MIXED_DML_OPERATION);
+ public static final StatusCode NONUNIQUE_SHIPPING_ADDRESS = new StatusCode(_NONUNIQUE_SHIPPING_ADDRESS);
+ public static final StatusCode NO_APPLICABLE_PROCESS = new StatusCode(_NO_APPLICABLE_PROCESS);
+ public static final StatusCode NO_ATTACHMENT_PERMISSION = new StatusCode(_NO_ATTACHMENT_PERMISSION);
+ public static final StatusCode NO_INACTIVE_DIVISION_MEMBERS = new StatusCode(_NO_INACTIVE_DIVISION_MEMBERS);
+ public static final StatusCode NO_MASS_MAIL_PERMISSION = new StatusCode(_NO_MASS_MAIL_PERMISSION);
+ public static final StatusCode NUMBER_OUTSIDE_VALID_RANGE = new StatusCode(_NUMBER_OUTSIDE_VALID_RANGE);
+ public static final StatusCode NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED = new StatusCode(_NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED);
+ public static final StatusCode OPTED_OUT_OF_MASS_MAIL = new StatusCode(_OPTED_OUT_OF_MASS_MAIL);
+ public static final StatusCode PACKAGE_LICENSE_REQUIRED = new StatusCode(_PACKAGE_LICENSE_REQUIRED);
+ public static final StatusCode PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT = new StatusCode(_PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT);
+ public static final StatusCode PRIVATE_CONTACT_ON_ASSET = new StatusCode(_PRIVATE_CONTACT_ON_ASSET);
+ public static final StatusCode RECORD_IN_USE_BY_WORKFLOW = new StatusCode(_RECORD_IN_USE_BY_WORKFLOW);
+ public static final StatusCode REQUEST_RUNNING_TOO_LONG = new StatusCode(_REQUEST_RUNNING_TOO_LONG);
+ public static final StatusCode REQUIRED_FIELD_MISSING = new StatusCode(_REQUIRED_FIELD_MISSING);
+ public static final StatusCode SELF_REFERENCE_FROM_TRIGGER = new StatusCode(_SELF_REFERENCE_FROM_TRIGGER);
+ public static final StatusCode SHARE_NEEDED_FOR_CHILD_OWNER = new StatusCode(_SHARE_NEEDED_FOR_CHILD_OWNER);
+ public static final StatusCode STANDARD_PRICE_NOT_DEFINED = new StatusCode(_STANDARD_PRICE_NOT_DEFINED);
+ public static final StatusCode STORAGE_LIMIT_EXCEEDED = new StatusCode(_STORAGE_LIMIT_EXCEEDED);
+ public static final StatusCode STRING_TOO_LONG = new StatusCode(_STRING_TOO_LONG);
+ public static final StatusCode TABSET_LIMIT_EXCEEDED = new StatusCode(_TABSET_LIMIT_EXCEEDED);
+ public static final StatusCode TEMPLATE_NOT_ACTIVE = new StatusCode(_TEMPLATE_NOT_ACTIVE);
+ public static final StatusCode TERRITORY_REALIGN_IN_PROGRESS = new StatusCode(_TERRITORY_REALIGN_IN_PROGRESS);
+ public static final StatusCode TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET = new StatusCode(_TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET);
+ public static final StatusCode TOO_MANY_APEX_REQUESTS = new StatusCode(_TOO_MANY_APEX_REQUESTS);
+ public static final StatusCode TOO_MANY_ENUM_VALUE = new StatusCode(_TOO_MANY_ENUM_VALUE);
+ public static final StatusCode TRANSFER_REQUIRES_READ = new StatusCode(_TRANSFER_REQUIRES_READ);
+ public static final StatusCode UNABLE_TO_LOCK_ROW = new StatusCode(_UNABLE_TO_LOCK_ROW);
+ public static final StatusCode UNAVAILABLE_RECORDTYPE_EXCEPTION = new StatusCode(_UNAVAILABLE_RECORDTYPE_EXCEPTION);
+ public static final StatusCode UNDELETE_FAILED = new StatusCode(_UNDELETE_FAILED);
+ public static final StatusCode UNKNOWN_EXCEPTION = new StatusCode(_UNKNOWN_EXCEPTION);
+ public static final StatusCode UNSPECIFIED_EMAIL_ADDRESS = new StatusCode(_UNSPECIFIED_EMAIL_ADDRESS);
+ public static final StatusCode UNSUPPORTED_APEX_TRIGGER_OPERATON = new StatusCode(_UNSUPPORTED_APEX_TRIGGER_OPERATON);
+ public static final StatusCode UNVERIFIED_SENDER_ADDRESS = new StatusCode(_UNVERIFIED_SENDER_ADDRESS);
+ public static final StatusCode WEBLINK_SIZE_LIMIT_EXCEEDED = new StatusCode(_WEBLINK_SIZE_LIMIT_EXCEEDED);
+ public static final StatusCode WRONG_CONTROLLER_TYPE = new StatusCode(_WRONG_CONTROLLER_TYPE);
+ public java.lang.String getValue() { return _value_;}
+ public static StatusCode fromValue(java.lang.String value)
+ throws java.lang.IllegalArgumentException {
+ StatusCode enumeration = (StatusCode)
+ _table_.get(value);
+ if (enumeration==null) throw new java.lang.IllegalArgumentException();
+ return enumeration;
+ }
+ public static StatusCode fromString(java.lang.String value)
+ throws java.lang.IllegalArgumentException {
+ return fromValue(value);
+ }
+ public boolean equals(java.lang.Object obj) {return (obj == this);}
+ public int hashCode() { return toString().hashCode();}
+ public java.lang.String toString() { return _value_;}
+ public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.EnumSerializer(
+ _javaType, _xmlType);
+ }
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.EnumDeserializer(
+ _javaType, _xmlType);
+ }
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(StatusCode.class);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "StatusCode"));
+ }
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+}
15 years
teiid SVN: r1625 - in trunk: common-core/src/test/java/com/metamatrix/common/types and 1 other directories.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-12-08 16:05:47 -0500 (Tue, 08 Dec 2009)
New Revision: 1625
Modified:
trunk/common-core/src/main/java/com/metamatrix/common/types/DataTypeManager.java
trunk/common-core/src/test/java/com/metamatrix/common/types/TestDataTypeManager.java
trunk/engine/src/main/java/com/metamatrix/query/eval/Evaluator.java
Log:
TEIID-894 adding fixes for issues seen with a dependent join in query testing
Modified: trunk/common-core/src/main/java/com/metamatrix/common/types/DataTypeManager.java
===================================================================
--- trunk/common-core/src/main/java/com/metamatrix/common/types/DataTypeManager.java 2009-12-08 19:55:41 UTC (rev 1624)
+++ trunk/common-core/src/main/java/com/metamatrix/common/types/DataTypeManager.java 2009-12-08 21:05:47 UTC (rev 1625)
@@ -359,7 +359,7 @@
Map<String, Transform> innerMap = transforms.get(sourceName);
if (innerMap == null) {
- innerMap = new HashMap<String, Transform>();
+ innerMap = new LinkedHashMap<String, Transform>();
transforms.put(sourceName, innerMap);
}
innerMap.put(targetName, transform);
Modified: trunk/common-core/src/test/java/com/metamatrix/common/types/TestDataTypeManager.java
===================================================================
--- trunk/common-core/src/test/java/com/metamatrix/common/types/TestDataTypeManager.java 2009-12-08 19:55:41 UTC (rev 1624)
+++ trunk/common-core/src/test/java/com/metamatrix/common/types/TestDataTypeManager.java 2009-12-08 21:05:47 UTC (rev 1625)
@@ -22,24 +22,19 @@
package com.metamatrix.common.types;
+import static org.junit.Assert.*;
+
import java.sql.Types;
+import java.util.Arrays;
import java.util.Iterator;
import java.util.Set;
import javax.sql.rowset.serial.SerialBlob;
-import junit.framework.TestCase;
+import org.junit.Test;
-public class TestDataTypeManager extends TestCase {
+public class TestDataTypeManager {
- // ################################## FRAMEWORK ################################
-
- public TestDataTypeManager(String name) {
- super(name);
- }
-
- // ################################## TEST HELPERS ################################
-
private void helpDetermineDataType(Object value, Class expectedClass) {
Class actualClass = DataTypeManager.determineDataTypeClass(value);
assertNotNull("Should never receive null when determining data type of object: " + value); //$NON-NLS-1$
@@ -88,7 +83,7 @@
// ################################## ACTUAL TESTS ################################
- public void testTypeMappings() {
+ @Test public void testTypeMappings() {
Set dataTypeNames = DataTypeManager.getAllDataTypeNames();
Iterator iter = dataTypeNames.iterator();
while(iter.hasNext()) {
@@ -100,7 +95,7 @@
}
}
- public void testCheckConversions() {
+ @Test public void testCheckConversions() {
for (int src = 0; src < dataTypes.length; src++) {
for (int tgt =0; tgt < dataTypes.length; tgt++) {
char c = conversions[src][tgt];
@@ -125,22 +120,22 @@
}
/** Test determine data type for a STRING object. */
- public void testDetermineDataType1() {
+ @Test public void testDetermineDataType1() {
helpDetermineDataType("abc", DataTypeManager.DefaultDataClasses.STRING); //$NON-NLS-1$
}
/** Test determine data type for a NULL object. */
- public void testDetermineDataType2() {
+ @Test public void testDetermineDataType2() {
helpDetermineDataType(null, DataTypeManager.DefaultDataClasses.NULL);
}
/** Test determine data type for an unknown object type - should be typed as an OBJECT. */
- public void testDetermineDataType3() throws Exception {
+ @Test public void testDetermineDataType3() throws Exception {
java.net.URL url = new java.net.URL("http://fake"); //$NON-NLS-1$
helpDetermineDataType(url, DataTypeManager.DefaultDataClasses.OBJECT);
}
- public void testCheckAllConversions() {
+ @Test public void testCheckAllConversions() {
Set allTypes = DataTypeManager.getAllDataTypeNames();
Iterator srcIter = allTypes.iterator();
while(srcIter.hasNext()) {
@@ -160,7 +155,7 @@
}
}
- public void testTimeConversions() {
+ @Test public void testTimeConversions() {
Transform t = DataTypeManager.getTransform(DataTypeManager.DefaultDataTypes.TIMESTAMP, DataTypeManager.DefaultDataTypes.DATE);
assertEquals(DataTypeManager.DefaultDataClasses.DATE, t.getTargetType());
@@ -170,7 +165,7 @@
assertEquals(DataTypeManager.DefaultDataClasses.TIMESTAMP, t.getTargetType());
}
- public void testJDBCSQLTypeInfo() {
+ @Test public void testJDBCSQLTypeInfo() {
String[] types = MMJDBCSQLTypeInfo.getMMTypeNames();
@@ -193,7 +188,7 @@
assertEquals(Types.CHAR, MMJDBCSQLTypeInfo.getSQLTypeFromRuntimeType(DataTypeManager.DefaultDataClasses.CHAR));
}
- public void testRuntimeTypeConversion() throws Exception {
+ @Test public void testRuntimeTypeConversion() throws Exception {
assertNull(DataTypeManager.convertToRuntimeType(null));
assertTrue(DataTypeManager.convertToRuntimeType(new SerialBlob(new byte[0])) instanceof BlobType);
@@ -207,10 +202,19 @@
assertEquals(bar, DataTypeManager.convertToRuntimeType(bar));
}
- public void testObjectType() {
+ @Test public void testObjectType() {
assertEquals(DataTypeManager.DefaultDataClasses.OBJECT, DataTypeManager.getDataTypeClass("foo")); //$NON-NLS-1$
assertEquals(DataTypeManager.DefaultDataTypes.OBJECT, DataTypeManager.getDataTypeName(TestDataTypeManager.class));
}
+
+ @Test public void testImplicitConversions() {
+ assertEquals(Arrays.asList(DataTypeManager.DefaultDataTypes.LONG,
+ DataTypeManager.DefaultDataTypes.BIG_INTEGER,
+ DataTypeManager.DefaultDataTypes.DOUBLE,
+ DataTypeManager.DefaultDataTypes.BIG_DECIMAL,
+ DataTypeManager.DefaultDataTypes.STRING,
+ DataTypeManager.DefaultDataTypes.OBJECT), DataTypeManager.getImplicitConversions(DataTypeManager.DefaultDataTypes.INTEGER));
+ }
}
Modified: trunk/engine/src/main/java/com/metamatrix/query/eval/Evaluator.java
===================================================================
--- trunk/engine/src/main/java/com/metamatrix/query/eval/Evaluator.java 2009-12-08 19:55:41 UTC (rev 1624)
+++ trunk/engine/src/main/java/com/metamatrix/query/eval/Evaluator.java 2009-12-08 21:05:47 UTC (rev 1625)
@@ -22,6 +22,7 @@
package com.metamatrix.query.eval;
+import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.Collections;
import java.util.HashSet;
@@ -325,6 +326,14 @@
throw new CriteriaEvaluationException(e, e.getMessage());
}
if (values != null) {
+ if (leftValue instanceof BigDecimal) {
+ for (Object object : values) {
+ if (compareValues(leftValue, object) == 0) {
+ return true;
+ }
+ }
+ return false;
+ }
return values.contains(leftValue);
}
//there are too many values to justify a linear search or holding
15 years
teiid SVN: r1624 - trunk/test-integration/db/src/test/java/org/teiid/test/testcases.
by teiid-commits@lists.jboss.org
Author: vhalbert(a)redhat.com
Date: 2009-12-08 14:55:41 -0500 (Tue, 08 Dec 2009)
New Revision: 1624
Modified:
trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java
trunk/test-integration/db/src/test/java/org/teiid/test/testcases/CommonTransactionTests.java
Log:
Teiid 773 - cleanup
Modified: trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java
===================================================================
--- trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java 2009-12-04 19:07:55 UTC (rev 1623)
+++ trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java 2009-12-08 19:55:41 UTC (rev 1624)
@@ -7,8 +7,6 @@
public abstract class BaseAbstractTransactionTestCase extends TestCase {
- protected TransactionContainer container = null;
-
public BaseAbstractTransactionTestCase(String name) {
super(name);
Modified: trunk/test-integration/db/src/test/java/org/teiid/test/testcases/CommonTransactionTests.java
===================================================================
--- trunk/test-integration/db/src/test/java/org/teiid/test/testcases/CommonTransactionTests.java 2009-12-04 19:07:55 UTC (rev 1623)
+++ trunk/test-integration/db/src/test/java/org/teiid/test/testcases/CommonTransactionTests.java 2009-12-08 19:55:41 UTC (rev 1624)
@@ -10,7 +10,6 @@
import org.teiid.test.framework.TransactionContainer;
import org.teiid.test.framework.query.AbstractQueryTransactionTest;
import org.teiid.test.framework.query.QueryExecution;
-import org.teiid.test.framework.transaction.OnWrapTransaction;
import com.metamatrix.jdbc.api.AbstractQueryTest;
@@ -477,9 +476,7 @@
executeBatch(getMultipleSourceBatch());
}
- /**
- * @see com.metamatrix.transaction.test.framework.AbstractQueryTest#exceptionExpected()
- */
+
public boolean exceptionExpected() {
return true;
}
15 years