Package org.geotools.data.mongodb
Class MongoSchemaFileStore
- Object
-
- MongoSchemaFileStore
-
- All Implemented Interfaces:
MongoSchemaStore
public class MongoSchemaFileStore extends Object implements MongoSchemaStore
- Author:
- tkunicki@boundlessgeo.com
-
-
Field Summary
Fields Modifier and Type Field Description protected FileschemaStoreFile
-
Constructor Summary
Constructors Constructor Description MongoSchemaFileStore(File file)MongoSchemaFileStore(String uri)MongoSchemaFileStore(URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddeleteSchema(Name name)SimpleFeatureTyperetrieveSchema(Name name)voidstoreSchema(SimpleFeatureType schema)List<String>typeNames()
-
-
-
Field Detail
-
schemaStoreFile
protected File schemaStoreFile
-
-
Constructor Detail
-
MongoSchemaFileStore
public MongoSchemaFileStore(String uri) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
MongoSchemaFileStore
public MongoSchemaFileStore(URI uri) throws IOException
- Throws:
IOException
-
MongoSchemaFileStore
public MongoSchemaFileStore(File file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
storeSchema
public void storeSchema(SimpleFeatureType schema) throws IOException
- Specified by:
storeSchemain interfaceMongoSchemaStore- Throws:
IOException
-
retrieveSchema
public SimpleFeatureType retrieveSchema(Name name) throws IOException
- Specified by:
retrieveSchemain interfaceMongoSchemaStore- Throws:
IOException
-
deleteSchema
public void deleteSchema(Name name) throws IOException
- Specified by:
deleteSchemain interfaceMongoSchemaStore- Throws:
IOException
-
typeNames
public List<String> typeNames()
- Specified by:
typeNamesin interfaceMongoSchemaStore
-
close
public void close()
- Specified by:
closein interfaceMongoSchemaStore
-
-