Class SchemaReader
java.lang.Object
ch.nolix.system.sqlschema.adapter.SchemaReader
- All Implemented Interfaces:
Closeable, CloseStateRequestable, GroupCloseable, ISchemaReader, AutoCloseable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleancolumnIsEmpty(String tableName, String columnName) static SchemaReaderforDatabaseNameAndSqlConnection(String databaseName, ISqlConnection sqlConnection) intvoidLets the currentGroupCloseablenote a close.booleanbooleantableExists(String tableName) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, isClosed
-
Method Details
-
forDatabaseNameAndSqlConnection
public static SchemaReader forDatabaseNameAndSqlConnection(String databaseName, ISqlConnection sqlConnection) -
columnIsEmpty
- Specified by:
columnIsEmptyin interfaceISchemaReader
-
getStoredCloseController
- Specified by:
getStoredCloseControllerin interfaceGroupCloseable- Returns:
- the
ICloseControllerof the currentGroupCloseable.
-
getTableCount
public int getTableCount()- Specified by:
getTableCountin interfaceISchemaReader
-
loadTable
- Specified by:
loadTablein interfaceISchemaReader
-
loadTables
- Specified by:
loadTablesin interfaceISchemaReader
-
noteClose
public void noteClose()Lets the currentGroupCloseablenote a close.- Specified by:
noteClosein interfaceGroupCloseable
-
tableExist
public boolean tableExist()- Specified by:
tableExistin interfaceISchemaReader
-
tableExists
- Specified by:
tableExistsin interfaceISchemaReader
-