Class PutContext
- java.lang.Object
-
- com.google.appengine.api.datastore.PutContext
-
- All Implemented Interfaces:
CallbackContext<Entity>
public final class PutContext extends Object
ConcreteCallbackContextimplementation that is specific to put() callbacks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetCurrentElement()Returns the element for which the callback has been invoked.intgetCurrentIndex()Returns the index in the result ofCallbackContext.getElements()of the element for which the callback has been invoked.TransactiongetCurrentTransaction()Returns the current transaction, ornullif there is no current transaction.List<T>getElements()Returns an unmodifiable view of the elements involved in the operation that triggered the callback..StringtoString()
-
-
-
Method Detail
-
getElements
public List<T> getElements()
Description copied from interface:CallbackContextReturns an unmodifiable view of the elements involved in the operation that triggered the callback..- Specified by:
getElementsin interfaceCallbackContext<T>
-
getCurrentTransaction
public Transaction getCurrentTransaction()
Description copied from interface:CallbackContextReturns the current transaction, ornullif there is no current transaction.- Specified by:
getCurrentTransactionin interfaceCallbackContext<T>
-
getCurrentIndex
public int getCurrentIndex()
Description copied from interface:CallbackContextReturns the index in the result ofCallbackContext.getElements()of the element for which the callback has been invoked.- Specified by:
getCurrentIndexin interfaceCallbackContext<T>
-
getCurrentElement
public T getCurrentElement()
Description copied from interface:CallbackContextReturns the element for which the callback has been invoked. Shortcut forgetElements().getCurrentIndex().- Specified by:
getCurrentElementin interfaceCallbackContext<T>
-
-