public class MetaDbServiceEx extends MetaDbService
MetaParams.META_DB_SERVICE| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_DEF_DEFAULT_VALUE |
static String |
COLUMN_DEF_CHAR_LENGTH |
static String |
COLUMN_DEF_NAME |
static String |
COLUMN_DEF_NULLABLE |
static String |
COLUMN_DEF_VALUE_CONSTRAINTS |
static boolean |
DEFAULT_VALUES_IN_DB_ALLOWED
Specifies if default values in DB are allowed.
|
static String |
FKEY_DEF_NAME |
static String |
PKEY_DEF_COLUMN_NAME |
static String |
PKEY_DEF_NAME |
anyChange, db, sql, stat| Constructor and Description |
|---|
MetaDbServiceEx() |
create, createForeignKey, createNewColumn, createSequenceTable, createSchema, createTable, createTableComments, createTableComments, dbIdentifier, executeUpdate, findFirstSequencer, getDialect, getDialectEx, getSql, changeIndex, checkKeyWord, checkReportKeywords, initialize, isAnyChange, isCatalog, isModelChangedpublic static boolean DEFAULT_VALUES_IN_DB_ALLOWED
public 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
SQLExceptionpublic MetaIndex createIndexForColumn(String idxName, MetaColumn column, MetaTable metaTable)
MetaDbServiceEx classpublic String createIndexNameForColumn(MetaColumn column, boolean uniqueIndex, MetaTable metaTable)
MetaDbServiceEx classCopyright 2013, Pavel Ponec