Class LocalizedKeyGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.KeyGenerator
-
- de.hybris.platform.odata2services.odata.schema.LocalizedKeyGenerator
-
- All Implemented Interfaces:
SchemaElementGenerator<java.util.Optional<org.apache.olingo.odata2.api.edm.provider.Key>,java.util.List<org.apache.olingo.odata2.api.edm.provider.Property>>
public class LocalizedKeyGenerator extends KeyGenerator
-
-
Constructor Summary
Constructors Constructor Description LocalizedKeyGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisKey(org.apache.olingo.odata2.api.edm.provider.SimpleProperty property)Determines whether the specified property is a key property.-
Methods inherited from class de.hybris.platform.odata2services.odata.schema.KeyGenerator
createKey, generate, getSimpleProperties
-
-
-
-
Method Detail
-
isKey
protected boolean isKey(org.apache.olingo.odata2.api.edm.provider.SimpleProperty property)
Description copied from class:KeyGeneratorDetermines whether the specified property is a key property. Any property that is determined to be a key property will be included into the generated entity type key.- Specified by:
isKeyin classKeyGenerator- Parameters:
property- a property to be checked.- Returns:
true, if the property is a key property;falseotherwise.- See Also:
KeyGenerator.createKey(List)
-
-