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

com.github.vendigo.acetest.db.dao.CrudMapper Maven / Gradle / Ivy

package com.github.vendigo.acetest.db.dao;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface CrudMapper {
    @DeleteProvider(type = CrudSqlProvider.class, method = "deleteAll")
    void deleteAll(String tableName);

    @SelectProvider(type = CrudSqlProvider.class, method = "select")
    List> select(String tableName, Collection columnNames);

    @InsertProvider(type = CrudSqlProvider.class, method = "insertOne")
    void insertOne(String tableName, Map row);

    @SelectProvider(type = CrudSqlProvider.class, method = "count")
    int count(String tableName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy