Package com.patreonshout.jpa
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) CreatorTokensRepositorycreatorTokensRepositorypatreonInfoRepository is theCreatorTokensRepositoryclass 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.StringputPatreonInfo(PatreonTokens pib)CallsCreatorTokensRepository's putPatreonInfo() and passes it the PatreonInfoBean that is to be added to the databaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
creatorTokensRepository
patreonInfoRepository is theCreatorTokensRepositoryclass that handles all logic regarding database connections with the patreon_info table
-
-
Constructor Details
-
CreatorTokens
public CreatorTokens()
-
-
Method Details
-
putPatreonInfo
CallsCreatorTokensRepository's putPatreonInfo() and passes it the PatreonInfoBean that is to be added to the database- Parameters:
pib- is thePatreonTokensbeing added to the database- Returns:
- either "200" - success or "400" - failure
-