Spring Data MongoDB - Core

org.springframework.data.mongodb.core.index
Class MongoPersistentEntityIndexResolver.IndexDefinitionHolder

java.lang.Object
  extended by org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexResolver.IndexDefinitionHolder
All Implemented Interfaces:
IndexDefinition
Enclosing class:
MongoPersistentEntityIndexResolver

public static class MongoPersistentEntityIndexResolver.IndexDefinitionHolder
extends Object
implements IndexDefinition

Implementation of IndexDefinition holding additional (property)path information used for creating the index. The path itself is the properties "dot" path representation from its root document.

Since:
1.5
Author:
Christoph Strobl

Constructor Summary
MongoPersistentEntityIndexResolver.IndexDefinitionHolder(String path, IndexDefinition definition, String collection)
          Create
 
Method Summary
 String getCollection()
           
 IndexDefinition getIndexDefinition()
          Get the raw IndexDefinition.
 com.mongodb.DBObject getIndexKeys()
           
 com.mongodb.DBObject getIndexOptions()
           
 String getPath()
          Get the "dot" path used to create the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoPersistentEntityIndexResolver.IndexDefinitionHolder

public MongoPersistentEntityIndexResolver.IndexDefinitionHolder(String path,
                                                                IndexDefinition definition,
                                                                String collection)
Create

Parameters:
path -
Method Detail

getCollection

public String getCollection()

getPath

public String getPath()
Get the "dot" path used to create the index.

Returns:

getIndexDefinition

public IndexDefinition getIndexDefinition()
Get the raw IndexDefinition.

Returns:

getIndexKeys

public com.mongodb.DBObject getIndexKeys()
Specified by:
getIndexKeys in interface IndexDefinition

getIndexOptions

public com.mongodb.DBObject getIndexOptions()
Specified by:
getIndexOptions in interface IndexDefinition

Spring Data MongoDB - Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.