Spring Data Document

org.springframework.data.mongodb.repository.query
Interface EntityInformationCreator

All Known Implementing Classes:
DefaultEntityInformationCreator

public interface EntityInformationCreator

Interface for components being able to provide EntityInformationCreator for a given Class.

Author:
Oliver Gierke

Method Summary
<T,ID extends Serializable>
MongoEntityInformation<T,ID>
getEntityInformation(Class<T> domainClass)
          Returns a MongoEntityInformation for the given domain class.
<T,ID extends Serializable>
MongoEntityInformation<T,ID>
getEntityInformation(Class<T> domainClass, Class<?> collectionClass)
          Returns a MongoEntityInformation for the given domain class and class to retrieve the collection to query against from.
 

Method Detail

getEntityInformation

<T,ID extends Serializable> MongoEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
Returns a MongoEntityInformation for the given domain class.

Parameters:
domainClass - the domain class to create the MongoEntityInformation for, must not be null.
Returns:

getEntityInformation

<T,ID extends Serializable> MongoEntityInformation<T,ID> getEntityInformation(Class<T> domainClass,
                                                                              Class<?> collectionClass)
Returns a MongoEntityInformation for the given domain class and class to retrieve the collection to query against from.

Parameters:
domainClass - the domain class to create the MongoEntityInformation for, must not be null.
collectionClass - the class to derive the collection from queries to retrieve the domain classes from shall be ran against, must not be null.
Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.