blob: e0ed0db5f2309b2e45571d24b6ef9e5bf5552522 [file] [log] [blame]
/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
******************************************************************************/
package org.apache.olingo.odata2.jpa.processor.api.model;
import java.util.List;
import org.apache.olingo.odata2.api.edm.provider.Association;
import org.apache.olingo.odata2.api.edm.provider.AssociationSet;
/**
* <p>
* A view on Java Persistence Entity Relationship and Entity Data Model
* Association Set.
* </p>
* <p>
* The implementation of the view provides access to EDM Association Set created
* from Java Persistence Entity Relationship. The implementation act as a
* container for list of association sets that are consistent.
* </p>
*
*
* <p>
* @org.apache.olingo.odata2.DoNotImplement
* @see org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmAssociationView
*/
public interface JPAEdmAssociationSetView extends JPAEdmBaseView {
/**
* The method returns a consistent list of association sets. An association
* set is set to be consistent only if all its mandatory properties can be
* completely built from a Java Persistence Relationship.
*
* @return a consistent list of {@link org.apache.olingo.odata2.api.edm.provider.AssociationSet}
*
*/
List<AssociationSet> getConsistentEdmAssociationSetList();
/**
* The method returns an association set that is currently being processed.
*
* @return an instance of type {@link org.apache.olingo.odata2.api.edm.provider.AssociationSet}
*/
AssociationSet getEdmAssociationSet();
/**
* The method returns an association from which the association set is
* currently being processed.
*
* @return an instance of type {@link org.apache.olingo.odata2.api.edm.provider.Association}
*/
Association getEdmAssociation();
}