Package org.teiid.translator.google
Class GoogleMetadataProcessor
- java.lang.Object
-
- org.teiid.translator.google.GoogleMetadataProcessor
-
- All Implemented Interfaces:
MetadataProcessor<GoogleSpreadsheetConnection>
public class GoogleMetadataProcessor extends Object implements MetadataProcessor<GoogleSpreadsheetConnection>
-
-
Field Summary
-
Fields inherited from interface org.teiid.translator.MetadataProcessor
FQN, SOURCE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description GoogleMetadataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllTypesUpdatable()
void
process(MetadataFactory mf, GoogleSpreadsheetConnection conn)
Creates metadata from all spreadsheets in the user account.void
setAllTypesUpdatable(boolean allTypesUpdatable)
-
-
-
Method Detail
-
process
public void process(MetadataFactory mf, GoogleSpreadsheetConnection conn) throws TranslatorException
Creates metadata from all spreadsheets in the user account. Table name consists of Spreadsheet name and worksheet name. Columns of the table are columns of the worksheet.- Specified by:
process
in interfaceMetadataProcessor<GoogleSpreadsheetConnection>
- Throws:
TranslatorException
-
isAllTypesUpdatable
@TranslatorProperty(display="All Types Updatable", category=IMPORT, description="Allow all types to be updatable even those that may have formatting or locale inconsistencies.") public boolean isAllTypesUpdatable()
-
setAllTypesUpdatable
public void setAllTypesUpdatable(boolean allTypesUpdatable)
-
-