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

p.sql2java-maven-plugin.0.9.0.source-code.daomanager.vm Maven / Gradle / Ivy

##$Id: global.manager.java.vm,v 1.3 2005/10/10 20:11:46 framiere Exp $
#parse( "header.include.vm" )
$codewriter.setCurrentJavaFilename($pkg, "DaoManager.java")
package $pkg;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

/**
 * Data access manager.
 */
public interface DaoManager
{
    public T createBean();
    public String getTableName();
    public T loadByPrimaryKey(Integer id) throws SQLException;
    public int deleteByPrimaryKey(Integer id) throws SQLException;
    public List loadAll() throws SQLException;
    public List loadAll(int startRow, int numRows) throws SQLException;
    public List loadByWhere(String where) throws SQLException;
    public List loadByWhere(String where, Object... fields) throws SQLException;
    public List loadByWhere(String where, int startRow, int numRows) throws SQLException;
    public T loadUniqueByWhere(String where) throws SQLException;
    public T loadUniqueByWhere(String where, Object... fields) throws SQLException;
    public int deleteAll() throws SQLException;
    public int deleteByWhere(String where) throws SQLException;
    public int deleteByWhere(String where, Object... fields) throws SQLException;
    public T save(T bean) throws SQLException;
    public T insert(T bean) throws SQLException;
    public T insert(T bean, boolean orUpdate) throws SQLException;
    public T insert(T bean, boolean orUpdate, boolean delayed) throws SQLException;
    public T update(T bean) throws SQLException;
    public List save(List beans) throws SQLException;
    public List insert(List beans) throws SQLException;
    public List update(List beans) throws SQLException;
    public T loadUniqueUsingTemplate(T bean) throws SQLException;
    public List loadUsingTemplate(T bean) throws SQLException;
    public List loadUsingTemplate(T bean, int startRow, int numRows) throws SQLException;
    public List loadUsingTemplate(T bean, int startRow, int numRows, int searchType) throws SQLException;
    public int deleteUsingTemplate(T bean) throws SQLException;
    public int countAll() throws SQLException;
    public int countWhere(String where) throws SQLException;
    public int countWhere(String where, Object... fields) throws SQLException;
    public int countUsingTemplate(T bean) throws SQLException;
    public int countUsingTemplate(T bean, int startRow, int numRows) throws SQLException;
    public int countUsingTemplate(T bean, int startRow, int numRows, int searchType) throws SQLException;
    public List decodeResultSet(ResultSet rs, int startRow, int numRows) throws SQLException;
    public T decodeRow(ResultSet rs) throws SQLException;
    public T metaDataDecodeRow(ResultSet rs) throws SQLException;
    public List loadByPreparedStatement(PreparedStatement ps) throws SQLException;
    public List loadByPreparedStatement(PreparedStatement ps, int startRow, int numRows) throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy