Package org.teiid.translator.jdbc.oracle
Class OracleMetadataProcessor
- java.lang.Object
-
- org.teiid.translator.jdbc.JDBCMetadataProcessor
-
- org.teiid.translator.jdbc.oracle.OracleMetadataProcessor
-
- All Implemented Interfaces:
MetadataProcessor<Connection>
public class OracleMetadataProcessor extends JDBCMetadataProcessor
-
-
Field Summary
-
Fields inherited from class org.teiid.translator.jdbc.JDBCMetadataProcessor
useFullSchemaName
-
Fields inherited from interface org.teiid.translator.MetadataProcessor
FQN, SOURCE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description OracleMetadataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResultSetexecuteSequenceQuery(Connection conn)Return a result set with three columns - sequence_catalog, sequence_schema, and sequence_name or null if sequences are not supportedprotected StringgetFullyQualifiedName(String catalogName, String schemaName, String objectName, boolean quoted)protected voidgetGeometryMetadata(Column c, Connection conn, String tableCatalog, String tableSchema, String tableName, String columnName)Get the geospatial metadata for the column, including srid, type, and dimensionalityprotected booleangetIndexInfoForTable(String catalogName, String schemaName, String tableName, boolean uniqueOnly, boolean approximateIndexes, String tableType)Override to control or disable the default index logicprotected StringgetRuntimeType(int type, String typeName, int precision, int scale)protected StringgetSequenceNextSQL(String fullyQualifiedName)Return the native sql for getting the next value or null if not supportedprotected voidgetTableStatistics(Connection conn, String catalog, String schema, String name, Table table)booleanisHiddenSchema(String catalog, String schema)If the schema is hidden regardless of the specified schema patternbooleanisUseGeometryType()voidsetUseGeometryType(boolean useGeometryType)-
Methods inherited from class org.teiid.translator.jdbc.JDBCMetadataProcessor
addColumn, addTable, addTable, getCatalog, getCatalogTerm, getColumnNamePattern, getConnectorMetadata, getExcludeProcedures, getExcludeSequences, getExcludeTables, getGeographyMetadata, getGeographyMetadataTableName, getGeometryMetadataTableName, getGeospatialMetadata, getNativeComponentType, getProcedureNamePattern, getRuntimeType, getSchemaName, getSchemaPattern, getSchemaTerm, getSequenceNamePattern, getSequences, getTableNamePattern, getTableTerm, getTableTypes, isAutoCreateUniqueConstraints, isImportApproximateIndexes, isImportForeignKeys, isImportIndexes, isImportKeys, isImportLargeAsLob, isImportProcedures, isImportRowIdAsBinary, isImportSequences, isImportStatistics, isQuoteNameInSource, isUnsignedTypeName, isUseAnyIndexCardinality, isUseCatalogName, isUseFullSchemaName, isUseIntegralTypes, isUseProcedureSpecificName, isUseQualifiedName, isUseTypeInfo, isWidenUnsingedTypes, modifyProcedureNameInSource, process, quoteName, setAutoCreateUniqueConstraints, setCatalog, setColumnNamePattern, setEndQuoteString, setExcludeProcedures, setExcludeSequences, setExcludeTables, setImportApproximateIndexes, setImportForeignKeys, setImportIndexes, setImportKeys, setImportLargeAsLob, setImportProcedures, setImportRowIdAsBinary, setImportSequences, setImportStatistics, setProcedureNamePattern, setQuoteNameInSource, setQuoteString, setSchemaName, setSchemaPattern, setSequenceNamePattern, setStartQuoteString, setTableNamePattern, setTableTypes, setUseAnyIndexCardinality, setUseCatalogName, setUseFullSchemaName, setUseIntegralTypes, setUseProcedureSpecificName, setUseQualifiedName, setUseTypeInfo, setWidenUnsignedTypes, setWidenUnsingedTypes, shouldExclude
-
-
-
-
Method Detail
-
getRuntimeType
protected String getRuntimeType(int type, String typeName, int precision, int scale)
- Overrides:
getRuntimeTypein classJDBCMetadataProcessor
-
getTableStatistics
protected void getTableStatistics(Connection conn, String catalog, String schema, String name, Table table) throws SQLException
- Overrides:
getTableStatisticsin classJDBCMetadataProcessor- Throws:
SQLException
-
getIndexInfoForTable
protected boolean getIndexInfoForTable(String catalogName, String schemaName, String tableName, boolean uniqueOnly, boolean approximateIndexes, String tableType)
Description copied from class:JDBCMetadataProcessorOverride to control or disable the default index logic- Overrides:
getIndexInfoForTablein classJDBCMetadataProcessor- Returns:
- true if the default logic should still be used, or false if the default index logic should not run
-
isUseGeometryType
@TranslatorProperty(display="Use Geometry Type", category=IMPORT, description="Use Teiid Geometry Type rather than an Object/Struct for SDO_GEOMETRY") public boolean isUseGeometryType()
-
setUseGeometryType
public void setUseGeometryType(boolean useGeometryType)
-
getGeometryMetadata
protected void getGeometryMetadata(Column c, Connection conn, String tableCatalog, String tableSchema, String tableName, String columnName)
Description copied from class:JDBCMetadataProcessorGet the geospatial metadata for the column, including srid, type, and dimensionality- Overrides:
getGeometryMetadatain classJDBCMetadataProcessor
-
getFullyQualifiedName
protected String getFullyQualifiedName(String catalogName, String schemaName, String objectName, boolean quoted)
- Overrides:
getFullyQualifiedNamein classJDBCMetadataProcessor
-
executeSequenceQuery
protected ResultSet executeSequenceQuery(Connection conn) throws SQLException
Description copied from class:JDBCMetadataProcessorReturn a result set with three columns - sequence_catalog, sequence_schema, and sequence_name or null if sequences are not supported- Overrides:
executeSequenceQueryin classJDBCMetadataProcessor- Returns:
- Throws:
SQLException
-
getSequenceNextSQL
protected String getSequenceNextSQL(String fullyQualifiedName)
Description copied from class:JDBCMetadataProcessorReturn the native sql for getting the next value or null if not supported- Overrides:
getSequenceNextSQLin classJDBCMetadataProcessor- Returns:
-
isHiddenSchema
public boolean isHiddenSchema(String catalog, String schema)
Description copied from class:JDBCMetadataProcessorIf the schema is hidden regardless of the specified schema pattern- Overrides:
isHiddenSchemain classJDBCMetadataProcessor- Returns:
- true if no objects should be imported from the given schema
-
-