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
PatreonTokens
to the creator_tokens database - Return whether the bean was successfully added or not
-
Field Summary
Fields Modifier and Type Field Description private javax.persistence.EntityManager
em
em is theEntityManager
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 aPatreonTokens
into 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 theEntityManager
that handles all the transactions with our database
-
-
Constructor Details
-
CreatorTokensRepository
public CreatorTokensRepository()
-
-
Method Details
-
putPatreonInfo
Inserts aPatreonTokens
into the patreon_info database- Parameters:
pib
-PatreonTokens
to be added to database- Returns:
- either "200" - success or "400" - failure
-