Interface JPAEdmSchemaView
- All Superinterfaces:
JPAEdmBaseView
A view on Java Persistence Model and Entity Data Model Schema. Each java persistence unit corresponds to a one EDM schema.
The implementation of the view provides access to EDM schema created from Java Persistence unit. The implementation acts as a container for schema. The schema is consistent only if following elements are consistent
@org.apache.olingo.odata2.DoNotImplement
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe method returns the EDM schema present in the container.The method returns JPA EDM association view.The method returns JPA EDM complex view.The method returns JPA EDM container view.The method returns an Hash Map containing the registered custom operations.voidregisterOperations(Class<?> customClass, String[] methodNames) The method registers custom operations that shall be represented as Edm Function Imports.Methods inherited from interface org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmBaseView
clean, getBuilder, getJPAEdmExtension, getJPAEdmMappingModelAccess, getJPAMetaModel, getpUnitName, isConsistent, isDefaultNamingSkipped
-
Method Details
-
getEdmSchema
Schema getEdmSchema()The method returns the EDM schema present in the container.- Returns:
- an instance EDM schema of type
Schema
-
getJPAEdmEntityContainerView
JPAEdmEntityContainerView getJPAEdmEntityContainerView()The method returns JPA EDM container view. The JPA EDM container view can be used to access EDM Entity Container elements.- Returns:
- an instance of type
JPAEdmEntityContainerView
-
getJPAEdmComplexTypeView
JPAEdmComplexTypeView getJPAEdmComplexTypeView()The method returns JPA EDM complex view. The JPA EDM complex view can be used to access EDM complex types and JPA Embeddable Types.- Returns:
- an instance of type
JPAEdmComplexTypeView
-
getJPAEdmAssociationView
JPAEdmAssociationView getJPAEdmAssociationView()The method returns JPA EDM association view. The JPA EDM association view can be used to access EDM associations and JPA Relationships.- Returns:
- an instance of type
JPAEdmAssociationView
-
registerOperations
The method registers custom operations that shall be represented as Edm Function Imports. Custom operations are created using Edm Annotation org.apache.olingo.odata2.api.annotation.edm.FunctionImport.Custom Operations can be part of JPA Entity or can be created in a class other than JPA Entity. Such custom operations can be registered using this method.
The method is a callback.
- Parameters:
customClass- is the class that contains custom operationsmethodNames- is the name of the method that needs to be transformed into Function Imports. It is an optional parameter. If null is passed then all annotated methods are transformed into Function Imports.
-
getRegisteredOperations
The method returns an Hash Map containing the registered custom operations.- Returns:
- a HashMap of Class and the methods in the class
-