Coder Social home page Coder Social logo

dynamodbdemo's Introduction

dynamodbdemo

this project try to provide a common interface for java programmer to use amazon dynamodb java sdk more conveniently.

in this demo, we design a class named DynamodbOperation.java. meanwhile, we provide two annotation named Table.java and TablePrimaryKey.java, and a util named ClassUtil.java.

if you want to use our interface, you should design a model mapping to a table in dynamodb, such like Someone.java and Student.java in our demo.

in the model, you should add two annotation, one declares the tableName, the other declares the primary key, and make sure your model have a constructor without arguments.

then, you can use the interface in DynamodnOperation.java to interact with the dynamodb, we support such public methods:

  1. createTable

  2. deleteTable

  3. put

  4. get

  5. scan

  6. delete

.......................... before you can run our demo, you should make sure:

(1) you have downloaded the local dynamodb and run it

if not, go to amazon.dynamodb

(2) you have installed maven(a excellent project build tool for java)

if not, go to apache.maven

while you startup the local version and build success our demo, you can run Test.java to use the interfaces in DynamodbOperation.java

dynamodbdemo's People

Contributors

caojiajun avatar

Watchers

James Cloos avatar Robin Chu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.