Package com.priint.pubserverapi.person
Interface PersonQuery
- All Superinterfaces:
QueryBuilder<Person>
Interface for building queries to retrieve
Person entities.
This interface extends QueryBuilder and provides additional methods
to build queries based on specific attributes of a Person, such as ID, name,
email, and team ID. It allows for method chaining to construct complex queries.
Example usage:
PersonQuery query = personService.createPersonQuery()
.id("123")
.name("John Doe")
.eMail("john.doe@example.com");
Person result = query.singleResult(); // get a single person
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionSets the email of thePersonin the query.Sets the given name of thePersonin the query.Sets the ID of thePersonin the query.Sets the login of thePersonin the query.Sets the name of thePersonin the query.Sets the surname of thePersonin the query.Sets the team ID associated with thePersonin the query.Methods inherited from interface com.priint.pubserverapi.query.QueryBuilder
list, singleResult
-
Method Details
-
id
Sets the ID of thePersonin the query.- Parameters:
id- the ID of the person- Returns:
- the current
PersonQueryinstance for method chaining
-
name
Sets the name of thePersonin the query.- Parameters:
name- the name of the person- Returns:
- the current
PersonQueryinstance for method chaining
-
eMail
Sets the email of thePersonin the query.- Parameters:
eMail- the email of the person- Returns:
- the current
PersonQueryinstance for method chaining
-
surname
Sets the surname of thePersonin the query.- Parameters:
surname- the surname of the person- Returns:
- the current
PersonQueryinstance for method chaining
-
givenName
Sets the given name of thePersonin the query.- Parameters:
givenName- the given name of the person- Returns:
- the current
PersonQueryinstance for method chaining
-
login
Sets the login of thePersonin the query.- Parameters:
login- the login of the person- Returns:
- the current
PersonQueryinstance for method chaining
-
teamId
Sets the team ID associated with thePersonin the query.- Parameters:
teamId- theTeamIdassociated with the person- Returns:
- the current
PersonQueryinstance for method chaining
-