public abstract class KeyGenerator extends java.lang.Object implements SchemaElementGenerator<java.util.Optional<Key>,java.util.List<Property>>
| Constructor and Description |
|---|
KeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Key |
createKey() |
java.util.Optional<Key> |
generate(java.util.List<Property> entityProperties)
Generates a key object from a set of entity attributes received as a parameter
|
protected static java.util.List<SimpleProperty> |
getSimpleProperties(java.util.List<Property> entityProperties) |
protected abstract boolean |
isKey(SimpleProperty simpleProperty) |
public java.util.Optional<Key> generate(java.util.List<Property> entityProperties)
generate in interface SchemaElementGenerator<java.util.Optional<Key>,java.util.List<Property>>entityProperties - used to generate the keyprotected abstract boolean isKey(SimpleProperty simpleProperty)
protected abstract Key createKey()
protected static java.util.List<SimpleProperty> getSimpleProperties(java.util.List<Property> entityProperties)
Copyright © 2018 SAP SE. All Rights Reserved.