Package de.espirit.or.schema
Class KeyValue
java.lang.Object
de.espirit.or.schema.KeyValue
- All Implemented Interfaces:
Serializable
Definition of a (primary) key value descriptor.
- Since:
- 4.0.17
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a key value.static KeyValue
createKeyValue
(Schema schema, Identifier identifier) Factory to create the key value within the given schema for the requested identifer.boolean
Equality implementation for key values.Provides the entity type name.getValue
(int index) Provides the value stored at the given index.Provides the key's values.int
hashCode()
Hashcode implementation.int
size()
Provides the size of the key value.toString()
Provides a textual representation of this value.
-
Constructor Details
-
KeyValue
Constructor taking the name of the type and the values building the key.- Parameters:
entityTypeName
- The type name.values
- The values building the key.- Since:
- 4.0.17
-
-
Method Details
-
createKeyValue
Factory to create the key value within the given schema for the requested identifer.- Parameters:
schema
- The schema.identifier
- The identifier.- Returns:
- The created key value.
- Since:
- 4.0.17
-
getEntityTypeName
Provides the entity type name.- Returns:
- The name.
- Since:
- 4.0.17
-
add
Adds a key value.- Parameters:
value
- The value to add.- Since:
- 4.0.17
-
getValues
Provides the key's values.- Returns:
- A list of values.
- Since:
- 4.0.17
-
getValue
Provides the value stored at the given index.- Parameters:
index
- The index.- Returns:
- The value.
- Since:
- 4.0.17
-
size
public int size()Provides the size of the key value.- Returns:
- The number of values.
- Since:
- 4.0.17
-
equals
Equality implementation for key values. -
hashCode
public int hashCode()Hashcode implementation. -
toString
Provides a textual representation of this value.
-