com.bixuebihui.db.SimpleDaoInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c-dbtools Show documentation
Show all versions of c-dbtools Show documentation
a fast small database connection pool and a active record flavor mini framework
package com.bixuebihui.db;
import com.bixuebihui.jdbc.IDbHelper;
import java.sql.SQLException;
/**
* 抽象数据访问接口,方便数据访问的复用
*
* @author luax
* @version $Id: $Id
*/
public interface SimpleDaoInterface {
/**
* getDbHelper.
*
* @return a {@link IDbHelper} object.
*/
IDbHelper getDbHelper();
/**
* getTableName.
*
* @return a {@link java.lang.String} object.
*/
String getTableName();
/**
* insert.
*
* @param o a T object.
* @return a boolean.
* @throws java.sql.SQLException if any.
*/
boolean insert(T o) throws SQLException;
/**
* updateByKey.
*
* @param o a T object.
* @return a boolean.
* @throws java.sql.SQLException if any.
*/
boolean updateByKey(T o) throws SQLException;
/**
* deleteByKey.
*
* @param o a ID object.
* @return a boolean.
* @throws java.sql.SQLException if any.
*/
boolean deleteByKey(ID o) throws SQLException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy