/** * Override {@link StreamHandler#close} to do a flush but not to close the output stream. * That is, we do <b>not</b> close {@link System#out}. */ public void close() { flush(); } }
/** * Factory that make the correct decorator for the provided featureSource. * * <p>This factory method is public and will be used to create all required subclasses. By * comparison the constructors for this class have package visibility. * * @param featureSource * @param settings Settings for this store */ public static GeoServerFeatureSource create( FeatureSource<SimpleFeatureType, SimpleFeature> featureSource, Settings settings) { if (featureSource instanceof FeatureLocking) { return new GeoServerFeatureLocking( (FeatureLocking<SimpleFeatureType, SimpleFeature>) featureSource, settings); } else if (featureSource instanceof FeatureStore) { return new GeoServerFeatureStore( (FeatureStore<SimpleFeatureType, SimpleFeature>) featureSource, settings); } return new GeoServerFeatureSource(featureSource, settings); }
public SimpleFeatureCollection getFeatures() throws IOException { return getFeatures(Query.ALL); }
public void modifyFeatures(String name, Object attributeValue, Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().modifyFeatures(name, attributeValue, filter); }
/** * DOCUMENT ME! * * @param filter DOCUMENT ME! * @return DOCUMENT ME! * @throws IOException DOCUMENT ME! */ public int lockFeatures(Filter filter) throws IOException { filter = makeDefinitionFilter(filter); return locking().lockFeatures(filter); }
public void unLockFeatures(Query query) throws IOException { query = makeDefinitionQuery(query, schema); locking().lockFeatures(query); } }
/** * DOCUMENT ME! * * @return DOCUMENT ME! */ public Transaction getTransaction() { return store().getTransaction(); }
/** * DOCUMENT ME! * * @throws IOException DOCUMENT ME! */ public void unLockFeatures() throws IOException { locking().lockFeatures(); }
/** * Returns the same name than the feature type (ie, {@code getSchema().getName()} to honor the * simple feature land common practice of calling the same both the Features produces and their * types * * @since 1.7 * @see FeatureSource#getName() */ public Name getName() { return getSchema().getName(); }
public void modifyFeatures(Name attributeName, Object attributeValue, Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().modifyFeatures(attributeName, attributeValue, filter); } }
/** * DOCUMENT ME! * * @param filter DOCUMENT ME! * @throws IOException DOCUMENT ME! */ public void unLockFeatures(Filter filter) throws IOException { filter = makeDefinitionFilter(filter); locking().unLockFeatures(filter); }
/** * Publish a {@link LogRecord} and flush the stream. * * @param record the log record to publish. */ public void publish(final LogRecord record) { super.publish(record); flush(); }
/** * DOCUMENT ME! * * @param transaction DOCUMENT ME! */ public void setTransaction(Transaction transaction) { store().setTransaction(transaction); }
/** * DOCUMENT ME! * * @return DOCUMENT ME! * @throws IOException DOCUMENT ME! */ public int lockFeatures() throws IOException { return locking().lockFeatures(); }
/** * DOCUMENT ME! * * @param filter DOCUMENT ME! * @throws IOException DOCUMENT ME! */ public void removeFeatures(Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().removeFeatures(filter); }
public void modifyFeatures(Name[] attributeNames, Object[] attributeValues, Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().modifyFeatures(attributeNames, attributeValues, filter); }
public void modifyFeatures(String[] names, Object[] attributeValues, Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().modifyFeatures(names, attributeValues, filter); }
/** * DOCUMENT ME! * * @param type DOCUMENT ME! * @param value DOCUMENT ME! * @param filter DOCUMENT ME! * @throws IOException DOCUMENT ME! */ public void modifyFeatures(AttributeDescriptor type, Object value, Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().modifyFeatures(type, value, filter); }
/** * DOCUMENT ME! * * @param type DOCUMENT ME! * @param value DOCUMENT ME! * @param filter DOCUMENT ME! * @throws IOException DOCUMENT ME! * @task REVISIT: should we check that non exposed attributes are requiered in <code>type</code> * ? */ public void modifyFeatures(AttributeDescriptor[] type, Object[] value, Filter filter) throws IOException { filter = makeDefinitionFilter(filter); store().modifyFeatures(type, value, filter); }