Class AbstractSchemaAdapter
java.lang.Object
ch.nolix.system.objectschema.adapter.AbstractSchemaAdapter
- All Implemented Interfaces:
Closeable, CloseStateRequestable, GroupCloseable, ChangeRequestable, IChangeSaver, IResettableChangeSaver, Resettable, ISchemaAdapter, AutoCloseable
- Direct Known Subclasses:
MsSqlSchemaAdapter, NodeSchemaAdapter
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal intfinal ICloseControllerfinal ITablegetStoredTableByName(String name) final IContainer<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 CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, isClosed
-
Method Details
-
addTable
- Specified by:
addTablein interfaceISchemaAdapter
-
databaseIsEmpty
public final boolean databaseIsEmpty()- Specified by:
databaseIsEmptyin interfaceISchemaAdapter
-
getStoredCloseController
- Specified by:
getStoredCloseControllerin interfaceGroupCloseable- Returns:
- the
ICloseControllerof the currentGroupCloseable.
-
getStoredTableByName
- Specified by:
getStoredTableByNamein interfaceISchemaAdapter
-
getStoredTables
- Specified by:
getStoredTablesin interfaceISchemaAdapter
-
getSaveCount
public final int getSaveCount()- Specified by:
getSaveCountin interfaceIResettableChangeSaver
-
getTableCount
public final int getTableCount()- Specified by:
getTableCountin interfaceISchemaAdapter
-
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
-