Spring Data Document

org.springframework.data.mongodb.core.index
Class Index

java.lang.Object
  extended by org.springframework.data.mongodb.core.index.Index
All Implemented Interfaces:
IndexDefinition

public class Index
extends Object
implements IndexDefinition


Nested Class Summary
static class Index.Duplicates
           
 
Constructor Summary
Index()
           
Index(String key, Order order)
           
 
Method Summary
 DBObject getIndexKeys()
           
 DBObject getIndexOptions()
           
 Index named(String name)
           
 Index on(String key, Order order)
           
 Index sparse()
           
 String toString()
           
 Index unique()
           
 Index unique(Index.Duplicates duplicates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Index

public Index()

Index

public Index(String key,
             Order order)
Method Detail

on

public Index on(String key,
                Order order)

named

public Index named(String name)

unique

public Index unique()

sparse

public Index sparse()

unique

public Index unique(Index.Duplicates duplicates)

getIndexKeys

public DBObject getIndexKeys()
Specified by:
getIndexKeys in interface IndexDefinition

getIndexOptions

public DBObject getIndexOptions()
Specified by:
getIndexOptions in interface IndexDefinition

toString

public String toString()
Overrides:
toString in class Object

Spring Data Document

Copyright © 2011. All Rights Reserved.