net.vz.mongodb.jackson.internal.util
Class IdHandler.StringToObjectIdHandler

java.lang.Object
  extended by net.vz.mongodb.jackson.internal.util.IdHandler<String,org.bson.types.ObjectId>
      extended by net.vz.mongodb.jackson.internal.util.IdHandler.StringToObjectIdHandler
Enclosing class:
IdHandler<K,D>

public static class IdHandler.StringToObjectIdHandler
extends IdHandler<String,org.bson.types.ObjectId>


Nested Class Summary
 
Nested classes/interfaces inherited from class net.vz.mongodb.jackson.internal.util.IdHandler
IdHandler.ByteArrayToObjectIdHandler, IdHandler.NoopIdHandler<K>, IdHandler.StringToObjectIdHandler
 
Constructor Summary
IdHandler.StringToObjectIdHandler()
           
 
Method Summary
 String fromDbId(org.bson.types.ObjectId dbId)
          Convert the given database id to the java objects id
 org.bson.types.ObjectId toDbId(String id)
          Convert the given java object id to the databases id
 
Methods inherited from class net.vz.mongodb.jackson.internal.util.IdHandler
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdHandler.StringToObjectIdHandler

public IdHandler.StringToObjectIdHandler()
Method Detail

fromDbId

public String fromDbId(org.bson.types.ObjectId dbId)
Description copied from class: IdHandler
Convert the given database id to the java objects id

Specified by:
fromDbId in class IdHandler<String,org.bson.types.ObjectId>
Parameters:
dbId - The database id to convert from
Returns:
The converted id

toDbId

public org.bson.types.ObjectId toDbId(String id)
Description copied from class: IdHandler
Convert the given java object id to the databases id

Specified by:
toDbId in class IdHandler<String,org.bson.types.ObjectId>
Parameters:
id - The java object id to convert from
Returns:
The converted database id


Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.