| Modifiers | Name | Description |
|---|---|---|
protected EntityFacadeImpl |
efi |
|
protected java.util.HashMap<java.lang.String, java.sql.Timestamp> |
entityTablesChecked |
|
protected java.util.HashMap<java.lang.String, java.lang.Boolean> |
entityTablesExist |
|
protected static org.slf4j.Logger |
logger |
|
protected java.util.HashMap<java.lang.String, java.lang.Boolean> |
runtimeAddMissingMap |
| Type | Name and description |
|---|---|
java.util.concurrent.locks.ReentrantLock |
sqlLock |
static boolean |
useTxForMetaData |
| Constructor and description |
|---|
EntityDbMeta
(EntityFacadeImpl efi) |
| Type | Name and description |
|---|---|
void |
addColumn(EntityDefinition ed, org.moqui.impl.entity.FieldInfo fi) |
void |
checkTableRuntime(EntityDefinition ed) |
void |
checkTableStartup(EntityDefinition ed) |
void |
createForeignKeys(EntityDefinition ed, boolean checkFkExists) |
void |
createForeignKeysForExistingTables()Loop through all known entities and for each that has an existing table check each foreign key to see if it exists in the database, and if it doesn't but the related table does then add the foreign key. |
void |
createIndexes(EntityDefinition ed) |
void |
createTable(EntityDefinition ed) |
void |
forceCheckExistingTables() |
void |
forceCheckTableRuntime(EntityDefinition ed) |
java.lang.Boolean |
foreignKeyExists(EntityDefinition ed, RelationshipInfo relInfo) |
java.util.ArrayList<org.moqui.impl.entity.FieldInfo> |
getMissingColumns(EntityDefinition ed) |
void |
internalCheckTable(EntityDefinition ed, boolean startup) |
int |
runSqlUpdate(java.lang.CharSequence sql, java.lang.String groupName) |
static void |
shrinkName(java.lang.StringBuilder name, int maxLength) |
boolean |
tableExists(EntityDefinition ed) |
boolean |
tableExistsInternal(EntityDefinition ed) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Loop through all known entities and for each that has an existing table check each foreign key to see if it exists in the database, and if it doesn't but the related table does then add the foreign key.
Groovy Documentation