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