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

com.dream.template.mapper.SelectTreeMapper Maven / Gradle / Ivy

package com.dream.template.mapper;

import com.dream.system.core.action.DestroyAction;
import com.dream.system.core.session.Session;
import com.dream.util.tree.Tree;
import com.dream.util.tree.TreeUtil;

import java.util.Collection;

public class SelectTreeMapper extends SelectListMapper {

    public SelectTreeMapper(Session session) {
        super(session);
    }

    @Override
    protected DestroyAction[] destroyActions() {
        return new DestroyAction[]{(result, mappedStatement, session) -> TreeUtil.toTree((Collection) result)};
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy