
com.bixuebihui.r2dbc.db.SimpleDaoInterface Maven / Gradle / Ivy
package com.bixuebihui.r2dbc.db;
import com.bixuebihui.r2dbc.sql.IDbHelper;
import reactor.core.publisher.Mono;
import java.sql.SQLException;
/**
* 抽象数据访问接口,方便数据访问的复用
*
* @author luax
* @version $Id: $Id
*/
public interface SimpleDaoInterface {
/**
* getDbHelper.
*
* @return a {@link IDbHelper} object.
*/
IDbHelper getDbHelper();
/**
* getTableName.
*
* @return a {@link String} object.
*/
String getTableName();
/**
* insert.
*
* @param o a T object.
* @return a boolean.
* @throws SQLException if any.
*/
Mono insert(T o) throws SQLException;
/**
* updateByKey.
*
* @param o a T object.
* @return a boolean.
* @throws SQLException if any.
*/
Mono updateByKey(T o) throws SQLException;
/**
* deleteByKey.
*
* @param o a ID object.
* @return a boolean.
* @throws SQLException if any.
*/
Mono deleteByKey(ID o) throws SQLException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy