Class TransactionalProcessor
java.lang.Object
it.tidalwave.thesefoolishthings.examples.dci.persistable.jpa.TransactionalProcessor
- Author:
- Fabrizio Giudici
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpersistPeople(Iterable<Person> persons) Inserts a bunch of people into the database.Returns invalid input: 'The persons in the database.'.retrievePerson(Id id) Returns a specific person.
-
Constructor Details
-
TransactionalProcessor
public TransactionalProcessor()
-
-
Method Details
-
persistPeople
Inserts a bunch of people into the database.- Parameters:
persons- the entities to insert
-
retrievePeople
Returns invalid input: 'The persons in the database.'.- Returns:
- invalid input: 'The persons in the database.'
-
retrievePerson
Returns a specific person. in the database- Parameters:
id- the id of the person to retrieve- Returns:
- a specific person
-