Spring Data Document

org.springframework.data.mongodb.gridfs
Class GridFsCriteria

java.lang.Object
  extended by org.springframework.data.mongodb.core.query.Criteria
      extended by org.springframework.data.mongodb.gridfs.GridFsCriteria
All Implemented Interfaces:
CriteriaDefinition

public class GridFsCriteria
extends Criteria

GridFs-specific helper class to define Criterias.

Author:
Oliver Gierke

Constructor Summary
GridFsCriteria(String key)
          Creates a new GridFsCriteria for the given key.
 
Method Summary
static GridFsCriteria whereContentType()
          Creates a GridFsCriteria for restrictions on the file's content type.
static GridFsCriteria whereFilename()
          Creates a GridFsCriteria for restrictions on the file's name.
static GridFsCriteria whereMetaData()
          Creates a GridFsCriteria for restrictions on the file's metadata.
static GridFsCriteria whereMetaData(String metadataKey)
          Creates a GridFsCriteria for restrictions on a single file's metadata item.
 
Methods inherited from class org.springframework.data.mongodb.core.query.Criteria
all, all, and, andOperator, elemMatch, equals, exists, getCriteriaObject, getKey, getSingleCriteriaObject, gt, gte, hashCode, in, in, is, lt, lte, maxDistance, mod, ne, near, nearSphere, nin, nin, norOperator, not, orOperator, regex, regex, regex, size, type, where, within, withinSphere
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridFsCriteria

public GridFsCriteria(String key)
Creates a new GridFsCriteria for the given key.

Parameters:
key -
Method Detail

whereMetaData

public static GridFsCriteria whereMetaData()
Creates a GridFsCriteria for restrictions on the file's metadata.

Returns:

whereMetaData

public static GridFsCriteria whereMetaData(String metadataKey)
Creates a GridFsCriteria for restrictions on a single file's metadata item.

Parameters:
metadataKey -
Returns:

whereFilename

public static GridFsCriteria whereFilename()
Creates a GridFsCriteria for restrictions on the file's name.

Returns:

whereContentType

public static GridFsCriteria whereContentType()
Creates a GridFsCriteria for restrictions on the file's content type.

Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.