Class AbstractSchemaAdapter
java.lang.Object
ch.nolix.system.objectschema.adapter.AbstractSchemaAdapter
- All Implemented Interfaces:
Resettable, Closeable, GroupCloseable, ChangeRequestable, OpennessRequestable, IChangeSaver, IResettableChangeSaver, SchemaAdapter, AutoCloseable
- Direct Known Subclasses:
MsSqlSchemaAdapter, NodeSchemaAdapter
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal intfinal ICloseControllerfinal ITablegetStoredTableByName(String name) final ExtendedIterable<? extends ITable> final intfinal booleanfinal voidLets the currentGroupCloseablenote a close.final voidreset()Resets the currentResettable.final voidSaves the changes of the currentIChangeSaver.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChangeRequestable
isChangeFreeMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, isClosedMethods inherited from interface OpennessRequestable
isOpen
-
Method Details
-
addTable
- Specified by:
addTablein interfaceSchemaAdapter
-
databaseIsEmpty
public final boolean databaseIsEmpty()- Specified by:
databaseIsEmptyin interfaceSchemaAdapter
-
getStoredCloseController
- Specified by:
getStoredCloseControllerin interfaceGroupCloseable- Returns:
- the
ICloseControllerof the currentGroupCloseable.
-
getStoredTableByName
- Specified by:
getStoredTableByNamein interfaceSchemaAdapter
-
getStoredTables
- Specified by:
getStoredTablesin interfaceSchemaAdapter
-
getSaveCount
public final int getSaveCount()- Specified by:
getSaveCountin interfaceIResettableChangeSaver
-
getTableCount
public final int getTableCount()- Specified by:
getTableCountin interfaceSchemaAdapter
-
hasChanges
public final boolean hasChanges()- Specified by:
hasChangesin interfaceChangeRequestable- Returns:
- true if the current
ChangeRequestablehas uncomitted changes, false otherwise
-
noteClose
public final void noteClose()Lets the currentGroupCloseablenote a close.- Specified by:
noteClosein interfaceGroupCloseable
-
reset
public final void reset()Resets the currentResettable.- Specified by:
resetin interfaceResettable
-
saveChanges
public final void saveChanges()Saves the changes of the currentIChangeSaver.- Specified by:
saveChangesin interfaceIChangeSaver
-