@Generated(value="software.amazon.awssdk:codegen") public final class ExecuteStatementResponse extends RdsDataResponse implements ToCopyableBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>
The response elements represent the output of a request to run a SQL statement against a database.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExecuteStatementResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteStatementResponse.Builder |
builder() |
List<ColumnMetadata> |
columnMetadata()
Metadata for the columns included in the results.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<Field> |
generatedFields()
Values for fields generated during the request.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasColumnMetadata()
Returns true if the ColumnMetadata property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasGeneratedFields()
Returns true if the GeneratedFields property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasRecords()
Returns true if the Records property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Long |
numberOfRecordsUpdated()
The number of records updated by the request.
|
List<List<Field>> |
records()
The records returned by the SQL statement.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ExecuteStatementResponse.Builder> |
serializableBuilderClass() |
ExecuteStatementResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasColumnMetadata()
public final List<ColumnMetadata> columnMetadata()
Metadata for the columns included in the results.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasColumnMetadata() to see if a value was sent in this field.
public final boolean hasGeneratedFields()
public final List<Field> generatedFields()
Values for fields generated during the request.
<note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGeneratedFields() to see if a value was sent in this field.
<note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note> public final Long numberOfRecordsUpdated()
The number of records updated by the request.
public final boolean hasRecords()
public final List<List<Field>> records()
The records returned by the SQL statement.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRecords() to see if a value was sent in this field.
public ExecuteStatementResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>toBuilder in class AwsResponsepublic static ExecuteStatementResponse.Builder builder()
public static Class<? extends ExecuteStatementResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.