try { dgr = getBinding().describeGlobal();
@Override public com.sforce.soap.partner.IDescribeGlobalResult describeGlobal() throws com.sforce.ws.ConnectionException { return connection.describeGlobal(); }
public DescribeGlobalResult getObjects() throws ResourceException { try { return partnerConnection.describeGlobal(); } catch (UnexpectedErrorFault e) { throw new ResourceException(e); } catch (ConnectionException e) { throw new ResourceException(e); } }
public static List<NamedThing> getSchemaNames(PartnerConnection connection) throws IOException { List<NamedThing> returnList = new ArrayList<>(); DescribeGlobalResult result = null; try { result = connection.describeGlobal(); } catch (ConnectionException e) { throw new ComponentException(e); } DescribeGlobalSObjectResult[] objects = result.getSobjects(); for (DescribeGlobalSObjectResult obj : objects) { LOG.debug("module label: " + obj.getLabel() + " name: " + obj.getName()); returnList.add(new SimpleNamedThing(obj.getName(), obj.getLabel())); } return returnList; }
protected List<NamedThing> getSchemaNames(PartnerConnection connection) throws IOException { List<NamedThing> returnList = new ArrayList<>(); DescribeGlobalResult result = null; try { result = connection.describeGlobal(); } catch (ConnectionException e) { throw new ComponentException(e); } DescribeGlobalSObjectResult[] objects = result.getSobjects(); for (DescribeGlobalSObjectResult obj : objects) { LOG.debug("module label: " + obj.getLabel() + " name: " + obj.getName()); returnList.add(new SimpleNamedThing(obj.getName(), obj.getLabel())); } return returnList; }
protected List<NamedThing> getSchemaNames(PartnerConnection connection) throws IOException { List<NamedThing> returnList = new ArrayList<>(); DescribeGlobalResult result = null; try { result = connection.describeGlobal(); } catch (ConnectionException e) { throw new ComponentException(e); } DescribeGlobalSObjectResult[] objects = result.getSobjects(); for (DescribeGlobalSObjectResult obj : objects) { LOG.debug("module label: " + obj.getLabel() + " name: " + obj.getName()); returnList.add(new SimpleNamedThing(obj.getName(), obj.getLabel())); } return returnList; }
protected List<NamedThing> getSchemaNames(PartnerConnection connection) throws IOException { List<NamedThing> returnList = new ArrayList<>(); DescribeGlobalResult result = null; try { result = connection.describeGlobal(); } catch (ConnectionException e) { throw new ComponentException(e); } DescribeGlobalSObjectResult[] objects = result.getSobjects(); for (DescribeGlobalSObjectResult obj : objects) { LOG.debug("module label: " + obj.getLabel() + " name: " + obj.getName()); returnList.add(new SimpleNamedThing(obj.getName(), obj.getLabel())); } return returnList; }
public static List<NamedThing> getSchemaNames(PartnerConnection connection) throws IOException { List<NamedThing> returnList = new ArrayList<>(); DescribeGlobalResult result = null; try { result = connection.describeGlobal(); } catch (ConnectionException e) { throw new ComponentException(e); } DescribeGlobalSObjectResult[] objects = result.getSobjects(); for (DescribeGlobalSObjectResult obj : objects) { LOG.debug("module label: " + obj.getLabel() + " name: " + obj.getName()); returnList.add(new SimpleNamedThing(obj.getName(), obj.getLabel())); } return returnList; }
@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, _connection); result.add(table); } } return result; } };
@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, _connection); result.add(table); } } return result; } };
for (DescribeGlobalSObjectResult dgsr : conn.describeGlobal().getSobjects()) { allOrgObjectNames.add(dgsr.getName());
@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, _connection); result.add(table); } } return result; } };