com.kenshoo.pl.entity.PairUniqueKey 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 PairUniqueKey, A, B> extends UniqueKey {
private final EntityField a;
private final EntityField b;
public PairUniqueKey(EntityField a, EntityField b) {
//noinspection unchecked
super(new EntityField[]{a, b});
this.a = a;
this.b = b;
}
@Deprecated
protected PairUniqueKeyValue createValue(A a, B b) {
return new PairUniqueKeyValue<>(this, a, b);
}
@Override
public Identifier createIdentifier(FieldsValueMap fieldsValueMap) {
return createValue(fieldsValueMap.get(a), fieldsValueMap.get(b));
}
public Identifier createIdentifier(A a, B b) {
return createValue(a, b);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy