@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExecuteStatementResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The response elements represent the output of a request to run a SQL statement against a database.
Constructor and Description |
---|
ExecuteStatementResult() |
Modifier and Type | Method and Description |
---|---|
ExecuteStatementResult |
clone() |
boolean |
equals(Object obj) |
List<ColumnMetadata> |
getColumnMetadata()
Metadata for the columns included in the results.
|
String |
getFormattedRecords()
A string value that represents the result set of a
SELECT statement in JSON format. |
List<Field> |
getGeneratedFields()
Values for fields generated during a DML request.
|
Long |
getNumberOfRecordsUpdated()
The number of records updated by the request.
|
List<List<Field>> |
getRecords()
The records returned by the SQL statement.
|
int |
hashCode() |
void |
setColumnMetadata(Collection<ColumnMetadata> columnMetadata)
Metadata for the columns included in the results.
|
void |
setFormattedRecords(String formattedRecords)
A string value that represents the result set of a
SELECT statement in JSON format. |
void |
setGeneratedFields(Collection<Field> generatedFields)
Values for fields generated during a DML request.
|
void |
setNumberOfRecordsUpdated(Long numberOfRecordsUpdated)
The number of records updated by the request.
|
void |
setRecords(Collection<List<Field>> records)
The records returned by the SQL statement.
|
String |
toString()
Returns a string representation of this object.
|
ExecuteStatementResult |
withColumnMetadata(Collection<ColumnMetadata> columnMetadata)
Metadata for the columns included in the results.
|
ExecuteStatementResult |
withColumnMetadata(ColumnMetadata... columnMetadata)
Metadata for the columns included in the results.
|
ExecuteStatementResult |
withFormattedRecords(String formattedRecords)
A string value that represents the result set of a
SELECT statement in JSON format. |
ExecuteStatementResult |
withGeneratedFields(Collection<Field> generatedFields)
Values for fields generated during a DML request.
|
ExecuteStatementResult |
withGeneratedFields(Field... generatedFields)
Values for fields generated during a DML request.
|
ExecuteStatementResult |
withNumberOfRecordsUpdated(Long numberOfRecordsUpdated)
The number of records updated by the request.
|
ExecuteStatementResult |
withRecords(Collection<List<Field>> records)
The records returned by the SQL statement.
|
ExecuteStatementResult |
withRecords(List<Field>... records)
The records returned by the SQL statement.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<List<Field>> getRecords()
The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is
set to JSON
.
formatRecordsAs
parameter is set to JSON
.public void setRecords(Collection<List<Field>> records)
The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is
set to JSON
.
records
- The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is set to JSON
.public ExecuteStatementResult withRecords(List<Field>... records)
The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is
set to JSON
.
NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
or withRecords(java.util.Collection)
if you want to override
the existing values.
records
- The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is set to JSON
.public ExecuteStatementResult withRecords(Collection<List<Field>> records)
The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is
set to JSON
.
records
- The records returned by the SQL statement. This field is blank if the formatRecordsAs
parameter is set to JSON
.public List<ColumnMetadata> getColumnMetadata()
Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.
formatRecordsAs
parameter is set to JSON
.public void setColumnMetadata(Collection<ColumnMetadata> columnMetadata)
Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.
columnMetadata
- Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.public ExecuteStatementResult withColumnMetadata(ColumnMetadata... columnMetadata)
Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.
NOTE: This method appends the values to the existing list (if any). Use
setColumnMetadata(java.util.Collection)
or withColumnMetadata(java.util.Collection)
if you want
to override the existing values.
columnMetadata
- Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.public ExecuteStatementResult withColumnMetadata(Collection<ColumnMetadata> columnMetadata)
Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.
columnMetadata
- Metadata for the columns included in the results. This field is blank if the formatRecordsAs
parameter is set to JSON
.public void setNumberOfRecordsUpdated(Long numberOfRecordsUpdated)
The number of records updated by the request.
numberOfRecordsUpdated
- The number of records updated by the request.public Long getNumberOfRecordsUpdated()
The number of records updated by the request.
public ExecuteStatementResult withNumberOfRecordsUpdated(Long numberOfRecordsUpdated)
The number of records updated by the request.
numberOfRecordsUpdated
- The number of records updated by the request.public List<Field> getGeneratedFields()
Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of
generated fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
public void setGeneratedFields(Collection<Field> generatedFields)
Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
generatedFields
- Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
public ExecuteStatementResult withGeneratedFields(Field... generatedFields)
Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
NOTE: This method appends the values to the existing list (if any). Use
setGeneratedFields(java.util.Collection)
or withGeneratedFields(java.util.Collection)
if you
want to override the existing values.
generatedFields
- Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
public ExecuteStatementResult withGeneratedFields(Collection<Field> generatedFields)
Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
generatedFields
- Values for fields generated during a DML request.
The generatedFields
data isn't supported by Aurora PostgreSQL. To get the values of generated
fields, use the RETURNING
clause. For more information, see Returning Data From Modified Rows in the
PostgreSQL documentation.
public void setFormattedRecords(String formattedRecords)
A string value that represents the result set of a SELECT
statement in JSON format. This value is
only present when the formatRecordsAs
parameter is set to JSON
.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
formattedRecords
- A string value that represents the result set of a SELECT
statement in JSON format. This
value is only present when the formatRecordsAs
parameter is set to JSON
.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
public String getFormattedRecords()
A string value that represents the result set of a SELECT
statement in JSON format. This value is
only present when the formatRecordsAs
parameter is set to JSON
.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
SELECT
statement in JSON format. This
value is only present when the formatRecordsAs
parameter is set to JSON
.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
public ExecuteStatementResult withFormattedRecords(String formattedRecords)
A string value that represents the result set of a SELECT
statement in JSON format. This value is
only present when the formatRecordsAs
parameter is set to JSON
.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
formattedRecords
- A string value that represents the result set of a SELECT
statement in JSON format. This
value is only present when the formatRecordsAs
parameter is set to JSON
.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
public String toString()
toString
in class Object
Object.toString()
public ExecuteStatementResult clone()