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 File
schemaStoreFile
-
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 void
close()
void
deleteSchema(Name name)
SimpleFeatureType
retrieveSchema(Name name)
void
storeSchema(SimpleFeatureType schema)
List<String>
typeNames()
-
-
-
Field Detail
-
schemaStoreFile
protected File schemaStoreFile
-
-
Constructor Detail
-
MongoSchemaFileStore
public MongoSchemaFileStore(String uri) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
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:
storeSchema
in interfaceMongoSchemaStore
- Throws:
IOException
-
retrieveSchema
public SimpleFeatureType retrieveSchema(Name name) throws IOException
- Specified by:
retrieveSchema
in interfaceMongoSchemaStore
- Throws:
IOException
-
deleteSchema
public void deleteSchema(Name name) throws IOException
- Specified by:
deleteSchema
in interfaceMongoSchemaStore
- Throws:
IOException
-
typeNames
public List<String> typeNames()
- Specified by:
typeNames
in interfaceMongoSchemaStore
-
close
public void close()
- Specified by:
close
in interfaceMongoSchemaStore
-
-