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

org.nutz.dao.impl.link.DoClearLinkVisitor Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.impl.link;

import org.nutz.dao.entity.LinkField;
import org.nutz.dao.impl.AbstractLinkVisitor;
import org.nutz.dao.sql.Pojo;
import org.nutz.dao.util.Pojos;

public class DoClearLinkVisitor extends AbstractLinkVisitor {

    public void visit(final Object obj, final LinkField lnk) {
        Pojo pojo = opt.maker().makeDelete(lnk.getLinkedEntity());
        pojo.append(Pojos.Items.cnd(lnk.createCondition(obj)));
        pojo.setOperatingObject(obj);
        opt.add(pojo);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy