All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kenshoo.pl.entity.QuintupleUniqueKey Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
package com.kenshoo.pl.entity;

/**
 *
 */
public abstract 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;
    }

    protected abstract QuintupleUniqueKeyValue createValue(T1 a, T2 b, T3 c, T4 d, T5 e);

    @Override
    public Identifier createValue(FieldsValueMap fieldsValueMap) {
        return createValue(fieldsValueMap.get(a), fieldsValueMap.get(b), fieldsValueMap.get(c), fieldsValueMap.get(d), fieldsValueMap.get(e));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy