Package com.amazon.rdsdata.client
Class RdsData
java.lang.Object
com.amazon.rdsdata.client.RdsData
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionStarts a new transactionstatic RdsData.RdsDataBuilderbuilder()voidcommitTransaction(String transactionId) Commits the given transactionCreates anExecutorfor the given SQLCreates anExecutorfor the given SQL with parameters.voidrollbackTransaction(String transactionId) Rolls back the given transactionwithDatabase(String database) withMappingOptions(MappingOptions mappingOptions)
-
Method Details
-
beginTransaction
Starts a new transaction- Returns:
- transaction ID
-
commitTransaction
Commits the given transaction- Parameters:
transactionId- transaction ID
-
rollbackTransaction
Rolls back the given transaction- Parameters:
transactionId- transaction ID
-
forSql
Creates anExecutorfor the given SQL -
forSql
Creates anExecutorfor the given SQL with parameters. For each parameter, the SQL statement must contain a placeholder "?" -
builder
-
withDatabase
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMappingOptions
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-