feature = ft.newFeature( fid, props, null );
extraProps = new ExtraProps( extraPropertyList.toArray( new Property[extraPropertyList.size()] ) ); feature = ft.newFeature( fid, propertyList, extraProps );
private void addRelationallyMappedMultiProperty( ParsedPropertyReplacement replacement, Mapping mapping, FeatureTypeMapping ftMapping, List<ResourceId> list ) throws FilterEvaluationException, FeatureStoreException, SQLException { UpdateAction action = replacement.getUpdateAction(); if ( action == null ) { action = UpdateAction.INSERT_AFTER; } switch ( action ) { case INSERT_BEFORE: case REMOVE: case REPLACE: LOG.warn( "Updating of multi properties is currently only supported for 'insertAfter' update action. Omitting." ); break; case INSERT_AFTER: break; default: break; } InsertRowManager mgr = new InsertRowManager( fs, conn, null ); List<Property> props = Collections.singletonList( replacement.getNewValue() ); for ( ResourceId id : list ) { IdAnalysis analysis = schema.analyzeId( id.getRid() ); FeatureType featureType = schema.getFeatureType( ftMapping.getFeatureType() ); Feature f = featureType.newFeature( id.getRid(), props, null ); mgr.updateFeature( f, ftMapping, analysis.getIdKernels(), mapping, replacement ); } }
Feature feature = ft.newFeature( fid, props, null ); if ( fid != null && !"".equals( fid ) ) { if ( idContext.getObject( fid ) != null ) {