Skip navigation links

Package fr.inria.atlanmod.neoemf.option

Provides utility classes to provide modeling and persistence level options to NeoEMF.

See: Description

Package fr.inria.atlanmod.neoemf.option Description

Provides utility classes to provide modeling and persistence level options to NeoEMF.

NeoEMF can be customized by using specific options that are provided to the Resource.save(java.util.Map) and Resource.load(java.util.Map) methods. This package defines two APIs:

These classes are used to create option maps used in EMF save and load methods. For example, the following code creates a map that tells the framework to commit the pending transaction after 10000 operations, and cache the accessed features to retrieve them efficiently. ConcreteBackendBuilder corresponds to a backend-specific implementation of PersistenceOptionsBuilder.


 // Create the option map
 Map<String, Object> options = ConcreteBackendBuilder.newBuilder()
     .autocommit(10000)
     .cacheFeatures()
     .asMap();

 // Load the resource with the specified options
 myResource.load(options);

 // Manipulate the resource with autocommit and feature cache enabled
 myResource.getContents() [...]
 
Skip navigation links

Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.