Code example for PreparedStatement

Methods: setBigDecimal, setNull

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