Spring Data Graph

org.springframework.data.document.mongodb
Class MongoPropertyDescriptors

java.lang.Object
  extended by org.springframework.data.document.mongodb.MongoPropertyDescriptors
All Implemented Interfaces:
Iterable<MongoPropertyDescriptors.MongoPropertyDescriptor>

public class MongoPropertyDescriptors
extends Object
implements Iterable<MongoPropertyDescriptors.MongoPropertyDescriptor>

An iterable of MongoPropertyDescriptors.MongoPropertyDescriptors that allows dedicated access to the MongoPropertyDescriptors.MongoPropertyDescriptor that captures the id-property.

Author:
Oliver Gierke

Nested Class Summary
static class MongoPropertyDescriptors.MongoPropertyDescriptor
          Simple value object to have a more suitable abstraction for MongoDB specific property handling.
 
Constructor Summary
MongoPropertyDescriptors(Class<?> type)
          Creates the MongoPropertyDescriptors for the given type.
 
Method Summary
 MongoPropertyDescriptors.MongoPropertyDescriptor getIdDescriptor()
          Returns the MongoPropertyDescriptors.MongoPropertyDescriptor for the id property.
 Iterator<MongoPropertyDescriptors.MongoPropertyDescriptor> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoPropertyDescriptors

public MongoPropertyDescriptors(Class<?> type)
Creates the MongoPropertyDescriptors for the given type.

Parameters:
type -
Method Detail

getIdDescriptor

public MongoPropertyDescriptors.MongoPropertyDescriptor getIdDescriptor()
Returns the MongoPropertyDescriptors.MongoPropertyDescriptor for the id property.

Returns:
the idDescriptor

iterator

public Iterator<MongoPropertyDescriptors.MongoPropertyDescriptor> iterator()
Specified by:
iterator in interface Iterable<MongoPropertyDescriptors.MongoPropertyDescriptor>

Spring Data Graph

Copyright © 2011. All Rights Reserved.