Package com.amazon.rdsdata.client
Class RdsDataClient
- java.lang.Object
-
- com.amazon.rdsdata.client.RdsDataClient
-
public class RdsDataClient extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRdsDataClient.RdsDataClientBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbeginTransaction()Starts a new transactionstatic RdsDataClient.RdsDataClientBuilderbuilder()voidcommitTransaction(java.lang.String transactionId)Commits the given transactionExecutorforSql(java.lang.String sql)Creates anExecutorfor the given SQLExecutorforSql(java.lang.String sql, java.lang.Object... params)Creates anExecutorfor the given SQL with parameters.voidrollbackTransaction(java.lang.String transactionId)Rolls back the given transaction
-
-
-
Method Detail
-
beginTransaction
public java.lang.String beginTransaction()
Starts a new transaction- Returns:
- transaction ID
-
commitTransaction
public void commitTransaction(java.lang.String transactionId)
Commits the given transaction- Parameters:
transactionId- transaction ID
-
rollbackTransaction
public void rollbackTransaction(java.lang.String transactionId)
Rolls back the given transaction- Parameters:
transactionId- transaction ID
-
forSql
public Executor forSql(java.lang.String sql, java.lang.Object... params)
Creates anExecutorfor the given SQL with parameters. For each parameter, the SQL statement must contain a placeholder "?"
-
builder
public static RdsDataClient.RdsDataClientBuilder builder()
-
-