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

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

import com.kenshoo.pl.entity.EntityField;
import com.kenshoo.pl.entity.EntityType;
import com.kenshoo.pl.entity.FieldsValueMap;
import com.kenshoo.pl.entity.Identifier;
import com.kenshoo.pl.entity.UniqueKey;

public class SeptupleUniqueKey, T1, T2, T3, T4, T5, T6, T7> 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;
    private final EntityField g;

    public SeptupleUniqueKey(EntityField a, EntityField b, EntityField c, EntityField d, EntityField e, EntityField f, EntityField g) {
        //noinspection unchecked
        super(new EntityField[]{a, b, c, d, e, f, g});
        this.a = a;
        this.b = b;
        this.c = c;
        this.d = d;
        this.e = e;
        this.f = f;
        this.g = g;
    }

    @Deprecated
    protected SeptupleUniqueKeyValue createValue(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f, T7 g) {
        return new SeptupleUniqueKeyValue<>(this, a, b, c, d, e, f, g);
    }

    @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), fieldsValueMap.get(g));
    }

    public Identifier createIdentifier(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f, T7 g) {
        return createValue(a, b, c, d, e, f, g);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy