public interface PropertyKeyMaker extends RelationTypeMaker
PropertyKey
s.
An property key is defined by its name, Cardinality
, its data type, and its signature - all of which
can be specified in this builder.Modifier and Type | Method and Description |
---|---|
PropertyKeyMaker |
cardinality(Cardinality cardinality)
Configures the
Cardinality of this property key. |
PropertyKeyMaker |
dataType(Class<?> clazz)
Configures the data type for this property key.
|
PropertyKey |
make()
Defines the
PropertyKey specified by this PropertyKeyMaker and returns the resulting key. |
PropertyKeyMaker |
signature(PropertyKey... types)
Configures the signature of this relation type.
|
getName
PropertyKeyMaker cardinality(Cardinality cardinality)
Cardinality
of this property key.cardinality
- PropertyKeyMaker dataType(Class<?> clazz)
clazz
- Data type to be configured.PropertyKey.dataType()
PropertyKeyMaker signature(PropertyKey... types)
RelationTypeMaker
RelationType
s used in the signature must be either property out-unique keys or out-unique unidirected edge labels.
signature
in interface RelationTypeMaker
types
- PropertyKey composing the signature for the configured relation type. The order is irrelevant.PropertyKey make()
PropertyKey
specified by this PropertyKeyMaker and returns the resulting key.make
in interface RelationTypeMaker
PropertyKey
Copyright © 2012–2015. All rights reserved.