public class SetLocation extends java.lang.Object implements UpdateLocation
Constructor and Description |
---|
SetLocation(TableOperations ops) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply()
Apply the pending changes and return the uncommitted changes for validation.
|
void |
commit()
Apply the pending changes and commit.
|
UpdateLocation |
setLocation(java.lang.String location)
Set the table's or view's location.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateEvent
public SetLocation(TableOperations ops)
public UpdateLocation setLocation(java.lang.String location)
UpdateLocation
setLocation
in interface UpdateLocation
location
- a String locationpublic java.lang.String apply()
PendingUpdate
This does not result in a permanent update.
apply
in interface PendingUpdate<java.lang.String>
PendingUpdate.commit()
public void commit()
PendingUpdate
Changes are committed by calling the underlying table's commit method.
Once the commit is successful, the updated table will be refreshed.
commit
in interface PendingUpdate<java.lang.String>