Interface ITableValidator
- All Superinterfaces:
DatabaseObjectValidator<ITable>, IResourceValidator
- All Known Implementing Classes:
TableValidator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidassertContainsColumn(ITable table, IColumn column) voidvoidassertDoesNotContainColumn(ITable table, IColumn column) voidassertDoesNotContainColumnWithName(ITable table, String name) voidassertIsNotReferenced(ITable table) Methods inherited from interface DatabaseObjectValidator
assertIsConnectedWithRealDatabase, assertIsLoaded, assertIsNew, assertIsNotConnectedWithRealDatabase, assertIsNotDeleted, assertIsNotNewMethods inherited from interface IResourceValidator
assertIsOpen
-
Method Details
-
assertContainsColumn
- Parameters:
table-column-- Throws:
RuntimeException- if the given table does not contain the given column.
-
assertDoesNotBelongToDatabase
- Parameters:
table-- Throws:
RuntimeException- if the given table does not belong to aIDatabase
-
assertDoesNotContainColumn
- Parameters:
table-column-- Throws:
RuntimeException- if the given table contains the given column
-
assertDoesNotContainColumnWithName
- Parameters:
table-name-- Throws:
RuntimeException- if the given table aIColumnwith the given name.
-
assertIsNotReferenced
- Parameters:
table-- Throws:
RuntimeException- if the given table is referenced
-