Code example for SQLiteStatement

Methods: bindString, executeInsert

0
		  		this.insertStmt.bindString(9, value.getTYPE());
				  return this.insertStmt.executeInsert(); 
			  } 
	   public long insertT_GPX_TRACK(T_GPX_TRACK value,String table) {
		   this.insertStmt = this.db.compileStatement("insert into T_GPX_TRACK (ID_GPX,ID_TRACK,H_NAME,H_NUMBER,H_TYPE) values (?,?,?,?,?)");
			  this.insertStmt.bindString(1, value.getID_GPX());
			  this.insertStmt.bindString(2, value.getID_TRACK());
			  this.insertStmt.bindString(3, value.getH_NAME());
			  this.insertStmt.bindString(4, value.getH_NUMBER());
			  this.insertStmt.bindString(5, value.getH_TYPE());
				  return this.insertStmt.executeInsert(); 
			  } 
	   public long insertT_GPX_ROUTE(T_GPX_ROUTE value,String table) {
		   this.insertStmt = this.db.compileStatement("insert into T_GPX_ROUTE (ID_GPX,ID_ROUTE,H_NAME,H_NUMBER,H_TYPE) values (?,?,?,?,?)");
			  this.insertStmt.bindString(1, value.getID_GPX());
			  this.insertStmt.bindString(2, value.getID_ROUTE());
			  this.insertStmt.bindString(3, value.getH_NAME());
			  this.insertStmt.bindString(4, value.getH_NUMBER());
			  this.insertStmt.bindString(5, value.getH_TYPE());
				  return this.insertStmt.executeInsert(); 
			  }