Class GridFsCriteria
java.lang.Object
org.springframework.data.mongodb.core.query.Criteria
org.springframework.data.mongodb.gridfs.GridFsCriteria
- All Implemented Interfaces:
CriteriaDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.mongodb.core.query.Criteria
Criteria.BitwiseCriteriaOperators -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GridFsCriteriaCreates aGridFsCriteriafor restrictions on the file's content type.static GridFsCriteriaCreates aGridFsCriteriafor restrictions on the file's name.static GridFsCriteriaCreates aGridFsCriteriafor restrictions on the file's metadata.static GridFsCriteriawhereMetaData(@Nullable String metadataKey) Creates aGridFsCriteriafor restrictions on a single file's metadata item.Methods inherited from class org.springframework.data.mongodb.core.query.Criteria
alike, all, all, and, andDocumentStructureMatches, andOperator, andOperator, bits, byExample, byExample, elemMatch, equals, exists, expr, getCriteriaObject, getKey, getSingleCriteriaObject, gt, gte, hashCode, in, in, intersects, is, isNull, isNullValue, lt, lte, matchingDocumentStructure, maxDistance, minDistance, mod, ne, near, nearSphere, nin, nin, norOperator, norOperator, not, orOperator, orOperator, raw, regex, regex, regex, regex, sampleRate, size, type, type, type, where, within, withinSphere
-
Constructor Details
-
GridFsCriteria
Creates a newGridFsCriteriafor the given key.- Parameters:
key- must not be null.
-
-
Method Details
-
whereMetaData
Creates aGridFsCriteriafor restrictions on the file's metadata.- Returns:
- new instance of
GridFsCriteria.
-
whereMetaData
Creates aGridFsCriteriafor restrictions on a single file's metadata item.- Parameters:
metadataKey- can be null.- Returns:
- new instance of
GridFsCriteria.
-
whereFilename
Creates aGridFsCriteriafor restrictions on the file's name.- Returns:
- new instance of
GridFsCriteria.
-
whereContentType
Creates aGridFsCriteriafor restrictions on the file's content type.- Returns:
- new instance of
GridFsCriteria.
-