Class AWSDynamoDAO

java.lang.Object
com.erudika.para.server.persistence.AWSDynamoDAO
All Implemented Interfaces:
com.erudika.para.core.persistence.DAO

@Singleton public class AWSDynamoDAO extends Object implements com.erudika.para.core.persistence.DAO
An implementation of the DAO interface using AWS DynamoDB as a data store.
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Summary

    Constructors
    Constructor
    Description
    No-args constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    <P extends com.erudika.para.core.ParaObject>
    String
    create(String appid, P so)
    //////////////////////////////////////////
    <P extends com.erudika.para.core.ParaObject>
    String
    create(P so)
    ///////////////////////////////////////////////////
    <P extends com.erudika.para.core.ParaObject>
    void
    createAll(String appid, List<P> objects)
    //////////////////////////////////////////
    <P extends com.erudika.para.core.ParaObject>
    void
    createAll(List<P> objects)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    delete(String appid, P so)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    delete(P so)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    deleteAll(String appid, List<P> objects)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    deleteAll(List<P> objects)
     
    <P extends com.erudika.para.core.ParaObject>
    P
    read(String key)
     
    <P extends com.erudika.para.core.ParaObject>
    P
    read(String appid, String key)
     
    <P extends com.erudika.para.core.ParaObject>
    Map<String,P>
    readAll(String appid, List<String> keys, boolean getAllColumns)
     
    <P extends com.erudika.para.core.ParaObject>
    Map<String,P>
    readAll(List<String> keys, boolean getAllColumns)
     
    <P extends com.erudika.para.core.ParaObject>
    List<P>
    readPage(com.erudika.para.core.utils.Pager pager)
     
    <P extends com.erudika.para.core.ParaObject>
    List<P>
    readPage(String appid, com.erudika.para.core.utils.Pager pager)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    update(String appid, P so)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    update(P so)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    updateAll(String appid, List<P> objects)
     
    <P extends com.erudika.para.core.ParaObject>
    void
    updateAll(List<P> objects)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AWSDynamoDAO

      public AWSDynamoDAO()
      No-args constructor.
  • Method Details

    • create

      public <P extends com.erudika.para.core.ParaObject> String create(String appid, P so)
      //////////////////////////////////////////
      Specified by:
      create in interface com.erudika.para.core.persistence.DAO
    • read

      public <P extends com.erudika.para.core.ParaObject> P read(String appid, String key)
      Specified by:
      read in interface com.erudika.para.core.persistence.DAO
    • update

      public <P extends com.erudika.para.core.ParaObject> void update(String appid, P so)
      Specified by:
      update in interface com.erudika.para.core.persistence.DAO
    • delete

      public <P extends com.erudika.para.core.ParaObject> void delete(String appid, P so)
      Specified by:
      delete in interface com.erudika.para.core.persistence.DAO
    • createAll

      public <P extends com.erudika.para.core.ParaObject> void createAll(String appid, List<P> objects)
      //////////////////////////////////////////
      Specified by:
      createAll in interface com.erudika.para.core.persistence.DAO
    • readAll

      public <P extends com.erudika.para.core.ParaObject> Map<String,P> readAll(String appid, List<String> keys, boolean getAllColumns)
      Specified by:
      readAll in interface com.erudika.para.core.persistence.DAO
    • readPage

      public <P extends com.erudika.para.core.ParaObject> List<P> readPage(String appid, com.erudika.para.core.utils.Pager pager)
      Specified by:
      readPage in interface com.erudika.para.core.persistence.DAO
    • updateAll

      public <P extends com.erudika.para.core.ParaObject> void updateAll(String appid, List<P> objects)
      Specified by:
      updateAll in interface com.erudika.para.core.persistence.DAO
    • deleteAll

      public <P extends com.erudika.para.core.ParaObject> void deleteAll(String appid, List<P> objects)
      Specified by:
      deleteAll in interface com.erudika.para.core.persistence.DAO
    • create

      public <P extends com.erudika.para.core.ParaObject> String create(P so)
      ///////////////////////////////////////////////////
      Specified by:
      create in interface com.erudika.para.core.persistence.DAO
    • read

      public <P extends com.erudika.para.core.ParaObject> P read(String key)
      Specified by:
      read in interface com.erudika.para.core.persistence.DAO
    • update

      public <P extends com.erudika.para.core.ParaObject> void update(P so)
      Specified by:
      update in interface com.erudika.para.core.persistence.DAO
    • delete

      public <P extends com.erudika.para.core.ParaObject> void delete(P so)
      Specified by:
      delete in interface com.erudika.para.core.persistence.DAO
    • createAll

      public <P extends com.erudika.para.core.ParaObject> void createAll(List<P> objects)
      Specified by:
      createAll in interface com.erudika.para.core.persistence.DAO
    • readAll

      public <P extends com.erudika.para.core.ParaObject> Map<String,P> readAll(List<String> keys, boolean getAllColumns)
      Specified by:
      readAll in interface com.erudika.para.core.persistence.DAO
    • readPage

      public <P extends com.erudika.para.core.ParaObject> List<P> readPage(com.erudika.para.core.utils.Pager pager)
      Specified by:
      readPage in interface com.erudika.para.core.persistence.DAO
    • updateAll

      public <P extends com.erudika.para.core.ParaObject> void updateAll(List<P> objects)
      Specified by:
      updateAll in interface com.erudika.para.core.persistence.DAO
    • deleteAll

      public <P extends com.erudika.para.core.ParaObject> void deleteAll(List<P> objects)
      Specified by:
      deleteAll in interface com.erudika.para.core.persistence.DAO