Class DeleteContext
- java.lang.Object
-
- com.google.appengine.api.datastore.DeleteContext
-
- All Implemented Interfaces:
CallbackContext<Key>
public final class DeleteContext extends Object
ConcreteCallbackContext
implementation that is specific to delete() callbacks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCurrentElement()
Returns the element for which the callback has been invoked.int
getCurrentIndex()
Returns the index in the result ofCallbackContext.getElements()
of the element for which the callback has been invoked.Transaction
getCurrentTransaction()
Returns the current transaction, ornull
if there is no current transaction.List<T>
getElements()
Returns an unmodifiable view of the elements involved in the operation that triggered the callback..String
toString()
-
-
-
Method Detail
-
getElements
public List<T> getElements()
Description copied from interface:CallbackContext
Returns an unmodifiable view of the elements involved in the operation that triggered the callback..- Specified by:
getElements
in interfaceCallbackContext<T>
-
getCurrentTransaction
public Transaction getCurrentTransaction()
Description copied from interface:CallbackContext
Returns the current transaction, ornull
if there is no current transaction.- Specified by:
getCurrentTransaction
in interfaceCallbackContext<T>
-
getCurrentIndex
public int getCurrentIndex()
Description copied from interface:CallbackContext
Returns the index in the result ofCallbackContext.getElements()
of the element for which the callback has been invoked.- Specified by:
getCurrentIndex
in interfaceCallbackContext<T>
-
getCurrentElement
public T getCurrentElement()
Description copied from interface:CallbackContext
Returns the element for which the callback has been invoked. Shortcut forgetElements().getCurrentIndex()
.- Specified by:
getCurrentElement
in interfaceCallbackContext<T>
-
-