/** * INTERNAL: * Return true is this database object definition has a schema definition. */ protected boolean hasDatabaseSchema() { return getDatabaseSchema() != null && ! getDatabaseSchema().equals(""); }
/** * INTERNAL: * Return true is this database object definition has a schema definition. */ protected boolean hasDatabaseSchema() { return getDatabaseSchema() != null && ! getDatabaseSchema().equals(""); }
/** * INTERNAL: * Called when dropping tables. Will build a map of those schemas (and a * table that references it) that should be dropped. */ protected void collectDatabaseSchemasForDrop(DatabaseObjectDefinition databaseObjectDefinition) { if (createDatabaseSchemas && databaseObjectDefinition.hasDatabaseSchema()) { if (! dropDatabaseSchemas.containsKey(databaseObjectDefinition.getDatabaseSchema())) { dropDatabaseSchemas.put(databaseObjectDefinition.getDatabaseSchema(), databaseObjectDefinition); } } }
/** * INTERNAL: * Called when dropping tables. Will build a map of those schemas (and a * table that references it) that should be dropped. */ protected void collectDatabaseSchemasForDrop(DatabaseObjectDefinition databaseObjectDefinition) { if (createDatabaseSchemas && databaseObjectDefinition.hasDatabaseSchema()) { if (! dropDatabaseSchemas.containsKey(databaseObjectDefinition.getDatabaseSchema())) { dropDatabaseSchemas.put(databaseObjectDefinition.getDatabaseSchema(), databaseObjectDefinition); } } }