public class Routing { Login login;
LoginActivity loginActivity;
int gid;
String name_stree;
String geom;
int costvul;
int source;
int target;
public Routing() {
super();
}
public ArrayList<Routing> getList(){
DB db = new DB();
ArrayList<Routing> list=new ArrayList<>();
try {
ResultSet resultSet = db.select("SELECT * FROM streetaxe ");
if (resultSet != null) {
while (resultSet.next()) {
Routing obj = new Routing();
obj.setGid(resultSet.getInt("gid"));
obj.setSource(resultSet.getInt("source"));
obj.setTarget(resultSet.getInt("target"));
obj.setName_stree(resultSet.getNString("name_stree"));
list.add(obj);
obj = null;
}
}
}catch (Exception e){}
retu list;
}
public int getGid() {
retu gid;
}
public void setGid(int gid) {
this.gid = gid;
}
public String getName_stree() {
retu name_stree;
}
public void setName_stree(String name_stree) {
this.name_stree = name_stree;
}
public String getGeom() {
retu geom;
}
public void setGeom(String geom) {
this.geom = geom;
}
public int getCostvul() {
retu costvul;
}
public void setCostvul(int costvul) {
this.costvul = costvul;
}
public int getSource() {
retu source;
}
public void setSource(int source) {
this.source = source;
}
public int getTarget() {
retu target;
}
public void setTarget(int target) {
this.target = target;
}
}
روید باکس...
ما را در سایت روید باکس دنبال می کنید
برچسب : نویسنده : کاوه محمدزادگان roid بازدید : 131 تاريخ : پنجشنبه 12 فروردين 1395 ساعت: 9:26