Package com.patreonshout.jpa
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
- Add a
PatreonTokensto the creator_tokens database - Return whether the bean was successfully added or not
-
Field Summary
Fields Modifier and Type Field Description private javax.persistence.EntityManageremem is theEntityManagerthat handles all the transactions with our database -
Constructor Summary
Constructors Constructor Description CreatorTokensRepository() -
Method Summary
Modifier and Type Method Description java.lang.StringputPatreonInfo(PatreonTokens pib)Inserts aPatreonTokensinto the patreon_info databaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
em
private javax.persistence.EntityManager emem is theEntityManagerthat handles all the transactions with our database
-
-
Constructor Details
-
CreatorTokensRepository
public CreatorTokensRepository()
-
-
Method Details
-
putPatreonInfo
Inserts aPatreonTokensinto the patreon_info database- Parameters:
pib-PatreonTokensto be added to database- Returns:
- either "200" - success or "400" - failure
-