Class EntityExaminer
java.lang.Object
ch.nolix.system.databaseobject.modelexaminer.DatabaseObjectExaminer
ch.nolix.system.objectdata.modelexaminer.EntityExaminer
- All Implemented Interfaces:
IDatabaseObjectExaminer, IEntityExaminer
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanBeDeleted(IEntity entity) booleancanBeInsertedIntoTable(IEntity entity) booleancanSetParentTable(IEntity entity) booleancanSetParentTable(IEntity entity, ITable<? extends IEntity> table) booleanbooleanbooleanbooleanreferencesGivenEntity(IEntity sourceEntity, IEntity entity) Methods inherited from class DatabaseObjectExaminer
isNewOrDeleted, isNewOrEdited, isNewOrEditedOrDeleted, isNewOrLoaded, isNewOrLoadedOrEditedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDatabaseObjectExaminer
isNewOrDeleted, isNewOrEdited, isNewOrEditedOrDeleted, isNewOrLoaded, isNewOrLoadedOrEdited
-
Constructor Details
-
EntityExaminer
public EntityExaminer()
-
-
Method Details
-
allNewAndEditedMandatoryFieldsAreSet
- Specified by:
allNewAndEditedMandatoryFieldsAreSetin interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if all new and mandatory fields of the given entity are set, false otherwise.
-
canBeDeleted
- Specified by:
canBeDeletedin interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if the given entity can be deleted, false otherwise.
-
canBeInsertedIntoTable
- Specified by:
canBeInsertedIntoTablein interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if the given entity can be inserted into a
ITable, false otherwise.
-
canSetParentTable
- Specified by:
canSetParentTablein interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if a parent table can be set to the given entity, false otherwise.
-
canSetParentTable
- Specified by:
canSetParentTablein interfaceIEntityExaminer- Parameters:
entity-table-- Returns:
- true if the given table can be set as parent table to the given entity, false otherwise.
-
isReferencedIgnoringLocallyDeletedEntities
- Specified by:
isReferencedIgnoringLocallyDeletedEntitiesin interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if the given entity is referenced ignoring the locally deleted
IEntitys, false otherwise.
-
isReferencedInLocalDataIgnoringLocallyDeletedEntities
- Specified by:
isReferencedInLocalDataIgnoringLocallyDeletedEntitiesin interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if the given entity is referenced in the local data ignoring the
locally deleted
IEntitys, false otherwise.
-
isReferencedInPersistedDataIgnoringLocallyDeletedEntities
- Specified by:
isReferencedInPersistedDataIgnoringLocallyDeletedEntitiesin interfaceIEntityExaminer- Parameters:
entity-- Returns:
- true if the given entity is referenced in the persisted data ignoring
the locally deleted
IEntitys, false otherwise.
-
referencesGivenEntity
- Specified by:
referencesGivenEntityin interfaceIEntityExaminer- Parameters:
sourceEntity-entity-- Returns:
- true if the given sourceEntity referecned the given targetEntity, false otherwise.
-