Class CreatorTokensRepository

java.lang.Object
com.patreonshout.jpa.CreatorTokensRepository

@Repository
public class CreatorTokensRepository
extends java.lang.Object
Communication between the creator_tokens table in the database

Responsibilities

  1. Add a PatreonTokens to the creator_tokens database
  2. Return whether the bean was successfully added or not

  • Field Summary

    Fields
    Modifier and Type Field Description
    private javax.persistence.EntityManager em
    em is the EntityManager that handles all the transactions with our database
  • Constructor Summary

    Constructors
    Constructor Description
    CreatorTokensRepository()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String putPatreonInfo​(PatreonTokens pib)
    Inserts a PatreonTokens into the patreon_info database

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • em

      private javax.persistence.EntityManager em
      em is the EntityManager that handles all the transactions with our database
  • Constructor Details

    • CreatorTokensRepository

      public CreatorTokensRepository()
  • Method Details

    • putPatreonInfo

      @Transactional public java.lang.String putPatreonInfo​(PatreonTokens pib)
      Inserts a PatreonTokens into the patreon_info database
      Parameters:
      pib - PatreonTokens to be added to database
      Returns:
      either "200" - success or "400" - failure