Class DefaultDynamoDBDatabaseManager

java.lang.Object
org.eclipse.jnosql.databases.dynamodb.communication.DefaultDynamoDBDatabaseManager
All Implemented Interfaces:
AutoCloseable, org.eclipse.jnosql.communication.semistructured.DatabaseManager, DynamoDBDatabaseManager

public class DefaultDynamoDBDatabaseManager extends Object implements DynamoDBDatabaseManager
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultDynamoDBDatabaseManager(String database, software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient, org.eclipse.jnosql.communication.Settings settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    long
    count(String tableName)
     
    void
    delete(org.eclipse.jnosql.communication.semistructured.DeleteQuery deleteQuery)
     
    software.amazon.awssdk.services.dynamodb.DynamoDbClient
     
    Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    insert(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities)
     
    Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    insert(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities, Duration ttl)
     
    org.eclipse.jnosql.communication.semistructured.CommunicationEntity
    insert(org.eclipse.jnosql.communication.semistructured.CommunicationEntity documentEntity)
     
    org.eclipse.jnosql.communication.semistructured.CommunicationEntity
    insert(org.eclipse.jnosql.communication.semistructured.CommunicationEntity documentEntity, Duration ttl)
     
     
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    partiQL(String query, Object... params)
    DynamoDB supports a limited subset of PartiQL.
    Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    select(org.eclipse.jnosql.communication.semistructured.SelectQuery query)
     
    Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>
    update(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities)
     
    org.eclipse.jnosql.communication.semistructured.CommunicationEntity
    update(org.eclipse.jnosql.communication.semistructured.CommunicationEntity documentEntity)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jnosql.communication.semistructured.DatabaseManager

    count, deleteAndCount, exists, prepare, prepare, query, query, selectCursor, singleResult, update
  • Constructor Details

    • DefaultDynamoDBDatabaseManager

      public DefaultDynamoDBDatabaseManager(String database, software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient, org.eclipse.jnosql.communication.Settings settings)
  • Method Details

    • dynamoDbClient

      public software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient()
      Specified by:
      dynamoDbClient in interface DynamoDBDatabaseManager
      Returns:
      a DynamoDbClient instance for custom utilization
    • name

      public String name()
      Specified by:
      name in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • insert

      public org.eclipse.jnosql.communication.semistructured.CommunicationEntity insert(org.eclipse.jnosql.communication.semistructured.CommunicationEntity documentEntity)
      Specified by:
      insert in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • insert

      public org.eclipse.jnosql.communication.semistructured.CommunicationEntity insert(org.eclipse.jnosql.communication.semistructured.CommunicationEntity documentEntity, Duration ttl)
      Specified by:
      insert in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • insert

      public Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> insert(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities)
      Specified by:
      insert in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • insert

      public Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> insert(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities, Duration ttl)
      Specified by:
      insert in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • update

      public org.eclipse.jnosql.communication.semistructured.CommunicationEntity update(org.eclipse.jnosql.communication.semistructured.CommunicationEntity documentEntity)
      Specified by:
      update in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • update

      public Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> update(Iterable<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> entities)
      Specified by:
      update in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • delete

      public void delete(org.eclipse.jnosql.communication.semistructured.DeleteQuery deleteQuery)
      Specified by:
      delete in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • select

      public Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> select(org.eclipse.jnosql.communication.semistructured.SelectQuery query)
      Specified by:
      select in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • count

      public long count(String tableName)
      Specified by:
      count in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
    • partiQL

      public Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> partiQL(String query, Object... params)
      Description copied from interface: DynamoDBDatabaseManager
      DynamoDB supports a limited subset of PartiQL. This method executes a PartiQL query with parameters and returns a stream of CommunicationEntity objects.

      Example query: SELECT * FROM users WHERE status = ?

      Specified by:
      partiQL in interface DynamoDBDatabaseManager
      Parameters:
      query - the PartiQL query
      Returns:
      a Stream of CommunicationEntity representing the query result