if ( ( OnlyQueryableObjects && o.isQueryable() ) || !OnlyQueryableObjects ) { objects.add( o.getName() );
_hashCode += getName().hashCode(); _hashCode += (isQueryable() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += (isReplicateable() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += (isRetrieveable() ? Boolean.TRUE : Boolean.FALSE).hashCode();
@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; } };
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())); }
(this.name != null && this.name.equals(other.getName()))) && this.queryable == other.isQueryable() && this.replicateable == other.isReplicateable() && this.retrieveable == other.isRetrieveable() &&