public class ExternalIdsBatchUpdate
extends java.lang.Object
Constructor and Description |
---|
ExternalIdsBatchUpdate() |
Modifier and Type | Method and Description |
---|---|
void |
commit(ReviewDb db)
Commits this batch.
|
void |
replace(ExternalId extIdToDelete,
ExternalId extIdToAdd)
Adds an external ID replacement to the batch.
|
public void replace(ExternalId extIdToDelete, ExternalId extIdToAdd)
public void commit(ReviewDb db) throws com.google.gwtorm.server.OrmException
This means external ID replacements which were prepared by invoking replace(ExternalId, ExternalId)
are now executed. Deletion of external IDs is done before
adding the new external IDs. This means if an external ID is specified for deletion and an
external ID with the same key is specified to be added, the old external ID with that key is
deleted first and then the new external ID is added (so the external ID for that key is
replaced).
com.google.gwtorm.server.OrmException