com.kenshoo.pl.entity.QuadrupleUniqueKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity;
public class QuadrupleUniqueKey, A, B, C, D> extends UniqueKey {
private final EntityField a;
private final EntityField b;
private final EntityField c;
private final EntityField d;
public QuadrupleUniqueKey(EntityField a, EntityField b, EntityField c, EntityField d) {
//noinspection unchecked
super(new EntityField[]{a, b, c, d});
this.a = a;
this.b = b;
this.c = c;
this.d = d;
}
@Deprecated
protected QuadrupleUniqueKeyValue createValue(A a, B b, C c, D d) {
return new QuadrupleUniqueKeyValue<>(this, a, b, c, d);
}
@Override
public Identifier createIdentifier(FieldsValueMap fieldsValueMap) {
return createValue(fieldsValueMap.get(a), fieldsValueMap.get(b), fieldsValueMap.get(c), fieldsValueMap.get(d));
}
public Identifier createIdentifier(A a, B b, C c, D d) {
return createValue(a, b, c, d);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy