String hostname="chukwa.example.org";
String query = "insert into [system_metrics] set timestamp='"+timestamp.toString()+"', host='"+hostname+"', cpu_user_pcnt=100;";
Macro mp = new Macro(current, current, query);
query = mp.toString();
try {
db.execute(query);
query = "select timestamp,host,cpu_user_pcnt from [system_metrics] where timestamp=? and host=? and cpu_user_pcnt=?;";
mp = new Macro(current, current, query);
query = mp.toString();
ArrayList<Object> parms = new ArrayList<Object>();
parms.add(current);