Class Identifier
java.lang.Object
com.codename1.orm.session.Identifier
Immutable composite identity, in the model's declared identifier-field order.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares normalized components in identifier-field order.inthashCode()Computes a hash from the normalized key components.static IdentifierCreates a composite identifier, normalizing scalar storage representations.Object[]values()Returns a copy of the normalized key component array.
-
Method Details
-
of
Creates a composite identifier, normalizing scalar storage representations. Integral byte, short, and int values compare as longs. Copies the supplied array; components should be immutable. Binary components are unsupported.- Parameters:
values- key components in declared identifier-field order- Returns:
- composite identifier for session lookup
- Throws:
IllegalArgumentException- if a component is binary
-
values
Returns a copy of the normalized key component array.- Returns:
- components in identifier-field order
-
equals
-
hashCode
-