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

com.kenshoo.pl.entity.SextupleUniqueKey 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 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