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

io.github.ldhai99.easyOrm.executor.Executor Maven / Gradle / Ivy

There is a newer version: 2.2.7
Show newest version
package io.github.ldhai99.easyOrm.executor;

import io.github.ldhai99.easyOrm.SQL;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface Executor {

    //代理-------------------------------------------------执行类
    //执行增加,删除,修改,返回记录个数
    public int update(SQL sql)   ;
    public int delete(SQL sql)   ;
    //插入,返回主键
    public Number insert(SQL sql)   ;

    //执行存储过程及ddl
    public int execute(SQL sql)   ;

    //查询数据库---------------------------------------------------------

    //返回单列单行数据
    //返回字符串
    public String getString (SQL sql)   ;

    //返回数字型
    public Number getNumber(SQL sql)   ;
    public Integer getInteger(SQL sql)   ;
    public Long getLong(SQL sql)   ;
    public Float getFloat(SQL sql)   ;
    public Double getDouble(SQL sql)   ;
    public  BigDecimal getBigDecimal(SQL sql) ;
    //返回日期型
    public Date getDate (SQL sql) ;
    public < T > T getValue ( SQL sql,Class requiredType)   ;


    //返回单列list数据
    public List getStrings (SQL sql)   ;
    public  List getNumbers (SQL sql) ;
    public List getIntegers(SQL sql)   ;
    public List getLongs(SQL sql)   ;
    public List getFloats(SQL sql)   ;
    public List getDoubles(SQL sql)   ;

    public  List getBigDecimals (SQL sql) ;
    public  List getDates (SQL sql)   ;
    public < T > List getValues (SQL sql, Class requiredType)   ;

    //返回单行数据

    public Map getMap(SQL sql)  ;
    //返回多行数据
    public List> getMaps(SQL sql)   ;
    //返回Bean实体
    public  T getBean(SQL sql,Class T)  ;

    //返回Bean list
    public  List getBeans(SQL sql,Class T)  ;


    public boolean isExists(SQL sql)  ;


    public Number getCount(SQL sql);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy