public interface JPAEdmSchemaView extends 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
JPAEdmAssociationView
,
JPAEdmEntityContainerView
,
JPAEdmComplexTypeView
Modifier and Type | Method and Description |
---|---|
Schema |
getEdmSchema()
The method returns the EDM schema present in the container.
|
JPAEdmAssociationView |
getJPAEdmAssociationView()
The method returns JPA EDM association view.
|
JPAEdmComplexTypeView |
getJPAEdmComplexTypeView()
The method returns JPA EDM complex view.
|
JPAEdmEntityContainerView |
getJPAEdmEntityContainerView()
The method returns JPA EDM container view.
|
HashMap<Class<?>,String[]> |
getRegisteredOperations()
The method returns an Hash Map containing the registered custom
operations.
|
void |
registerOperations(Class<?> customClass,
String[] methodNames)
The method registers custom operations that shall be represented as Edm
Function Imports.
|
clean, getBuilder, getJPAEdmExtension, getJPAEdmMappingModelAccess, getJPAMetaModel, getpUnitName, isConsistent, isDefaultNamingSkipped
Schema getEdmSchema()
Schema
JPAEdmEntityContainerView getJPAEdmEntityContainerView()
JPAEdmEntityContainerView
JPAEdmComplexTypeView getJPAEdmComplexTypeView()
JPAEdmComplexTypeView
JPAEdmAssociationView getJPAEdmAssociationView()
JPAEdmAssociationView
void registerOperations(Class<?> customClass, String[] methodNames)
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.
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.Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.