public class MetaDbServiceEx extends MetaDbService
MetaParams.META_DB_SERVICE| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_DEF_CHAR_LENGTH |
static String |
COLUMN_DEF_DEFAULT_VALUE |
static String |
COLUMN_DEF_NAME |
static String |
COLUMN_DEF_NULLABLE |
static String |
COLUMN_DEF_VALUE_CONSTRAINTS |
static String |
FKEY_DEF_NAME |
static String |
PKEY_DEF_COLUMN_NAME |
static String |
PKEY_DEF_NAME |
anyChange, db, sql, stat| Constructor and Description |
|---|
MetaDbServiceEx() |
changeIndex, checkKeyWord, checkReportKeywords, create, createForeignKey, createNewColumn, createSchema, createSequenceTable, createTable, createTableComments, createTableComments, dbIdentifier, executeUpdate, findFirstSequencer, getDialect, getDialectEx, getSql, initialize, isAnyChange, isCatalog, isModelChangedpublic static final String COLUMN_DEF_DEFAULT_VALUE
public static final String COLUMN_DEF_NAME
public static final String COLUMN_DEF_NULLABLE
public static final String COLUMN_DEF_CHAR_LENGTH
public static final String COLUMN_DEF_VALUE_CONSTRAINTS
public static final String PKEY_DEF_NAME
public static final String PKEY_DEF_COLUMN_NAME
public static final String FKEY_DEF_NAME
public void checkDBStructure(Session session, boolean repairDB) throws Exception
Exceptionpublic void checkKeywords(Connection conn, List<MetaTable> tables, List<MetaColumn> columns, List<MetaIndex> indexes) throws Exception
Exceptionpublic List<String> checkTableForMissingColumns(Connection conn, MetaTable mappedTable, boolean repairDB) throws Exception
Exceptionpublic List<String> checkTableForColumnsProperties(Connection conn, MetaTable mappedTable, boolean repairDB) throws Exception
Exceptionpublic List<String> checkTableForPrimaryKeys(Connection conn, MetaTable mappedTable, boolean repairDB) throws Exception
Exceptionpublic List<String> checkTableForForeignKeys(Connection conn, MetaTable mappedTable, boolean repairDB) throws Exception
Exceptionpublic List<String> checkTableForIndexes(Connection conn, MetaTable mappedTable, boolean repairDB) throws Exception
Exceptionpublic Map<String,Map<String,Object>> listDBTableColumns(MetaTable table, DatabaseMetaData dmd) throws SQLException
SQLExceptionpublic Map<String,Map<String,Object>> listDBTablePKey(MetaTable table, DatabaseMetaData dmd) throws SQLException
SQLExceptionpublic Map<String,Map<String,Object>> listDBTableFKey(MetaTable table, DatabaseMetaData dmd) throws SQLException
SQLExceptionpublic Set<String> listDBTableIndexes(MetaTable table, DatabaseMetaData dmd, List<MetaColumn> skippedPrimaryKeyColumns) throws SQLException
SQLExceptionCopyright 2013, Pavel Ponec