private void initConverters() { for ( FeatureType ft : schema.getFeatureTypes() ) { FeatureTypeMapping ftMapping = schema.getFtMapping( ft.getName() ); if ( ftMapping != null ) { for ( Mapping particleMapping : ftMapping.getMappings() ) { initConverter( particleMapping ); } } } }
@Override public int performDelete( IdFilter filter, Lock lock ) throws FeatureStoreException { int deleted = 0; if ( blobMapping != null ) { deleted = performDeleteBlob( filter, lock ); } else { deleted = performDeleteRelational( filter, lock ); } // TODO improve this for ( FeatureType ft : schema.getFeatureTypes( null, false, false ) ) { bboxTracker.delete( ft.getName() ); } return deleted; }
/** * Creates a new {@link IdAnalyzer} instance for the given {@link MappedAppSchema}. * * @param schema application schema with mapping information, must not be <code>null</code> */ public IdAnalyzer( MappedAppSchema schema ) { this.schema = schema; for ( FeatureType ft : schema.getFeatureTypes() ) { if ( !ft.isAbstract() ) { FeatureTypeMapping ftMapping = schema.getFtMapping( ft.getName() ); if ( ftMapping != null ) { FIDMapping fidMapping = ftMapping.getFidMapping(); if ( fidMapping != null ) { LOG.debug( fidMapping.getPrefix() + " -> " + ft.getName() ); prefixToFt.put( fidMapping.getPrefix(), ft ); } } } } prefixKeysSortedByLengthDesc = prefixToFt.keySet().toArray( new String[0] ); sortByLengthDescending( prefixKeysSortedByLengthDesc ); }
List<FeatureType> fts = schema.getFeatureTypes( null, false, false ); SortedSet<String> ftNames = new TreeSet<String>(); for ( FeatureType ft : fts ) {
&& steps.get( 0 ) instanceof MappableNameStep ) { QName featureName = ( (MappableNameStep) steps.get( 0 ) ).getNodeName(); FeatureType[] featureTypes = schema.getFeatureTypes(); for ( FeatureType ft : featureTypes ) { if ( ft.getName().equals( featureName ) ) {