00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 package org.openmobileis.modules.crm.database.common.jdbc;
00031
00032 import java.sql.ResultSet;
00033
00034 import org.openmobileis.common.util.database.ManagerDB;
00035 import org.openmobileis.database.DatabaseException;
00036 import org.openmobileis.modules.crm.data.common.Representant;
00037
00046 public interface RepresentantJDBCQuery {
00047 public Representant convertResultSetToRepresentant (ResultSet result) throws DatabaseException;
00048 public ManagerDB getDbManager();
00049 public abstract String[] getInsertParamFromRepresentant(Representant rep);
00050 public abstract String[] getUpdateParamFromRepresentant(Representant rep);
00051 public ResultSet getRepIdsList () throws DatabaseException;
00052 public ResultSet getRepresentant (String[] param) throws DatabaseException;
00053 public ResultSet getAllRepresentants () throws DatabaseException;
00054 public void insertRepresentant (String[] param) throws DatabaseException;
00055 public void updateRepresentant (String[] param) throws DatabaseException;
00056 public void deleteRepresentant (String[] param) throws DatabaseException;
00057
00058 }