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 ResultSet
executeSequenceQuery(Connection conn)
Return a result set with three columns - sequence_catalog, sequence_schema, and sequence_name or null if sequences are not supportedprotected String
getFullyQualifiedName(String catalogName, String schemaName, String objectName, boolean quoted)
protected void
getGeometryMetadata(Column c, Connection conn, String tableCatalog, String tableSchema, String tableName, String columnName)
Get the geospatial metadata for the column, including srid, type, and dimensionalityprotected boolean
getIndexInfoForTable(String catalogName, String schemaName, String tableName, boolean uniqueOnly, boolean approximateIndexes, String tableType)
Override to control or disable the default index logicprotected String
getRuntimeType(int type, String typeName, int precision, int scale)
protected String
getSequenceNextSQL(String fullyQualifiedName)
Return the native sql for getting the next value or null if not supportedprotected void
getTableStatistics(Connection conn, String catalog, String schema, String name, Table table)
boolean
isHiddenSchema(String catalog, String schema)
If the schema is hidden regardless of the specified schema patternboolean
isUseGeometryType()
void
setUseGeometryType(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:
getRuntimeType
in classJDBCMetadataProcessor
-
getTableStatistics
protected void getTableStatistics(Connection conn, String catalog, String schema, String name, Table table) throws SQLException
- Overrides:
getTableStatistics
in classJDBCMetadataProcessor
- Throws:
SQLException
-
getIndexInfoForTable
protected boolean getIndexInfoForTable(String catalogName, String schemaName, String tableName, boolean uniqueOnly, boolean approximateIndexes, String tableType)
Description copied from class:JDBCMetadataProcessor
Override to control or disable the default index logic- Overrides:
getIndexInfoForTable
in 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:JDBCMetadataProcessor
Get the geospatial metadata for the column, including srid, type, and dimensionality- Overrides:
getGeometryMetadata
in classJDBCMetadataProcessor
-
getFullyQualifiedName
protected String getFullyQualifiedName(String catalogName, String schemaName, String objectName, boolean quoted)
- Overrides:
getFullyQualifiedName
in classJDBCMetadataProcessor
-
executeSequenceQuery
protected ResultSet executeSequenceQuery(Connection conn) throws SQLException
Description copied from class:JDBCMetadataProcessor
Return a result set with three columns - sequence_catalog, sequence_schema, and sequence_name or null if sequences are not supported- Overrides:
executeSequenceQuery
in classJDBCMetadataProcessor
- Returns:
- Throws:
SQLException
-
getSequenceNextSQL
protected String getSequenceNextSQL(String fullyQualifiedName)
Description copied from class:JDBCMetadataProcessor
Return the native sql for getting the next value or null if not supported- Overrides:
getSequenceNextSQL
in classJDBCMetadataProcessor
- Returns:
-
isHiddenSchema
public boolean isHiddenSchema(String catalog, String schema)
Description copied from class:JDBCMetadataProcessor
If the schema is hidden regardless of the specified schema pattern- Overrides:
isHiddenSchema
in classJDBCMetadataProcessor
- Returns:
- true if no objects should be imported from the given schema
-
-