Package org.teiid.translator.odata
Class ODataMetadataProcessor
- java.lang.Object
-
- org.teiid.translator.odata.ODataMetadataProcessor
-
- All Implemented Interfaces:
MetadataProcessor<WSConnection>
- Direct Known Subclasses:
SAPMetadataProcessor
public class ODataMetadataProcessor extends Object implements MetadataProcessor<WSConnection>
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_GROUP
static String
COMPLEX_TYPE
static String
ENTITY_TYPE
static String
HTTP_METHOD
static String
JOIN_COLUMN
static String
LINK_TABLES
-
Fields inherited from interface org.teiid.translator.MetadataProcessor
FQN, SOURCE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description ODataMetadataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Table
addEntitySetAsTable(MetadataFactory mf, org.odata4j.edm.EdmEntitySet entitySet)
protected Column
buildColumn(MetadataFactory mf, Table table, org.odata4j.edm.EdmProperty ep, org.odata4j.edm.EdmEntitySet entitySet, String prefix)
protected Table
buildTable(MetadataFactory mf, org.odata4j.edm.EdmEntitySet entitySet)
String
getEntityContainer()
void
getMetadata(MetadataFactory mf, org.odata4j.edm.EdmDataServices eds)
String
getSchemaNamespace()
void
process(MetadataFactory mf, WSConnection conn)
void
setEntityContainer(String entityContainer)
void
setExecutionfactory(ODataExecutionFactory ef)
void
setSchemaNamespace(String namespace)
-
-
-
Field Detail
-
LINK_TABLES
@ExtensionMetadataProperty(applicable=Table.class, datatype=java.lang.String.class, display="Link Tables", description="Used to define navigation relationship in many to many case") public static final String LINK_TABLES
- See Also:
- Constant Field Values
-
HTTP_METHOD
@ExtensionMetadataProperty(applicable=Procedure.class, datatype=java.lang.String.class, display="Http Method", description="Http method used for procedure invocation", required=true) public static final String HTTP_METHOD
- See Also:
- Constant Field Values
-
JOIN_COLUMN
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.Boolean.class, display="Join Column", description="On Link tables this property defines the join column") public static final String JOIN_COLUMN
- See Also:
- Constant Field Values
-
ENTITY_TYPE
@ExtensionMetadataProperty(applicable={Table.class,Procedure.class}, datatype=java.lang.String.class, display="Entity Type Name", description="Name of the Entity Type in EDM", required=true) public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
COMPLEX_TYPE
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Complex Type Name", description="Name of the Complex Type in EDM") public static final String COMPLEX_TYPE
- See Also:
- Constant Field Values
-
COLUMN_GROUP
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Column Group", description="Name of the Column Group") public static final String COLUMN_GROUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
setExecutionfactory
public void setExecutionfactory(ODataExecutionFactory ef)
-
process
public void process(MetadataFactory mf, WSConnection conn) throws TranslatorException
- Specified by:
process
in interfaceMetadataProcessor<WSConnection>
- Throws:
TranslatorException
-
getMetadata
public void getMetadata(MetadataFactory mf, org.odata4j.edm.EdmDataServices eds) throws TranslatorException
- Throws:
TranslatorException
-
buildTable
protected Table buildTable(MetadataFactory mf, org.odata4j.edm.EdmEntitySet entitySet)
-
addEntitySetAsTable
protected Table addEntitySetAsTable(MetadataFactory mf, org.odata4j.edm.EdmEntitySet entitySet) throws TranslatorException
- Throws:
TranslatorException
-
buildColumn
protected Column buildColumn(MetadataFactory mf, Table table, org.odata4j.edm.EdmProperty ep, org.odata4j.edm.EdmEntitySet entitySet, String prefix)
-
setEntityContainer
public void setEntityContainer(String entityContainer)
-
setSchemaNamespace
public void setSchemaNamespace(String namespace)
-
getEntityContainer
@TranslatorProperty(display="Entity Container Name", category=IMPORT, description="Entity Container Name to import") public String getEntityContainer()
-
getSchemaNamespace
@TranslatorProperty(display="Schema Namespace", category=IMPORT, description="Namespace of the schema to import") public String getSchemaNamespace()
-
-