Class GridFsCriteria
java.lang.Object
org.springframework.data.mongodb.core.query.Criteria
org.springframework.data.mongodb.gridfs.GridFsCriteria
- All Implemented Interfaces:
CriteriaDefinition
GridFs-specific helper class to define
Criteria
s.- Author:
- Oliver Gierke, Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.mongodb.core.query.Criteria
Criteria.BitwiseCriteriaOperators
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GridFsCriteria
Creates aGridFsCriteria
for restrictions on the file's content type.static GridFsCriteria
Creates aGridFsCriteria
for restrictions on the file's name.static GridFsCriteria
Creates aGridFsCriteria
for restrictions on the file's metadata.static GridFsCriteria
whereMetaData
(String metadataKey) Creates aGridFsCriteria
for 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, regex, regex, regex, regex, sampleRate, size, type, type, type, where, within, withinSphere
-
Constructor Details
-
GridFsCriteria
Creates a newGridFsCriteria
for the given key.- Parameters:
key
- must not be null.
-
-
Method Details
-
whereMetaData
Creates aGridFsCriteria
for restrictions on the file's metadata.- Returns:
- new instance of
GridFsCriteria
.
-
whereMetaData
Creates aGridFsCriteria
for restrictions on a single file's metadata item.- Parameters:
metadataKey
- can be null.- Returns:
- new instance of
GridFsCriteria
.
-
whereFilename
Creates aGridFsCriteria
for restrictions on the file's name.- Returns:
- new instance of
GridFsCriteria
.
-
whereContentType
Creates aGridFsCriteria
for restrictions on the file's content type.- Returns:
- new instance of
GridFsCriteria
.
-