Interface IEntityExaminer

All Superinterfaces:
IDatabaseObjectExaminer<Entity>
All Known Implementing Classes:
EntityExaminer

public interface IEntityExaminer extends IDatabaseObjectExaminer<Entity>
Author:
Silvan Wyss
  • Method Details

    • allNewAndEditedMandatoryFieldsAreSet

      boolean allNewAndEditedMandatoryFieldsAreSet(Entity entity)
      Parameters:
      entity -
      Returns:
      true if all new and mandatory fields of the given entity are set, false otherwise
    • canBeDeleted

      boolean canBeDeleted(Entity entity)
      Parameters:
      entity -
      Returns:
      true if the given entity can be deleted, false otherwise
    • canBeInsertedIntoTable

      boolean canBeInsertedIntoTable(Entity entity)
      Parameters:
      entity -
      Returns:
      true if the given entity can be inserted into a ITable, false otherwise
    • canSetParentTable

      boolean canSetParentTable(Entity entity)
      Parameters:
      entity -
      Returns:
      true if a parent table can be set to the given entity, false otherwise
    • canSetParentTable

      boolean canSetParentTable(Entity entity, ITable<? extends Entity> table)
      Parameters:
      entity -
      table -
      Returns:
      true if the given table can be set as parent table to the given entity, false otherwise
    • isReferencedIgnoringLocallyDeletedEntities

      boolean isReferencedIgnoringLocallyDeletedEntities(Entity entity)
      Parameters:
      entity -
      Returns:
      true if the given entity is referenced ignoring the locally deleted Entitys, false otherwise
    • isReferencedInLocalDataIgnoringLocallyDeletedEntities

      boolean isReferencedInLocalDataIgnoringLocallyDeletedEntities(Entity entity)
      Parameters:
      entity -
      Returns:
      true if the given entity is referenced in the local data ignoring the locally deleted Entitys, false otherwise
    • isReferencedInPersistedDataIgnoringLocallyDeletedEntities

      boolean isReferencedInPersistedDataIgnoringLocallyDeletedEntities(Entity entity)
      Parameters:
      entity -
      Returns:
      true if the given entity is referenced in the persisted data ignoring the locally deleted Entitys, false otherwise
    • referencesGivenEntity

      boolean referencesGivenEntity(Entity sourceEntity, Entity targetEntity)
      Parameters:
      sourceEntity -
      targetEntity -
      Returns:
      true if the given sourceEntity referecned the given targetEntity, false otherwise