@Test public void testCallCreateTypeNamesOnce() throws IOException { final AtomicInteger creationCounter = new AtomicInteger(0); MockContentDataStore store = new MockContentDataStore() { protected java.util.List<org.opengis.feature.type.Name> createTypeNames() throws java.io.IOException { creationCounter.incrementAndGet(); return Arrays.asList(TYPENAME, TYPENAME2); }; }; store.getFeatureSource(TYPENAME.getLocalPart()); assertEquals(1, creationCounter.get()); store.getFeatureSource(TYPENAME2.getLocalPart()); assertEquals(1, creationCounter.get()); }
public ContentFeatureSource getFeatureSource(String typeName) throws IOException { return getFeatureSource(new NameImpl(null, typeName), Transaction.AUTO_COMMIT); }
ContentDataStore implements DataStore { public ContentFeatureSource getFeatureSource(String typeName) throws IOException { return getFeatureSource(new NameImpl(null, typeName), Transaction.AUTO_COMMIT); } }
ContentDataStore implements DataStore { public ContentFeatureSource getFeatureSource(String typeName) throws IOException { return getFeatureSource(new NameImpl(null, typeName), Transaction.AUTO_COMMIT); } ContentDataStore(); }
ContentDataStore implements DataStore { public ContentFeatureSource getFeatureSource(String typeName) throws IOException { return getFeatureSource(new NameImpl(null, typeName), Transaction.AUTO_COMMIT); } ContentDataStore(); FeatureTypeFactory getFeatureTypeFactory(); void setFeatureTypeFactory(FeatureTypeFactory typeFactory); void setFeatureFactory(FeatureFactory featureFactory); FilterFactory getFilterFactory(); FeatureFactory getFeatureFactory(); void setFilterFactory(FilterFactory filterFactory); GeometryFactory getGeometryFactory(); void setGeometryFactory(GeometryFactory geometryFactory); DataStoreFactorySpi getDataStoreFactory(); void setDataStoreFactory(DataStoreFactorySpi dataStoreFactory); String getNamespaceURI(); void setNamespaceURI(String namespaceURI); Logger getLogger(); ServiceInfo getInfo(); final String[] getTypeNames(); void createSchema(SimpleFeatureType featureType); final SimpleFeatureType getSchema(String typeName); ContentFeatureSource getFeatureSource(String typeName); ContentFeatureSource getFeatureSource(String typeName, Transaction tx); ContentFeatureSource getFeatureSource(Name typeName, Transaction tx); FeatureReader<SimpleFeatureType, SimpleFeature> getFeatureReader(
            Query query, Transaction tx); FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(
            String typeName, Filter filter, Transaction tx); final FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(
            String typeName, Transaction tx); final FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriterAppend(
            String typeName, Transaction tx); final LockingManager getLockingManager(); final void updateSchema(String typeName, SimpleFeatureType featureType); void dispose(); ContentEntry getEntry(Name name); SimpleFeatureSource getFeatureSource(Name typeName); List<Name> getNames(); SimpleFeatureType getSchema(Name name); void updateSchema(Name typeName, SimpleFeatureType featureType); void removeSchema(Name typeName); void removeSchema(String typeName); }
ContentDataStore implements DataStore { public ContentFeatureSource getFeatureSource(String typeName) throws IOException { return getFeatureSource(new NameImpl(null, typeName), Transaction.AUTO_COMMIT); } ContentDataStore(); FeatureTypeFactory getFeatureTypeFactory(); void setFeatureTypeFactory(FeatureTypeFactory typeFactory); void setFeatureFactory(FeatureFactory featureFactory); FilterFactory getFilterFactory(); FeatureFactory getFeatureFactory(); void setFilterFactory(FilterFactory filterFactory); GeometryFactory getGeometryFactory(); void setGeometryFactory(GeometryFactory geometryFactory); DataStoreFactorySpi getDataStoreFactory(); void setDataStoreFactory(DataStoreFactorySpi dataStoreFactory); String getNamespaceURI(); void setNamespaceURI(String namespaceURI); Logger getLogger(); ServiceInfo getInfo(); final String[] getTypeNames(); void createSchema(SimpleFeatureType featureType); final SimpleFeatureType getSchema(String typeName); ContentFeatureSource getFeatureSource(String typeName); ContentFeatureSource getFeatureSource(String typeName, Transaction tx); ContentFeatureSource getFeatureSource(Name typeName, Transaction tx); FeatureReader<SimpleFeatureType, SimpleFeature> getFeatureReader(
            Query query, Transaction tx); FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(
            String typeName, Filter filter, Transaction tx); final FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriter(
            String typeName, Transaction tx); final FeatureWriter<SimpleFeatureType, SimpleFeature> getFeatureWriterAppend(
            String typeName, Transaction tx); final LockingManager getLockingManager(); final void updateSchema(String typeName, SimpleFeatureType featureType); void dispose(); ContentEntry getEntry(Name name); SimpleFeatureSource getFeatureSource(Name typeName); List<Name> getNames(); SimpleFeatureType getSchema(Name name); void updateSchema(Name typeName, SimpleFeatureType featureType); void removeSchema(Name typeName); void removeSchema(String typeName); static final String JOINED_FEATURE_TYPE; }