public interface EntityMetadata<T>
Modifier and Type | Method and Description |
---|---|
Integer |
getCacheExpirySeconds()
Get the expiry associated with this kind, defined by the @Cached annotation.
|
Class<T> |
getEntityClass()
Gets the class associated with this entity.
|
KeyMetadata<T> |
getKeyMetadata()
Get specific metadata about the key for this type.
|
T |
load(com.google.appengine.api.datastore.Entity ent,
LoadContext ctx)
Converts an entity to an object of the appropriate type for this metadata structure.
|
com.google.appengine.api.datastore.Entity |
save(T pojo,
SaveContext ctx)
Converts an object to a datastore Entity with the appropriate Key type.
|
Integer getCacheExpirySeconds()
T load(com.google.appengine.api.datastore.Entity ent, LoadContext ctx)
com.google.appengine.api.datastore.Entity save(T pojo, SaveContext ctx)
KeyMetadata<T> getKeyMetadata()
Copyright © 2014. All rights reserved.