Exception thrown to indicate that there was a problem finding a particular version of a schema.
@since 0.9.0
Exception thrown to indicate that there is a problem finding a particular version of a schema.
125126127128129130131132133134
* org.geotools.data.Query) */ protected ReferencedEnvelope getBounds(Query query) throws SchemaNotFoundException{ String featureTypeName = query.getTypeName(); if (!featureType.getTypeName().equals(featureTypeName)) { throw new SchemaNotFoundException(featureTypeName); } return getBoundsInternal(query); }
165166167168169170171172173174175
*/ protected int getCount(Query query) throws IOException { String featureTypeName = query.getTypeName(); if (!featureType.getTypeName().equals(featureTypeName)) { throw new SchemaNotFoundException(featureTypeName); } int count = 0; FeatureIterator<SimpleFeature> iterator = collection.features(); try { Filter filter = query.getFilter();
350351352353354355356357
public SimpleFeatureType getSchema(String typeName) throws IOException { synchronized (memory) { if (schema.containsKey(typeName)) { return schema.get(typeName); } throw new SchemaNotFoundException(typeName); } }
255256257258259260261262263264265
final QName featureDescriptorName; try { featureDescriptorName = wfs.getFeatureTypeName(prefixedTypeName); } catch (IllegalArgumentException e) { throw new SchemaNotFoundException(prefixedTypeName); } final SimpleFeatureType featureType; CoordinateReferenceSystem crs = getFeatureTypeCRS(prefixedTypeName); featureType = wfs.issueDescribeFeatureTypeGET(prefixedTypeName, crs);
299300301302303304305
&& localPart.equals(qname.getLocalPart())) { String prefixedName = qname.getPrefix() + ":" + localPart; return getSchema(prefixedName); } } throw new SchemaNotFoundException(name.getURI()); }
664665666667668669670
&& localPart.equals(qname.getLocalPart())) { String prefixedName = qname.getPrefix() + ":" + localPart; return getFeatureSource(prefixedName); } } throw new SchemaNotFoundException(typeName.getURI()); }
130131132133134135136137138139
if (greatestVersionedSchema == null) { String msg = "No schema versions for " + managedSchema.getTable() + ", " + managedSchema.getName(); LOG.error(msg); throw new SchemaNotFoundException(msg); } return greatestVersionedSchema; }
156157158159160161162163
return schemaParser.parseEntitySchema(schema); } else { String msg = "Could not find managed schema for " + tableName + ", " + entityName + ", and version " + Integer.toString(version); LOG.error(msg); throw new SchemaNotFoundException(msg); } }
188189190191192193194
} } String msg = "Could not find managed version for " + tableName + ", " + entityName + " that matches " + schema; LOG.error(msg); throw new SchemaNotFoundException(msg); }
491492493494495496497498499500
refreshManagedSchemaCache(tableName, entityName); managedSchema = getManagedSchemaFromSchemaMap(tableName, entityName); if (managedSchema == null) { String msg = "Could not find managed schemas for " + tableName + ", " + entityName; throw new SchemaNotFoundException(msg); } } return managedSchema; }