|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JPAEdmReferentialConstraintRoleView
A view on Java Persistence Entity Join Column's "name" and "referenced column name" attributes and Entity Data Model Referential Constraint's dependent and principal roles respectively. Each java persistence entity with properties annotated with Join Columns are transformed into Referential constraints and Referential constraint roles.
The implementation of the view provides access to EDM referential constraint roles created from Java Persistence Entity Join Columns. The implementation acts as a container for EDM referential constraint roles. A referential constraint role is consistent only if the principal role and dependent roles can be created from JPA Entity relationships.
JPAEdmReferentialConstraintView
Nested Class Summary | |
---|---|
static class |
JPAEdmReferentialConstraintRoleView.RoleType
Two types of EDM roles of a referential constraint. |
Method Summary | |
---|---|
String |
getEdmAssociationName()
The method returns the EDM association name. |
String |
getEdmEntityTypeName()
The method returns the EDM entity type name that holds the relationship/referential constraint. |
ReferentialConstraintRole |
getEdmReferentialConstraintRole()
The method returns the Referential constraint role that is currently being processed. |
String |
getJPAColumnName()
The method returns the name of JPA attribute's column name (annotated with @Column). |
JPAEdmReferentialConstraintRoleView.RoleType |
getRoleType()
The method returns the role type (PRINCIPAL or DEPENDENT) |
boolean |
isExists()
The method tells if there exists a valid referential constraint for a given association. |
Methods inherited from interface org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmBaseView |
---|
clean, getBuilder, getJPAEdmExtension, getJPAEdmMappingModelAccess, getJPAMetaModel, getpUnitName, isConsistent, isDefaultNamingSkipped |
Method Detail |
---|
JPAEdmReferentialConstraintRoleView.RoleType getRoleType()
JPAEdmReferentialConstraintRoleView.RoleType
ReferentialConstraintRole getEdmReferentialConstraintRole()
ReferentialConstraintRole
String getJPAColumnName()
String getEdmEntityTypeName()
String getEdmAssociationName()
boolean isExists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |