sobjectResults = dgr.getSobjects(); int nrObjects = dgr.getSobjects().length; DescribeGlobalSObjectResult o = dgr.getSobjects()[i]; if ( ( OnlyQueryableObjects && o.isQueryable() ) || !OnlyQueryableObjects ) { objects.add( o.getName() );
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 void setEncoding(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.verifyElement(__in, _lookupTypeInfo("encoding", "urn:partner.soap.sforce.com","encoding","http://www.w3.org/2001/XMLSchema","string",1,1,true))) { setEncoding(__typeMapper.readString(__in, _lookupTypeInfo("encoding", "urn:partner.soap.sforce.com","encoding","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class)); } }
protected void setMaxBatchSize(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.verifyElement(__in, _lookupTypeInfo("maxBatchSize", "urn:partner.soap.sforce.com","maxBatchSize","http://www.w3.org/2001/XMLSchema","int",1,1,true))) { setMaxBatchSize((int)__typeMapper.readInt(__in, _lookupTypeInfo("maxBatchSize", "urn:partner.soap.sforce.com","maxBatchSize","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class)); } }
protected void setSobjects(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("sobjects", "urn:partner.soap.sforce.com","sobjects","urn:partner.soap.sforce.com","DescribeGlobalSObjectResult",0,-1,true))) { setSobjects((com.sforce.soap.partner.DescribeGlobalSObjectResult[])__typeMapper.readObject(__in, _lookupTypeInfo("sobjects", "urn:partner.soap.sforce.com","sobjects","urn:partner.soap.sforce.com","DescribeGlobalSObjectResult",0,-1,true), com.sforce.soap.partner.DescribeGlobalSObjectResult[].class)); } }
private void writeFieldSobjects(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("sobjects", "urn:partner.soap.sforce.com","sobjects","urn:partner.soap.sforce.com","DescribeGlobalSObjectResult",0,-1,true), sobjects, sobjects__is_set); }
@Override public void setSobjects(com.sforce.soap.partner.IDescribeGlobalSObjectResult[] sobjects) { this.sobjects = castArray(com.sforce.soap.partner.DescribeGlobalSObjectResult.class, sobjects); sobjects__is_set = true; }
@Override public com.sforce.soap.partner.IDescribeGlobalResult newIDescribeGlobalResult() { return new com.sforce.soap.partner.DescribeGlobalResult(); }
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof DescribeGlobalResponse)) return false; DescribeGlobalResponse other = (DescribeGlobalResponse) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.result == null && other.getResult() == null) || (this.result != null && this.result.equals(other.getResult()))); __equalsCalc = null; return _equals; }
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; }
private void writeFieldEncoding(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("encoding", "urn:partner.soap.sforce.com","encoding","http://www.w3.org/2001/XMLSchema","string",1,1,true), encoding, encoding__is_set); }
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; }
private void writeFieldMaxBatchSize(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("maxBatchSize", "urn:partner.soap.sforce.com","maxBatchSize","http://www.w3.org/2001/XMLSchema","int",1,1,true), maxBatchSize, maxBatchSize__is_set); }
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; } };