B - the "self"-type of this PersistenceOptionsBuilderO - the type of PersistenceOptions built by this builderpublic abstract class AbstractBlueprintsOptionsBuilder<B extends AbstractBlueprintsOptionsBuilder<B,O>,O extends AbstractBlueprintsOptions> extends AbstractPersistenceOptionsBuilder<B,O>
PersistenceOptionsBuilder that provides utility methods to create generic Blueprints options.
Created options can be BlueprintsResourceOptions if they define resource-level features, or BlueprintsStoreOptions if they define database access feature.
All features are all optional: options can be created using all or none of them.
BlueprintsResourceOptions,
BlueprintsStoreOptions| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBlueprintsOptionsBuilder()
Constructs a new
AbstractBlueprintsOptionsBuilder. |
| Modifier and Type | Method and Description |
|---|---|
B |
autocommit()
Adds the
autocommit feature in the created options. |
B |
autocommit(int chunk)
Adds the
autocommit feature with the given chunk size in the created options. |
B |
directWrite()
Adds the
direct-write feature in the created options. |
B |
directWriteCacheMany()
Adds the
direct-write-cache-many feature in the created options. |
protected B |
graph(String graphType)
Adds the given
graphType in the created options. |
asMap, cacheFeatures, cacheIsSet, cacheSizes, countLoadedObjects, log, noOption, option, storeOption, validateprotected AbstractBlueprintsOptionsBuilder()
AbstractBlueprintsOptionsBuilder.protected B graph(String graphType)
graphType in the created options.graphType - the type of the Blueprints graphBlueprintsResourceOptions.GRAPH_TYPEpublic B autocommit()
autocommit feature in the created options.BlueprintsStoreOptions.AUTOCOMMIT,
AutocommitStoreDecoratorpublic B autocommit(int chunk)
autocommit feature with the given chunk size in the created options.chunk - the number of database operations between each commitBlueprintsStoreOptions.AUTOCOMMIT,
AutocommitStoreDecoratorpublic B directWrite()
direct-write feature in the created options.BlueprintsStoreOptions.DIRECT_WRITE,
DirectWriteBlueprintsStorepublic B directWriteCacheMany()
direct-write-cache-many feature in the created options.BlueprintsStoreOptions.CACHE_MANY,
DirectWriteBlueprintsCacheManyStoreCopyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.