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

com.kenshoo.pl.entity.DeletionOfOther 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.internal.MissingChildrenSupplier;

import java.util.Optional;

public class DeletionOfOther> implements MissingChildrenSupplier {

    private final E childType;

    public DeletionOfOther(E childType) {
        this.childType = childType;
    }

    public Optional> supplyNewCommand(Identifier id) {
        return Optional.of(new DeleteEntityCommand(childType, id).setCascade());
    }

    @Override
    public E getChildType() {
        return childType;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy