01: package net.sourceforge.jaxor.api;
02:
03: import net.sourceforge.jaxor.MetaRow;
04: import net.sourceforge.jaxor.QueryParams;
05:
06: import java.io.Serializable;
07: import java.sql.ResultSet;
08: import java.util.List;
09:
10: public interface Finder extends Serializable {
11:
12: public MetaRow getMetaRow();
13:
14: public EntityInterface newInstance();
15:
16: public EntityInterface load(ResultSet rs);
17:
18: public void registerNew(EntityInterface entity);
19:
20: public boolean entityExists(QueryParams ps);
21:
22: public String getBaseQuerySQL();
23:
24: public List selectAll();
25:
26: public EntityInterface selectByPrimaryKey(QueryParams key,
27: boolean lazy);
28:
29: public QueryResult query(String sql);
30:
31: public QueryResult query(String sql, QueryParams args);
32:
33: public QueryResult find(String whereClause);
34:
35: public QueryResult find(String whereClause, QueryParams p);
36: }
|