Interface IEntitySearcher
- All Known Implementing Classes:
EntitySearcher
public interface IEntitySearcher
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptiongetOptionalStoredBaseBackReferenceWhoCanBackReferenceTheBaseReference(IEntity entity, IBaseReference baseReference) IContainer<? extends IField> getStoredEditedFields(IEntity entity) getStoredFieldByName(IEntity entity, String name)
-
Method Details
-
getOptionalStoredBaseBackReferenceWhoCanBackReferenceTheBaseReference
Optional<IBaseBackReference> getOptionalStoredBaseBackReferenceWhoCanBackReferenceTheBaseReference(IEntity entity, IBaseReference baseReference) - Parameters:
entity-baseReference-- Returns:
- a
Optionalwith theIBaseBackReferenceof the given entity that can reference back the given abstractReference, an emptyOptionalotherwise.
-
getStoredBaseBackReferencesThatReferenceBackEntity
- Parameters:
entity-- Returns:
- the
IBaseBackReferences that reference back the given entity.
-
getStoredEditedFields
- Parameters:
entity-- Returns:
- the edited
IFields of the given entity.
-
getStoredFieldByName
- Parameters:
entity-name-- Returns:
- the
IFieldwith the given name from the given entity. - Throws:
RuntimeException- if the given entity does not have a field with the given name.
-
getStoredFieldsWhoAreBackReferencedFromEntity
- Parameters:
entity-- Returns:
- the
IFields the given entity references back.
-