Class RdsData

java.lang.Object
com.amazon.rdsdata.client.RdsData

public class RdsData extends Object
  • Method Details

    • beginTransaction

      public String beginTransaction()
      Starts a new transaction
      Returns:
      transaction ID
    • commitTransaction

      public void commitTransaction(String transactionId)
      Commits the given transaction
      Parameters:
      transactionId - transaction ID
    • rollbackTransaction

      public void rollbackTransaction(String transactionId)
      Rolls back the given transaction
      Parameters:
      transactionId - transaction ID
    • forSql

      public Executor forSql(String sql)
      Creates an Executor for the given SQL
      Parameters:
      sql - SQL statement
      Returns:
      an Executor instance
      See Also:
    • forSql

      public Executor forSql(String sql, Object... params)
      Creates an Executor for the given SQL with parameters. For each parameter, the SQL statement must contain a placeholder "?"
      Parameters:
      sql - SQL statement with placeholders
      params - vararg array with parameters
      Returns:
      an Executor instance
      See Also:
    • builder

      public static RdsData.RdsDataBuilder builder()
    • withDatabase

      public RdsData withDatabase(String database)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMappingOptions

      public RdsData withMappingOptions(MappingOptions mappingOptions)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).