net.vz.mongodb.jackson.internal.util
Class IdHandler.ByteArrayToObjectIdHandler
java.lang.Object
net.vz.mongodb.jackson.internal.util.IdHandler<byte[],org.bson.types.ObjectId>
net.vz.mongodb.jackson.internal.util.IdHandler.ByteArrayToObjectIdHandler
- Enclosing class:
- IdHandler<K,D>
public static class IdHandler.ByteArrayToObjectIdHandler
- extends IdHandler<byte[],org.bson.types.ObjectId>
Method Summary |
byte[] |
fromDbId(org.bson.types.ObjectId dbId)
Convert the given database id to the java objects id |
org.bson.types.ObjectId |
toDbId(byte[] 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.ByteArrayToObjectIdHandler
public IdHandler.ByteArrayToObjectIdHandler()
fromDbId
public byte[] 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<byte[],org.bson.types.ObjectId>
- Parameters:
dbId
- The database id to convert from
- Returns:
- The converted id
toDbId
public org.bson.types.ObjectId toDbId(byte[] id)
- Description copied from class:
IdHandler
- Convert the given java object id to the databases id
- Specified by:
toDbId
in class IdHandler<byte[],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.