Class TableExaminer
java.lang.Object
ch.nolix.system.database.databaseobjectexaminer.AbstractDatabaseObjectExaminer<ITable<Entity>>
ch.nolix.system.objectdata.modelexaminer.TableExaminer
- All Implemented Interfaces:
IDatabaseObjectExaminer<ITable<Entity>>, ITableExaminer
public final class TableExaminer
extends AbstractDatabaseObjectExaminer<ITable<Entity>>
implements ITableExaminer
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallNewAndEditedMandatoryFieldsAreSet(ITable<?> table) booleancanInsertEntity(ITable<?> table) booleancanInsertGivenEntity(ITable<?> table, Entity entity) booleancontainsEntityWithGivenIdInLocalData(ITable<?> table, String id) booleanhasInsertedGivenEntityInLocalData(ITable<?> table, Entity entity) Methods inherited from class AbstractDatabaseObjectExaminer
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
Entitys of the given table are set, false otherwise
-
canInsertEntity
- Specified by:
canInsertEntityin interfaceITableExaminer- Parameters:
table-- Returns:
- true if the given table can insert a
Entity, 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
Entitywith 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
-