Code example for PreparedStatement

Methods: setTimestamp

0
	} 
 
	public void setValues(PreparedStatement ps, int i) throws SQLException { 
		// TODO Auto-generated method stub 
		log4jMsgBean=bufferQueue.poll(); 
		lobCreator.setClobAsString(ps, 1, log4jMsgBean.getMsg()); 
		ps.setTimestamp(2, log4jMsgBean.getOpTime()); 
	} 
 
}