Code example for PreparedStatement

Methods: setFloat, setNull

0
   */ 
  public void set(PreparedStatement ps,int index,Object value,int typeCode,JdaTypeConverterMap converterMap)throws SQLException{
   try{ 
	  	Float parameter =(Float)JdaTypeConvertFactory.convert(value,this.getPersisterType(),converterMap);
	  	if(parameter== null)
	  		ps.setNull(index,typeCode);
	  	else 
	  		ps.setFloat(index,parameter.floatValue());
   } catch (Throwable e) {
			throw new JdaException(null,e);
	 } 
  } 
}