Interface IEntitySearcher

All Known Implementing Classes:
EntitySearcher

public interface IEntitySearcher
Author:
Silvan Wyss
  • Method Details

    • getOptionalStoredBaseBackReferenceWhoCanBackReferenceTheBaseReference

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

      IContainer<IBaseBackReference> getStoredBaseBackReferencesThatReferenceBackEntity(IEntity entity)
      Parameters:
      entity -
      Returns:
      the IBaseBackReferences that reference back the given entity.
    • getStoredEditedFields

      IContainer<? extends IField> getStoredEditedFields(IEntity entity)
      Parameters:
      entity -
      Returns:
      the edited IFields of the given entity.
    • getStoredFieldByName

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

      IContainer<IBaseReference> getStoredFieldsWhoAreBackReferencedFromEntity(IEntity entity)
      Parameters:
      entity -
      Returns:
      the IFields the given entity references back.