Klasse EntityExaminer

java.lang.Object
ch.nolix.system.databaseobject.modelexaminer.DatabaseObjectExaminer
ch.nolix.system.objectdata.modelexaminer.EntityExaminer
Alle implementierten Schnittstellen:
IDatabaseObjectExaminer, IEntityExaminer

public final class EntityExaminer extends DatabaseObjectExaminer implements IEntityExaminer
Version:
2024-12-29
Autor:
Silvan Wyss
  • Konstruktordetails

    • EntityExaminer

      public EntityExaminer()
  • Methodendetails

    • allNewAndEditedMandatoryFieldsAreSet

      public boolean allNewAndEditedMandatoryFieldsAreSet(IEntity entity)
      Angegeben von:
      allNewAndEditedMandatoryFieldsAreSet in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if all new and mandatory fields of the given entity are set, false otherwise.
    • canBeDeleted

      public boolean canBeDeleted(IEntity entity)
      Angegeben von:
      canBeDeleted in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if the given entity can be deleted, false otherwise.
    • canBeInsertedIntoTable

      public boolean canBeInsertedIntoTable(IEntity entity)
      Angegeben von:
      canBeInsertedIntoTable in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if the given entity can be inserted into a ITable, false otherwise.
    • canSetParentTable

      public boolean canSetParentTable(IEntity entity)
      Angegeben von:
      canSetParentTable in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if a parent table can be set to the given entity, false otherwise.
    • canSetParentTable

      public <E extends IEntity> boolean canSetParentTable(IEntity entity, ITable<E> table)
      Angegeben von:
      canSetParentTable in Schnittstelle IEntityExaminer
      Typparameter:
      E - is the type of the IEntitys of the givne table.
      Parameter:
      entity -
      table -
      Gibt zurück:
      true if the given table can be set as parent table to the given entity, false otherwise.
    • isReferenced

      public boolean isReferenced(IEntity entity)
      Angegeben von:
      isReferenced in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if the given entity is referenced, false otherwise.
    • isReferencedIgnoringLocallyDeletedEntities

      public boolean isReferencedIgnoringLocallyDeletedEntities(IEntity entity)
      Angegeben von:
      isReferencedIgnoringLocallyDeletedEntities in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if the given entity is referenced where the locally deleted IEntitys are ignored, false otherwise.
    • isReferencedInLocalData

      public boolean isReferencedInLocalData(IEntity entity)
      Angegeben von:
      isReferencedInLocalData in Schnittstelle IEntityExaminer
      Parameter:
      entity -
      Gibt zurück:
      true if the given entity is referenced in the local data, false otherwise.
    • referencesGivenEntity

      public boolean referencesGivenEntity(IEntity sourceEntity, IEntity entity)
      Angegeben von:
      referencesGivenEntity in Schnittstelle IEntityExaminer
      Parameter:
      sourceEntity -
      entity -
      Gibt zurück:
      true if the given sourceEntity referecned the given targetEntity, false otherwise.