Package com.kenshoo.pl.entity
Class UniqueKey<E extends EntityType<E>>
- java.lang.Object
-
- com.kenshoo.pl.entity.UniqueKey<E>
-
- All Implemented Interfaces:
IdentifierType<E>
- Direct Known Subclasses:
ForeignUniqueKey,PairUniqueKey,QuadrupleUniqueKey,QuintupleUniqueKey,SingleUniqueKey,TripleUniqueKey
public class UniqueKey<E extends EntityType<E>> extends java.lang.Object implements IdentifierType<E>
Specifies UniqueKey of entry. Since the key is used in maps, it's highly recommended to reuse the value of this class.The instances of this class are immutable.
-
-
Constructor Summary
Constructors Constructor Description UniqueKey(EntityField<E,?>[] fields)UniqueKey(java.lang.Iterable<? extends EntityField<E,?>> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identifier<E>createIdentifier(Entity entity)Identifier<E>createIdentifier(FieldsValueMap<E> fieldsValueMap)booleanequals(java.lang.Object o)EgetEntityType()EntityField<E,?>[]getFields()java.util.List<org.jooq.TableField<org.jooq.Record,?>>getTableFields()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
UniqueKey
public UniqueKey(EntityField<E,?>[] fields)
-
UniqueKey
public UniqueKey(java.lang.Iterable<? extends EntityField<E,?>> fields)
-
-
Method Detail
-
getFields
public EntityField<E,?>[] getFields()
- Specified by:
getFieldsin interfaceIdentifierType<E extends EntityType<E>>
-
getTableFields
public java.util.List<org.jooq.TableField<org.jooq.Record,?>> getTableFields()
- Specified by:
getTableFieldsin interfaceIdentifierType<E extends EntityType<E>>
-
createIdentifier
public Identifier<E> createIdentifier(FieldsValueMap<E> fieldsValueMap)
- Specified by:
createIdentifierin interfaceIdentifierType<E extends EntityType<E>>
-
createIdentifier
public Identifier<E> createIdentifier(Entity entity)
- Specified by:
createIdentifierin interfaceIdentifierType<E extends EntityType<E>>
-
getEntityType
public E getEntityType()
- Specified by:
getEntityTypein interfaceIdentifierType<E extends EntityType<E>>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-