net.vz.mongodb.jackson.internal.util
Class IdHandler.StringToObjectIdHandler
java.lang.Object
net.vz.mongodb.jackson.internal.util.IdHandler<String,org.bson.types.ObjectId>
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>
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 |
IdHandler.StringToObjectIdHandler
public IdHandler.StringToObjectIdHandler()
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.