use of org.teiid.util.FullyQualifiedName in project teiid by teiid.
the class GoogleMetadataProcessor method addTable.
/**
* Adds new table to metadata.
*
* @param spreadsheet Name of the spreadsheet
* @param worksheet Name of the worksheet
* @throws TranslatorException
*/
private void addTable(MetadataFactory mf, Worksheet worksheet) {
if (worksheet.getColumnCount() == 0) {
return;
}
Table table = mf.addTable(worksheet.getName());
// $NON-NLS-1$
table.setProperty(FQN, new FullyQualifiedName("worksheet", worksheet.getName()).toString());
table.setNameInSource(worksheet.getName());
if (worksheet.isHeaderEnabled()) {
table.setSupportsUpdate(true);
}
addColumnsToTable(mf, table, worksheet);
}
Aggregations