Class JPAKeyPair

java.lang.Object
com.sap.olingo.jpa.processor.core.query.JPAKeyPair
Type Parameters:
T -

public class JPAKeyPair extends Object
A pair of comparable entity keys
Such a pair is used to forward the lowest and highest key value from a query to the dependent $expand query in case the original query was restricted by $top and/or $skip.
The pair is seen as closed interval, that is min and max are seen as part of the result.
Since:
0.3.6
Author:
Oliver Grande Created: 13.10.2019
  • Constructor Details

    • JPAKeyPair

      public JPAKeyPair(List<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute> keyDef)
  • Method Details

    • getMin

      public Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute,​Comparable> getMin()
    • getMinElement

      public <Y extends Comparable<? super Y>> Y getMinElement(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute keyElement)
    • getMax

      public Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute,​Comparable> getMax()
    • getMaxElement

      public <Y extends Comparable<? super Y>> Y getMaxElement(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute keyElement)
    • hasUpperBoundary

      public boolean hasUpperBoundary()
    • setValue

      public void setValue(Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute,​Comparable> value)
    • toString

      public String toString()
      Overrides:
      toString in class Object