use of org.dbflute.properties.assistant.database.DfAdditionalSchemaInfo in project dbflute-core by dbflute.
the class DfDatabaseProperties method getAdditionalSchemaList.
// -----------------------------------------------------
// Additional Schema Accessor
// --------------------------
public List<UnifiedSchema> getAdditionalSchemaList() {
final Map<String, DfAdditionalSchemaInfo> schemaMap = getAdditionalSchemaMap();
final Set<Entry<String, DfAdditionalSchemaInfo>> entrySet = schemaMap.entrySet();
final List<UnifiedSchema> schemaList = new ArrayList<UnifiedSchema>();
for (Entry<String, DfAdditionalSchemaInfo> entry : entrySet) {
final DfAdditionalSchemaInfo info = entry.getValue();
final UnifiedSchema unifiedSchema = info.getUnifiedSchema();
schemaList.add(unifiedSchema);
}
return schemaList;
}
use of org.dbflute.properties.assistant.database.DfAdditionalSchemaInfo in project dbflute-core by dbflute.
the class DfTableExtractor method getRealObjectTypeTargetArray.
protected String[] getRealObjectTypeTargetArray(UnifiedSchema unifiedSchema) {
if (unifiedSchema != null) {
final DfAdditionalSchemaInfo schemaInfo = getAdditionalSchemaInfo(unifiedSchema);
if (schemaInfo != null) {
final List<String> objectTypeTargetList = schemaInfo.getObjectTypeTargetList();
assertObjectTypeTargetListNotEmpty(unifiedSchema, objectTypeTargetList);
return objectTypeTargetList.toArray(new String[objectTypeTargetList.size()]);
}
}
final List<String> objectTypeTargetList = getProperties().getDatabaseProperties().getObjectTypeTargetList();
assertObjectTypeTargetListNotEmpty(unifiedSchema, objectTypeTargetList);
return objectTypeTargetList.toArray(new String[objectTypeTargetList.size()]);
}
Aggregations