Class TableExaminer
java.lang.Object
ch.nolix.system.databaseobject.modelexaminer.DatabaseObjectExaminer
ch.nolix.system.objectdata.modelexaminer.TableExaminer
- All Implemented Interfaces:
IDatabaseObjectExaminer, ITableExaminer
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallNewAndEditedMandatoryFieldsAreSet(ITable<?> table) booleancanInsertEntity(ITable<?> table) booleancanInsertGivenEntity(ITable<?> table, IEntity entity) booleancontainsEntityWithGivenIdInLocalData(ITable<?> table, String id) booleanhasInsertedGivenEntityInLocalData(ITable<?> table, 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
-
TableExaminer
public TableExaminer()
-
-
Method Details
-
allNewAndEditedMandatoryFieldsAreSet
- Specified by:
allNewAndEditedMandatoryFieldsAreSetin interfaceITableExaminer- Parameters:
table-- Returns:
- true if all new and edited mandatory fields of the
IEntitys of the given table are set, false otherwise.
-
canInsertEntity
- Specified by:
canInsertEntityin interfaceITableExaminer- Parameters:
table-- Returns:
- true if the given table can insert a
IEntity, false otherwise.
-
canInsertGivenEntity
- Specified by:
canInsertGivenEntityin interfaceITableExaminer- Parameters:
table-entity-- Returns:
- true if the given table can insert the given entity, false otherwise.
-
containsEntityWithGivenIdInLocalData
- Specified by:
containsEntityWithGivenIdInLocalDatain interfaceITableExaminer- Parameters:
table-id-- Returns:
- true if the given table contains a
IEntitywith the given id in the local data, false otherwise.
-
hasInsertedGivenEntityInLocalData
- Specified by:
hasInsertedGivenEntityInLocalDatain interfaceITableExaminer- Parameters:
table-entity-- Returns:
- true if the the given table has inserted the given entity in the local data, false otherwise.
-