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

com.bixuebihui.db.SimpleDaoInterface Maven / Gradle / Ivy

Go to download

a fast small database connection pool and a active record flavor mini framework

There is a newer version: 1.15.8.3
Show newest version
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