if ( ( OnlyQueryableObjects && o.isQueryable() ) || !OnlyQueryableObjects ) { objects.add( o.getName() );
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.feedEnabled == other.isFeedEnabled() && ((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() &&
@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; } };
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; }
private void addTable(DescribeGlobalSObjectResult objectMetadata) { String name = objectMetadata.getName(); if (normalizeNames) { name = NameUtil.normalizeName(name); } if (!allowedToAdd(name)) { return; } Table table = metadataFactory.addTable(name); FullyQualifiedName fqn = new FullyQualifiedName("sobject", objectMetadata.getName()); //$NON-NLS-1$ table.setProperty(FQN, fqn.toString()); table.setNameInSource(objectMetadata.getName()); tableMap.put(objectMetadata.getName(), table); table.setProperty(TABLE_CUSTOM, String.valueOf(objectMetadata.isCustom())); table.setProperty(TABLE_SUPPORTS_CREATE, String.valueOf(objectMetadata.isCreateable())); table.setProperty(TABLE_SUPPORTS_DELETE, String.valueOf(objectMetadata.isDeletable())); table.setProperty(TABLE_SUPPORTS_MERGE, String.valueOf(objectMetadata.isMergeable())); table.setProperty(TABLE_SUPPORTS_QUERY, String.valueOf(objectMetadata.isQueryable())); table.setProperty(TABLE_SUPPORTS_REPLICATE, String.valueOf(objectMetadata.isReplicateable())); table.setProperty(TABLE_SUPPORTS_RETRIEVE, String.valueOf(objectMetadata.isRetrieveable())); table.setProperty(TABLE_SUPPORTS_SEARCH, String.valueOf(objectMetadata.isSearchable())); }
allOrgObjectNames.add(dgsr.getName());
_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(); _hashCode += (isFeedEnabled() ? 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;
@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; } };
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; }
@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; } };
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; }