Interface IEntitySearcher

All Known Implementing Classes:
EntitySearcher

public interface IEntitySearcher
Author:
Silvan Wyss
  • Method Details

    • getOptionalStoredBaseBackReferenceWhoCanBackReferenceTheBaseReference

      Optional<BaseBackReference> getOptionalStoredBaseBackReferenceWhoCanBackReferenceTheBaseReference(IEntity entity, BaseReference baseReference)
      Parameters:
      entity -
      baseReference -
      Returns:
      a Optional with the BaseBackReference of the given entity that can reference back the given abstractReference, an empty Optional otherwise.
    • getStoredBaseBackReferencesThatReferenceBackEntity

      ExtendedIterable<BaseBackReference> getStoredBaseBackReferencesThatReferenceBackEntity(IEntity entity)
      Parameters:
      entity -
      Returns:
      the BaseBackReferences that reference back the given entity.
    • getStoredEditedFields

      ExtendedIterable<? extends Field> getStoredEditedFields(IEntity entity)
      Parameters:
      entity -
      Returns:
      the edited Fields of the given entity.
    • getStoredFieldByName

      Field getStoredFieldByName(IEntity entity, String name)
      Parameters:
      entity -
      name -
      Returns:
      the Field with the given name from the given entity
      Throws:
      RuntimeException - if the given entity does not have a field with the given name.
    • getStoredFieldsWhoAreBackReferencedFromEntity

      ExtendedIterable<BaseReference> getStoredFieldsWhoAreBackReferencedFromEntity(IEntity entity)
      Parameters:
      entity -
      Returns:
      the Fields the given entity references back.