@@ -53,9 +53,13 @@ interface Response {
5353 /**
5454 * {@inheritDoc}
5555 *
56- * <p>If an entity for {@code entity.getKey()} does not exists , {@code entity} is inserted.
56+ * <p>If an entity for {@code entity.getKey()} does not exist , {@code entity} is inserted.
5757 * Otherwise, {@link #submit()} will throw a {@link DatastoreException} with {@link
5858 * DatastoreException#getReason()} equal to {@code "ALREADY_EXISTS"}.
59+ *
60+ * @param entity the entity to be added to the datastore
61+ * @return The entity that was added
62+ * @throws DatastoreException if there was any failure
5963 */
6064 @ Override
6165 Entity add (FullEntity <?> entity );
@@ -67,17 +71,26 @@ interface Response {
6771 * exists, {@link #submit()} will throw a {@link DatastoreException} with {@link
6872 * DatastoreException#getReason()} equal to {@code "ALREADY_EXISTS"}. All entities in {@code
6973 * entities} whose key did not exist are inserted.
74+ *
75+ * @param entities entities to be added to the datastore
76+ * @return A list of entities that have been added
77+ * @throws DatastoreException if there was any failure
7078 */
7179 @ Override
7280 List <Entity > add (FullEntity <?>... entities );
7381
7482 /**
7583 * Submit the batch to the Datastore.
7684 *
77- * @throws DatastoreException if there was any failure or if batch is not longer active
85+ * @return Response of the batch submit operation.
86+ * @throws DatastoreException if there was any failure or if batch is no longer active
7887 */
7988 Response submit ();
8089
81- /** Returns the batch associated {@link Datastore}. */
90+ /**
91+ * Returns the batch associated {@link Datastore}.
92+ *
93+ * @return The batch associated datastore
94+ */
8295 Datastore getDatastore ();
8396}
0 commit comments