Class CreatorTokens

java.lang.Object
com.patreonshout.jpa.CreatorTokens

@Component
public class CreatorTokens
extends java.lang.Object
PatreonInfo Repository Wrapper

Responsibilities: 1) Be a wrapper class for CreatorTokensRepository 2) Add any logic needed before going into CreatorTokensRepository

  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) CreatorTokensRepository creatorTokensRepository
    patreonInfoRepository is the CreatorTokensRepository class that handles all logic regarding database connections with the patreon_info table
  • Constructor Summary

    Constructors
    Constructor Description
    CreatorTokens()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String putPatreonInfo​(PatreonTokens pib)
    Calls CreatorTokensRepository's putPatreonInfo() and passes it the PatreonInfoBean that is to be added to the database

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • CreatorTokens

      public CreatorTokens()
  • Method Details

    • putPatreonInfo

      public java.lang.String putPatreonInfo​(PatreonTokens pib)
      Calls CreatorTokensRepository's putPatreonInfo() and passes it the PatreonInfoBean that is to be added to the database
      Parameters:
      pib - is the PatreonTokens being added to the database
      Returns:
      either "200" - success or "400" - failure