boolean cycleDetected = !cycleDetector.add(rawSchema.getId());
String name = rawSchema.getName();
UpdatableSchema base = null;
if (rawSchema.getParent() > 0 && !cycleDetected) {
Surrogate parentKey = makeSurrogate(database, DBObjectType.SCHEMA, rawSchema.getParent());
RawSchema rawBaseSchema = getRawSchema(parentKey);
if (rawBaseSchema == null)
throw T2DBMsg.exception(E.E30116, rawSchema.getParent(), name);
base = getSchema(database, rawBaseSchema, cycleDetector);
}
Surrogate surrogate = makeSurrogate(database, DBObjectType.SCHEMA, rawSchema.getId());
RawSchemaComponents rawComponents = getRawSchemaComponents(surrogate);
Collection<AttributeDefinition<?>> attributeDefs = null;
Collection<SeriesDefinition> seriesDefinitions = null;
if (rawComponents != null) {
attributeDefs = makeAttributeDefinitions(database, rawComponents.attributes);