for (PLSQLRecordMetadata record : m_plsqlRecords) {
getProject().addPLSQLComplexType(record);
}
// Process the annotations.
MetadataAnnotation records = getAnnotation(PLSQLRecords.class);
if (records != null) {
for (Object record : (Object[]) records.getAttribute("value")) {
getProject().addPLSQLComplexType(new PLSQLRecordMetadata((MetadataAnnotation)record, this));
}
}
MetadataAnnotation record = getAnnotation(PLSQLRecord.class);
if (record != null) {
getProject().addPLSQLComplexType(new PLSQLRecordMetadata(record, this));
}
// Process the XML first.
for (PLSQLTableMetadata table : m_plsqlTables) {
getProject().addPLSQLComplexType(table);
}
// Process the annotations.
MetadataAnnotation tables = getAnnotation(PLSQLTables.class);
if (tables != null) {
for (Object table : (Object[]) tables.getAttribute("value")) {
getProject().addPLSQLComplexType(new PLSQLTableMetadata((MetadataAnnotation)table, this));
}
}
MetadataAnnotation table = getAnnotation(PLSQLTable.class);
if (table != null) {
getProject().addPLSQLComplexType(new PLSQLTableMetadata(table, this));
}
}