public class GridFSStorageManager extends Object
GridFS is a specification for storing and retrieving files that exceed the BSON-document size limit of 16 MB.
The default bucket name is the name of the class followed by the suffix "_bucket". The file name is created using the field name and the id of the document.
| Constructor and Description |
|---|
GridFSStorageManager(org.hibernate.ogm.datastore.mongodb.impl.MongoDBDatastoreProvider provider,
OptionsService optionsService,
Map<String,GridFSFields> tableEntityTypeMapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
loadContentFromBinaryStorage(org.bson.Document currentDocument,
EntityKeyMetadata metadata) |
void |
removeEntityFromBinaryStorage(org.bson.Document deletedDocument,
EntityKeyMetadata entityKeyMetadata) |
void |
removeFieldsFromBinaryStorage(org.bson.Document fieldsToDelete,
EntityKeyMetadata entityKeyMetadata,
Object documentId) |
void |
storeContentToBinaryStorage(org.bson.Document currentDocument,
EntityKeyMetadata metadata,
Object documentId) |
public GridFSStorageManager(org.hibernate.ogm.datastore.mongodb.impl.MongoDBDatastoreProvider provider, OptionsService optionsService, Map<String,GridFSFields> tableEntityTypeMapping)
public void storeContentToBinaryStorage(org.bson.Document currentDocument,
EntityKeyMetadata metadata,
Object documentId)
public void removeEntityFromBinaryStorage(org.bson.Document deletedDocument,
EntityKeyMetadata entityKeyMetadata)
public void removeFieldsFromBinaryStorage(org.bson.Document fieldsToDelete,
EntityKeyMetadata entityKeyMetadata,
Object documentId)
public void loadContentFromBinaryStorage(org.bson.Document currentDocument,
EntityKeyMetadata metadata)
Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.