Package | Description |
---|---|
sirius.db.jdbc.schema | |
sirius.db.mixing.properties |
Modifier and Type | Method and Description |
---|---|
Table |
DatabaseDialect.completeTableInfos(Table table)
Performs DB-specific functions after a
Table was read from the
DB-metadata. |
Table |
BasicDatabaseDialect.completeTableInfos(Table table) |
Modifier and Type | Method and Description |
---|---|
List<Table> |
SchemaTool.getSchema(Database db)
Reads the DB-schema for the given connection.
|
Modifier and Type | Method and Description |
---|---|
Table |
DatabaseDialect.completeTableInfos(Table table)
Performs DB-specific functions after a
Table was read from the
DB-metadata. |
Table |
BasicDatabaseDialect.completeTableInfos(Table table) |
void |
SQLPropertyInfo.contributeToTable(Table table)
Appends columns, keys and foreign keys to the given table to match the settings specified by
this property
|
String |
DatabaseDialect.generateAddColumn(Table table,
TableColumn col)
Generates an alter statement to add the given column.
|
String |
ClickhouseDatabaseDialect.generateAddColumn(Table table,
TableColumn col) |
String |
MySQLDatabaseDialect.generateAddColumn(Table table,
TableColumn col) |
String |
DatabaseDialect.generateAddForeignKey(Table table,
ForeignKey key)
Alters the table so that the given foreign key is added
|
String |
ClickhouseDatabaseDialect.generateAddForeignKey(Table table,
ForeignKey key) |
String |
BasicDatabaseDialect.generateAddForeignKey(Table table,
ForeignKey key) |
String |
DatabaseDialect.generateAddKey(Table table,
Key key)
Alters the table so that the given key is added
|
String |
ClickhouseDatabaseDialect.generateAddKey(Table table,
Key key) |
String |
BasicDatabaseDialect.generateAddKey(Table table,
Key key) |
List<String> |
DatabaseDialect.generateAlterColumnTo(Table table,
String oldName,
TableColumn toColumn)
Alters the given column.
|
List<String> |
ClickhouseDatabaseDialect.generateAlterColumnTo(Table table,
String oldName,
TableColumn toColumn) |
List<String> |
MySQLDatabaseDialect.generateAlterColumnTo(Table table,
String oldName,
TableColumn toColumn) |
List<String> |
DatabaseDialect.generateAlterForeignKey(Table table,
ForeignKey from,
ForeignKey to)
Alters the table so that the given foreign key is updated
* @param table the table to alter
|
List<String> |
ClickhouseDatabaseDialect.generateAlterForeignKey(Table table,
ForeignKey from,
ForeignKey to) |
List<String> |
BasicDatabaseDialect.generateAlterForeignKey(Table table,
ForeignKey from,
ForeignKey to) |
List<String> |
DatabaseDialect.generateAlterKey(Table table,
Key from,
Key to)
Alters the table so that the given key is updated
|
List<String> |
ClickhouseDatabaseDialect.generateAlterKey(Table table,
Key from,
Key to) |
List<String> |
BasicDatabaseDialect.generateAlterKey(Table table,
Key from,
Key to) |
List<String> |
DatabaseDialect.generateAlterPrimaryKey(Table table)
Alters the table so that the PK is updated.
|
List<String> |
ClickhouseDatabaseDialect.generateAlterPrimaryKey(Table table) |
List<String> |
BasicDatabaseDialect.generateAlterPrimaryKey(Table table) |
String |
DatabaseDialect.generateCreateTable(Table table)
Builds a CREATE TABLE statement.
|
String |
ClickhouseDatabaseDialect.generateCreateTable(Table table) |
String |
MySQLDatabaseDialect.generateCreateTable(Table table) |
String |
DatabaseDialect.generateDropColumn(Table table,
TableColumn col)
Generates an alter statement to drop the given column.
|
String |
ClickhouseDatabaseDialect.generateDropColumn(Table table,
TableColumn col) |
String |
BasicDatabaseDialect.generateDropColumn(Table table,
TableColumn col) |
String |
DatabaseDialect.generateDropForeignKey(Table table,
ForeignKey key)
Alters the table so that the given foreign key is dropped
|
String |
ClickhouseDatabaseDialect.generateDropForeignKey(Table table,
ForeignKey key) |
String |
BasicDatabaseDialect.generateDropForeignKey(Table table,
ForeignKey key) |
String |
DatabaseDialect.generateDropKey(Table table,
Key key)
Alters the table so that the given key is dropped
|
String |
ClickhouseDatabaseDialect.generateDropKey(Table table,
Key key) |
String |
BasicDatabaseDialect.generateDropKey(Table table,
Key key) |
String |
DatabaseDialect.generateDropTable(Table table)
Builds a DROP TABLE statement.
|
String |
BasicDatabaseDialect.generateDropTable(Table table) |
String |
DatabaseDialect.getEffectiveKeyName(Table targetTable,
Key key)
Computes the effective name used for a key.
|
String |
BasicDatabaseDialect.getEffectiveKeyName(Table targetTable,
Key key) |
protected sirius.kernel.commons.Value |
BasicDatabaseDialect.getEngine(Table table) |
boolean |
DatabaseDialect.shouldDropKey(Table targetTable,
Table currentTable,
Key key)
Determines if the given key should be dropped.
|
boolean |
ClickhouseDatabaseDialect.shouldDropKey(Table targetTable,
Table currentTable,
Key key) |
boolean |
MySQLDatabaseDialect.shouldDropKey(Table targetTable,
Table currentTable,
Key key) |
Modifier and Type | Method and Description |
---|---|
List<SchemaUpdateAction> |
SchemaTool.migrateSchemaTo(Database db,
List<Table> targetSchema,
boolean dropTables)
Generates a list of schema change actions.
|
protected void |
SchemaTool.readTableRow(List<Table> tables,
Connection c,
ResultSet rs) |
Modifier and Type | Method and Description |
---|---|
void |
LocalTimeProperty.contributeToTable(Table table) |
void |
LocalDateProperty.contributeToTable(Table table) |
void |
EnumProperty.contributeToTable(Table table) |
void |
LongProperty.contributeToTable(Table table) |
void |
IntegerProperty.contributeToTable(Table table) |
void |
LocalDateTimeProperty.contributeToTable(Table table) |
void |
MongoRefProperty.contributeToTable(Table table) |
void |
SQLEntityRefProperty.contributeToTable(Table table) |
void |
BooleanProperty.contributeToTable(Table table) |
void |
AmountProperty.contributeToTable(Table table) |
void |
StringProperty.contributeToTable(Table table) |
void |
ElasticRefProperty.contributeToTable(Table table) |
void |
InstantProperty.contributeToTable(Table table) |
Copyright © 2018. All rights reserved.