|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JPAEdmComplexTypeView
A view on Java Persistence embeddable types and EDM complex types. Java persistence embeddable types are converted into EDM entity types. Only those embeddable types that are
The implementation of the view provides access to EDM complex types for the given JPA EDM model. The view acts as a container for consistent list of EDM complex types. An EDM complex type is said to be consistent only if it used in at least one of the EDM entity type.
JPAEdmComplexPropertyView
Method Summary | |
---|---|
void |
addJPAEdmCompleTypeView(JPAEdmComplexTypeView view)
The method add a JPA EDM complex type view to the container. |
void |
expandEdmComplexType(ComplexType complexType,
List<Property> expandedPropertyList,
String embeddablePropertyName)
The method expands the given EDM complex type into a list of EDM simple properties. |
List<ComplexType> |
getConsistentEdmComplexTypes()
The method returns a consistent list of EDM complex types. |
ComplexType |
getEdmComplexType()
The method returns an EDM complex type that is currently being processed. |
javax.persistence.metamodel.EmbeddableType<?> |
getJPAEmbeddableType()
The method returns an JPA embeddable type that is currently being processed. |
boolean |
isReferencedInKey(String complexTypeName)
The method checks if the given EDM complex type is referenced as a Key property in any Entity |
ComplexType |
searchEdmComplexType(FullQualifiedName type)
The method searches for the EDM complex type with in the container for the given EDM complex type's fully qualified name. |
ComplexType |
searchEdmComplexType(String embeddableTypeName)
The method searches for the EDM complex type with in the container for the given JPA embeddable type name. |
void |
setReferencedInKey(String complexTypeName)
The method sets the given EDM complex type as referenced in an Entity as a key property |
Methods inherited from interface org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmBaseView |
---|
clean, getBuilder, getJPAEdmExtension, getJPAEdmMappingModelAccess, getJPAMetaModel, getpUnitName, isConsistent, isDefaultNamingSkipped |
Method Detail |
---|
ComplexType getEdmComplexType()
ComplexType
javax.persistence.metamodel.EmbeddableType<?> getJPAEmbeddableType()
EmbeddableType
List<ComplexType> getConsistentEdmComplexTypes()
ComplexType
ComplexType searchEdmComplexType(String embeddableTypeName)
embeddableTypeName
- is the name of JPA embeddable type
void addJPAEdmCompleTypeView(JPAEdmComplexTypeView view)
view
- isReferencedInKey
- is the complex type referenced in an Entity as a key property
is an instance of type JPAEdmComplexTypeView
ComplexType searchEdmComplexType(FullQualifiedName type)
type
- is the fully qualified name of EDM complex type
void expandEdmComplexType(ComplexType complexType, List<Property> expandedPropertyList, String embeddablePropertyName)
complexType
- is the EDM complex type to expandexpandedPropertyList
- is the list to be populated with expanded EDM simple
propertiesembeddablePropertyName
- is the name of the complex property. The name is used as the
qualifier for the expanded simple property names.boolean isReferencedInKey(String complexTypeName)
complexTypeName
- EDM complex type name
void setReferencedInKey(String complexTypeName)
complexTypeName
- EDM complex Type name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |