play.modules.morphia.utils
Class IdGenerator
java.lang.Object
play.modules.morphia.utils.IdGenerator
public class IdGenerator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdGenerator
public IdGenerator()
ds
public static Datastore ds()
generateId
public static Object generateId(Model entity)
generateLongId
public static <T extends Model> Long generateLongId(T entity)
generateLongId
public static <T extends Model> Long generateLongId(Class<T> clazz)
generateObjectIdId
public static <T extends Model> ObjectId generateObjectIdId(T entity)
generateObjectIdId
public static <T extends Model> ObjectId generateObjectIdId(Class<T> clazz)
getIdTypeName
public static String getIdTypeName()
processId
public static Object processId(Object id)
processObjectId
public static ObjectId processObjectId(Object id)
processLongId
public static Long processLongId(Object id)
Copyright © 2012. All Rights Reserved.