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) CreatorTokensRepository
creatorTokensRepository
patreonInfoRepository is theCreatorTokensRepository
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)
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 theCreatorTokensRepository
class 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 thePatreonTokens
being added to the database- Returns:
- either "200" - success or "400" - failure
-