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
 com.mongodb.DBObject getIndexKeys()
           
 com.mongodb.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 com.mongodb.DBObject getIndexKeys()
Specified by:
getIndexKeys in interface IndexDefinition

getIndexOptions

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.