com.googlecode.objectify.impl
Class LoadContext

java.lang.Object
  extended by com.googlecode.objectify.impl.LoadContext

public class LoadContext
extends java.lang.Object

The context of a load or save operation to a single entity.


Constructor Summary
LoadContext(java.lang.Object pojo, com.google.appengine.api.datastore.Entity entity)
           
 
Method Summary
 void addDoneHandler(java.lang.Runnable handler)
          Adds a handler that will be called when done() is called.
 void done()
          Called at the end of a load, runs all the DoneHandlers.
 com.google.appengine.api.datastore.Entity getEntity()
           
 java.lang.String getMapEntryName()
           
 java.lang.String getMapSuffix()
           
 java.util.ArrayList<java.lang.Object> getPendingEmbeddedMultivalue(java.lang.String path, int length)
          Gets the temporary storage list for an embedded multivalue, instantiating one if necessary.
 java.lang.Object getPojo()
           
 boolean hasPendingEmbeddedMultivalue(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadContext

public LoadContext(java.lang.Object pojo,
                   com.google.appengine.api.datastore.Entity entity)
Method Detail

getPojo

public java.lang.Object getPojo()

getEntity

public com.google.appengine.api.datastore.Entity getEntity()

hasPendingEmbeddedMultivalue

public boolean hasPendingEmbeddedMultivalue(java.lang.String path)
Returns:
true if there is a pending array for the specified embedded multivalue. False means that we haven't seen an overt value for it (yet).

getPendingEmbeddedMultivalue

public java.util.ArrayList<java.lang.Object> getPendingEmbeddedMultivalue(java.lang.String path,
                                                                          int length)
Gets the temporary storage list for an embedded multivalue, instantiating one if necessary.


addDoneHandler

public void addDoneHandler(java.lang.Runnable handler)
Adds a handler that will be called when done() is called.


done

public void done()
Called at the end of a load, runs all the DoneHandlers.


getMapEntryName

public java.lang.String getMapEntryName()

getMapSuffix

public java.lang.String getMapSuffix()


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1