Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / datastore / Projection.java
blob5f3fb2f9d7cfe382078b8d803e2972aa48c4b4ea
1 // Copyright 2012 Google Inc. All Rights Reserved.
3 package com.google.appengine.api.datastore;
5 import java.io.Serializable;
6 import java.util.Map;
8 /**
9 * A query projection.
11 * @see Query#getProjections()
13 public abstract class Projection implements Serializable {
15 Projection() {}
17 /**
18 * Returns the name of the property this projection populates.
20 public abstract String getName();
22 /**
23 * Returns the name of the original datastore property.
25 abstract String getPropertyName();
27 /**
28 * Generates the projection value from the given entity values.
30 abstract Object getValue(Map<String, Object> values);