sobjectResults = dgr.getSobjects(); int nrObjects = dgr.getSobjects().length; DescribeGlobalSObjectResult o = dgr.getSobjects()[i]; if ( ( OnlyQueryableObjects && o.isQueryable() ) || !OnlyQueryableObjects ) { objects.add( o.getName() );
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; }
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; }
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; }
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; } };
@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());
public void processMetadata() throws TranslatorException { DescribeGlobalResult globalResult = connection.getObjects(); DescribeGlobalSObjectResult[] objects = globalResult.getSobjects(); for (DescribeGlobalSObjectResult object : objects) { addTable(object);