Spring Data Document

org.springframework.data.mongodb.core.convert
Class DefaultMongoTypeMapper.DBObjectTypeAliasAccessor

java.lang.Object
  extended by org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper.DBObjectTypeAliasAccessor
All Implemented Interfaces:
org.springframework.data.convert.TypeAliasAccessor<DBObject>
Enclosing class:
DefaultMongoTypeMapper

public static final class DefaultMongoTypeMapper.DBObjectTypeAliasAccessor
extends Object
implements org.springframework.data.convert.TypeAliasAccessor<DBObject>

Author:
Oliver Gierke

Constructor Summary
DefaultMongoTypeMapper.DBObjectTypeAliasAccessor(String typeKey)
           
 
Method Summary
 Object readAliasFrom(DBObject source)
           
 void writeTypeTo(DBObject sink, Object alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMongoTypeMapper.DBObjectTypeAliasAccessor

public DefaultMongoTypeMapper.DBObjectTypeAliasAccessor(String typeKey)
Method Detail

readAliasFrom

public Object readAliasFrom(DBObject source)
Specified by:
readAliasFrom in interface org.springframework.data.convert.TypeAliasAccessor<DBObject>

writeTypeTo

public void writeTypeTo(DBObject sink,
                        Object alias)
Specified by:
writeTypeTo in interface org.springframework.data.convert.TypeAliasAccessor<DBObject>

Spring Data Document

Copyright © 2012. All Rights Reserved.