Class JPAKeyPair
java.lang.Object
com.sap.olingo.jpa.processor.core.query.JPAKeyPair
- Type Parameters:
T-
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
The pair is seen as closed interval, that is min and max are seen as part of the result.
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 Summary
ConstructorsConstructorDescriptionJPAKeyPair(List<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute> keyDef) -
Method Summary
Modifier and TypeMethodDescriptionMap<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute,Comparable>getMax()<Y extends Comparable<? super Y>>
YgetMaxElement(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute keyElement)Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute,Comparable>getMin()<Y extends Comparable<? super Y>>
YgetMinElement(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute keyElement)booleanvoidsetValue(Map<com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute,Comparable> value)toString()
-
Constructor Details
-
JPAKeyPair
-
-
Method Details
-
getMin
-
getMinElement
public <Y extends Comparable<? super Y>> Y getMinElement(com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAttribute keyElement) -
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
-