Interface PersonQuery

All Superinterfaces:
QueryBuilder<Person>

public interface PersonQuery extends 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 Details

    • id

      Sets the ID of the Person in the query.
      Parameters:
      id - the ID of the person
      Returns:
      the current PersonQuery instance for method chaining
    • name

      PersonQuery name(String name)
      Sets the name of the Person in the query.
      Parameters:
      name - the name of the person
      Returns:
      the current PersonQuery instance for method chaining
    • eMail

      PersonQuery eMail(String eMail)
      Sets the email of the Person in the query.
      Parameters:
      eMail - the email of the person
      Returns:
      the current PersonQuery instance for method chaining
    • surname

      PersonQuery surname(String surname)
      Sets the surname of the Person in the query.
      Parameters:
      surname - the surname of the person
      Returns:
      the current PersonQuery instance for method chaining
    • givenName

      PersonQuery givenName(String givenName)
      Sets the given name of the Person in the query.
      Parameters:
      givenName - the given name of the person
      Returns:
      the current PersonQuery instance for method chaining
    • login

      PersonQuery login(String login)
      Sets the login of the Person in the query.
      Parameters:
      login - the login of the person
      Returns:
      the current PersonQuery instance for method chaining
    • teamId

      PersonQuery teamId(TeamId teamId)
      Sets the team ID associated with the Person in the query.
      Parameters:
      teamId - the TeamId associated with the person
      Returns:
      the current PersonQuery instance for method chaining