io.github.shmilyjxs.core.IBeanDao Maven / Gradle / Ivy
package io.github.shmilyjxs.core;
import io.github.shmilyjxs.utils.PageResult;
import org.apache.commons.lang3.tuple.Triple;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public interface IBeanDao {
Triple, Map> getTableInfo(T obj);
Triple, Map> getTableInfo(Class clazz);
T insert(T obj, boolean skipBlank);
void batchInsert(Collection> objs);
T updateById(T obj, boolean skipBlank);
void batchUpdate(Collection> objs);
T insertOrUpdate(T obj, boolean skipBlank);
void batchInsertOrUpdate(Collection> objs);
int deleteById(T obj);
void batchDelete(Collection> objs);
int delete(ID idValue, Class mappedClass);
int batchDelete(Collection idValues, Class mappedClass);
T getBean(ID idValue, Class mappedClass);
List getBeans(Collection idValues, Class mappedClass, String... orderBy);
int delete(T example);
T getBean(T example);
List getBeans(T example, String... orderBy);
PageResult getPage(T example, long pageNum, long pageSize, String... orderBy);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy