Examples of DescribeGlobalResult


Examples of com.sforce.soap.partner.DescribeGlobalResult

    this.connectorEnv = env;
  }

  public void processMetadata() throws TranslatorException {
    try {
      DescribeGlobalResult globalResult = connection.getObjects();
      List<DescribeGlobalSObjectResult> objects = globalResult.getSobjects();
      for (DescribeGlobalSObjectResult object : objects) {
        addTable(object);
     
      addRelationships();
    } catch (ResourceException e) {
View Full Code Here

Examples of com.sforce.soap.partner.DescribeGlobalResult

        _connection = connection;
        _tableRef = new LazyRef<List<Table>>() {
            @Override
            protected List<Table> fetch() {
                final List<Table> result = new ArrayList<Table>();
                final DescribeGlobalResult describeGlobal;
                try {
                    describeGlobal = _connection.describeGlobal();
                } catch (ConnectionException e) {
                    throw SalesforceUtils.wrapException(e, "Failed to invoke describeGlobal service");
                }

                for (final DescribeGlobalSObjectResult sobject : describeGlobal.getSobjects()) {
                    if (sobject.isQueryable() && sobject.isUpdateable()) {
                        final String tableName = sobject.getName();
                        final String tableLabel = sobject.getLabel();

                        final Table table = new SalesforceTable(tableName, tableLabel, SalesforceSchema.this,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.