com.kenshoo.pl.entity.SextupleUniqueKey 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 SextupleUniqueKey, T1, T2, T3, T4, T5, T6> extends UniqueKey {
private final EntityField a;
private final EntityField b;
private final EntityField c;
private final EntityField d;
private final EntityField e;
private final EntityField f;
public SextupleUniqueKey(EntityField a,
EntityField b,
EntityField c,
EntityField d,
EntityField e,
EntityField f) {
//noinspection unchecked
super(new EntityField[]{a, b, c, d, e, f});
this.a = a;
this.b = b;
this.c = c;
this.d = d;
this.e = e;
this.f = f;
}
@Deprecated
protected SextupleUniqueKeyValue createValue(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) {
return new SextupleUniqueKeyValue<>(this, a, b, c, d, e, f);
}
@Override
public Identifier createIdentifier(FieldsValueMap fieldsValueMap) {
return createValue(fieldsValueMap.get(a),
fieldsValueMap.get(b),
fieldsValueMap.get(c),
fieldsValueMap.get(d),
fieldsValueMap.get(e),
fieldsValueMap.get(f));
}
public Identifier createIdentifier(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) {
return createValue(a, b, c, d, e, f);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy