package net.sourceforge.jaxor.api;
import net.sourceforge.jaxor.MetaRow;
import net.sourceforge.jaxor.QueryParams;
import java.io.Serializable;
import java.sql.ResultSet;
import java.util.List;
public interface Finder extends Serializable {
public MetaRow getMetaRow();
public EntityInterface newInstance();
public EntityInterface load(ResultSet rs);
public void registerNew(EntityInterface entity);
public boolean entityExists(QueryParams ps);
public String getBaseQuerySQL();
public List selectAll();
public EntityInterface selectByPrimaryKey(QueryParams key, boolean lazy);
public QueryResult query(String sql);
public QueryResult query(String sql, QueryParams args);
public QueryResult find(String whereClause);
public QueryResult find(String whereClause, QueryParams p);
}
|