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