Interface JPAEdmAssociationView
-
- All Superinterfaces:
JPAEdmBaseView
public interface JPAEdmAssociationView extends JPAEdmBaseView
A View on Java Persistence Entity Relationship and Entity Data Model Association.
The implementation of the view provides access to EDM Association created from Java Persistence Entity Relationships. The implementation acts as a container for list of association that are consistent. An Association is said to be consistent only
- If both the Ends of Association are consistent
- If referential constraint exists for the Association then it should be consistent
@org.apache.olingo.odata2.DoNotImplement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddJPAEdmAssociationView(JPAEdmAssociationView associationView, JPAEdmAssociationEndView associationEndView)The method addsJPAEdmAssociationViewto its containervoidaddJPAEdmRefConstraintView(JPAEdmReferentialConstraintView refView)The method adds the referential constraint view to its container.List<Association>getConsistentEdmAssociationList()The method returns a consistent list of associations.AssociationgetEdmAssociation()The method returns an association which is currently being processed.JPAEdmReferentialConstraintViewgetJPAEdmReferentialConstraintView()The method returns the referential constraint view that is currently being processed.intgetNumberOfAssociationsWithSimilarEndPoints(JPAEdmAssociationEndView view)The method searches for the number of associations with similar endpoints in its container against the search parameter view of typeJPAEdmAssociationView.AssociationsearchAssociation(JPAEdmAssociationEndView view)The method searches for an Association in its container against the search parameter view of typeJPAEdmAssociationView.-
Methods inherited from interface org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmBaseView
clean, getBuilder, getJPAEdmExtension, getJPAEdmMappingModelAccess, getJPAMetaModel, getpUnitName, isConsistent, isDefaultNamingSkipped
-
-
-
-
Method Detail
-
getEdmAssociation
Association getEdmAssociation()
The method returns an association which is currently being processed.- Returns:
- an
Association
-
getConsistentEdmAssociationList
List<Association> getConsistentEdmAssociationList()
The method returns a consistent list of associations. An association is set to be consistent only if all its mandatory properties can be completely built from a Java Persistence Relationship.- Returns:
- a consistent list of
Association
-
addJPAEdmAssociationView
void addJPAEdmAssociationView(JPAEdmAssociationView associationView, JPAEdmAssociationEndView associationEndView)
The method addsJPAEdmAssociationViewto its container- Parameters:
associationView- of typeJPAEdmAssociationViewassociationEndView- JPAEdmAssociationEndView
-
searchAssociation
Association searchAssociation(JPAEdmAssociationEndView view)
The method searches for an Association in its container against the search parameter view of typeJPAEdmAssociationView. The Association in the container view is searched against the consistent list of Association stored in this container.- Parameters:
view- of typeJPAEdmAssociationView- Returns:
Associationif found in the container
-
addJPAEdmRefConstraintView
void addJPAEdmRefConstraintView(JPAEdmReferentialConstraintView refView)
The method adds the referential constraint view to its container.Note: The referential constraint view is added only if it exists.
- Parameters:
refView- of typeJPAEdmReferentialConstraintView
-
getJPAEdmReferentialConstraintView
JPAEdmReferentialConstraintView getJPAEdmReferentialConstraintView()
The method returns the referential constraint view that is currently being processed.- Returns:
- an instance of type
JPAEdmReferentialConstraintView
-
getNumberOfAssociationsWithSimilarEndPoints
int getNumberOfAssociationsWithSimilarEndPoints(JPAEdmAssociationEndView view)
The method searches for the number of associations with similar endpoints in its container against the search parameter view of typeJPAEdmAssociationView. The Association in the container view is searched against the consistent list of Association stored in this container.- Parameters:
view- of typeJPAEdmAssociationView- Returns:
Associationif found in the container
-
-