public static class TableUpdateRequest.UpdateTableColumnPositionRequest extends java.lang.Object implements TableUpdateRequest
TableUpdateRequest.AddTableColumnRequest, TableUpdateRequest.AddTableIndexRequest, TableUpdateRequest.DeleteTableColumnRequest, TableUpdateRequest.DeleteTableIndexRequest, TableUpdateRequest.RemoveTablePropertyRequest, TableUpdateRequest.RenameTableColumnRequest, TableUpdateRequest.RenameTableRequest, TableUpdateRequest.SetTablePropertyRequest, TableUpdateRequest.UpdateColumnAutoIncrementRequest, TableUpdateRequest.UpdateTableColumnCommentRequest, TableUpdateRequest.UpdateTableColumnDefaultValueRequest, TableUpdateRequest.UpdateTableColumnNullabilityRequest, TableUpdateRequest.UpdateTableColumnPositionRequest, TableUpdateRequest.UpdateTableColumnTypeRequest, TableUpdateRequest.UpdateTableCommentRequest
Constructor and Description |
---|
UpdateTableColumnPositionRequest()
Default constructor for Jackson deserialization.
|
UpdateTableColumnPositionRequest(java.lang.String[] fieldName,
TableChange.ColumnPosition newPosition)
Constructor for UpdateTableColumnPositionRequest.
|
Modifier and Type | Method and Description |
---|---|
TableChange |
tableChange()
The table change that is requested.
|
void |
validate()
Validates the request.
|
public UpdateTableColumnPositionRequest(java.lang.String[] fieldName, TableChange.ColumnPosition newPosition)
fieldName
- the field name to updatenewPosition
- the new position of the fieldpublic UpdateTableColumnPositionRequest()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.public TableChange tableChange()
TableUpdateRequest
tableChange
in interface TableUpdateRequest