Package | Description |
---|---|
com.googlecode.objectify.impl | |
com.googlecode.objectify.impl.translate | |
com.googlecode.objectify.impl.translate.opt | |
com.googlecode.objectify.impl.translate.opt.joda |
Modifier and Type | Class and Description |
---|---|
class |
AbstractProperty
Some common behavior of properties
|
class |
FieldProperty
Property which encapsulates a simple field.
|
class |
MethodProperty
Property which encapsulates a method with an @AlsoLoad parameter.
|
class |
NullProperty
Property to use with translators when there isn't a relevant property; for example, when making a filterable
or when creating translator for the root entity.
|
Modifier and Type | Field and Description |
---|---|
protected Property |
TranslatableProperty.property |
Modifier and Type | Method and Description |
---|---|
Property |
TranslatableProperty.getProperty() |
Property |
Reference.getProperty() |
Modifier and Type | Method and Description |
---|---|
static List<Property> |
TypeUtils.getProperties(ObjectifyFactory fact,
Class<?> clazz)
Get all the persistable fields and methods on a class, checking the superclasses as well.
|
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
TypeUtils.getAnnotation(Class<A> annotationType,
Property prop,
Class<?> onClass)
Checks both the annotations list and the annotations on the class for the type
|
<T> Ref<T> |
LoadEngine.makeRef(Key<?> rootEntity,
Property property,
Key<T> key)
Create a Ref for the key, and maybe initialize the value depending on the load annotation and the current
state of load groups.
|
boolean |
LoadEngine.shouldLoad(Property property) |
Constructor and Description |
---|
Reference(Property property,
Key<?> key) |
TranslatableProperty(Property prop,
Translator<T> trans) |
Modifier and Type | Field and Description |
---|---|
protected List<Property> |
ClassTranslator.owners
Any owner properties, if they exist
|
Modifier and Type | Method and Description |
---|---|
Translator<P> |
ValueTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<T> |
TranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Object> |
TranslateTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Object> |
SerializeTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
ValueTranslator<Number,Object> |
NumberTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Map<Object,Object>> |
MapifyTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Map<Object,Object>> |
EmbedMapTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<T> |
EmbedClassTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Collection<Object>> |
CollectionTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Object> |
AsIsTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
Translator<Object> |
ArrayTranslatorFactory.create(Path path,
Property property,
Type type,
CreateContext ctx) |
<T> Translator<T> |
TranslatorRegistry.create(Path path,
Property property,
Type type,
CreateContext ctx)
Goes through our list of known translators and returns the first one that succeeds
|
protected abstract ValueTranslator<P,D> |
ValueTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx)
Create a translator, knowing that we have the appropriate type.
|
protected ValueTranslator<URL,String> |
URLTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<TimeZone,String> |
TimeZoneTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<com.google.appengine.api.datastore.Text,Object> |
TextTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<String,Object> |
StringTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<Date,Date> |
SqlDateTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<Ref<?>,com.google.appengine.api.datastore.Key> |
RefTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<Key<?>,com.google.appengine.api.datastore.Key> |
KeyTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<Enum<?>,String> |
EnumTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
ValueTranslator<byte[],com.google.appengine.api.datastore.Blob> |
ByteArrayTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
Object |
LoadContext.getOwner(Property ownerProp)
Get the owner object which is appropriate for the specified property.
|
<T> Ref<T> |
LoadContext.makeRef(Property property,
Key<T> key)
Create a Ref for the key, and maybe initialize the value depending on the load annotation and the current
state of load groups.
|
void |
SaveContext.registerReference(Property prop,
Ref<?> ref) |
void |
CreateContext.verifyOwnerProperty(Path path,
Property prop)
Search the owner chain for a compatible class; if nothing found, throw a user-friendly exception
|
Modifier and Type | Method and Description |
---|---|
protected ValueTranslator<BigDecimal,Long> |
BigDecimalLongTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected ValueTranslator<org.joda.time.ReadableInstant,Date> |
ReadableInstantTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<org.joda.money.Money,String> |
MoneyStringTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<org.joda.time.LocalTime,String> |
LocalTimeTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<org.joda.time.LocalDate,String> |
LocalDateTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<org.joda.time.LocalDateTime,String> |
LocalDateTimeTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<org.joda.time.DateTimeZone,String> |
DateTimeZoneTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
protected ValueTranslator<org.joda.money.BigMoney,String> |
BigMoneyStringTranslatorFactory.createSafe(Path path,
Property property,
Type type,
CreateContext ctx) |
Copyright © 2014. All rights reserved.